Here is what I do - in /etc/rc.local, I have these lines, before exit 0:
startlist=`cat /etc/vbox/startlist.txt`
for vm in $startlist
do
logger ===================================================
logger = Starting $vm Virtual Machine
logger ===================================================
/usr/bin/VBoxManage -nologo startvm $vm --type headless
sleep 10
done
In /etc/vbox/startlist.txt there is a list of names of the VM's that I want
to start.
Hope this helps,
Mark
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