1. 查看虚拟机
pascal@pascal-PowerEdge-R620:~/Desktop$ VBoxManage list vms
"centos6.9" {98194687-736b-4b70-b902-1decef889cd5}
2. 启动虚拟机
pascal@pascal-PowerEdge-R620:~/Desktop$ VBoxManage startvm centos6.9 -type headless
Waiting for VM "centos6.9" to power on...
VM "centos6.9" has been successfully started.
3. 查看正在运行的虚拟机
pascal@pascal-PowerEdge-R620:~/Desktop$ VBoxManage list runningvms
"centos6.9" {98194687-736b-4b70-b902-1decef889cd5}
4. 保存虚拟机状态并停机
pascal@pascal-PowerEdge-R620:~/Desktop$ VBoxManage controlvm centos6.9 savestate
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
再次启动,需要使用 VBoxManage startvm centos6.9 -type headless
5. 停止虚拟机
pascal@pascal-PowerEdge-R620:~/Desktop$ VBoxManage controlvm centos6.9 poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%