VBoxManage常用命令笔记

VBoxManage是VirtualBox命令行的接口。使用它可以从命令行操作VirtualBox。VBoxManage不仅支持所有从GUI界面的操作。还比GUI的支持更多的特性。它暴露虚拟引擎所有的特性,甚至包括GUI不支持的。

VBoxManage is the command-line interface to VirtualBox. With it, you can completely control VirtualBox from the command line of your host operating system. VBoxManage supports all the features that the graphical user interface gives you access to, but it supports a lot more than that. It exposes really all the features of the virtualization engine, even those that cannot (yet) be accessed from the GUI.

常用的命令如下:
VBoxManage list vms
显示所有注册到VirtualBox所有虚拟机

VBoxManage list runningvms
显示所有运行中的虚拟机

VBoxManage showvminfo "centos7"
显示指定虚拟机的详细说明

VBoxManage startvm "centos7" --type gui
已GUI窗口模式启动虚拟机,默认。

VBoxManage startvm "centos7" --type headless
已远程模式启动会虚拟机(Starts a VM without a window for remote display only.)

VBoxManage snapshot "centos7" take base
为名为centos7创建一张叫base的快照

VBoxManage snapshot "centos7" delete base
为虚拟机centos7删除名为base的快照

VBoxManage controlvm "centos7" poweroff
关闭虚拟机centos7

你可能感兴趣的:(命令行,virtualbox)