I am a total noob to scripting. So please forgive my ignorance...
I am running virtualbox on my OS X 10.6.4 server (SLS). I am virtualizing Windows XP SP3. I want the XP machine to start up every-time the server hardware reboots. (We have some power issues in Mexico...) In the OS X Boot up preferences I have selected VirtualBox.app to start automatically on boot up. But this does not automatically restart the virtual machine. I am sure this sort of thing is normal for Network admin running virtualbox.... Can someone please point me to some documentation on how to do this, or show me the needed bash script with the set up instructions.
Thanks in advance.
(P.S. I do not need to power off the virtual machine automatically when I want to shut down the OSX server. I just have an issue when I am booting up.)
Starting a VM on OSX Server SL reboot
-
misionpilot
- Posts: 1
- Joined: 17. Dec 2010, 20:14
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP SP3
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Starting a VM on OSX Server SL reboot
Then you would put a script in the same startup folder as the main .app. In that script, you would put something like this:
You should really consider getting some UPS system installed with all that power loss.
Code: Select all
VBoxManage startvm "<vm name>"Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
ChipMcK
- Volunteer
- Posts: 1095
- Joined: 20. May 2009, 02:17
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, OSX
- Location: U S of A
Re: Starting a VM on OSX Server SL reboot
These may be of interest - Launching a virtual machine
http://forums.virtualbox.org/viewtopic.php?f=8&t=9562
http://forums.virtualbox.org/viewtopic. ... 43#p144243
Good Holidays
http://forums.virtualbox.org/viewtopic.php?f=8&t=9562
http://forums.virtualbox.org/viewtopic. ... 43#p144243
Good Holidays