LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2010, 09:09 AM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Rep: Reputation: 31
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
 
Old 06-21-2010, 11:30 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
This LQ thread is related.
 
Old 06-23-2010, 06:56 AM   #3
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Catkin,

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

Regards,
Matías
 
Old 06-23-2010, 09:01 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by matiasar View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vmware vs virtualbox networking benchmarks (mostly windows 7 guests) mrtwice Linux - Virtualization and Cloud 0 12-20-2009 02:44 PM
All my guests crash on Fedora 11 with VirtualBox green_dood Linux - Software 2 05-28-2009 02:37 PM
LXer: VirtualBox 2: How To Pass Through USB Devices To Guests On An Ubuntu 8.10 Host LXer Syndicated Linux News 0 04-05-2009 07:41 AM
A problem with multiple VirtualBox VMs using the same TCP port crisostomo_enrico Solaris / OpenSolaris 5 08-22-2008 10:04 PM
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration