headless, autoboot
headless, autoboot
how do you setup vbox to autoboot a vm on machine boot?
-
bmwiedemann
- Posts: 32
- Joined: 23. Mar 2008, 06:41
- Location: $HOME
- Contact:
I do it thus:
http://forums.virtualbox.org/viewtopic.php?t=11633
having an init-script in /etc/init.d/vbox that starts the prepared VMs unter their user-accounts
The actual starting is something along the lines of
and for stopping I use
http://forums.virtualbox.org/viewtopic.php?t=11633
having an init-script in /etc/init.d/vbox that starts the prepared VMs unter their user-accounts
The actual starting is something along the lines of
Code: Select all
VBoxManage startvm NameOfVirtualMachine -type vrdpCode: Select all
VBoxManage controlvm NameOfVirtualMachine acpipowerbuttonI am who I am
Starting VMs automatically, headless
I'm a newbie to VirtualBox, after searching through the docs and forums, I'm not clear on the use of VBoxHeadless.
My intention is to test it running my VMs headless from the command line - leaving and accessing them remotely. When I run:
VBoxHeadless -startvm "My Server Name" -vrdp=off
or any variation of that, it gives me a copyright notice and doesn't go into the background (which I expected it might). And the VM doesn't start. I CTRL-C out of it to return.
The VMs run fine from the GUI, but that defeats the purpose. Ultimately, I'd like to configure our RedHat EL 5.2 host so that certain VMs will automatically start as the system boots, etc.
I read through section 7.4.1 "VBoxHeadless, the VRDP-only Server" and related sections of the manual and it's just not clear to me.
Thanks.
My intention is to test it running my VMs headless from the command line - leaving and accessing them remotely. When I run:
VBoxHeadless -startvm "My Server Name" -vrdp=off
or any variation of that, it gives me a copyright notice and doesn't go into the background (which I expected it might). And the VM doesn't start. I CTRL-C out of it to return.
The VMs run fine from the GUI, but that defeats the purpose. Ultimately, I'd like to configure our RedHat EL 5.2 host so that certain VMs will automatically start as the system boots, etc.
I read through section 7.4.1 "VBoxHeadless, the VRDP-only Server" and related sections of the manual and it's just not clear to me.
Thanks.
Thanks for the help.
forrie,
I been using the GUI for a little while on my laptop and am just starting to look at the headless for my servers so I'm not positive, but when you first start the gui you get the terms agreement, is that what your getting on the headless? if so trying accepting it (may have to scroll to the bottom).
forrie,
I been using the GUI for a little while on my laptop and am just starting to look at the headless for my servers so I'm not positive, but when you first start the gui you get the terms agreement, is that what your getting on the headless? if so trying accepting it (may have to scroll to the bottom).
Re: Starting VMs automatically, headless
You can place an ampersand '&' right after the command:forrie wrote:When I run:
VBoxHeadless -startvm "My Server Name" -vrdp=off
or any variation of that, it gives me a copyright notice and doesn't go into the background (which I expected it might). And the VM doesn't start. I CTRL-C out of it to return.
Code: Select all
VBoxHeadless -startvm "My Server Name" -vrdp=off &Code: Select all
VBoxManage startvm NameOfVirtualMachine -type vrdpVBoxTool: VirtualBox automation tools http://vboxtool.sourceforge.net/
Take a look at this script - http://farfewertoes.com/code/vboxcontrol/
It also could bring up/down network bridge and another features.
Author of the scrpipt mentioned DHCP for bridge br0 (in /etc/network/intefraces), but this also works perfect with static ip like:
interface br0 inet static
address ...
netmask ..
...
DON'T add "auto br0" - script does it itself.
It also could bring up/down network bridge and another features.
Author of the scrpipt mentioned DHCP for bridge br0 (in /etc/network/intefraces), but this also works perfect with static ip like:
interface br0 inet static
address ...
netmask ..
...
DON'T add "auto br0" - script does it itself.
-
Max Rebo
- Posts: 10
- Joined: 21. Nov 2008, 22:48
- Primary OS: openSUSE
- VBox Version: OSE other
- Guest OSses: XP
Re: headless, autoboot
Please read my post here:Corey wrote:how do you setup vbox to autoboot a vm on machine boot?
How to Autoboot Virtualbox Guests during Linux boot
It took me a while to get it working and it might be what you want. Check near the bottom of that page.