← 返回命令列表

Linux command

vboxmanage 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List VMs

vboxmanage list vms

Start VM

vboxmanage startvm [vmname]

Start headless

vboxmanage startvm [vmname] --type headless

Stop VM

vboxmanage controlvm [vmname] poweroff

Create VM

vboxmanage createvm --name [vmname] --register

Snapshot

vboxmanage snapshot [vmname] take [snapname]

说明

vboxmanage is the command-line interface for Oracle VirtualBox, providing complete control over virtual machine creation, configuration, and operation. It exposes every feature available in the graphical interface and many that are only accessible from the command line. The tool uses subcommands for different operations: createvm and modifyvm for setup, startvm and controlvm for runtime management, snapshot for state saving, and list for querying registered objects. Most configuration changes via modifyvm require the VM to be powered off. VMs can be identified by name or UUID.

参数

list
List objects.
startvm
Start VM.
controlvm
Control running VM.
createvm
Create VM.
modifyvm
Modify settings.
snapshot
Snapshot operations.
showvminfo
Display VM configuration details.
clonevm
Clone an existing VM.
storagectl
Manage storage controllers.
storageattach
Attach storage media to a VM.
sharedfolder
Manage shared folders between host and guest.
guestcontrol
Execute commands within guest OS.
--type _TYPE_
Start type (gui, headless, separate).
-q, --nologo
Suppress logo output for scripting.
--machinereadable
Machine-parsable output format.

FAQ

What is the vboxmanage command used for?

vboxmanage is the command-line interface for Oracle VirtualBox, providing complete control over virtual machine creation, configuration, and operation. It exposes every feature available in the graphical interface and many that are only accessible from the command line. The tool uses subcommands for different operations: createvm and modifyvm for setup, startvm and controlvm for runtime management, snapshot for state saving, and list for querying registered objects. Most configuration changes via modifyvm require the VM to be powered off. VMs can be identified by name or UUID.

How do I run a basic vboxmanage example?

Run `vboxmanage list vms` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in vboxmanage?

List objects.