runsisi's

technical notes

VirtualBox 命令行操作

2019-01-24 runsisi#linux

在 linux 下 VirtualBox 的管理操作都是通过 VBoxManage 这个命令进行的,可以通过 -h 选项查看相关的操作,如:

~$ VBoxManage -h
Oracle VM VirtualBox Command Line Management Interface Version 5.2.18
(C) 2005-2018 Oracle Corporation
All rights reserved.

Usage:

  VBoxManage [<general option>] <command>


General Options:

  [-v|--version]            print version number and exit
  [-q|--nologo]             suppress the logo
  [--settingspw <pw>]       provide the settings password
  [--settingspwfile <file>] provide a file containing the settings password
  [@<response-file>]        load arguments from the given response file (bourne style)


Commands:

  list [--long|-l] [--sorted|-s]          vms|runningvms|ostypes|hostdvds|hostfloppies|
                            intnets|bridgedifs|hostonlyifs|natnets|dhcpservers|
                            hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks|
                            groups|webcams|screenshotformats
...

~$ VBoxManage help list
Oracle VM VirtualBox Command Line Management Interface Version 5.2.18
(C) 2005-2018 Oracle Corporation
All rights reserved.

Usage:

VBoxManage list [--long|-l] [--sorted|-s] vms|runningvms|ostypes|hostdvds|hostfloppies|
                            intnets|bridgedifs|hostonlyifs|natnets|dhcpservers|
                            hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks|
                            groups|webcams|screenshotformats

VirtualBox 有很完善的随机文档,在 VirtualBox 界面(当然需要桌面系统)按 F1 或者找到帮助菜单即可打开相应的帮助文档,如下所示:

help