How to set auto-start for virtual box image in windows 7

We have some problem to auto-start the VirtualBox in Windows 7.
There is no setting auto-start Virtual Machine in Virtual Box “Preference”.
At least until this moment.

However, the solutions is pretty much simple.
You just need to create batch file to be executed on Windows 7 start-up.

Create a batch file as follows :

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage startvm "portMonitoring"

save as VBox-startup.bat or something alike.

where “portMonitoring” is the image name in VirtualBox.

Then, right click on that and create a shortcut into Desktop or wherever visible.

Then just drag-drop that shortcut into All Programs -> Startup.
Or something like the following folders.

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

You might need the administrator access before can set/create the batch file to be executable.

Test by rebooting the host once, and ensure the image name is correct.

Good Luck.

Tags: , ,

Leave a Comment