08 Jul 2009 @ 10:22 AM 

vbox logo2 gradient How to run multiple VirtualBox as service in Windows simultaneouslyIf you already know how to run your VirtualBox Virtual Machine as service, now you can run multiple VMs as service, all at once… Pretty cool isn’t it? tu 41 How to run multiple VirtualBox as service in Windows simultaneously

Here is how we are going to do that…

  1. First of all, if you haven’t read the first tutorial, please do so.
  2. Shutdown all your VMs if they’re running.
  3. Open up the Windows Service Commander, and set the created virtualbox service’s startup type to manual. This is to make sure it’s not running the next time we reboot the host system.
  4. Reboot the host system. We do this so the VirtualBox.xml file is not opened by any other process, which will prevent us from modifying it.
  5. After reboot, open C:\Documents and Settings\YOURUSERNAMEHERE\.VirtualBox\VirtualBox.xml with notepad and make sure all src path for ALL your VMs are already in the form of absolute path. (eg. C:\Documents and Settings\Personal\.VirtualBox\Machines\VM1\VM1.xml instead of Machines\VM1\VM1.xml )
  6. Save the file and copy it to C:\Documents and Settings\LocalService\.VirtualBox and overwrite the old one.
  7. Open the file C:\vm\srvstart.ini with notepad. Modify the file so it will looks like this.
    env=VBOXGUI="C:\Program Files\Sun\xVM VirtualBox\virtualbox.exe"
    env=VBOXHEADLESS="C:\Program Files\Sun\xVM VirtualBox\vboxheadless.exe"
    env=VBOXWEBSRV="C:\Program Files\Sun\xVM VirtualBox\vboxwebsrv.exe"
    env=VBOXMANAGE="C:\Program Files\Sun\xVM VirtualBox\VBoxManage.exe"
    env=VBOX_PROG="C:\Program Files\Sun\xVM VirtualBox\"
    env=VBOX_BASE="C:\Documents and Settings\YOURUSERNAMEHERE\.VirtualBox\"
    env=VBOX_MACHINES="C:\Documents and Settings\YOURUSERNAMEHERE\.VirtualBox\machines\"
    env=VBOX_VDI="C:\Documents and Settings\YOURUSERNAMEHERE\.VirtualBox\HardDisks\"
    env=USERPROFILE=C:\Documents and Settings\LocalService\
    
    debug=1
    debug_out=>C:\vm\vm.log
    
    [VM1]
    startup=%VBOXHEADLESS% -startvm VM1
    shutdown_method=command
    shutdown=%VBOXMANAGE% controlvm VM1 savestate
    
    [VM2]
    startup=%VBOXHEADLESS% -startvm VM2
    shutdown_method=command
    shutdown=%VBOXMANAGE% controlvm VM2 savestate
  8. All you need to do, is adding the VM names you’d like to run as service at the bottom of srvstart.ini file. In the example above, I’m adding VM2 section at the bottom. So you get the idea now. If I want to simultaneously run 3 VMs called VM1, VM2, and VM3 as service, then I must add the VM2 and VM3 section at the bottom, and so on.
  9. Save the file.
  10. Now open the Windows Service Commander and add a new service like we did last time. It’s just this time we change the service name to differs from the first one. This is what we’re going to put in the service executable path
    c:\VM\srvstart.exe svc VM2 -c "c:\vm\srvstart.ini"
  11. Proceed like before until finish.
  12. Test your new VM service by starting it.
  13. If everything’s in the right direction, you can set your VM services(yes, all your VM services) startup type to Automatic.
  14. After that, you can reboot the host system to see them all running simultaneously. tu 3 How to run multiple VirtualBox as service in Windows simultaneously

Caution: Please make sure you have enough memory to run all the VMs at once. The total amount of memory allocated for these VMs must NOT exceed the available memory. Plus, you must consider enough amount of memory for the host system itself.

Technorati Tags: ,

Posted By: LiveDeviL
Last Edit: 11 Oct 2010 @ 12:19 AM

EmailPermalink
Tags


 

Responses to this post » (2 Total)

 
  1. Windows CAL Habis? Masih Ada Ubuntu (Linux)…

    Jika kita menggunakan Windows Server (200,2003 atau 2008) kita pasti akan berurusan dengan CLient Access License (CAL). Biasanya pembelian Windows Server disertai paket CAL. Untuk Windows 2003 CAL bisa diatur berdasarkan perangkat keras (device) atau p…

  2. Sander says:

    You can also look at my homepage. It contains a sort of same program, but works easier.

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 


 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 30
  • Comments » 124
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight