I use this with great success:
http://www.kernelhardware.org/virtualbox-auto-start-vm-centos-fedora-redhat/
I had to make this modification to the script:
23d22
< #
http://www.kernelhardware.org/virtualbox-auto-start-vm-centos-fedora-redhat/
47c46
< VBOXMANAGE="VBoxManage --nologo"
---
> VBOXMANAGE="VBoxManage -nologo"
94d92
< # NOTE: For Linux guests, acpid must be running
97c95
< $SU "$VBOXMANAGE list runningvms" | sed 's/.*"\(.*\)".*/\1/' | while read
VM; do
---
> $SU "$VBOXMANAGE list runningvms" | while read VM; do
[root@Citgo init.d]#
Make sure your guests respond to an acpi shutdown request, for linux, this
means having the acpid daemon installed.
Brett
On Tue, Apr 24, 2012 at 8:47 AM, Boris Epstein <[email protected]> wrote:
> Hello all,
>
> What's the best way to have VirtualBox start automatically on a CentOS 6
> machine in such a way as to have it bring up a specified list of VM's as it
> starts up at the time of the host machine's startup? Conversely, should
> the host machine shut down the VirtualBox's VMs need to shut down as
> gracefully as possible.
>
> Any advice on how to accomplish that would be greatly appreciated.
>
> Thanks.
>
> Boris.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> VBox-users-community mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/vbox-users-community
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community