Virtualbox后台管理之VBoxManage

时间:2023-03-09 15:36:12
Virtualbox后台管理之VBoxManage

Virtualbox是提供了后台启动的。只是不是默认的。

查看有哪些虚拟机

VBoxManage list vms

查看虚拟的详细信息

VBoxManage list vms --long

查看运行着的虚拟机

VBoxManage list runningvms

开启虚拟机在后台运行

VBoxManage startvm <vm_name> -type headless

开启虚拟机并开启远程桌面连接的支持

VBoxManage startvm <vm_name> -type vrdp

改变虚拟机的远程连接端口,用于多个vbox虚拟机同时运行

VBoxManage controlvm <vm_name> vrdpprot <ports>

关闭虚拟机

VBoxManage controlvm <vm_name> acpipowerbutton

强制关闭虚拟机

VBoxManage controlvm <vm_name> poweroff