In Linux, We can run background virtualbox by VBoxManage. But, In Windows, We can't run it. So We need another program.
Download hstart.
2. Make Script.
start_vm.bat:
"[HSTART_LOCATION]\hstart.exe" /NOCONSOLE "C:\Program Files\Sun\VirtualBox\vboxheadless -s "[NAME_OF_VM]" -vrdp off"
"
"[HSTART64 Location] \hstart64.exe" /NOCONSOLE "C:\Program Files\Sun\VirtualBox\vboxheadless -s [Name of VM] -vrdp off"
For example,
"C:\Program Files\hstart\x64\hstart64.exe" /NOCONSOLE "C:\Program Files\Sun\VirtualBox\vboxheadless -s WServer2003 -vrdp off"
"C:\Program Files\hstart\x64\hstart64.exe" /NOCONSOLE "C:\Program Files\Sun\VirtualBox\vboxheadless -s WServer2003 -vrdp off"
save_state_vm.bat:
"C:\Program Files\Sun\VirtualBox\VBoxManage.exe" controlvm "
3. Ok Run Script.