<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Far Fewer Toes - Latest Comments in Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 24 Mar 2009 09:07:54 -0000</lastBuildDate><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-7465845</link><description>i've made a few minor changes to your script in order to be able to run it in gentoo:&lt;br&gt;&lt;br&gt;1. in gentoo doesn't exist /lib/lsb/init.functions, i've commented it out&lt;br&gt;2. because of (1), i substituted the commands: log_failure_msg and log_action_msg, instead i used a simple 'echo'&lt;br&gt;3.in gentoo doesn't exist the file /etc/network/interfaces, instead the config of the network is in /etc/conf.d/net&lt;br&gt;4. i need to open the VMs with it's GUI (windows, you know...), so i've set an X-server and add it to the config file asa  variable: X_HOST&lt;br&gt;5.i used X_HOST for setting the target of the GUI of the VM using "export DISPLAY=$X_HOST"&lt;br&gt;6.i've changed the type of the VM's, instead or "-type rdp" i use "-type gui"&lt;br&gt;&lt;br&gt;the rest works perfectly, but i have still a problem with the network, i cant see any host from the guest (windows 2003), any help?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">makj</dc:creator><pubDate>Tue, 24 Mar 2009 09:07:54 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789985</link><description>Hi robp2175, you can remove the script with:&lt;br&gt;update-rc.d -f vboxcontrol remove&lt;br&gt;&lt;br&gt;(see man update-rc.d)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochem</dc:creator><pubDate>Fri, 10 Oct 2008 15:19:28 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789987</link><description>How do I remove this script "update-rc.d vboxcontrol defaults 99 10"   .&lt;br&gt;It did not work for me and I want to make sure it does not try to run every time I boot.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">robp2175</dc:creator><pubDate>Mon, 29 Sep 2008 14:59:58 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789984</link><description>great work jochem, that solved a problem i was having with a server running several virtualbox VMs. two extra bits that have helped me...&lt;br&gt;&lt;br&gt;i add the lines&lt;br&gt;  bridge_fd 0&lt;br&gt;  bridge_stp on&lt;br&gt;in the br0 section of /etc/network/interfaces&lt;br&gt;on big networks this avoids the situation where the bridge isn't in listening mode by the time virtualbox is plugging its VMs onto the taps&lt;br&gt;&lt;br&gt;in your vboxcontrol script (fantastic script by the way) i added a few lines to the waiting_for_closing_machines() method to give the VMs a minute or so to close themselves in response to the ACPI powerbutton... if a minute goes by and they haven't closed I assume they've hung and use 'poweroff' to pull the plug on them. &lt;br&gt;&lt;br&gt;code below....&lt;br&gt;&lt;br&gt;wait_for_closing_machines() {&lt;br&gt;    RUNNING_MACHINES=`$SU "$VBOXMANAGE list runningvms" | wc -l`&lt;br&gt;	if [ $RUNNING_MACHINES != 0 ]; then&lt;br&gt;        sleep 5&lt;br&gt;&lt;br&gt;	# =========================================================&lt;br&gt;	# added by Tim; give them a few cycles to shutdown then kill them&lt;br&gt;	# =========================================================&lt;br&gt;	x=$(expr $x + 1)&lt;br&gt;	log_action_msg "waiting for them to shut-down as instructed - $x"&lt;br&gt;	if [ $x = 10 ]; then&lt;br&gt;	   log_action_msg "$RUNNING_MACHINES VM(s) seem to be hung..."&lt;br&gt;           $SU "$VBOXMANAGE list runningvms" | while read HUNGVM; do&lt;br&gt;	       log_action_msg "Powering off VM: $HUNGVM ..."&lt;br&gt;      	       $SU "$VBOXMANAGE controlvm \"$HUNGVM\" poweroff"&lt;br&gt;		done&lt;br&gt;        fi&lt;br&gt;	#========================================================&lt;br&gt;&lt;br&gt;        wait_for_closing_machines&lt;br&gt;        fi&lt;br&gt;        }</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">timbophillips</dc:creator><pubDate>Sun, 14 Sep 2008 06:27:23 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789986</link><description>It's a great script I have been looking for.&lt;br&gt;&lt;br&gt;The version 2008051100 by  Jochem does not work for my setup:&lt;br&gt;&lt;br&gt;   Sun xVM 1.6.2 under Ubuntu Server 8.04&lt;br&gt;&lt;br&gt;so that I have adapted it and named version 20080615-1915. It is sent to Jochen to post in the hope that it may be useful for some people. It was just tested in my abovementioned setup and I am not sure if it would work on Ubuntu Desktop or any other Linux distributions, which I am not using and unable to test with.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lei</dc:creator><pubDate>Sun, 15 Jun 2008 07:39:44 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789989</link><description>Thanks esoco, you're right. It's fixed in the &lt;a href="http://farfewertoes.com/code/vboxcontrol/" rel="nofollow"&gt;vboxcontrol section&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochem</dc:creator><pubDate>Sun, 01 Jun 2008 07:19:11 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789988</link><description>Thanks for this helpful script, it works without problems on Ubuntu 8.04 for me. I only noticed a small typo in the instructions: the entry in interfaces mentioned here&lt;br&gt;* If you use 'Host interface' networking, put a br0 entry in /etc/network/interfaces: inet br0 inet dhcp&lt;br&gt;&lt;br&gt;must instead be "iface br0 inet dhcp".</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">esoco</dc:creator><pubDate>Sun, 01 Jun 2008 06:14:55 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789983</link><description>Hi Jochem,&lt;br&gt;&lt;br&gt;Thanks for the quick response.&lt;br&gt;&lt;br&gt;The only difference with using VBoxRDP for starting the VM is that it will show up in the log if there are any problems when starting it.&lt;br&gt;&lt;br&gt;I'm looking forward to your updated script. &lt;br&gt;&lt;br&gt;PS. I believe you should post a link inside the VirtualBox forum for other s to find this wonderful script of yours. Believe you me there are many others who would like to be able to do this on their linux box but don't know how to code the script.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">raymond</dc:creator><pubDate>Fri, 02 May 2008 07:42:08 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789982</link><description>Hi Raymond, thanks for the compliment.&lt;br&gt;&lt;br&gt;Right now the script only works with tap interfaces, since I didn't have a need for non-tap based VM's. Adding an option for that would be easy though, I guess. If so, I'll post a new version soonish with the option in it.&lt;br&gt;&lt;br&gt;I use the VBoxManage command since that can do all actions to a VM needed, like shutting down (VBoxRDP can't do this afaik), listing running VM's etc. I don't think there's any advantage of running VBoxRDP for just starting the VM's.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochem</dc:creator><pubDate>Fri, 02 May 2008 04:04:23 -0000</pubDate></item><item><title>Re: Start VirtualBox virtual machines on boot | Far Fewer Toes</title><link>http://farfewertoes.com/stories/2008-03-09-start-virtualbox-virtual-machines-on-boot/#comment-3789981</link><description>This is a great soluton! I have been looking for something like this for a long time.&lt;br&gt;&lt;br&gt;What if I'm not using a tap interface will this script still work? Is there an option to disable the loading of the tap interface?&lt;br&gt;&lt;br&gt;Why not use the VBoxRDP command to start the VMs?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">raymond</dc:creator><pubDate>Thu, 01 May 2008 20:54:00 -0000</pubDate></item></channel></rss>