VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage.xml@ 91099

Last change on this file since 91099 was 89918, checked in by vboxsync, 3 years ago

doc/man_VBoxManage.xml: Document key short options (adjust to latest state). Minor touch-ups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage
4
5 Copyright (C) 2006-2020 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14 -->
15<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
16 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
17<!ENTITY % all.entities SYSTEM "all-entities.ent">
18%all.entities;
19]>
20<refentry id="vboxmanage-common" lang="en">
21 <refentryinfo>
22 <pubdate>$Date: 2021-06-25 18:38:09 +0000 (Fri, 25 Jun 2021) $</pubdate>
23 <title>VBoxManage</title>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>VBoxManage</refentrytitle>
28 <manvolnum>1</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>VBoxManage</refname>
33 <refpurpose>&product-name; command-line interface</refpurpose>
34 <refclass>Oracle VM VirtualBox</refclass>
35 </refnamediv>
36
37 <refsynopsisdiv>
38 <cmdsynopsis id="synopsis-vboxmanage-common">
39<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
40 <command>VBoxManage</command>
41 <group>
42 <arg choice="plain">-V</arg>
43 <arg choice="plain">--version</arg>
44 </group>
45 <arg>--dump-build-type</arg>
46 <group>
47 <arg choice="plain">-q</arg>
48 <arg choice="plain">--nologo</arg>
49 </group>
50 <arg>--settingspw=<replaceable>password</replaceable></arg>
51 <arg>--settingspwfile=<replaceable>pw-file</replaceable></arg>
52 <arg>@<replaceable>response-file</replaceable></arg>
53 <arg><arg>help</arg> <replaceable>subcommand</replaceable></arg>
54 </cmdsynopsis>
55 </refsynopsisdiv>
56
57 <refsect1>
58 <title>Description</title>
59 <para>
60 The <command>VBoxManage</command> command is the command-line
61 interface (CLI) for the &product-name; software. The CLI supports
62 all the features that are available with the &product-name;
63 graphical user interface (GUI). In addition, you can use the
64 <command>VBoxManage</command> command to manage the features of
65 the virtualization engine that cannot be managed by the GUI.
66 </para>
67 <para>
68 Each time you invoke the <command>VBoxManage</command> command,
69 only one command is executed. Note that some
70 <command>VBoxManage</command> subcommands invoke several
71 subcommands.
72 </para>
73 <para>
74 Run the <command>VBoxManage</command> command from the command
75 line of the host operating system (OS) to control &product-name;
76 software.
77 </para>
78 <para>
79 The <command>VBoxManage</command> command is stored in the
80 following locations on the host system:
81 </para>
82 <itemizedlist>
83 <listitem><para>
84 <emphasis role="bold">Linux:</emphasis>
85 <filename>/usr/bin/VBoxManage</filename>
86 </para></listitem>
87 <listitem><para>
88 <emphasis role="bold">Mac OS X:</emphasis>
89 <filename>/Applications/VirtualBox.app/Contents/MacOS/VBoxManage</filename>
90 </para></listitem>
91 <listitem><para>
92 <emphasis role="bold">Oracle Solaris:</emphasis>
93 <filename>/opt/VirtualBox/bin/VBoxManage</filename>
94 </para></listitem>
95 <listitem><para>
96 <emphasis role="bold">Windows:</emphasis>
97 <filename>C:\Program
98 Files\Oracle\VirtualBox\VBoxManage.exe</filename>
99 </para></listitem>
100 </itemizedlist>
101 <para>
102 In addition to managing virtual machines (VMs) with this CLI or
103 the GUI, you can use the <command>VBoxHeadless</command> CLI to
104 manage VMs remotely.
105 </para>
106 <para>
107 The <command>VBoxManage</command> command performs particular
108 tasks by using subcommands, such as <command>list</command>,
109 <command>createvm</command>, and <command>startvm</command>. See
110 the associated information for each <command>VBoxManage</command>
111 subcommand.
112 </para>
113 <para>
114 If required, specify the VM by its name or by its Universally
115 Unique Identifier (UUID).
116 </para>
117 <para>
118 Use the <command>VBoxManage list vms</command> command to obtain
119 information about all currently registered VMs, including the VM
120 names and associated UUIDs.
121 </para>
122 <para>
123 Note that you must enclose the entire VM name in double quotes if
124 it contains spaces.
125 </para>
126 <refsect2 id="vboxmanage-common-options">
127 <title>General Options</title>
128 <variablelist>
129 <varlistentry>
130 <term><option>--nologo</option></term>
131 <listitem><para>
132 Suppresses the output of the logo information, which is
133 useful for scripts.
134 </para><para>
135 The short version of this option is <option>-q</option>.
136 </para></listitem>
137 </varlistentry>
138 <varlistentry>
139 <term><option>--settingspw=[<replaceable>password</replaceable>]</option></term>
140 <listitem><para>
141 Specifies the settings password. You can optionally
142 specify the password as an argument to this option. If you
143 do not specify the password in this way, the
144 <command>VBoxManage</command> command prompts you for the
145 password.
146 </para><para>
147 The settings password is a security feature that encrypts
148 stored settings, which are stored as plain text by
149 default.
150 </para><para>
151 You cannot unencrypt encrypted settings. So, if the
152 settings are encrypted, you must continue to specify the
153 <option>--settingspw</option> or
154 <option>--settingspwfile</option> option.
155 </para><para>
156 Only the iSCSI secret is encrypted at this time.
157 </para><remark>
158 This design does not conform to Oracle's security
159 guidelines. You should not be able to specify a password
160 on the command line because the password can be seen in a
161 process listing.
162 </remark></listitem>
163 </varlistentry>
164 <varlistentry>
165 <term><option>--settingspwfile=<replaceable>pw-filename</replaceable></option></term>
166 <listitem><para>
167 Specifies the file that contains the settings password.
168 </para></listitem>
169 </varlistentry>
170 <varlistentry>
171 <term><option>--version</option></term>
172 <listitem><para>
173 Shows version information about the
174 <command>VBoxManage</command> command.
175 </para><para>
176 The short version of this option is <option>-V</option>.
177 </para></listitem>
178 </varlistentry>
179 <varlistentry>
180 <term>@<replaceable>response-file</replaceable></term>
181 <listitem><para>
182 Loads arguments from the specified Bourne shell response
183 file.
184 </para></listitem>
185 </varlistentry>
186 <varlistentry>
187 <term><replaceable>subcommand</replaceable></term>
188 <listitem><para>
189 Specifies one of the <command>VBoxManage</command>
190 subcommands, such as <command>controlvm</command>,
191 <command>createvm</command>, <command>list</command>,
192 <command>modifyvm</command>,
193 <command>showvminfo</command>, <command>startvm</command>,
194 <command>storageattach</command>, and
195 <command>storagectl</command>.
196 </para><para>
197 Each subcommand is described in its own command topic,
198 some of which are shown in See Also sections.
199 </para></listitem>
200 </varlistentry>
201 </variablelist>
202 </refsect2>
203 </refsect1>
204
205 <refsect1>
206 <title>Examples</title>
207 <remark role="help-scope" condition="GLOBAL"/>
208 <para>
209 The following command creates a virtual machine called
210 <literal>Win8</literal> and registers it with &product-name; by
211 using the <option>--register</option> option.
212 </para>
213<screen>$ VBoxManage createvm --name "Win8" --register
214Virtual machine 'Win8' is created.
215UUID: <replaceable>UUID-string</replaceable>
216Settings file: '/home/<replaceable>username</replaceable>/VirtualBox VMs/Win8/Win8.vbox'</screen>
217 <para>
218 The command output shows that the <literal>Win8</literal> VM is
219 assigned a UUID and an XML machine settings file.
220 </para>
221 <para>
222 You can use the <command>VBoxManage showvminfo</command> command
223 to view the configuration information of a VM.
224 </para>
225 <para>
226 The following example uses the <command>VBoxManage
227 modifyvm</command> command to change the amount of memory for the
228 <literal>Windows XP</literal> VM to be 1024 megabytes:
229 </para>
230<screen>$ VBoxManage modifyvm "Windows XP" --memory 1024</screen>
231 <para>
232 Note that you can use the <command>VBoxManage modifyvm</command>
233 command even when the VM is powered off.
234 </para>
235 <para>
236 You can use the <command>VBoxManage storagectl</command> command
237 or the <command>VBoxManage storageattach</command> command to
238 modify the storage configuration for a VM. For example, to create
239 a SATA storage controller called <literal>sata01</literal> and add
240 it to the <literal>ol7</literal> VM:
241 </para>
242<screen>$ VBoxManage storagectl ol7 --name "sata01" --add sata</screen>
243 <para>
244 Use the <command>VBoxManage startvm</command> command to start a
245 VM that is currently powered off. For example, to start the
246 <literal>win7</literal> VM:
247 </para>
248<screen>$ VBoxManage startvm win7</screen>
249 <para>
250 Use the <command>VBoxManage controlvm</command> command to pause
251 or save a VM that is currently running. You can also use this
252 command to modify settings for the VM. For example, to enable
253 audio input for the <literal>ol6u9</literal> VM.
254 </para>
255<screen>$ VBoxManage controlvm ol6u9 audioin on</screen>
256 </refsect1>
257
258 <refsect1>
259 <title>See Also</title>
260 <para>
261 <xref linkend="vboxmanage-controlvm" />,
262 <xref linkend="vboxmanage-createvm" />,
263 <xref linkend="vboxmanage-list" />,
264 <xref linkend="vboxmanage-modifyvm" />,
265 <xref linkend="vboxmanage-showvminfo" />,
266 <xref linkend="vboxmanage-startvm" />,
267 <xref linkend="vboxmanage-storageattach" />,
268 <xref linkend="vboxmanage-storagectl" />
269 </para>
270 </refsect1>
271</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette