Sunday, October 31, 2010

Running Virtual Machine as Service (virtual box)

Oracle VM Virtual Box is a good utility to try different OSes and keep you host machine clutter free from development installations. Also makes sense to take a regular back up using rsync (file synchronization utility).

This blog post describes shortly how to run virtual box as a service.

To run virtual box as a service we have to start it from command line first and then add the batch / script to scheduled task (on windows) or a cron job ( on unix/linux).

Here are the steps:
1) go to c:\Program Files\Oracle\VirtualBox
2) execute "start /b /wait /low VBoxHeadless -startvm "virtual machine name"
3) press enter

This is it. Now you just need to schedule this execution and now you can run virtual machine in virtual box as a service.

To access virtual machine you can use ssh / remote rdp.

Reference:
http://forums.virtualbox.org/viewtopic.php?f=6&t=1887&start=15

http://www.virtualbox.org

No comments:

Post a Comment