VirtualBox: how to start and shutdown guests VMs on startup
I'm preparing a vitualization server (host) with VirtualBox. This machine, running Debian, is intended to run in HeadLess mode, without GUI.
I've got some guests VMs running. But I was wondering about the best way to start this guests VMs on startup and shut them down kindly when host is shutdwon. Virtual Machines run under non-root user. I was thinking about making a script in /etc/init.d/ in order to start certain VMs and to stop every VM running when system is halted. Is this really the simplest and most secure approach? Actually I couldn't find very much on this subject in user manual or googlin' around. Thanks in advance for any help, Matías |
This LQ thread is related.
|
Catkin,
Thanks a lot. The example helped so much to make my own startup / shutdown scripts. Regards, Matías |
Quote:
As you found out, it is difficult to find examples of VirtualBox VM startup / shutdown scripts on the 'net -- so it might help someone if you posted yours here :) |
All times are GMT -5. The time now is 02:22 PM. |