Things You'll Need:
- Computer with Windows version of VirtualBox installed
- A virtual machine setup in VirtualBox
-
Step 1
Create a batch file, let's call it: startvm.bat
In that batch file, put:
"c:\program files\sun\xvm virtualbox\VBoxHeadless" -startvm "name_of_virtual_machine_here" -p 3340
(make sure the path points to where you installed VirtualBox) -
Step 2
Create a vbs (Visual Basic Script), let's call it: start.vbs
In that vbs file, put:
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False -
Step 3
Put both the batch file and vbs file in the same directory somewhere, I put them on my desktop.
Create a shortcut to the vbs file and go to the properties of that shortcut and change the target to this:
C:\Users\Home\Desktop\start.vbs startvm.bat
(make sure the path goes to the folder you put the vbs and batch file at) -
Step 4
Run the shortcut whenever you want to start the virtual machine.
If you open VirtualBox, you will see that it says your virtual machine is running. -
Step 5
In order to stop the virtual machine, create another batch file, let's call it: shutdownvm.bat
In that batch file, put:
"c:\program files\sun\xvm virtualbox\VBoxManage" controlvm "winXPHome" poweroff
(make sure the path points to where you installed VirtualBox) -
Step 6
Run the batch file to shutdown your virtual machine.
You will see in VirtualBox that it says your virtual machine is powered off.
Remember that before you can remote desktop to the machine you will need to set up the remote desktop settings on the virtual machine by logging into the machine through the VirtualBox interface.














