Windows command line control VirtualBox virtual machine

The default installation directory for Windows is under VirtualBox

C:\Program files\Oracle\VirtualBox

If the name of the virtual machine is MyHost, then:

C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe startvm MyHost --type headless% boot, and no interface
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe startvm MyHost --type gui% boot with interface
C : \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost pause% pause
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost savestate% dormant
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost forced shutdown poweroff%
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost resume% recovery from suspend
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost acpipowerbutton% press the power button
C: \ Program files \ Oracle \ VirtualBox \ VBoxManage.exe controlvm MyHost acpisleepbutton% press the sleep button

Guess you like

Origin www.cnblogs.com/jyginger/p/12304386.html