Archiwum kategorii: Virtual Box

Running vbox withouth gui

The trick is to run the VM without GUI. With this you can easily run VM on WIN server like a service too.

0) Prerequired is that exist some VM, you have some already. Below put its name instead {vm_name}.

1) At first we use build-in executable file „VBoxHeadless.exe”.

create file
put code

cd „c:\Program Files\Oracle\VirtualBox\”
VBoxHeadless.exe -s {vm_name} -v on
run and test it – WIN „Command Line Interface (CLI)” called „Command shell” will be open and VM will running in background.
2) Then we use „Windows-based script host (WSCRIPT)” and language „Microsoft Visual Basic Script (VBS)” and run above file „” with.

create file
put code

Set WshShell = WScript.CreateObject(„WScript.Shell”)
obj = WshShell.Run(„”, 0)
set WshShell = Nothing
run and test it – CLI will be run in background.


Thanks to iain