<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/vmware.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Sat, 09 Jun 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/vmware/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>VMWare run/stop VM from command line</title>
      <link>https://blog.bekenev.net/2018/06/09/vmware-run-stop-vm-from-cli.html</link>
      <pubDate>Sat, 09 Jun 2018 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2018/06/09/vmware-run-stop-vm-from-cli.html</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;&#xA;&lt;p&gt;so here are two basic commands you can wrap in functions or anything else to run/stop VM of &lt;strong&gt;VMWare Workstation&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important note&lt;/strong&gt;, all commands are for Windows. They should work for other systems I guess with minimal or no changes.&lt;/p&gt;&#xA;&lt;h2&gt;To start a VM use this command&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vmrun -T ws start &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;C:\vms\workstation.vmx&amp;#34;&lt;/span&gt; nogui&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;nogui&lt;/code&gt; option in this case forces the vmrun NOT to open the GUI window.&#xA;&lt;code&gt;workstation.vmx&lt;/code&gt; is a file, usually is the same as your VM name.&lt;/p&gt;&#xA;&lt;h2&gt;To stop a VM&lt;/h2&gt;&#xA;&lt;p&gt;There is nothing special. Just stop instead of start.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vmrun -T ws stop &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;C:\vms\workstation.vmx&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can check out the output of &lt;code&gt;vmrun&lt;/code&gt; command to see a bit more options to manage VMs.&lt;/p&gt;&#xA;&lt;p&gt;Also take a look at my &lt;a href=&#34;https://blog.bekenev.net/2018/02/18/run-commands-on-guest-vm.html&#34;&gt;other&lt;/a&gt;, &lt;a href=&#34;https://blog.bekenev.net/2018/02/18/virtualbox-headless-mode.html&#34;&gt;posts&lt;/a&gt; related to pretty the same subject but for VirtualBox.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
