<?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/virtualbox.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Sun, 18 Feb 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/virtualbox/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>VirtualBox Headless mode</title>
      <link>https://blog.bekenev.net/2018/02/18/virtualbox-headless-mode.html</link>
      <pubDate>Sun, 18 Feb 2018 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2018/02/18/virtualbox-headless-mode.html</guid>
      <description>&lt;p&gt;I use VirtualBox and do some testing and learning with multiple machines running at once.&lt;/p&gt;&#xA;&lt;p&gt;Usually those machines are servers so I don&amp;rsquo;t really need the GUI since I connecting to them using SSH clinet.&lt;/p&gt;&#xA;&lt;p&gt;When VirtualBox is installed you&amp;rsquo;ll see &lt;code&gt;VBoxManage&lt;/code&gt; executable (&lt;code&gt;vboxmanage&lt;/code&gt; is also there as alias) which is CLI tool&#xA;that allows you to interact with your VMs.&lt;/p&gt;&#xA;&lt;p&gt;Here is a command how you can start VM in headless mode:&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;vboxmanage startvm &amp;lt;vm name&amp;gt; --type headless&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;&#xA;Pretty simple.&#xA;&lt;p&gt;To shutdown the VM run this:&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;vboxmanage controlvm &amp;lt;vm name&amp;gt; poweroff&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;&#xA;That&#39;s it. You can also run `vboxmanage` without any params to get list of all options/actions it supports.&#xA;&lt;p&gt;Have fun.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
