LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VirtualBox: how to start and shutdown guests VMs on startup (https://www.linuxquestions.org/questions/linux-software-2/virtualbox-how-to-start-and-shutdown-guests-vms-on-startup-815426/)

matiasar 06-21-2010 09:09 AM

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

catkin 06-21-2010 11:30 AM

This LQ thread is related.

matiasar 06-23-2010 06:56 AM

Catkin,

Thanks a lot. The example helped so much to make my own startup / shutdown scripts.

Regards,
Matías

catkin 06-23-2010 09:01 AM

Quote:

Originally Posted by matiasar (Post 4012543)
Catkin,

Thanks a lot. The example helped so much to make my own startup / shutdown scripts.

Regards,
Matías

Glad you found a solution and thanks for marking the thread SOLVED.

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.