virtualbox manager命令小记

  1. virtualbox 控制虚拟机
VBoxManage list runningvms
  1. 列出运行的虚拟机 (返回名称和UUID):
VBoxManage list runningvms
  1. Stop running VMs by "hibernating" them (reommended to avoid data loss)
VBoxManage controlvm <name|uuid> savestate
  1. Poweroff running VMs (not recommended because we may lose data in the guest)
VBoxManage controlvm <name|uuid> poweroff
  1. How to start and stop VirtualBox guests via command line

  2. Shutting down all VirtualBox (vagrant) VMs in one easy to use bash command (that can be put into a bash file)

  3. 启动vm

VBoxManage startvm "VM name" --type headless
  1. How to start a Virtualbox machine via command line (without GUI)?

VBoxManage guestproperty enumerate "Ubuntu 16.04"

How to open a terminal in Ubuntu running on virtual box if the usual shortcuts don't work

原文地址:https://www.cnblogs.com/fsong/p/11260071.html