ComTech: IT Support Stirling

How to start a Virtualbox VM at startup in Windows

ComTech: IT Support Stirling

Usually I use Virtualbox as my main virtualization solution of choice on Linux and not Windows but this week that was not the case.  I had a requirement to install Windows XP inside a virtual machine on Windows 7 which was to run a business critical piece of software. This meant it had to start when the Windows 7 machine starts and this is how I did it.

First thing we need to do is create a batch file so open up Notepad.  Name the file anything you like but make sure it ends in .bat so for example mine was virtualxp.bat.  I then inserted the following text into the file:

cd “c:\Program Files\Oracle\Virtualbox”

vboxmanage startvm “ENTER YOUR MACHINE NAME”

The above code assumes that you have installed Virtualbox in the default location, if not alter the text appropriately.  Enter your machine name should be self explanatory!!

Save the file and place it in the Startup folder which is located at C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.

That is it.  The virtual machine should now start when the host starts.

About the Author


Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter



One thought on “How to start a Virtualbox VM at startup in Windows

Leave a comment

Your email address will not be published.


Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates