Windows下VirtualBox的默认安装路径是
C:\Program files\Oracle\VirtualBox
假设虚拟机的名称是 MyHost,那么:
C:\Program files\Oracle\VirtualBox\VBoxManage.exe startvm MyHost --type headless % 开机,且*面
C:\Program files\Oracle\VirtualBox\VBoxManage.exe startvm MyHost --type gui % 开机,带界面
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost pause % 暂停
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost savestate % 休眠
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost poweroff % 强制关机
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost resume % 从暂停状态恢复
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost acpipowerbutton % 按下电源键
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost acpisleepbutton % 按下睡眠键
C:\Program files\Oracle\VirtualBox\VBoxManage.exe startvm MyHost --type gui % 开机,带界面
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost pause % 暂停
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost savestate % 休眠
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost poweroff % 强制关机
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost resume % 从暂停状态恢复
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost acpipowerbutton % 按下电源键
C:\Program files\Oracle\VirtualBox\VBoxManage.exe controlvm MyHost acpisleepbutton % 按下睡眠键