HOWTO: Start VirtualBox VM on boot – Windows
Here’s a quick and simple solution to getting a VirtualBox VM to start on boot in MS Windows.
Create a new batch script with Notepad. Enter the following code, changing to include the name of your VM.
cd "C:\Program Files\Oracle\VirtualBox" VBoxHeadless --startvm name_of_your_vm_here
Save and close your file. Now click and drag it from where you saved it, over the Start Menu and drop it into the “Startup” folder. Now, that script will be executed on startup.
That’s it! Reboot and check that your VM has started running. It will be headless (ie you won’t be a VBox window) which is great for VMs you want in the background. However, you will still have a command prompt open.
Filed under: HowTo, Posts, Server, Windows | 3 Comments
Tags: Batch, VirtualBox, Windows