virtualbox命令行管理虚拟机
创建虚拟机相关
列出所有虚拟机
VBoxManage list vms
列出正在运行的虚拟机
VBoxManage list runningvms
查看虚拟机信息
VBoxManage showvminfo "VM名称"
创建一个虚拟机
VBoxManage createvm --name "VM名称" --register
删除虚拟机
VBoxManage unregistervm "VM名称" --delete
运行虚拟机相关
开启虚拟机:
VBoxManage startvm "VM名称" --type headless
关闭虚拟机:
VBoxManage controlvm "VM名称" poweroff
暂停和恢复虚拟机
VBoxManage controlvm "VM名称" pause
VBoxManage controlvm "VM名称" resume
快照管理
创建快照
VBoxManage snapshot "VM名称" take "快照名称"
列出快照
VBoxManage snapshot "VM名称" list
恢复快照
VBoxManage snapshot "VM名称" restore "快照名称"
删除快照
VBoxManage snapshot "VM名称" delete "快照名称"

浙公网安备 33010602011771号