VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-common.xml@ 99095

Last change on this file since 99095 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

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