1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
---|
4 | <chapter id="vboxmanage">
|
---|
5 | <title>VBoxManage</title>
|
---|
6 |
|
---|
7 | <sect1>
|
---|
8 | <title>Introduction</title>
|
---|
9 |
|
---|
10 | <para>As briefly mentioned in <xref linkend="frontends" />, VBoxManage is
|
---|
11 | the command-line interface to VirtualBox. With it, you can completely
|
---|
12 | control VirtualBox from the command line of your host operating system.
|
---|
13 | VBoxManage supports all the features that the graphical user interface
|
---|
14 | gives you access to, but it supports a lot more than that. It exposes
|
---|
15 | really all the features of the virtualization engine, even those that
|
---|
16 | cannot (yet) be accessed from the GUI.</para>
|
---|
17 |
|
---|
18 | <para>You will need to use the command line if you want to</para>
|
---|
19 |
|
---|
20 | <para><itemizedlist>
|
---|
21 | <listitem>
|
---|
22 | <para>use a different user interface than the main GUI (for example,
|
---|
23 | VBoxSDL or the VBoxHeadless server);</para>
|
---|
24 | </listitem>
|
---|
25 |
|
---|
26 | <listitem>
|
---|
27 | <para>control some of the more advanced and experimental
|
---|
28 | configuration settings for a VM.</para>
|
---|
29 | </listitem>
|
---|
30 | </itemizedlist></para>
|
---|
31 |
|
---|
32 | <para>There are two main things to keep in mind when using
|
---|
33 | <computeroutput>VBoxManage</computeroutput>: First,
|
---|
34 | <computeroutput>VBoxManage</computeroutput> must always be used with a
|
---|
35 | specific "subcommand", such as "list" or "createvm" or "startvm". All the
|
---|
36 | subcommands that <computeroutput>VBoxManage</computeroutput> supports are
|
---|
37 | described in detail in <xref linkend="vboxmanage" />.</para>
|
---|
38 |
|
---|
39 | <para>Second, most of these subcommands require that you specify a
|
---|
40 | particular virtual machine after the subcommand. There are two ways you
|
---|
41 | can do this:</para>
|
---|
42 |
|
---|
43 | <itemizedlist>
|
---|
44 | <listitem>
|
---|
45 | <para>You can specify the VM name, as it is shown in the VirtualBox
|
---|
46 | GUI. Note that if that name contains spaces, then you must enclose the
|
---|
47 | entire name in double quotes (as it is always required with command
|
---|
48 | line arguments that contain spaces).</para>
|
---|
49 |
|
---|
50 | <para>For example:<screen>VBoxManage startvm "Windows XP"</screen></para>
|
---|
51 | </listitem>
|
---|
52 |
|
---|
53 | <listitem>
|
---|
54 | <para>You can specify the UUID, which is the internal unique
|
---|
55 | identifier that VirtualBox uses to refer to the virtual machine.
|
---|
56 | Assuming that the aforementioned VM called "Windows XP" has the UUID
|
---|
57 | shown below, the following command has the same effect as the
|
---|
58 | previous:<screen>VBoxManage startvm 670e746d-abea-4ba6-ad02-2a3b043810a5</screen></para>
|
---|
59 | </listitem>
|
---|
60 | </itemizedlist>
|
---|
61 |
|
---|
62 | <para>You can type <computeroutput>VBoxManage list vms</computeroutput> to
|
---|
63 | have all currently registered VMs listed with all their settings,
|
---|
64 | including their respective names and UUIDs.</para>
|
---|
65 |
|
---|
66 | <para>Some typical examples of how to control VirtualBox from the command
|
---|
67 | line are listed below:</para>
|
---|
68 |
|
---|
69 | <itemizedlist>
|
---|
70 | <listitem>
|
---|
71 | <para>To create a new virtual machine from the command line and
|
---|
72 | immediately register it with VirtualBox, use
|
---|
73 | <computeroutput>VBoxManage createvm</computeroutput> with the
|
---|
74 | <computeroutput>--register</computeroutput> option,<footnote>
|
---|
75 | <para>For details, see <xref
|
---|
76 | linkend="vboxmanage-createvm" />.</para>
|
---|
77 | </footnote> like this:</para>
|
---|
78 |
|
---|
79 | <screen>$ VBoxManage createvm --name "SUSE 10.2" --register
|
---|
80 | VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
|
---|
81 | (C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
|
---|
82 | All rights reserved.
|
---|
83 |
|
---|
84 | Virtual machine 'SUSE 10.2' is created.
|
---|
85 | UUID: c89fc351-8ec6-4f02-a048-57f4d25288e5
|
---|
86 | Settings file: '/home/username/.config/VirtualBox/Machines/SUSE 10.2/SUSE 10.2.xml'</screen>
|
---|
87 |
|
---|
88 | <para>As can be seen from the above output, a new virtual machine has
|
---|
89 | been created with a new UUID and a new XML settings file.</para>
|
---|
90 | </listitem>
|
---|
91 |
|
---|
92 | <listitem>
|
---|
93 | <para>To show the configuration of a particular VM, use
|
---|
94 | <computeroutput>VBoxManage showvminfo</computeroutput>; see <xref
|
---|
95 | linkend="vboxmanage-showvminfo" /> for details and an example.</para>
|
---|
96 | </listitem>
|
---|
97 |
|
---|
98 | <listitem>
|
---|
99 | <para>To change settings while a VM is powered off, use
|
---|
100 | <computeroutput>VBoxManage modifyvm</computeroutput>, e.g. as
|
---|
101 | follows:<screen>VBoxManage modifyvm "Windows XP" --memory 512</screen></para>
|
---|
102 |
|
---|
103 | <para>For details, see <xref linkend="vboxmanage-modifyvm" />.</para>
|
---|
104 | </listitem>
|
---|
105 |
|
---|
106 | <listitem>
|
---|
107 | <para>To change the storage configuration (e.g. to add a storage
|
---|
108 | controller and then a virtual disk), use <computeroutput>VBoxManage
|
---|
109 | storagectl</computeroutput> and <computeroutput>VBoxManage
|
---|
110 | storageattach</computeroutput>; see <xref
|
---|
111 | linkend="vboxmanage-storagectl" /> and <xref
|
---|
112 | linkend="vboxmanage-storageattach" /> for details.</para>
|
---|
113 | </listitem>
|
---|
114 |
|
---|
115 | <listitem>
|
---|
116 | <para>To control VM operation, use one of the following:<itemizedlist>
|
---|
117 | <listitem>
|
---|
118 | <para>To start a VM that is currently powered off, use
|
---|
119 | <computeroutput>VBoxManage startvm</computeroutput>; see <xref
|
---|
120 | linkend="vboxmanage-startvm" /> for details.</para>
|
---|
121 | </listitem>
|
---|
122 |
|
---|
123 | <listitem>
|
---|
124 | <para>To pause or save a VM that is currently running or change
|
---|
125 | some of its settings, use <computeroutput>VBoxManage
|
---|
126 | controlvm</computeroutput>; see <xref
|
---|
127 | linkend="vboxmanage-controlvm" /> for details.</para>
|
---|
128 | </listitem>
|
---|
129 | </itemizedlist></para>
|
---|
130 | </listitem>
|
---|
131 | </itemizedlist>
|
---|
132 | </sect1>
|
---|
133 |
|
---|
134 | <sect1>
|
---|
135 | <title>Commands overview</title>
|
---|
136 |
|
---|
137 | <para>When running VBoxManage without parameters or when supplying an
|
---|
138 | invalid command line, the below syntax diagram will be shown. Note that
|
---|
139 | the output will be slightly different depending on the host platform; when
|
---|
140 | in doubt, check the output of <computeroutput>VBoxManage</computeroutput>
|
---|
141 | for the commands available on your particular host.</para>
|
---|
142 |
|
---|
143 | <screen>$VBOX_MANAGE_OUTPUT</screen>
|
---|
144 |
|
---|
145 | <para>Each time VBoxManage is invoked, only one command can be executed.
|
---|
146 | However, a command might support several subcommands which then can be
|
---|
147 | invoked in one single call. The following sections provide detailed
|
---|
148 | reference information on the different commands.</para>
|
---|
149 | </sect1>
|
---|
150 |
|
---|
151 | <sect1 id="vboxmanage-general">
|
---|
152 | <title>General options</title>
|
---|
153 | <para>
|
---|
154 | <itemizedlist>
|
---|
155 | <listitem>
|
---|
156 | <para><computeroutput>--version</computeroutput>: show the version of
|
---|
157 | this tool and exit.</para>
|
---|
158 | </listitem>
|
---|
159 | <listitem>
|
---|
160 | <para><computeroutput>--nologo</computeroutput>: suppress the output
|
---|
161 | of the logo information (useful for scripts)</para>
|
---|
162 | </listitem>
|
---|
163 | <listitem>
|
---|
164 | <para><computeroutput>--settingspw</computeroutput>: specifiy a settings
|
---|
165 | password</para>
|
---|
166 | </listitem>
|
---|
167 | <listitem>
|
---|
168 | <para><computeroutput>--settingspwfile</computeroutput>: specify a file
|
---|
169 | containing the settings password.</para>
|
---|
170 | </listitem>
|
---|
171 | </itemizedlist>
|
---|
172 | The settings password is used for certain settings which need to be
|
---|
173 | stored encrypted for security reasons. At the moment, the only encrypted
|
---|
174 | setting is the iSCSI initiator secret (see
|
---|
175 | <xref linkend="vboxmanage-storageattach" /> for details). As long as no
|
---|
176 | settings password is specified, this information is stored in
|
---|
177 | <emphasis role="bold">plain text</emphasis>. After using the
|
---|
178 | <computeroutput>--settingspw|--settingspwfile</computeroutput> option
|
---|
179 | once, it must be always used, otherwise the encrypted setting cannot
|
---|
180 | be unencrypted.
|
---|
181 | </para>
|
---|
182 | </sect1>
|
---|
183 |
|
---|
184 | <sect1 id="vboxmanage-list">
|
---|
185 | <title>VBoxManage list</title>
|
---|
186 |
|
---|
187 | <para>The <computeroutput>list</computeroutput> command gives relevant
|
---|
188 | information about your system and information about VirtualBox's current
|
---|
189 | settings.</para>
|
---|
190 |
|
---|
191 | <para>The following subcommands are available with
|
---|
192 | <computeroutput>VBoxManage list</computeroutput>: <itemizedlist>
|
---|
193 | <listitem>
|
---|
194 | <para><computeroutput>vms</computeroutput> lists all virtual
|
---|
195 | machines currently registered with VirtualBox. By default this
|
---|
196 | displays a compact list with each VM's name and UUID; if you also
|
---|
197 | specify <computeroutput>--long</computeroutput> or
|
---|
198 | <computeroutput>-l</computeroutput>, this will be a detailed list as
|
---|
199 | with the <computeroutput>showvminfo</computeroutput> command (see
|
---|
200 | below).</para>
|
---|
201 | </listitem>
|
---|
202 |
|
---|
203 | <listitem>
|
---|
204 | <para><computeroutput>runningvms</computeroutput> lists all
|
---|
205 | currently running virtual machines by their unique identifiers
|
---|
206 | (UUIDs) in the same format as with
|
---|
207 | <computeroutput>vms</computeroutput>.</para>
|
---|
208 | </listitem>
|
---|
209 |
|
---|
210 | <listitem>
|
---|
211 | <para><computeroutput>ostypes</computeroutput> lists all guest
|
---|
212 | operating systems presently known to VirtualBox, along with the
|
---|
213 | identifiers used to refer to them with the
|
---|
214 | <computeroutput>modifyvm</computeroutput> command.</para>
|
---|
215 | </listitem>
|
---|
216 |
|
---|
217 | <listitem>
|
---|
218 | <para><computeroutput>hostdvds</computeroutput>,
|
---|
219 | <computeroutput>hostfloppies</computeroutput>, respectively, list
|
---|
220 | DVD, floppy, bridged networking and host-only networking interfaces
|
---|
221 | on the host, along with the name used to access them from within
|
---|
222 | VirtualBox.</para>
|
---|
223 | </listitem>
|
---|
224 |
|
---|
225 | <listitem>
|
---|
226 | <para><computeroutput>bridgedifs</computeroutput>,
|
---|
227 | <computeroutput>hostonlyifs</computeroutput> and
|
---|
228 | <computeroutput>dhcpservers</computeroutput>, respectively, list
|
---|
229 | bridged network interfaces, host-only network interfaces and DHCP
|
---|
230 | servers currently available on the host. Please see <xref
|
---|
231 | linkend="networkingdetails" /> for details on these.</para>
|
---|
232 | </listitem>
|
---|
233 |
|
---|
234 | <listitem>
|
---|
235 | <para><computeroutput>hostinfo</computeroutput> displays information
|
---|
236 | about the host system, such as CPUs, memory size and operating
|
---|
237 | system version.</para>
|
---|
238 | </listitem>
|
---|
239 |
|
---|
240 | <listitem>
|
---|
241 | <para><computeroutput>hostcpuids</computeroutput> dumps the CPUID
|
---|
242 | parameters for the host CPUs. This can be used for a more fine
|
---|
243 | grained analyis of the host's virtualization capabilities.</para>
|
---|
244 | </listitem>
|
---|
245 |
|
---|
246 | <listitem>
|
---|
247 | <para><computeroutput>hddbackends</computeroutput> lists all known
|
---|
248 | virtual disk back-ends of VirtualBox. For each such format (such as
|
---|
249 | VDI, VMDK or RAW), this lists the back-end's capabilities and
|
---|
250 | configuration.</para>
|
---|
251 | </listitem>
|
---|
252 |
|
---|
253 | <listitem>
|
---|
254 | <para><computeroutput>hdds</computeroutput>,
|
---|
255 | <computeroutput>dvds</computeroutput> and
|
---|
256 | <computeroutput>floppies</computeroutput> all give you information
|
---|
257 | about virtual disk images currently in use by VirtualBox, including
|
---|
258 | all their settings, the unique identifiers (UUIDs) associated with
|
---|
259 | them by VirtualBox and all files associated with them. This is the
|
---|
260 | command-line equivalent of the Virtual Media Manager; see <xref
|
---|
261 | linkend="vdis" />.</para>
|
---|
262 | </listitem>
|
---|
263 |
|
---|
264 | <listitem>
|
---|
265 | <para><computeroutput>usbhost</computeroutput> supplies information
|
---|
266 | about USB devices attached to the host, notably information useful
|
---|
267 | for constructing USB filters and whether they are currently in use
|
---|
268 | by the host.</para>
|
---|
269 | </listitem>
|
---|
270 |
|
---|
271 | <listitem>
|
---|
272 | <para><computeroutput>usbfilters</computeroutput> lists all global
|
---|
273 | USB filters registered with VirtualBox -- that is, filters for
|
---|
274 | devices which are accessible to all virtual machines -- and displays
|
---|
275 | the filter parameters.</para>
|
---|
276 | </listitem>
|
---|
277 |
|
---|
278 | <listitem>
|
---|
279 | <para><computeroutput>systemproperties</computeroutput> displays
|
---|
280 | some global VirtualBox settings, such as minimum and maximum guest
|
---|
281 | RAM and virtual hard disk size, folder settings and the current
|
---|
282 | authentication library in use.</para>
|
---|
283 | </listitem>
|
---|
284 |
|
---|
285 | <listitem>
|
---|
286 | <para><computeroutput>extpacks</computeroutput> displays all
|
---|
287 | VirtualBox extension packs currently installed; see <xref
|
---|
288 | linkend="intro-installing" /> and <xref
|
---|
289 | linkend="vboxmanage-extpack" /> for more information.</para>
|
---|
290 | </listitem>
|
---|
291 | </itemizedlist></para>
|
---|
292 | </sect1>
|
---|
293 |
|
---|
294 | <sect1 id="vboxmanage-showvminfo">
|
---|
295 | <title>VBoxManage showvminfo</title>
|
---|
296 |
|
---|
297 | <para>The <computeroutput>showvminfo</computeroutput> command shows
|
---|
298 | information about a particular virtual machine. This is the same
|
---|
299 | information as <computeroutput>VBoxManage list vms --long</computeroutput>
|
---|
300 | would show for all virtual machines.</para>
|
---|
301 |
|
---|
302 | <para>You will get information similar to the following:</para>
|
---|
303 |
|
---|
304 | <para><screen>$ VBoxManage showvminfo "Windows XP"
|
---|
305 | VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
|
---|
306 | (C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
|
---|
307 | All rights reserved.
|
---|
308 |
|
---|
309 | Name: Windows XP
|
---|
310 | Guest OS: Other/Unknown
|
---|
311 | UUID: 1bf3464d-57c6-4d49-92a9-a5cc3816b7e7
|
---|
312 | Config file: /home/username/.config/VirtualBox/Machines/Windows XP/Windows XP.xml
|
---|
313 | Memory size: 512MB
|
---|
314 | VRAM size: 12MB
|
---|
315 | Number of CPUs: 2
|
---|
316 | Synthetic Cpu: off
|
---|
317 | Boot menu mode: message and menu
|
---|
318 | Boot Device (1): DVD
|
---|
319 | Boot Device (2): HardDisk
|
---|
320 | Boot Device (3): Not Assigned
|
---|
321 | Boot Device (4): Not Assigned
|
---|
322 | ACPI: on
|
---|
323 | IOAPIC: on
|
---|
324 | PAE: on
|
---|
325 | Time offset: 0 ms
|
---|
326 | Hardw. virt.ext: on
|
---|
327 | Nested Paging: on
|
---|
328 | VT-x VPID: off
|
---|
329 | State: powered off (since 2009-10-20T14:52:19.000000000)
|
---|
330 | Monitor count: 1
|
---|
331 | 3D Acceleration: off
|
---|
332 | 2D Video Acceleration: off
|
---|
333 | Teleporter Enabled: off
|
---|
334 | Teleporter Port: 0
|
---|
335 | Teleporter Address:
|
---|
336 | Teleporter Password:
|
---|
337 | Storage Controller (0): IDE Controller
|
---|
338 | Storage Controller Type (0): PIIX4
|
---|
339 | Storage Controller (1): Floppy Controller 1
|
---|
340 | Storage Controller Type (1): I82078
|
---|
341 | IDE Controller (0, 0): /home/user/windows.vdi (UUID: 46f6e53a-4557-460a-9b95-68b0f17d744b)
|
---|
342 | IDE Controller (0, 1): /home/user/openbsd-cd46.iso (UUID: 4335e162-59d3-4512-91d5-b63e94eebe0b)
|
---|
343 | Floppy Controller 1 (0, 0): /home/user/floppy.img (UUID: 62ac6ccb-df36-42f2-972e-22f836368137)
|
---|
344 | NIC 1: disabled
|
---|
345 | NIC 2: disabled
|
---|
346 | NIC 3: disabled
|
---|
347 | NIC 4: disabled
|
---|
348 | NIC 5: disabled
|
---|
349 | NIC 6: disabled
|
---|
350 | NIC 7: disabled
|
---|
351 | NIC 8: disabled
|
---|
352 | UART 1: disabled
|
---|
353 | UART 2: disabled
|
---|
354 | Audio: disabled (Driver: Unknown)
|
---|
355 | Clipboard Mode: Bidirectional
|
---|
356 | VRDE: disabled
|
---|
357 | USB: disabled
|
---|
358 |
|
---|
359 | USB Device Filters:
|
---|
360 | <none>
|
---|
361 |
|
---|
362 | Shared folders:
|
---|
363 | <none>
|
---|
364 |
|
---|
365 | Statistics update: disabled</screen></para>
|
---|
366 | </sect1>
|
---|
367 |
|
---|
368 | <sect1 id="vboxmanage-registervm">
|
---|
369 | <title>VBoxManage registervm / unregistervm</title>
|
---|
370 |
|
---|
371 | <para>The <computeroutput>registervm</computeroutput> command allows you
|
---|
372 | to import a virtual machine definition in an XML file into VirtualBox. The
|
---|
373 | machine must not conflict with one already registered in VirtualBox and it
|
---|
374 | may not have any hard or removable disks attached. It is advisable to
|
---|
375 | place the definition file in the machines folder before registering
|
---|
376 | it.<note>
|
---|
377 | <para>When creating a new virtual machine with
|
---|
378 | <computeroutput>VBoxManage createvm</computeroutput> (see below), you
|
---|
379 | can directly specify the <computeroutput>--register</computeroutput>
|
---|
380 | option to avoid having to register it separately.</para>
|
---|
381 | </note></para>
|
---|
382 |
|
---|
383 | <para>The <computeroutput>unregistervm</computeroutput> command
|
---|
384 | unregisters a virtual machine. If
|
---|
385 | <computeroutput>--delete</computeroutput> is also specified, the following
|
---|
386 | files will automatically be deleted as well:<orderedlist>
|
---|
387 | <listitem>
|
---|
388 | <para>all hard disk image files, including differencing files, which
|
---|
389 | are used by the machine and not shared with other machines;</para>
|
---|
390 | </listitem>
|
---|
391 |
|
---|
392 | <listitem>
|
---|
393 | <para>saved state files that the machine created, if any (one if the
|
---|
394 | machine was in "saved" state and one for each online
|
---|
395 | snapshot);</para>
|
---|
396 | </listitem>
|
---|
397 |
|
---|
398 | <listitem>
|
---|
399 | <para>the machine XML file and its backups;</para>
|
---|
400 | </listitem>
|
---|
401 |
|
---|
402 | <listitem>
|
---|
403 | <para>the machine log files, if any;</para>
|
---|
404 | </listitem>
|
---|
405 |
|
---|
406 | <listitem>
|
---|
407 | <para>the machine directory, if it is empty after having deleted all
|
---|
408 | the above.</para>
|
---|
409 | </listitem>
|
---|
410 | </orderedlist></para>
|
---|
411 | </sect1>
|
---|
412 |
|
---|
413 | <sect1 id="vboxmanage-createvm">
|
---|
414 | <title>VBoxManage createvm</title>
|
---|
415 |
|
---|
416 | <para>This command creates a new XML virtual machine definition
|
---|
417 | file.</para>
|
---|
418 |
|
---|
419 | <para>The <computeroutput>--name <name></computeroutput> parameter
|
---|
420 | is required and must specify the name of the machine. Since this name is
|
---|
421 | used by default as the file name of the settings file (with the extension
|
---|
422 | <computeroutput>.xml</computeroutput>) and the machine folder (a subfolder
|
---|
423 | of the <computeroutput>.config/VirtualBox/Machines</computeroutput> folder - this folder name may vary depending on the operating system and the version of VirtualBox which you are using), it
|
---|
424 | must conform to your host operating system's requirements for file name
|
---|
425 | specifications. If the VM is later renamed, the file and folder names will
|
---|
426 | change automatically.</para>
|
---|
427 |
|
---|
428 | <para>However, if the <computeroutput>--basefolder
|
---|
429 | <path></computeroutput> option is used, the machine folder will be
|
---|
430 | named <computeroutput><path></computeroutput>. In this case, the
|
---|
431 | names of the file and the folder will not change if the virtual machine is
|
---|
432 | renamed.</para>
|
---|
433 |
|
---|
434 | <para>By default, this command only creates the XML file without
|
---|
435 | automatically registering the VM with your VirtualBox installation. To
|
---|
436 | register the VM instantly, use the optional
|
---|
437 | <computeroutput>--register</computeroutput> option, or run
|
---|
438 | <computeroutput>VBoxManage registervm</computeroutput> separately
|
---|
439 | afterwards.</para>
|
---|
440 | </sect1>
|
---|
441 |
|
---|
442 | <sect1 id="vboxmanage-modifyvm">
|
---|
443 | <title>VBoxManage modifyvm</title>
|
---|
444 |
|
---|
445 | <para>This command changes the properties of a registered virtual machine
|
---|
446 | which is not running. Most of the properties that this command makes
|
---|
447 | available correspond to the VM settings that VirtualBox graphical user
|
---|
448 | interface displays in each VM's "Settings" dialog; these were described in
|
---|
449 | <xref linkend="BasicConcepts" />. Some of the more advanced settings,
|
---|
450 | however, are only available through the
|
---|
451 | <computeroutput>VBoxManage</computeroutput> interface.</para>
|
---|
452 |
|
---|
453 | <para>These commands require that the machine is powered off (neither
|
---|
454 | running nor in "saved" state). Some machine settings can also be changed
|
---|
455 | while a machine is running; those settings will then have a corresponding
|
---|
456 | subcommand with the <computeroutput>VBoxManage controlvm</computeroutput>
|
---|
457 | subcommand (see <xref linkend="vboxmanage-controlvm" />).</para>
|
---|
458 |
|
---|
459 | <sect2>
|
---|
460 | <title>General settings</title>
|
---|
461 |
|
---|
462 | <para>The following general settings are available through
|
---|
463 | <computeroutput>VBoxManage modifyvm</computeroutput>:<itemizedlist>
|
---|
464 | <listitem>
|
---|
465 | <para><computeroutput>--name <name></computeroutput>: This
|
---|
466 | changes the VM's name and possibly renames the internal virtual
|
---|
467 | machine files, as described with <computeroutput>VBoxManage
|
---|
468 | createvm</computeroutput> above.</para>
|
---|
469 | </listitem>
|
---|
470 |
|
---|
471 | <listitem>
|
---|
472 | <para><computeroutput>--groups <group>, ...</computeroutput>:
|
---|
473 | This changes the group membership of a VM. Groups always start with
|
---|
474 | a <computeroutput>/</computeroutput> and can be nested. By default
|
---|
475 | VMs are in group <computeroutput>/</computeroutput>.</para>
|
---|
476 | </listitem>
|
---|
477 |
|
---|
478 | <listitem>
|
---|
479 | <para><computeroutput>--description <desc></computeroutput>:
|
---|
480 | This changes the VM's description, which is a way to record details
|
---|
481 | about the VM in a way which is meaningful for the user. The GUI
|
---|
482 | interprets HTML formatting, the command line allows arbitrary
|
---|
483 | strings potentially containing multiple lines.</para>
|
---|
484 | </listitem>
|
---|
485 |
|
---|
486 | <listitem>
|
---|
487 | <para><computeroutput>--ostype <ostype></computeroutput>:
|
---|
488 | This specifies what guest operating system is supposed to run in
|
---|
489 | the VM. To learn about the various identifiers that can be used
|
---|
490 | here, use <computeroutput>VBoxManage list
|
---|
491 | ostypes</computeroutput>.</para>
|
---|
492 | </listitem>
|
---|
493 |
|
---|
494 | <listitem>
|
---|
495 | <para><computeroutput>--memory
|
---|
496 | <memorysize></computeroutput>: This sets the amount of RAM,
|
---|
497 | in MB, that the virtual machine should allocate for itself from
|
---|
498 | the host. See the remarks in <xref linkend="gui-createvm" /> for
|
---|
499 | more information.</para>
|
---|
500 | </listitem>
|
---|
501 |
|
---|
502 | <listitem>
|
---|
503 | <para><computeroutput>--vram <vramsize></computeroutput>:
|
---|
504 | This sets the amount of RAM that the virtual graphics card should
|
---|
505 | have. See <xref linkend="settings-display" /> for details.</para>
|
---|
506 | </listitem>
|
---|
507 |
|
---|
508 | <listitem>
|
---|
509 | <para><computeroutput>--acpi on|off</computeroutput>;
|
---|
510 | <computeroutput>--ioapic on|off</computeroutput>: These two
|
---|
511 | determine whether the VM should have ACPI and I/O APIC support,
|
---|
512 | respectively; see <xref linkend="settings-motherboard" /> for
|
---|
513 | details.</para>
|
---|
514 | </listitem>
|
---|
515 |
|
---|
516 | <listitem>
|
---|
517 | <para><computeroutput>--hardwareuuid
|
---|
518 | <uuid></computeroutput>: The UUID presented to the guest via
|
---|
519 | memory tables (DMI/SMBIOS), hardware and guest properties. By
|
---|
520 | default this is the same as the VM uuid. Useful when cloning a VM.
|
---|
521 | Teleporting takes care of this automatically.</para>
|
---|
522 | </listitem>
|
---|
523 |
|
---|
524 | <listitem>
|
---|
525 | <para><computeroutput>--cpus <cpucount></computeroutput>:
|
---|
526 | This sets the number of virtual CPUs for the virtual machine (see
|
---|
527 | <xref linkend="settings-processor" />). If CPU hot-plugging is
|
---|
528 | enabled (see below), this then sets the
|
---|
529 | <emphasis>maximum</emphasis> number of virtual CPUs that can be
|
---|
530 | plugged into the virtual machines.</para>
|
---|
531 | </listitem>
|
---|
532 |
|
---|
533 | <listitem>
|
---|
534 | <para><computeroutput>--rtcuseutc on|off</computeroutput>: This
|
---|
535 | option lets the real-time clock (RTC) operate in UTC time (see
|
---|
536 | <xref linkend="settings-motherboard" />).</para>
|
---|
537 | </listitem>
|
---|
538 |
|
---|
539 | <listitem>
|
---|
540 | <para><computeroutput>--cpuhotplug on|off</computeroutput>: This
|
---|
541 | enables CPU hot-plugging. When enabled, virtual CPUs can be added
|
---|
542 | to and removed from a virtual machine while it is running. See
|
---|
543 | <xref linkend="cpuhotplug" /> for more information.</para>
|
---|
544 | </listitem>
|
---|
545 |
|
---|
546 | <listitem>
|
---|
547 | <para><computeroutput>--plugcpu|unplugcpu
|
---|
548 | <id></computeroutput>: If CPU hot-plugging is enabled (see
|
---|
549 | above), this adds a virtual CPU to the virtual machines (or
|
---|
550 | removes one). <computeroutput><id></computeroutput>
|
---|
551 | specifies the index of the virtual CPU to be added or removed and
|
---|
552 | must be a number from 0 to the maximum no. of CPUs configured with
|
---|
553 | the <computeroutput>--cpus</computeroutput> option. CPU 0 can
|
---|
554 | never be removed.</para>
|
---|
555 | </listitem>
|
---|
556 |
|
---|
557 | <listitem>
|
---|
558 | <para><computeroutput>--cpuexecutioncap
|
---|
559 | <1-100></computeroutput>: This setting controls how much cpu
|
---|
560 | time a virtual CPU can use. A value of 50 implies a single virtual
|
---|
561 | CPU can use up to 50% of a single host CPU.</para>
|
---|
562 | </listitem>
|
---|
563 |
|
---|
564 | <listitem>
|
---|
565 | <para><computeroutput>--pae on|off</computeroutput>: This
|
---|
566 | enables/disables PAE (see <xref
|
---|
567 | linkend="settings-processor" />).</para>
|
---|
568 | </listitem>
|
---|
569 |
|
---|
570 | <listitem>
|
---|
571 | <para><computeroutput>--longmode on|off</computeroutput>: This
|
---|
572 | enables/disables long mode (see <xref
|
---|
573 | linkend="settings-processor" />).</para>
|
---|
574 | </listitem>
|
---|
575 |
|
---|
576 | <listitem>
|
---|
577 | <para><computeroutput>--synthcpu on|off</computeroutput>: This
|
---|
578 | setting determines whether VirtualBox will expose a synthetic CPU
|
---|
579 | to the guest to allow live migration between host systems that
|
---|
580 | differ significantly.</para>
|
---|
581 | </listitem>
|
---|
582 |
|
---|
583 | <listitem>
|
---|
584 | <para><computeroutput>--hpet on|off</computeroutput>: This
|
---|
585 | enables/disables a High Precision Event Timer (HPET) which can
|
---|
586 | replace the legacy system timers. This is turned off by default.
|
---|
587 | Note that Windows supports a HPET only from Vista onwards.</para>
|
---|
588 | </listitem>
|
---|
589 |
|
---|
590 | <listitem>
|
---|
591 | <para><computeroutput>--hwvirtex on|off</computeroutput>: This
|
---|
592 | enables or disables the use of hardware virtualization extensions
|
---|
593 | (Intel VT-x or AMD-V) in the processor of your host system; see
|
---|
594 | <xref linkend="hwvirt" />.</para>
|
---|
595 | </listitem>
|
---|
596 |
|
---|
597 | <listitem>
|
---|
598 | <para><computeroutput>--triplefaultreset on|off</computeroutput>:
|
---|
599 | This setting allows to reset the guest instead of triggering a
|
---|
600 | Guru Meditation. Some guests raise a triple fault to reset the
|
---|
601 | CPU so sometimes this is desired behavior. Works only for non-SMP
|
---|
602 | guests.</para>
|
---|
603 | </listitem>
|
---|
604 |
|
---|
605 | <listitem>
|
---|
606 | <para><computeroutput>--nestedpaging on|off</computeroutput>: If
|
---|
607 | hardware virtualization is enabled, this additional setting
|
---|
608 | enables or disables the use of the nested paging feature in the
|
---|
609 | processor of your host system; see <xref
|
---|
610 | linkend="hwvirt" />.</para>
|
---|
611 | </listitem>
|
---|
612 |
|
---|
613 | <listitem>
|
---|
614 | <para><computeroutput>--largepages on|off</computeroutput>: If
|
---|
615 | hardware virtualization <emphasis>and</emphasis> nested paging are
|
---|
616 | enabled, for Intel VT-x only, an additional performance
|
---|
617 | improvement of up to 5% can be obtained by enabling this setting.
|
---|
618 | This causes the hypervisor to use large pages to reduce TLB use
|
---|
619 | and overhead.</para>
|
---|
620 | </listitem>
|
---|
621 |
|
---|
622 | <listitem>
|
---|
623 | <para><computeroutput>--vtxvpid on|off</computeroutput>: If
|
---|
624 | hardware virtualization is enabled, for Intel VT-x only, this
|
---|
625 | additional setting enables or disables the use of the tagged TLB
|
---|
626 | (VPID) feature in the processor of your host system; see <xref
|
---|
627 | linkend="hwvirt" />.</para>
|
---|
628 | </listitem>
|
---|
629 |
|
---|
630 | <listitem>
|
---|
631 | <para><computeroutput>--vtxux on|off</computeroutput>: If
|
---|
632 | hardware virtualization is enabled, for Intel VT-x only, this
|
---|
633 | setting enables or disables the use of the unrestricted guest mode
|
---|
634 | feature for executing your guest.</para>
|
---|
635 | </listitem>
|
---|
636 |
|
---|
637 | <listitem>
|
---|
638 | <para><computeroutput>--accelerate3d on|off</computeroutput>: This
|
---|
639 | enables, if the Guest Additions are installed, whether hardware 3D
|
---|
640 | acceleration should be available; see <xref
|
---|
641 | linkend="guestadd-3d" />.</para>
|
---|
642 | </listitem>
|
---|
643 |
|
---|
644 | <listitem>
|
---|
645 | <para>You can influence the BIOS logo that is displayed when a
|
---|
646 | virtual machine starts up with a number of settings. Per default,
|
---|
647 | a VirtualBox logo is displayed.</para>
|
---|
648 |
|
---|
649 | <para>With <computeroutput>--bioslogofadein
|
---|
650 | on|off</computeroutput> and <computeroutput>--bioslogofadeout
|
---|
651 | on|off</computeroutput>, you can determine whether the logo should
|
---|
652 | fade in and out, respectively.</para>
|
---|
653 |
|
---|
654 | <para>With <computeroutput>--bioslogodisplaytime
|
---|
655 | <msec></computeroutput> you can set how long the logo should
|
---|
656 | be visible, in milliseconds.</para>
|
---|
657 |
|
---|
658 | <para>With <computeroutput>--bioslogoimagepath
|
---|
659 | <imagepath></computeroutput> you can, if you are so
|
---|
660 | inclined, replace the image that is shown, with your own logo. The
|
---|
661 | image must be an uncompressed 256 color BMP file without color
|
---|
662 | space information (Windows 3.0 format). The image must not be
|
---|
663 | bigger than 640 x 480.</para>
|
---|
664 | </listitem>
|
---|
665 |
|
---|
666 | <listitem>
|
---|
667 | <para><computeroutput>--biosbootmenu
|
---|
668 | disabled|menuonly|messageandmenu</computeroutput>: This specifies
|
---|
669 | whether the BIOS allows the user to select a temporary boot
|
---|
670 | device. <computeroutput>menuonly</computeroutput> suppresses the
|
---|
671 | message, but the user can still press F12 to select a temporary
|
---|
672 | boot device.</para>
|
---|
673 | </listitem>
|
---|
674 |
|
---|
675 | <listitem>
|
---|
676 | <para><computeroutput>--nicbootprio<1-N>
|
---|
677 | <priority></computeroutput>: This specifies the order in which
|
---|
678 | NICs are tried for booting over the network (using PXE). The
|
---|
679 | priority is an integer in the 0 to 4 range. Priority 1 is the
|
---|
680 | highest, priority 4 is low. Priority 0, which is the default unless
|
---|
681 | otherwise specified, is the lowest.
|
---|
682 | </para>
|
---|
683 | <para> Note that this option only has effect when the Intel PXE boot
|
---|
684 | ROM is used.
|
---|
685 | </para>
|
---|
686 | </listitem>
|
---|
687 |
|
---|
688 | <listitem>
|
---|
689 | <para><computeroutput>--boot<1-4>
|
---|
690 | none|floppy|dvd|disk|net</computeroutput>: This specifies the boot
|
---|
691 | order for the virtual machine. There are four "slots", which the
|
---|
692 | VM will try to access from 1 to 4, and for each of which you can
|
---|
693 | set a device that the VM should attempt to boot from.</para>
|
---|
694 | </listitem>
|
---|
695 |
|
---|
696 | <listitem>
|
---|
697 | <para><computeroutput>--snapshotfolder
|
---|
698 | default|<path></computeroutput>: This allows you to specify
|
---|
699 | the folder in which snapshots will be kept for a virtual
|
---|
700 | machine.</para>
|
---|
701 | </listitem>
|
---|
702 |
|
---|
703 | <listitem>
|
---|
704 | <para><computeroutput>--firmware efi|bios</computeroutput>:
|
---|
705 | Specifies which firmware is used to boot particular virtual
|
---|
706 | machine: EFI or BIOS. Use EFI only if your fully understand what
|
---|
707 | you're doing.</para>
|
---|
708 | </listitem>
|
---|
709 |
|
---|
710 | <listitem>
|
---|
711 | <para><computeroutput>--guestmemoryballoon
|
---|
712 | <size></computeroutput> sets the default size of the guest
|
---|
713 | memory balloon, that is, memory allocated by the VirtualBox Guest
|
---|
714 | Additions from the guest operating system and returned to the
|
---|
715 | hypervisor for re-use by other virtual machines. <size> must
|
---|
716 | be specified in megabytes. The default size is 0 megabytes. For
|
---|
717 | details, see <xref linkend="guestadd-balloon" />.</para>
|
---|
718 | </listitem>
|
---|
719 |
|
---|
720 | <listitem>
|
---|
721 | <para><computeroutput>--lptmode<1-N>
|
---|
722 | <Device></computeroutput>
|
---|
723 | Specifies the Device Name of the parallel port that
|
---|
724 | the Parallel Port feature will be using. Use this
|
---|
725 | <emphasis>before</emphasis> <computeroutput>--lpt</computeroutput>.
|
---|
726 | This feature is host operating system specific.</para>
|
---|
727 | </listitem>
|
---|
728 |
|
---|
729 | <listitem>
|
---|
730 | <para><computeroutput>--lpt<1-N>
|
---|
731 | <I/O base> <IRQ></computeroutput>
|
---|
732 | Specifies the I/O address of the parallel port and the IRQ
|
---|
733 | number that the Parallel Port feature will be using. Use this
|
---|
734 | <emphasis>after</emphasis>
|
---|
735 | <computeroutput>--lptmod</computeroutput>. I/O base address and IRQ are
|
---|
736 | the values that guest sees i.e. the values avalable under guest Device Manager.</para>
|
---|
737 | </listitem>
|
---|
738 |
|
---|
739 | <listitem>
|
---|
740 | <para><computeroutput>--defaultfrontend
|
---|
741 | default|<name></computeroutput>: This allows you to specify
|
---|
742 | the default frontend which will be used when starting this VM; see
|
---|
743 | <xref linkend="vboxmanage-startvm" /> for details.</para>
|
---|
744 | </listitem>
|
---|
745 | </itemizedlist></para>
|
---|
746 | </sect2>
|
---|
747 |
|
---|
748 | <sect2>
|
---|
749 | <title>Networking settings</title>
|
---|
750 |
|
---|
751 | <para>The following networking settings are available through
|
---|
752 | <computeroutput>VBoxManage modifyvm</computeroutput>. With all these
|
---|
753 | settings, the decimal number directly following the option name ("1-N"
|
---|
754 | in the list below) specifies the virtual network adapter whose settings
|
---|
755 | should be changed.<itemizedlist>
|
---|
756 | <listitem>
|
---|
757 | <para><computeroutput>--nic<1-N>
|
---|
758 | none|null|nat|bridged|intnet|hostonly|generic
|
---|
759 | </computeroutput>: With
|
---|
760 | this, you can set, for each of the VM's virtual network cards,
|
---|
761 | what type of networking should be available. They can be not
|
---|
762 | present (<computeroutput>none</computeroutput>), not connected to
|
---|
763 | the host (<computeroutput>null</computeroutput>), use network
|
---|
764 | address translation (<computeroutput>nat</computeroutput>),
|
---|
765 | bridged networking (<computeroutput>bridged</computeroutput>) or
|
---|
766 | communicate with other virtual machines using internal networking
|
---|
767 | (<computeroutput>intnet</computeroutput>), host-only networking
|
---|
768 | (<computeroutput>hostonly</computeroutput>), or access rarely used
|
---|
769 | sub-modes (<computeroutput>generic</computeroutput>).
|
---|
770 | These options correspond
|
---|
771 | to the modes which are described in detail in <xref
|
---|
772 | linkend="networkingmodes" />.</para>
|
---|
773 | </listitem>
|
---|
774 |
|
---|
775 | <listitem>
|
---|
776 | <para><computeroutput>--nictype<1-N>
|
---|
777 | Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio</computeroutput>:
|
---|
778 | This allows you, for each of the VM's virtual network cards, to
|
---|
779 | specify which networking hardware VirtualBox presents to the
|
---|
780 | guest; see <xref linkend="nichardware" />.</para>
|
---|
781 | </listitem>
|
---|
782 |
|
---|
783 | <listitem>
|
---|
784 | <para><computeroutput>--cableconnected<1-N>
|
---|
785 | on|off</computeroutput>: This allows you to temporarily disconnect
|
---|
786 | a virtual network interface, as if a network cable had been pulled
|
---|
787 | from a real network card. This might be useful for resetting
|
---|
788 | certain software components in the VM.</para>
|
---|
789 | </listitem>
|
---|
790 |
|
---|
791 | <listitem>
|
---|
792 | <para>With the "nictrace" options, you can optionally trace
|
---|
793 | network traffic by dumping it to a file, for debugging
|
---|
794 | purposes.</para>
|
---|
795 |
|
---|
796 | <para>With <computeroutput>--nictrace<1-N>
|
---|
797 | on|off</computeroutput>, you can enable network tracing for a
|
---|
798 | particular virtual network card.</para>
|
---|
799 |
|
---|
800 | <para>If enabled, you must specify with
|
---|
801 | <computeroutput>--nictracefile<1-N>
|
---|
802 | <filename></computeroutput> what file the trace should be
|
---|
803 | logged to.</para>
|
---|
804 | </listitem>
|
---|
805 |
|
---|
806 | <listitem>
|
---|
807 | <para><computeroutput>--bridgeadapter<1-N>
|
---|
808 | none|<devicename></computeroutput>: If bridged networking
|
---|
809 | has been enabled for a virtual network card (see the
|
---|
810 | <computeroutput>--nic</computeroutput> option above; otherwise
|
---|
811 | this setting has no effect), use this option to specify which host
|
---|
812 | interface the given virtual network interface will use. For
|
---|
813 | details, please see <xref linkend="network_bridged" />.</para>
|
---|
814 | </listitem>
|
---|
815 |
|
---|
816 | <listitem>
|
---|
817 | <para><computeroutput>--hostonlyadapter<1-N>
|
---|
818 | none|<devicename></computeroutput>: If host-only networking
|
---|
819 | has been enabled for a virtual network card (see the --nic option
|
---|
820 | above; otherwise this setting has no effect), use this option to
|
---|
821 | specify which host-only networking interface the given virtual
|
---|
822 | network interface will use. For details, please see <xref
|
---|
823 | linkend="network_hostonly" />.</para>
|
---|
824 | </listitem>
|
---|
825 |
|
---|
826 | <listitem>
|
---|
827 | <para><computeroutput>--intnet<1-N>
|
---|
828 | network</computeroutput>: If internal networking has been enabled
|
---|
829 | for a virtual network card (see the
|
---|
830 | <computeroutput>--nic</computeroutput> option above; otherwise
|
---|
831 | this setting has no effect), use this option to specify the name
|
---|
832 | of the internal network (see <xref
|
---|
833 | linkend="network_internal" />).</para>
|
---|
834 | </listitem>
|
---|
835 |
|
---|
836 | <listitem>
|
---|
837 | <para><computeroutput>--macaddress<1-N>
|
---|
838 | auto|<mac></computeroutput>: With this option you can set
|
---|
839 | the MAC address of the virtual network card. Normally, each
|
---|
840 | virtual network card is assigned a random address by VirtualBox at
|
---|
841 | VM creation.</para>
|
---|
842 | </listitem>
|
---|
843 |
|
---|
844 | <listitem>
|
---|
845 | <para><computeroutput>--nicgenericdrv<1-N>
|
---|
846 | <backend driver></computeroutput>: If generic networking has been
|
---|
847 | enabled for a virtual network card (see the
|
---|
848 | <computeroutput>--nic</computeroutput> option above; otherwise
|
---|
849 | this setting has no effect), this mode allows you to access
|
---|
850 | rarely used networking sub-modes, such as VDE network or UDP Tunnel.
|
---|
851 | </para>
|
---|
852 | </listitem>
|
---|
853 |
|
---|
854 | <listitem>
|
---|
855 | <para><computeroutput>--nicproperty<1-N>
|
---|
856 | <paramname>="paramvalue"</computeroutput>:
|
---|
857 | This option, in combination with "nicgenericdrv" allows you to
|
---|
858 | pass parameters to rarely-used network backends.</para><para>
|
---|
859 | Those parameters are backend engine-specific, and are different
|
---|
860 | between UDP Tunnel and the VDE backend drivers. For example,
|
---|
861 | please see <xref linkend="network_udp_tunnel" />.
|
---|
862 | </para>
|
---|
863 | </listitem>
|
---|
864 | </itemizedlist></para>
|
---|
865 |
|
---|
866 | <sect3>
|
---|
867 | <title>NAT Networking settings.</title>
|
---|
868 |
|
---|
869 | <para>The following NAT networking settings are available through
|
---|
870 | <computeroutput>VBoxManage modifyvm</computeroutput>. With all these
|
---|
871 | settings, the decimal number directly following the option name ("1-N"
|
---|
872 | in the list below) specifies the virtual network adapter whose
|
---|
873 | settings should be changed.<itemizedlist>
|
---|
874 | <listitem>
|
---|
875 | <para><computeroutput>--natpf<1-N>
|
---|
876 | [<name>],tcp|udp,[<hostip>],<hostport>,[<guestip>],
|
---|
877 | <guestport></computeroutput>: This option defines a NAT
|
---|
878 | port-forwarding rule (please see <xref linkend="natforward" />
|
---|
879 | for details).</para>
|
---|
880 | </listitem>
|
---|
881 |
|
---|
882 | <listitem>
|
---|
883 | <para><computeroutput>--natpf<1-N> delete
|
---|
884 | <name></computeroutput>: This option deletes a NAT
|
---|
885 | port-forwarding rule (please see <xref linkend="natforward" />
|
---|
886 | for details).</para>
|
---|
887 | </listitem>
|
---|
888 |
|
---|
889 | <listitem>
|
---|
890 | <para><computeroutput>--nattftpprefix<1-N>
|
---|
891 | <prefix></computeroutput>: This option defines a prefix
|
---|
892 | for the built-in TFTP server, i.e. where the boot file is
|
---|
893 | located (please see <xref linkend="nat-tftp" /> and <xref
|
---|
894 | linkend="nat-adv-tftp" /> for details).</para>
|
---|
895 | </listitem>
|
---|
896 |
|
---|
897 | <listitem>
|
---|
898 | <para><computeroutput>--nattftpfile<1-N>
|
---|
899 | <bootfile></computeroutput>: This option defines the TFT
|
---|
900 | boot file (please see <xref linkend="nat-adv-tftp" /> for
|
---|
901 | details).</para>
|
---|
902 | </listitem>
|
---|
903 |
|
---|
904 | <listitem>
|
---|
905 | <para><computeroutput>--nattftpserver<1-N>
|
---|
906 | <tftpserver></computeroutput>: This option defines the
|
---|
907 | TFTP server address to boot from (please see <xref
|
---|
908 | linkend="nat-adv-tftp" /> for details).</para>
|
---|
909 | </listitem>
|
---|
910 |
|
---|
911 | <listitem>
|
---|
912 | <para><computeroutput>--natdnspassdomain<1-N>
|
---|
913 | on|off</computeroutput>: This option specifies whether the
|
---|
914 | built-in DHCP server passes the domain name for network name
|
---|
915 | resolution.</para>
|
---|
916 | </listitem>
|
---|
917 |
|
---|
918 | <listitem>
|
---|
919 | <para><computeroutput>--natdnsproxy<1-N>
|
---|
920 | on|off</computeroutput>: This option makes the NAT engine proxy
|
---|
921 | all guest DNS requests to the host's DNS servers (please see
|
---|
922 | <xref linkend="nat-adv-dns" /> for details).</para>
|
---|
923 | </listitem>
|
---|
924 |
|
---|
925 | <listitem>
|
---|
926 | <para><computeroutput>--natdnshostresolver<1-N>
|
---|
927 | on|off</computeroutput>: This option makes the NAT engine use
|
---|
928 | the host's resolver mechanisms to handle DNS requests (please
|
---|
929 | see <xref linkend="nat-adv-dns" /> for details).</para>
|
---|
930 | </listitem>
|
---|
931 |
|
---|
932 | <listitem>
|
---|
933 | <para><computeroutput>--natsettings<1-N>
|
---|
934 | [<mtu>],[<socksnd>],[<sockrcv>],[<tcpsnd>],
|
---|
935 | [<tcprcv>]</computeroutput>: This option controls several
|
---|
936 | NAT settings (please see <xref linkend="nat-adv-settings" /> for
|
---|
937 | details).</para>
|
---|
938 | </listitem>
|
---|
939 |
|
---|
940 | <listitem>
|
---|
941 | <para><computeroutput>--nataliasmode<1-N>
|
---|
942 | default|[log],[proxyonly],[sameports]</computeroutput>: This
|
---|
943 | option defines behaviour of NAT engine core: log - enables
|
---|
944 | logging, proxyonly - switches of aliasing mode makes NAT
|
---|
945 | transparent, sameports enforces NAT engine to send packets via
|
---|
946 | the same port as they originated on, default - disable all
|
---|
947 | mentioned modes above . (please see <xref
|
---|
948 | linkend="nat-adv-alias" /> for details).</para>
|
---|
949 | </listitem>
|
---|
950 | </itemizedlist></para>
|
---|
951 | </sect3>
|
---|
952 | </sect2>
|
---|
953 |
|
---|
954 | <sect2 id="vboxmanage-modifyvm-other">
|
---|
955 | <title>Miscellaneous settings</title>
|
---|
956 |
|
---|
957 | <para>The following other hardware settings, such as serial port, audio,
|
---|
958 | clipboard, drag'n drop, monitor and USB settings are available through
|
---|
959 | <computeroutput>VBoxManage modifyvm</computeroutput>:<itemizedlist>
|
---|
960 | <listitem>
|
---|
961 | <para><computeroutput>--uart<1-N> off|<I/O base>
|
---|
962 | <IRQ></computeroutput>: With this option you can configure
|
---|
963 | virtual serial ports for the VM; see <xref
|
---|
964 | linkend="serialports" /> for an introduction.</para>
|
---|
965 | </listitem>
|
---|
966 |
|
---|
967 | <listitem>
|
---|
968 | <para><computeroutput>--uartmode<1-N>
|
---|
969 | <arg></computeroutput>: This setting controls how VirtualBox
|
---|
970 | connects a given virtual serial port (previously configured with
|
---|
971 | the <computeroutput>--uartX</computeroutput> setting, see above)
|
---|
972 | to the host on which the virtual machine is running. As described
|
---|
973 | in detail in <xref linkend="serialports" />, for each such port,
|
---|
974 | you can specify <computeroutput><arg></computeroutput> as
|
---|
975 | one of the following options:<itemizedlist>
|
---|
976 | <listitem>
|
---|
977 | <para><computeroutput>disconnected</computeroutput>: Even
|
---|
978 | though the serial port is shown to the guest, it has no
|
---|
979 | "other end" -- like a real COM port without a cable.</para>
|
---|
980 | </listitem>
|
---|
981 |
|
---|
982 | <listitem>
|
---|
983 | <para><computeroutput>server
|
---|
984 | <pipename></computeroutput>: On a Windows host, this
|
---|
985 | tells VirtualBox to create a named pipe on the host named
|
---|
986 | <computeroutput><pipename></computeroutput> and
|
---|
987 | connect the virtual serial device to it. Note that Windows
|
---|
988 | requires that the name of a named pipe begin with
|
---|
989 | <computeroutput>\\.\pipe\</computeroutput>.</para>
|
---|
990 |
|
---|
991 | <para>On a Linux host, instead of a named pipe, a local
|
---|
992 | domain socket is used.</para>
|
---|
993 | </listitem>
|
---|
994 |
|
---|
995 | <listitem>
|
---|
996 | <para><computeroutput>client
|
---|
997 | <pipename></computeroutput>: This operates just like
|
---|
998 | <computeroutput>server ...</computeroutput>, except that the
|
---|
999 | pipe (or local domain socket) is not created by VirtualBox,
|
---|
1000 | but assumed to exist already.</para>
|
---|
1001 | </listitem>
|
---|
1002 |
|
---|
1003 | <listitem>
|
---|
1004 | <para><computeroutput><devicename></computeroutput>:
|
---|
1005 | If, instead of the above, the device name of a physical
|
---|
1006 | hardware serial port of the host is specified, the virtual
|
---|
1007 | serial port is connected to that hardware port. On a Windows
|
---|
1008 | host, the device name will be a COM port such as
|
---|
1009 | <computeroutput>COM1</computeroutput>; on a Linux host, the
|
---|
1010 | device name will look like
|
---|
1011 | <computeroutput>/dev/ttyS0</computeroutput>. This allows you
|
---|
1012 | to "wire" a real serial port to a virtual machine.</para>
|
---|
1013 | </listitem>
|
---|
1014 | </itemizedlist></para>
|
---|
1015 | </listitem>
|
---|
1016 |
|
---|
1017 | <listitem>
|
---|
1018 | <para><computeroutput>--audio none|null|oss</computeroutput>: With
|
---|
1019 | this option, you can set whether the VM should have audio
|
---|
1020 | support.</para>
|
---|
1021 | </listitem>
|
---|
1022 |
|
---|
1023 | <listitem>
|
---|
1024 | <para><computeroutput>--clipboard
|
---|
1025 | disabled|hosttoguest|guesttohost|bidirectional</computeroutput>:
|
---|
1026 | With this setting, you can select if and how the guest or host
|
---|
1027 | operating system's clipboard should be shared with the host or guest;
|
---|
1028 | see <xref linkend="generalsettings" />. This requires that the Guest
|
---|
1029 | Additions be installed in the virtual machine.</para>
|
---|
1030 | </listitem>
|
---|
1031 |
|
---|
1032 | <listitem>
|
---|
1033 | <para><computeroutput>--draganddrop
|
---|
1034 | disabled|hosttoguest|guesttohost|bidirectional</computeroutput>:
|
---|
1035 | With this setting, you can select the current drag'n drop mode
|
---|
1036 | being used between the host and the virtual machine;
|
---|
1037 | see <xref linkend="guestadd-dnd" />. This requires that the Guest
|
---|
1038 | Additions be installed in the virtual machine.</para>
|
---|
1039 | </listitem>
|
---|
1040 |
|
---|
1041 | <listitem>
|
---|
1042 | <para><computeroutput>--monitorcount
|
---|
1043 | <count></computeroutput>: This enables multi-monitor
|
---|
1044 | support; see <xref linkend="settings-display" />.</para>
|
---|
1045 | </listitem>
|
---|
1046 |
|
---|
1047 | <listitem>
|
---|
1048 | <para><computeroutput>--usb on|off</computeroutput>: This option
|
---|
1049 | enables or disables the VM's virtual USB controller; see <xref
|
---|
1050 | linkend="settings-usb" /> for details.</para>
|
---|
1051 | </listitem>
|
---|
1052 |
|
---|
1053 | <listitem>
|
---|
1054 | <para><computeroutput>--usbehci on|off</computeroutput>: This
|
---|
1055 | option enables or disables the VM's virtual USB 2.0 controller;
|
---|
1056 | see <xref linkend="settings-usb" /> for details.</para>
|
---|
1057 | </listitem>
|
---|
1058 | </itemizedlist></para>
|
---|
1059 |
|
---|
1060 | <!-- @todo r=andy Document tracing-* commands -->
|
---|
1061 | </sect2>
|
---|
1062 |
|
---|
1063 | <sect2 id="vboxmanage-modifyvm-vrde">
|
---|
1064 | <title>Remote machine settings</title>
|
---|
1065 |
|
---|
1066 | <para>The following settings that affect remote machine behavior are
|
---|
1067 | available through <computeroutput>VBoxManage
|
---|
1068 | modifyvm</computeroutput>:<itemizedlist>
|
---|
1069 | <listitem>
|
---|
1070 | <para><computeroutput>--vrde on|off</computeroutput>: With the
|
---|
1071 | VirtualBox graphical user interface, this enables or disables the
|
---|
1072 | VirtualBox remote desktop extension (VRDE) server. Note that if
|
---|
1073 | you are using <computeroutput>VBoxHeadless</computeroutput> (see
|
---|
1074 | <xref linkend="vboxheadless" />), VRDE is enabled by
|
---|
1075 | default.</para>
|
---|
1076 | </listitem>
|
---|
1077 |
|
---|
1078 | <!-- @todo r=andy Document vrdeproperty -->
|
---|
1079 |
|
---|
1080 | <listitem>
|
---|
1081 | <para><computeroutput>--vrdeport
|
---|
1082 | default|<ports></computeroutput>: A port or a range of ports
|
---|
1083 | the VRDE server can bind to; "default" or "0" means port 3389, the
|
---|
1084 | standard port for RDP. You can specify a comma-separated list of
|
---|
1085 | ports or ranges of ports. Use a dash between two port numbers to
|
---|
1086 | specify a range. The VRDE server will bind to <emphasis
|
---|
1087 | role="bold">one</emphasis> of available ports from the specified
|
---|
1088 | list. Only one machine can use a given port at a time. For
|
---|
1089 | example, the option <computeroutput> --vrdeport
|
---|
1090 | 5000,5010-5012</computeroutput> will tell the server to bind to
|
---|
1091 | one of following ports: 5000, 5010, 5011 or 5012.</para>
|
---|
1092 | </listitem>
|
---|
1093 |
|
---|
1094 | <listitem>
|
---|
1095 | <para><computeroutput>--vrdeaddress <IP
|
---|
1096 | address></computeroutput>: The IP address of the host network
|
---|
1097 | interface the VRDE server will bind to. If specified, the server
|
---|
1098 | will accept connections only on the specified host network
|
---|
1099 | interface.</para>
|
---|
1100 | <para>The setting can be used to specify whether the VRDP server
|
---|
1101 | should accept either IPv4 or IPv6 or both connections:
|
---|
1102 | <itemizedlist>
|
---|
1103 | <listitem>
|
---|
1104 | <para>only IPv4: <computeroutput>--vrdeaddress "0.0.0.0"
|
---|
1105 | </computeroutput></para>
|
---|
1106 | </listitem>
|
---|
1107 | <listitem>
|
---|
1108 | <para>only IPv6: <computeroutput>--vrdeaddress "::"
|
---|
1109 | </computeroutput></para>
|
---|
1110 | </listitem>
|
---|
1111 | <listitem>
|
---|
1112 | <para>both IPv6 and IPv4 (default): <computeroutput>--vrdeaddress ""
|
---|
1113 | </computeroutput></para>
|
---|
1114 | </listitem>
|
---|
1115 | </itemizedlist></para>
|
---|
1116 | </listitem>
|
---|
1117 |
|
---|
1118 | <listitem>
|
---|
1119 | <para><computeroutput>--vrdeauthtype
|
---|
1120 | null|external|guest</computeroutput>: This allows you to choose
|
---|
1121 | whether and how authorization will be performed; see <xref
|
---|
1122 | linkend="vbox-auth" /> for details.</para>
|
---|
1123 | </listitem>
|
---|
1124 |
|
---|
1125 | <listitem>
|
---|
1126 | <para><computeroutput>--vrdemulticon on|off</computeroutput>: This
|
---|
1127 | enables multiple connections to the same VRDE server, if the
|
---|
1128 | server supports this feature; see <xref lang=""
|
---|
1129 | linkend="vrde-multiconnection" />.</para>
|
---|
1130 | </listitem>
|
---|
1131 |
|
---|
1132 | <listitem>
|
---|
1133 | <para><computeroutput>--vrdereusecon on|off</computeroutput>: This
|
---|
1134 | specifies the VRDE server behavior when multiple connections are
|
---|
1135 | disabled. When this option is enabled, the server will allow a new
|
---|
1136 | client to connect and will drop the existing connection. When this
|
---|
1137 | option is disabled (this is the default setting), a new connection
|
---|
1138 | will not be accepted if there is already a client connected to the
|
---|
1139 | server.</para>
|
---|
1140 | </listitem>
|
---|
1141 |
|
---|
1142 | <listitem>
|
---|
1143 | <para><computeroutput>--vrdevideochannel on|off</computeroutput>:
|
---|
1144 | This enables video redirection, if it is supported by the VRDE
|
---|
1145 | server; see <xref lang="" linkend="vrde-videochannel" />.</para>
|
---|
1146 | </listitem>
|
---|
1147 |
|
---|
1148 | <listitem>
|
---|
1149 | <para><computeroutput>--vrdevideochannelquality
|
---|
1150 | <percent></computeroutput>: Sets the image quality for video
|
---|
1151 | redirection; see <xref lang=""
|
---|
1152 | linkend="vrde-videochannel" />.</para>
|
---|
1153 | </listitem>
|
---|
1154 | </itemizedlist></para>
|
---|
1155 | </sect2>
|
---|
1156 |
|
---|
1157 | <sect2 id="vboxmanage-modifyvm-teleport">
|
---|
1158 | <title>Teleporting settings</title>
|
---|
1159 |
|
---|
1160 | <para>With the following commands for <computeroutput>VBoxManage
|
---|
1161 | modifyvm</computeroutput> you can configure a machine to be a target for
|
---|
1162 | teleporting. See <xref linkend="teleporting" /> for an
|
---|
1163 | introduction.<itemizedlist>
|
---|
1164 | <listitem>
|
---|
1165 | <para><computeroutput>--teleporter on|off</computeroutput>: With
|
---|
1166 | this setting you turn on or off whether a machine waits for a
|
---|
1167 | teleporting request to come in on the network when it is started.
|
---|
1168 | If "on", when the machine is started, it does not boot the virtual
|
---|
1169 | machine as it would normally; instead, it then waits for a
|
---|
1170 | teleporting request to come in on the port and address listed with
|
---|
1171 | the next two parameters.</para>
|
---|
1172 | </listitem>
|
---|
1173 |
|
---|
1174 | <listitem>
|
---|
1175 | <para><computeroutput>--teleporterport
|
---|
1176 | <port></computeroutput>, <computeroutput>--teleporteraddress
|
---|
1177 | <address></computeroutput>: these must be used with
|
---|
1178 | --teleporter and tell the virtual machine on which port and
|
---|
1179 | address it should listen for a teleporting request from another
|
---|
1180 | virtual machine. <computeroutput><port></computeroutput> can
|
---|
1181 | be any free TCP/IP port number (e.g. 6000);
|
---|
1182 | <computeroutput><address></computeroutput> can be any IP
|
---|
1183 | address or hostname and specifies the TCP/IP socket to bind to.
|
---|
1184 | The default is "0.0.0.0", which means any address.</para>
|
---|
1185 | </listitem>
|
---|
1186 |
|
---|
1187 | <listitem>
|
---|
1188 | <para><computeroutput>--teleporterpassword
|
---|
1189 | <password></computeroutput>: if this optional argument is
|
---|
1190 | given, then the teleporting request will only succeed if the
|
---|
1191 | source machine specifies the same password as the one given with
|
---|
1192 | this command.</para>
|
---|
1193 | </listitem>
|
---|
1194 |
|
---|
1195 | <listitem>
|
---|
1196 | <para><computeroutput>--teleporterpasswordfile
|
---|
1197 | <password></computeroutput>: if this optional argument is
|
---|
1198 | given, then the teleporting request will only succeed if the
|
---|
1199 | source machine specifies the same password as the one specified
|
---|
1200 | in the file give with this command. Use <computeroutput>stdin</computeroutput>
|
---|
1201 | to read the password from stdin.</para>
|
---|
1202 | </listitem>
|
---|
1203 |
|
---|
1204 | <listitem>
|
---|
1205 | <para><computeroutput>--cpuid <leaf> <eax> <ebx>
|
---|
1206 | <ecx> <edx></computeroutput>: Advanced users can use
|
---|
1207 | this command before a teleporting operation to restrict the
|
---|
1208 | virtual CPU capabilities that VirtualBox presents to the guest
|
---|
1209 | operating system. This must be run on both the source and the
|
---|
1210 | target machines involved in the teleporting and will then modify
|
---|
1211 | what the guest sees when it executes the
|
---|
1212 | <computeroutput>CPUID</computeroutput> machine instruction. This
|
---|
1213 | might help with misbehaving applications that wrongly assume that
|
---|
1214 | certain CPU capabilities are present. The meaning of the
|
---|
1215 | parameters is hardware dependent; please refer to the AMD or Intel
|
---|
1216 | processor manuals.</para>
|
---|
1217 | </listitem>
|
---|
1218 | </itemizedlist></para>
|
---|
1219 | </sect2>
|
---|
1220 | </sect1>
|
---|
1221 |
|
---|
1222 | <sect1 id="vboxmanage-clonevm">
|
---|
1223 | <title>VBoxManage clonevm</title>
|
---|
1224 |
|
---|
1225 | <para>This command creates a full or linked copy of an existing virtual
|
---|
1226 | machine.</para>
|
---|
1227 |
|
---|
1228 | <para>The <computeroutput>clonevm</computeroutput> subcommand takes at
|
---|
1229 | least the name of the virtual machine which should be cloned. The following
|
---|
1230 | additional settings can be used to further configure the clone VM
|
---|
1231 | operation:</para>
|
---|
1232 |
|
---|
1233 | <itemizedlist>
|
---|
1234 | <listitem>
|
---|
1235 | <para><computeroutput>--snapshot <uuid>|<name></computeroutput>:
|
---|
1236 | Select a specific snapshot where the clone operation should refer
|
---|
1237 | to. Default is referring to the current state.</para>
|
---|
1238 | </listitem>
|
---|
1239 | <listitem>
|
---|
1240 | <para><computeroutput>--mode machine|machineandchildren|all</computeroutput>:
|
---|
1241 | Selects the cloning mode of the operation. If
|
---|
1242 | <computeroutput>machine</computeroutput> is selected (the default),
|
---|
1243 | the current state of the VM without any snapshots is cloned. In the
|
---|
1244 | <computeroutput>machineandchildren</computeroutput> mode the snapshot
|
---|
1245 | provided by <computeroutput>--snapshot</computeroutput> and all
|
---|
1246 | child snapshots are cloned. If <computeroutput>all</computeroutput>
|
---|
1247 | is the selected mode all snapshots and the current state are cloned.
|
---|
1248 | </para>
|
---|
1249 | </listitem>
|
---|
1250 | <listitem>
|
---|
1251 | <para><computeroutput>--options link|keepallmacs|keepnatmacs|keepdisknames</computeroutput>:
|
---|
1252 | Allows additional fine tuning of the clone operation. The first
|
---|
1253 | option defines that a linked clone should be created, which is
|
---|
1254 | only possible for a machine clone from a snapshot. The next two
|
---|
1255 | options allow to define how the MAC addresses of every virtual
|
---|
1256 | network card should be handled. They can either be reinitialized
|
---|
1257 | (the default), left unchanged
|
---|
1258 | (<computeroutput>keepallmacs</computeroutput>) or left unchanged
|
---|
1259 | when the network type is NAT
|
---|
1260 | (<computeroutput>keepnatmacs</computeroutput>). If you add
|
---|
1261 | <computeroutput>keepdisknames</computeroutput> all new disk images
|
---|
1262 | are called like the original ones, otherwise they are
|
---|
1263 | renamed.</para>
|
---|
1264 | </listitem>
|
---|
1265 | <listitem>
|
---|
1266 | <para><computeroutput>--name <name></computeroutput>: Select a
|
---|
1267 | new name for the new virtual machine. Default is "Original Name
|
---|
1268 | Clone".</para>
|
---|
1269 | </listitem>
|
---|
1270 | <listitem>
|
---|
1271 | <para><computeroutput>--basefolder <basefolder></computeroutput>:
|
---|
1272 | Select the folder where the new virtual machine configuration should
|
---|
1273 | be saved in.</para>
|
---|
1274 | </listitem>
|
---|
1275 | <listitem>
|
---|
1276 | <para><computeroutput>--uuid <uuid></computeroutput>:
|
---|
1277 | Select the UUID the new VM should have. This id has to be unique in
|
---|
1278 | the VirtualBox instance this clone should be registered. Default is
|
---|
1279 | creating a new UUID.</para>
|
---|
1280 | </listitem>
|
---|
1281 | <listitem>
|
---|
1282 | <para><computeroutput>--register</computeroutput>:
|
---|
1283 | Automatically register the new clone in this VirtualBox
|
---|
1284 | installation. If you manually want to register the new VM later, see
|
---|
1285 | <xref linkend="vboxmanage-registervm" /> for instructions how to do
|
---|
1286 | so.</para>
|
---|
1287 | </listitem>
|
---|
1288 | </itemizedlist>
|
---|
1289 | </sect1>
|
---|
1290 |
|
---|
1291 | <sect1 id="vboxmanage-import">
|
---|
1292 | <title>VBoxManage import</title>
|
---|
1293 |
|
---|
1294 | <para>This command imports a virtual appliance in OVF format by copying
|
---|
1295 | the virtual disk images and creating virtual machines in VirtualBox. See
|
---|
1296 | <xref linkend="ovf" /> for an introduction to appliances.</para>
|
---|
1297 |
|
---|
1298 | <para>The <computeroutput>import</computeroutput> subcommand takes at
|
---|
1299 | least the path name of an OVF file as input and expects the disk images,
|
---|
1300 | if needed, in the same directory as the OVF file. A lot of additional
|
---|
1301 | command-line options are supported to control in detail what is being
|
---|
1302 | imported and modify the import parameters, but the details depend on the
|
---|
1303 | content of the OVF file.</para>
|
---|
1304 |
|
---|
1305 | <para>It is therefore recommended to first run the import subcommand with
|
---|
1306 | the <computeroutput>--dry-run</computeroutput> or
|
---|
1307 | <computeroutput>-n</computeroutput> option. This will then print a
|
---|
1308 | description of the appliance's contents to the screen how it would be
|
---|
1309 | imported into VirtualBox, together with the optional command-line options
|
---|
1310 | to influence the import behavior.</para>
|
---|
1311 |
|
---|
1312 | <para>As an example, here is the screen output with a sample appliance
|
---|
1313 | containing a Windows XP guest:<screen>VBoxManage import WindowsXp.ovf --dry-run
|
---|
1314 | Interpreting WindowsXp.ovf...
|
---|
1315 | OK.
|
---|
1316 | Virtual system 0:
|
---|
1317 | 0: Suggested OS type: "WindowsXP"
|
---|
1318 | (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all)
|
---|
1319 | 1: Suggested VM name "Windows XP Professional_1"
|
---|
1320 | (change with "--vsys 0 --vmname <name>")
|
---|
1321 | 3: Number of CPUs: 1
|
---|
1322 | (change with "--vsys 0 --cpus <n>")
|
---|
1323 | 4: Guest memory: 956 MB (change with "--vsys 0 --memory <MB>")
|
---|
1324 | 5: Sound card (appliance expects "ensoniq1371", can change on import)
|
---|
1325 | (disable with "--vsys 0 --unit 5 --ignore")
|
---|
1326 | 6: USB controller
|
---|
1327 | (disable with "--vsys 0 --unit 6 --ignore")
|
---|
1328 | 7: Network adapter: orig bridged, config 2, extra type=bridged
|
---|
1329 | 8: Floppy
|
---|
1330 | (disable with "--vsys 0 --unit 8 --ignore")
|
---|
1331 | 9: SCSI controller, type BusLogic
|
---|
1332 | (change with "--vsys 0 --unit 9 --scsitype {BusLogic|LsiLogic}";
|
---|
1333 | disable with "--vsys 0 --unit 9 --ignore")
|
---|
1334 | 10: IDE controller, type PIIX4
|
---|
1335 | (disable with "--vsys 0 --unit 10 --ignore")
|
---|
1336 | 11: Hard disk image: source image=WindowsXp.vmdk,
|
---|
1337 | target path=/home/user/disks/WindowsXp.vmdk, controller=9;channel=0
|
---|
1338 | (change controller with "--vsys 0 --unit 11 --controller <id>";
|
---|
1339 | disable with "--vsys 0 --unit 11 --ignore")</screen></para>
|
---|
1340 |
|
---|
1341 | <para>As you can see, the individual configuration items are numbered, and
|
---|
1342 | depending on their type support different command-line options. The import
|
---|
1343 | subcommand can be directed to ignore many such items with a
|
---|
1344 | <computeroutput>--vsys X --unit Y --ignore</computeroutput> option, where
|
---|
1345 | X is the number of the virtual system (zero unless there are several
|
---|
1346 | virtual system descriptions in the appliance) and Y the item number, as
|
---|
1347 | printed on the screen.</para>
|
---|
1348 |
|
---|
1349 | <para>In the above example, Item #1 specifies the name of the target
|
---|
1350 | machine in VirtualBox. Items #9 and #10 specify hard disk controllers,
|
---|
1351 | respectively. Item #11 describes a hard disk image; in this case, the
|
---|
1352 | additional <computeroutput>--controller</computeroutput> option indicates
|
---|
1353 | which item the disk image should be connected to, with the default coming
|
---|
1354 | from the OVF file.</para>
|
---|
1355 |
|
---|
1356 | <para>You can combine several items for the same virtual system behind the
|
---|
1357 | same <computeroutput>--vsys</computeroutput> option. For example, to
|
---|
1358 | import a machine as described in the OVF, but without the sound card and
|
---|
1359 | without the USB controller, and with the disk image connected to the IDE
|
---|
1360 | controller instead of the SCSI controller, use this:<screen>VBoxManage import WindowsXp.ovf
|
---|
1361 | --vsys 0 --unit 5 --ignore --unit 6 --ignore --unit 11 --controller 10</screen></para>
|
---|
1362 | </sect1>
|
---|
1363 |
|
---|
1364 | <sect1 id="vboxmanage-export">
|
---|
1365 | <title>VBoxManage export</title>
|
---|
1366 |
|
---|
1367 | <para>This command exports one or more virtual machines from VirtualBox
|
---|
1368 | into a virtual appliance in OVF format, including copying their virtual
|
---|
1369 | disk images to compressed VMDK. See <xref linkend="ovf" /> for an
|
---|
1370 | introduction to appliances.</para>
|
---|
1371 |
|
---|
1372 | <para>The <computeroutput>export</computeroutput> command is simple to
|
---|
1373 | use: list the machine (or the machines) that you would like to export to
|
---|
1374 | the same OVF file and specify the target OVF file after an additional
|
---|
1375 | <computeroutput>--output</computeroutput> or
|
---|
1376 | <computeroutput>-o</computeroutput> option. Note that the directory of the
|
---|
1377 | target OVF file will also receive the exported disk images in the
|
---|
1378 | compressed VMDK format (regardless of the original format) and should have
|
---|
1379 | enough disk space left for them.</para>
|
---|
1380 |
|
---|
1381 | <para>Beside a simple export of a given virtual machine, you can append
|
---|
1382 | several product information to the appliance file. Use
|
---|
1383 | <computeroutput>--product</computeroutput>,
|
---|
1384 | <computeroutput>--producturl</computeroutput>,
|
---|
1385 | <computeroutput>--vendor</computeroutput>,
|
---|
1386 | <computeroutput>--vendorurl</computeroutput> and
|
---|
1387 | <computeroutput>--version</computeroutput> to specify this additional
|
---|
1388 | information. For legal reasons you may add a license text or the content
|
---|
1389 | of a license file by using the <computeroutput>--eula</computeroutput> and
|
---|
1390 | <computeroutput>--eulafile</computeroutput> option respectively. As with
|
---|
1391 | OVF import, you must use the <computeroutput>--vsys X</computeroutput>
|
---|
1392 | option to direct the previously mentioned options to the correct virtual
|
---|
1393 | machine.</para>
|
---|
1394 |
|
---|
1395 | <para>For virtualization products which aren't fully compatible with the
|
---|
1396 | OVF standard 1.0 you can enable a OVF 0.9 legacy mode with the
|
---|
1397 | <computeroutput>--legacy09</computeroutput> option.</para>
|
---|
1398 |
|
---|
1399 | <para>To specify options controlling the exact content of the appliance
|
---|
1400 | file, you can use <computeroutput>--option</computeroutput> to request the
|
---|
1401 | creation of a manifest file (encouraged, allows detection of corrupted
|
---|
1402 | appliances on import), the additional export of DVD images, and the
|
---|
1403 | exclusion of MAC addresses. You can specify a list of options, e.g.
|
---|
1404 | <computeroutput>--option manifest,nomacs</computeroutput>. For details,
|
---|
1405 | check the help output of <computeroutput>VBoxManage export</computeroutput>.</para>
|
---|
1406 | </sect1>
|
---|
1407 |
|
---|
1408 | <sect1 id="vboxmanage-startvm">
|
---|
1409 | <title>VBoxManage startvm</title>
|
---|
1410 |
|
---|
1411 | <para>This command starts a virtual machine that is currently in the
|
---|
1412 | "Powered off" or "Saved" states.</para>
|
---|
1413 |
|
---|
1414 | <para>The optional <computeroutput>--type</computeroutput> specifier
|
---|
1415 | determines whether the machine will be started in a window or whether the
|
---|
1416 | output should go through <computeroutput>VBoxHeadless</computeroutput>,
|
---|
1417 | with VRDE enabled or not; see <xref linkend="vboxheadless" /> for more
|
---|
1418 | information. The list of types is subject to change, and it's not
|
---|
1419 | guaranteed that all types are accepted by any product variant.</para>
|
---|
1420 |
|
---|
1421 | <para>The global or per-VM default value for the VM frontend type will be
|
---|
1422 | taken if the type is not explicitly specified. If none of these are set,
|
---|
1423 | the GUI variant will be started.</para>
|
---|
1424 |
|
---|
1425 | <para>The following values are allowed:</para>
|
---|
1426 |
|
---|
1427 | <glosslist>
|
---|
1428 | <glossentry>
|
---|
1429 | <glossterm><computeroutput>gui</computeroutput></glossterm>
|
---|
1430 |
|
---|
1431 | <glossdef>
|
---|
1432 | <para>Starts a VM showing a GUI window. This is the default.</para>
|
---|
1433 | </glossdef>
|
---|
1434 | </glossentry>
|
---|
1435 |
|
---|
1436 | <glossentry>
|
---|
1437 | <glossterm><computeroutput>headless</computeroutput></glossterm>
|
---|
1438 |
|
---|
1439 | <glossdef>
|
---|
1440 | <para>Starts a VM without a window for remote display only.</para>
|
---|
1441 | </glossdef>
|
---|
1442 | </glossentry>
|
---|
1443 |
|
---|
1444 | <glossentry>
|
---|
1445 | <glossterm><computeroutput>sdl</computeroutput></glossterm>
|
---|
1446 |
|
---|
1447 | <glossdef>
|
---|
1448 | <para>Starts a VM with a minimal GUI and limited features.</para>
|
---|
1449 | </glossdef>
|
---|
1450 | </glossentry>
|
---|
1451 | </glosslist>
|
---|
1452 |
|
---|
1453 | <note>
|
---|
1454 | <para>If you experience problems with starting virtual machines with
|
---|
1455 | particular frontends and there is no conclusive error information,
|
---|
1456 | consider starting virtual machines directly by running the respective
|
---|
1457 | front-end, as this can give additional error information.</para>
|
---|
1458 | </note>
|
---|
1459 | </sect1>
|
---|
1460 |
|
---|
1461 | <sect1 id="vboxmanage-controlvm">
|
---|
1462 | <title>VBoxManage controlvm</title>
|
---|
1463 |
|
---|
1464 | <para>The <computeroutput>controlvm</computeroutput> subcommand allows you
|
---|
1465 | to change the state of a virtual machine that is currently running. The
|
---|
1466 | following can be specified:</para>
|
---|
1467 |
|
---|
1468 | <para><itemizedlist>
|
---|
1469 | <listitem>
|
---|
1470 | <para><computeroutput>VBoxManage controlvm <vm>
|
---|
1471 | pause</computeroutput> temporarily puts a virtual machine on hold,
|
---|
1472 | without changing its state for good. The VM window will be painted
|
---|
1473 | in gray to indicate that the VM is currently paused. (This is
|
---|
1474 | equivalent to selecting the "Pause" item in the "Machine" menu of
|
---|
1475 | the GUI.)</para>
|
---|
1476 | </listitem>
|
---|
1477 |
|
---|
1478 | <listitem>
|
---|
1479 | <para>Use <computeroutput>VBoxManage controlvm <vm>
|
---|
1480 | resume</computeroutput> to undo a previous
|
---|
1481 | <computeroutput>pause</computeroutput> command. (This is equivalent
|
---|
1482 | to selecting the "Resume" item in the "Machine" menu of the
|
---|
1483 | GUI.)</para>
|
---|
1484 | </listitem>
|
---|
1485 |
|
---|
1486 | <listitem>
|
---|
1487 | <para><computeroutput>VBoxManage controlvm <vm>
|
---|
1488 | reset</computeroutput> has the same effect on a virtual machine as
|
---|
1489 | pressing the "Reset" button on a real computer: a cold reboot of the
|
---|
1490 | virtual machine, which will restart and boot the guest operating
|
---|
1491 | system again immediately. The state of the VM is not saved
|
---|
1492 | beforehand, and data may be lost. (This is equivalent to selecting
|
---|
1493 | the "Reset" item in the "Machine" menu of the GUI.)</para>
|
---|
1494 | </listitem>
|
---|
1495 |
|
---|
1496 | <listitem>
|
---|
1497 | <para><computeroutput>VBoxManage controlvm <vm>
|
---|
1498 | poweroff</computeroutput> has the same effect on a virtual machine
|
---|
1499 | as pulling the power cable on a real computer. Again, the state of
|
---|
1500 | the VM is not saved beforehand, and data may be lost. (This is
|
---|
1501 | equivalent to selecting the "Close" item in the "Machine" menu of
|
---|
1502 | the GUI or pressing the window's close button, and then selecting
|
---|
1503 | "Power off the machine" in the dialog.)</para>
|
---|
1504 |
|
---|
1505 | <para>After this, the VM's state will be "Powered off". From there,
|
---|
1506 | it can be started again; see <xref
|
---|
1507 | linkend="vboxmanage-startvm" />.</para>
|
---|
1508 | </listitem>
|
---|
1509 |
|
---|
1510 | <listitem>
|
---|
1511 | <para><computeroutput>VBoxManage controlvm <vm>
|
---|
1512 | savestate</computeroutput> will save the current state of the VM to
|
---|
1513 | disk and then stop the VM. (This is equivalent to selecting the
|
---|
1514 | "Close" item in the "Machine" menu of the GUI or pressing the
|
---|
1515 | window's close button, and then selecting "Save the machine state"
|
---|
1516 | in the dialog.)</para>
|
---|
1517 |
|
---|
1518 | <para>After this, the VM's state will be "Saved". From there, it can
|
---|
1519 | be started again; see <xref linkend="vboxmanage-startvm" />.</para>
|
---|
1520 | </listitem>
|
---|
1521 |
|
---|
1522 | <listitem>
|
---|
1523 | <para><computeroutput>VBoxManage controlvm "VM name" teleport
|
---|
1524 | --hostname <name> --port <port> [--passwordfile
|
---|
1525 | <file> | --password <password>]</computeroutput> makes
|
---|
1526 | the machine the source of a teleporting operation and initiates a
|
---|
1527 | teleport to the given target. See <xref linkend="teleporting" /> for
|
---|
1528 | an introduction. If the optional password is specified, it must match
|
---|
1529 | the password that was given to the
|
---|
1530 | <computeroutput>modifyvm</computeroutput> command for the target
|
---|
1531 | machine; see <xref linkend="vboxmanage-modifyvm-teleport" /> for
|
---|
1532 | details.</para>
|
---|
1533 | </listitem>
|
---|
1534 | </itemizedlist></para>
|
---|
1535 |
|
---|
1536 | <para>A few extra options are available with
|
---|
1537 | <computeroutput>controlvm</computeroutput> that do not directly affect the
|
---|
1538 | VM's running state:</para>
|
---|
1539 |
|
---|
1540 | <itemizedlist>
|
---|
1541 | <!-- @todo r=andy Document keyboardputscancode -->
|
---|
1542 |
|
---|
1543 | <listitem>
|
---|
1544 | <para>The <computeroutput>setlinkstate<1-N></computeroutput>
|
---|
1545 | operation connects or disconnects virtual network cables from their
|
---|
1546 | network interfaces.</para>
|
---|
1547 | </listitem>
|
---|
1548 |
|
---|
1549 | <listitem>
|
---|
1550 | <para><computeroutput>nic<1-N>
|
---|
1551 | null|nat|bridged|intnet|hostonly|generic</computeroutput>: With this, you can
|
---|
1552 | set, for each of the VM's virtual network cards, what type of
|
---|
1553 | networking should be available. They can be not connected to the host
|
---|
1554 | (<computeroutput>null</computeroutput>), use network address
|
---|
1555 | translation (<computeroutput>nat</computeroutput>), bridged networking
|
---|
1556 | (<computeroutput>bridged</computeroutput>) or communicate with other
|
---|
1557 | virtual machines using internal networking
|
---|
1558 | (<computeroutput>intnet</computeroutput>) or host-only networking
|
---|
1559 | (<computeroutput>hostonly</computeroutput>) or access to rarely used
|
---|
1560 | sub-modes
|
---|
1561 | (<computeroutput>generic</computeroutput>). These options correspond
|
---|
1562 | to the modes which are described in detail in <xref
|
---|
1563 | linkend="networkingmodes" />.</para>
|
---|
1564 | </listitem>
|
---|
1565 |
|
---|
1566 | <listitem>
|
---|
1567 | <para>With the "nictrace" options, you can optionally trace
|
---|
1568 | network traffic by dumping it to a file, for debugging
|
---|
1569 | purposes.</para>
|
---|
1570 |
|
---|
1571 | <para>With <computeroutput>--nictrace<1-N>
|
---|
1572 | on|off</computeroutput>, you can enable network tracing for a
|
---|
1573 | particular virtual network card.</para>
|
---|
1574 |
|
---|
1575 | <para>If enabled, you must specify with
|
---|
1576 | <computeroutput>--nictracefile<1-N>
|
---|
1577 | <filename></computeroutput> what file the trace should be
|
---|
1578 | logged to.</para>
|
---|
1579 | </listitem>
|
---|
1580 |
|
---|
1581 | <!-- @todo r=andy Document nicpromisc -->
|
---|
1582 |
|
---|
1583 | <listitem>
|
---|
1584 | <para><computeroutput>nicproperty<1-N>
|
---|
1585 | <paramname>="paramvalue"</computeroutput>:
|
---|
1586 | This option, in combination with "nicgenericdrv" allows you to
|
---|
1587 | pass parameters to rarely-used network backends.</para><para>
|
---|
1588 | Those parameters are backend engine-specific, and are different
|
---|
1589 | between UDP Tunnel and the VDE backend drivers. For example,
|
---|
1590 | please see <xref linkend="network_udp_tunnel" />.
|
---|
1591 | </para>
|
---|
1592 | </listitem>
|
---|
1593 |
|
---|
1594 | <listitem>
|
---|
1595 | <para>The <computeroutput>guestmemoryballoon</computeroutput>
|
---|
1596 | operation changes the size of the guest memory balloon, that is,
|
---|
1597 | memory allocated by the VirtualBox Guest Additions from the guest
|
---|
1598 | operating system and returned to the hypervisor for re-use by other
|
---|
1599 | virtual machines. This must be specified in megabytes. For details,
|
---|
1600 | see <xref linkend="guestadd-balloon" />.</para>
|
---|
1601 | </listitem>
|
---|
1602 |
|
---|
1603 | <listitem>
|
---|
1604 | <para><computeroutput>usbattach</computeroutput> and
|
---|
1605 | <computeroutput>usbdettach</computeroutput> make host USB devices
|
---|
1606 | visible to the virtual machine on the fly, without the need for
|
---|
1607 | creating filters first. The USB devices can be specified by UUID
|
---|
1608 | (unique identifier) or by address on the host system.</para>
|
---|
1609 |
|
---|
1610 | <para>You can use <computeroutput>VBoxManage list
|
---|
1611 | usbhost</computeroutput> to locate this information.</para>
|
---|
1612 | </listitem>
|
---|
1613 |
|
---|
1614 | <listitem>
|
---|
1615 | <para><computeroutput>clipboard
|
---|
1616 | disabled|hosttoguest|guesttohost|bidirectional</computeroutput>:
|
---|
1617 | With this setting, you can select if and how the guest or host
|
---|
1618 | operating system's clipboard should be shared with the host or guest;
|
---|
1619 | see <xref linkend="generalsettings" />. This requires that the Guest
|
---|
1620 | Additions be installed in the virtual machine.</para>
|
---|
1621 | </listitem>
|
---|
1622 |
|
---|
1623 | <listitem>
|
---|
1624 | <para><computeroutput>draganddrop
|
---|
1625 | disabled|hosttoguest|guesttohost|bidirectional</computeroutput>:
|
---|
1626 | With this setting, you can select the current drag'n drop mode
|
---|
1627 | being used between the host and the virtual machine;
|
---|
1628 | see <xref linkend="guestadd-dnd" />. This requires that the Guest
|
---|
1629 | Additions be installed in the virtual machine.</para>
|
---|
1630 | </listitem>
|
---|
1631 |
|
---|
1632 | <listitem>
|
---|
1633 | <para><computeroutput>vrde on|off</computeroutput> lets you enable or
|
---|
1634 | disable the VRDE server, if it is installed.</para>
|
---|
1635 | </listitem>
|
---|
1636 |
|
---|
1637 | <listitem>
|
---|
1638 | <para><computeroutput>vrdeport default|<ports></computeroutput>
|
---|
1639 | changes the port or a range of ports that the VRDE server can bind to;
|
---|
1640 | "default" or "0" means port 3389, the standard port for RDP. For
|
---|
1641 | details, see the description for the
|
---|
1642 | <computeroutput>--vrdeport</computeroutput> option in <xref
|
---|
1643 | linkend="vboxmanage-modifyvm-other" />.</para>
|
---|
1644 | </listitem>
|
---|
1645 |
|
---|
1646 |
|
---|
1647 | <listitem>
|
---|
1648 | <para><computeroutput>setvideomodehint</computeroutput> requests that
|
---|
1649 | the guest system change to a particular video mode. This requires that
|
---|
1650 | the Guest Additions be installed, and will not work for all guest
|
---|
1651 | systems.</para>
|
---|
1652 | </listitem>
|
---|
1653 |
|
---|
1654 | <listitem>
|
---|
1655 | <para><computeroutput>screenshotpng</computeroutput> takes a screenshot
|
---|
1656 | of the guest display and saves it in PNG format.</para>
|
---|
1657 | </listitem>
|
---|
1658 |
|
---|
1659 | <listitem>
|
---|
1660 | <para><computeroutput>vcpenabled on|off</computeroutput> if enabled
|
---|
1661 | VirtualBox uses video recording to
|
---|
1662 | record VM session into webm/vp8 file.</para>
|
---|
1663 | </listitem>
|
---|
1664 |
|
---|
1665 | <listitem>
|
---|
1666 | <para><computeroutput>vcpscreens</computeroutput> determines for which
|
---|
1667 | screens video recording is enabled.</para>
|
---|
1668 | </listitem>
|
---|
1669 |
|
---|
1670 | <listitem>
|
---|
1671 | <para><computeroutput>vcpfile</computeroutput> determines the filename
|
---|
1672 | VirtualBox uses to save the recorded content. This setting cannot be changed
|
---|
1673 | while video capturing is enabled.</para>
|
---|
1674 | </listitem>
|
---|
1675 |
|
---|
1676 | <listitem>
|
---|
1677 | <para><computeroutput>vcpwidth</computeroutput> determines the horizontal
|
---|
1678 | resolution of the recorded video. This setting cannot be changed while
|
---|
1679 | video capturing is enabled.</para>
|
---|
1680 | </listitem>
|
---|
1681 |
|
---|
1682 | <listitem>
|
---|
1683 | <para><computeroutput>vcpheight</computeroutput> determines the vertical
|
---|
1684 | resolution of the recorded video. This setting cannot be changed while
|
---|
1685 | video capturing is enabled.</para>
|
---|
1686 | </listitem>
|
---|
1687 |
|
---|
1688 | <listitem>
|
---|
1689 | <para><computeroutput>vcprate</computeroutput> determines the bitrate
|
---|
1690 | in kilobits per second. Increasing this value makes the video look better
|
---|
1691 | for the cost of an increased file size. This setting cannot be changed
|
---|
1692 | while video capturing is enabled.</para>
|
---|
1693 | </listitem>
|
---|
1694 |
|
---|
1695 | <listitem>
|
---|
1696 | <para><computeroutput>vcpfps</computeroutput> determines the maximum
|
---|
1697 | number of frames per second. Frames with a higher frequency will be skipped.
|
---|
1698 | Reducing this value increases the number of skipped frames and reduces the
|
---|
1699 | file size. This setting cannot be changed while video capturing
|
---|
1700 | is enabled.</para>
|
---|
1701 | </listitem>
|
---|
1702 |
|
---|
1703 | <listitem>
|
---|
1704 | <para><computeroutput>vcpmaxtime</computeroutput> determines the maximum time
|
---|
1705 | video capturing works. The capture stops when the defined time interval
|
---|
1706 | has elapsed. If this value is zero the capturing is not limited
|
---|
1707 | by time. This setting cannot be changed while video capturing is enabled.</para>
|
---|
1708 | </listitem>
|
---|
1709 |
|
---|
1710 | <listitem>
|
---|
1711 | <para><computeroutput>vcpmaxsize</computeroutput> determines the maximum
|
---|
1712 | size of captured video file in MB. The capture stops when captured video file size
|
---|
1713 | has reached the defined. If this value is zero the capturing
|
---|
1714 | will not be limited by file size. This setting cannot be changed
|
---|
1715 | while video capturing is enabled.</para>
|
---|
1716 | </listitem>
|
---|
1717 |
|
---|
1718 | <listitem>
|
---|
1719 | <para><computeroutput>vcpoptions</computeroutput> contains any additional
|
---|
1720 | video capturing options required in comma-separated key=value format. This setting
|
---|
1721 | cannot be changed while video capturing is enabled.</para>
|
---|
1722 | </listitem>
|
---|
1723 |
|
---|
1724 | <listitem>
|
---|
1725 | <para>The <computeroutput>setcredentials</computeroutput> operation is
|
---|
1726 | used for remote logons in Windows guests. For details, please refer to
|
---|
1727 | <xref linkend="autologon" />.</para>
|
---|
1728 | </listitem>
|
---|
1729 |
|
---|
1730 | <!-- @todo r=andy Document teleport! -->
|
---|
1731 |
|
---|
1732 | <listitem>
|
---|
1733 | <para><computeroutput>--plugcpu|unplugcpu
|
---|
1734 | <id></computeroutput>: If CPU hot-plugging is enabled, this adds
|
---|
1735 | a virtual CPU to the virtual machines (or removes one).
|
---|
1736 | <computeroutput><id></computeroutput> specifies the index of
|
---|
1737 | the virtual CPU to be added or removed and must be a number from 0
|
---|
1738 | to the maximum no. of CPUs configured. CPU 0 can never be removed.</para>
|
---|
1739 | </listitem>
|
---|
1740 |
|
---|
1741 | <listitem>
|
---|
1742 | <para>The <computeroutput>cpuexecutioncap
|
---|
1743 | <1-100></computeroutput>: This operation controls how much cpu
|
---|
1744 | time a virtual CPU can use. A value of 50 implies a single virtual CPU
|
---|
1745 | can use up to 50% of a single host CPU.</para>
|
---|
1746 | </listitem>
|
---|
1747 |
|
---|
1748 | <!-- @todo r=andy Document webcam! -->
|
---|
1749 |
|
---|
1750 | </itemizedlist>
|
---|
1751 | </sect1>
|
---|
1752 |
|
---|
1753 | <sect1>
|
---|
1754 | <title>VBoxManage discardstate</title>
|
---|
1755 |
|
---|
1756 | <para>This command discards the saved state of a virtual machine which is
|
---|
1757 | not currently running, which will cause its operating system to restart
|
---|
1758 | next time you start it. This is the equivalent of pulling out the power
|
---|
1759 | cable on a physical machine, and should be avoided if possible.</para>
|
---|
1760 | </sect1>
|
---|
1761 |
|
---|
1762 | <sect1>
|
---|
1763 | <title>VBoxManage adoptstate</title>
|
---|
1764 |
|
---|
1765 | <para>If you have a saved state file (<computeroutput>.sav</computeroutput>)
|
---|
1766 | that is separate from the VM configuration, you can use this command to
|
---|
1767 | "adopt" the file. This will change the VM to saved state and when you
|
---|
1768 | start it, VirtualBox will attempt to restore it from the saved state file
|
---|
1769 | you indicated. This command should only be used in special setups.</para>
|
---|
1770 | </sect1>
|
---|
1771 |
|
---|
1772 | <sect1>
|
---|
1773 | <title>VBoxManage snapshot</title>
|
---|
1774 |
|
---|
1775 | <para>This command is used to control snapshots from the command line. A
|
---|
1776 | snapshot consists of a complete copy of the virtual machine settings,
|
---|
1777 | copied at the time when the snapshot was taken, and optionally a virtual
|
---|
1778 | machine saved state file if the snapshot was taken while the machine was
|
---|
1779 | running. After a snapshot has been taken, VirtualBox creates differencing
|
---|
1780 | hard disk for each normal hard disk associated with the machine so that
|
---|
1781 | when a snapshot is restored, the contents of the virtual machine's virtual
|
---|
1782 | hard disks can be quickly reset by simply dropping the pre-existing
|
---|
1783 | differencing files.</para>
|
---|
1784 |
|
---|
1785 | <para>The <computeroutput>take</computeroutput> operation takes a snapshot
|
---|
1786 | of the current state of the virtual machine. You must supply a name for
|
---|
1787 | the snapshot and can optionally supply a description. The new snapshot is
|
---|
1788 | inserted into the snapshots tree as a child of the current snapshot and
|
---|
1789 | then becomes the new current snapshot. The
|
---|
1790 | <computeroutput>--description</computeroutput> parameter allows to
|
---|
1791 | describe the snapshot. If <computeroutput>--live</computeroutput>
|
---|
1792 | is specified, the VM will not be stopped during the snapshot creation
|
---|
1793 | (live smapshotting).</para>
|
---|
1794 |
|
---|
1795 | <para>The <computeroutput>delete</computeroutput> operation deletes a
|
---|
1796 | snapshot (specified by name or by UUID). This can take a while to finish
|
---|
1797 | since the differencing images associated with the snapshot might need to
|
---|
1798 | be merged with their child differencing images.</para>
|
---|
1799 |
|
---|
1800 | <para>The <computeroutput>restore</computeroutput> operation will restore
|
---|
1801 | the given snapshot (specified by name or by UUID) by resetting the virtual
|
---|
1802 | machine's settings and current state to that of the snapshot. The previous
|
---|
1803 | current state of the machine will be lost. After this, the given snapshot
|
---|
1804 | becomes the new "current" snapshot so that subsequent snapshots are
|
---|
1805 | inserted under the snapshot from which was restored.</para>
|
---|
1806 |
|
---|
1807 | <para>The <computeroutput>restorecurrent</computeroutput> operation is a
|
---|
1808 | shortcut to restore the current snapshot (i.e. the snapshot from which the
|
---|
1809 | current state is derived). This subcommand is equivalent to using the
|
---|
1810 | "restore" subcommand with the name or UUID of the current snapshot, except
|
---|
1811 | that it avoids the extra step of determining that name or UUID.</para>
|
---|
1812 |
|
---|
1813 | <para>With the <computeroutput>edit</computeroutput> operation, you can
|
---|
1814 | change the name or description of an existing snapshot.</para>
|
---|
1815 |
|
---|
1816 | <para>With the <computeroutput>showvminfo</computeroutput> operation, you
|
---|
1817 | can view the virtual machine settings that were stored with an existing
|
---|
1818 | snapshot.</para>
|
---|
1819 | </sect1>
|
---|
1820 |
|
---|
1821 | <sect1 id="vboxmanage-closemedium">
|
---|
1822 | <title>VBoxManage closemedium</title>
|
---|
1823 |
|
---|
1824 | <para>This commands removes a hard disk, DVD or floppy image from a
|
---|
1825 | VirtualBox media registry.<footnote>
|
---|
1826 | <para>Before VirtualBox 4.0, it was necessary to call VBoxManage
|
---|
1827 | openmedium before a medium could be attached to a virtual machine;
|
---|
1828 | that call "registered" the medium with the global VirtualBox media
|
---|
1829 | registry. With VirtualBox 4.0 this is no longer necessary; media are
|
---|
1830 | added to media registries automatically. The "closemedium" call has
|
---|
1831 | been retained, however, to allow for explicitly removing a medium from
|
---|
1832 | a registry.</para>
|
---|
1833 | </footnote></para>
|
---|
1834 |
|
---|
1835 | <para>Optionally, you can request that the image be deleted. You will get
|
---|
1836 | appropriate diagnostics that the deletion failed, however the image will
|
---|
1837 | become unregistered in any case.</para>
|
---|
1838 | </sect1>
|
---|
1839 |
|
---|
1840 | <sect1 id="vboxmanage-storageattach">
|
---|
1841 | <title>VBoxManage storageattach</title>
|
---|
1842 |
|
---|
1843 | <para>This command attaches/modifies/removes a storage medium connected to
|
---|
1844 | a storage controller that was previously added with the
|
---|
1845 | <computeroutput>storagectl</computeroutput> command (see the previous
|
---|
1846 | section). The syntax is as follows:</para>
|
---|
1847 |
|
---|
1848 | <screen>VBoxManage storageattach <uuid|vmname>
|
---|
1849 | --storagectl <name>
|
---|
1850 | [--port <number>]
|
---|
1851 | [--device <number>]
|
---|
1852 | [--type dvddrive|hdd|fdd]
|
---|
1853 | [--medium none|emptydrive|
|
---|
1854 | <uuid>|<filename>|host:<drive>|iscsi]
|
---|
1855 | [--mtype normal|writethrough|immutable|shareable]
|
---|
1856 | [--comment <text>]
|
---|
1857 | [--setuuid <uuid>]
|
---|
1858 | [--setparentuuid <uuid>]
|
---|
1859 | [--passthrough on|off]
|
---|
1860 | [--tempeject on|off]
|
---|
1861 | [--nonrotational on|off]
|
---|
1862 | [--discard on|off]
|
---|
1863 | [--bandwidthgroup name|none]
|
---|
1864 | [--forceunmount]
|
---|
1865 | [--server <name>|<ip>]
|
---|
1866 | [--target <target>]
|
---|
1867 | [--tport <port>]
|
---|
1868 | [--lun <lun>]
|
---|
1869 | [--encodedlun <lun>]
|
---|
1870 | [--username <username>]
|
---|
1871 | [--password <password>]
|
---|
1872 | [--initiator <initiator>]
|
---|
1873 | [--intnet]</screen>
|
---|
1874 |
|
---|
1875 | <para>A number of parameters are commonly required; the ones at the end of
|
---|
1876 | the list are required only for iSCSI targets (see below).</para>
|
---|
1877 |
|
---|
1878 | <para>The common parameters are:<glosslist>
|
---|
1879 | <glossentry>
|
---|
1880 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
1881 |
|
---|
1882 | <glossdef>
|
---|
1883 | <para>The VM UUID or VM Name. Mandatory.</para>
|
---|
1884 | </glossdef>
|
---|
1885 | </glossentry>
|
---|
1886 |
|
---|
1887 | <glossentry>
|
---|
1888 | <glossterm><computeroutput>--storagectl</computeroutput></glossterm>
|
---|
1889 |
|
---|
1890 | <glossdef>
|
---|
1891 | <para>Name of the storage controller. Mandatory. The list of the
|
---|
1892 | storage controllers currently attached to a VM can be obtained
|
---|
1893 | with <computeroutput>VBoxManage showvminfo</computeroutput>; see
|
---|
1894 | <xref linkend="vboxmanage-showvminfo" />.</para>
|
---|
1895 | </glossdef>
|
---|
1896 | </glossentry>
|
---|
1897 |
|
---|
1898 | <glossentry>
|
---|
1899 | <glossterm><computeroutput>--port</computeroutput></glossterm>
|
---|
1900 |
|
---|
1901 | <glossdef>
|
---|
1902 | <para>The number of the storage controller's port which is to be
|
---|
1903 | modified. Mandatory, unless the storage controller has only a
|
---|
1904 | single port.</para>
|
---|
1905 | </glossdef>
|
---|
1906 | </glossentry>
|
---|
1907 |
|
---|
1908 | <glossentry>
|
---|
1909 | <glossterm><computeroutput>--device</computeroutput></glossterm>
|
---|
1910 |
|
---|
1911 | <glossdef>
|
---|
1912 | <para>The number of the port's device which is to be modified.
|
---|
1913 | Mandatory, unless the storage controller has only a single device
|
---|
1914 | per port.</para>
|
---|
1915 | </glossdef>
|
---|
1916 | </glossentry>
|
---|
1917 |
|
---|
1918 | <glossentry>
|
---|
1919 | <glossterm><computeroutput>--type</computeroutput></glossterm>
|
---|
1920 |
|
---|
1921 | <glossdef>
|
---|
1922 | <para>Define the type of the drive to which the medium is being
|
---|
1923 | attached/detached/modified. This argument can only be omitted if
|
---|
1924 | the type of medium can be determined from either the medium given
|
---|
1925 | with the <computeroutput>--medium</computeroutput> argument or
|
---|
1926 | from a previous medium attachment.</para>
|
---|
1927 | </glossdef>
|
---|
1928 | </glossentry>
|
---|
1929 |
|
---|
1930 | <glossentry>
|
---|
1931 | <glossterm><computeroutput>--medium</computeroutput></glossterm>
|
---|
1932 |
|
---|
1933 | <glossdef>
|
---|
1934 | <para>Specifies what is to be attached. The following values are
|
---|
1935 | supported:<itemizedlist>
|
---|
1936 | <listitem>
|
---|
1937 | <para>"none": Any existing device should be removed from the
|
---|
1938 | given slot.</para>
|
---|
1939 | </listitem>
|
---|
1940 |
|
---|
1941 | <listitem>
|
---|
1942 | <para>"emptydrive": For a virtual DVD or floppy drive only,
|
---|
1943 | this makes the device slot behaves like a removeable drive
|
---|
1944 | into which no media has been inserted.</para>
|
---|
1945 | </listitem>
|
---|
1946 |
|
---|
1947 | <listitem>
|
---|
1948 | <para>"additions": For a virtual DVD drive only, this
|
---|
1949 | attaches the <emphasis>VirtualBox Guest Additions</emphasis>
|
---|
1950 | image to the given device slot.</para>
|
---|
1951 | </listitem>
|
---|
1952 |
|
---|
1953 | <listitem>
|
---|
1954 | <para>If a UUID is specified, it must be the UUID of a
|
---|
1955 | storage medium that is already known to VirtualBox (e.g.
|
---|
1956 | because it has been attached to another virtual machine).
|
---|
1957 | See <xref linkend="vboxmanage-list" /> for how to list known
|
---|
1958 | media. This medium is then attached to the given device
|
---|
1959 | slot.</para>
|
---|
1960 | </listitem>
|
---|
1961 |
|
---|
1962 | <listitem>
|
---|
1963 | <para>If a filename is specified, it must be the full path
|
---|
1964 | of an existing disk image (ISO, RAW, VDI, VMDK or other),
|
---|
1965 | which is then attached to the given device slot.</para>
|
---|
1966 | </listitem>
|
---|
1967 |
|
---|
1968 | <listitem>
|
---|
1969 | <para>"host:<drive>": For a virtual DVD or floppy
|
---|
1970 | drive only, this connects the given device slot to the
|
---|
1971 | specified DVD or floppy drive on the host computer.</para>
|
---|
1972 | </listitem>
|
---|
1973 |
|
---|
1974 | <listitem>
|
---|
1975 | <para>"iscsi": For virtual hard disks only, this allows for
|
---|
1976 | specifying an iSCSI target. In this case, more parameters
|
---|
1977 | must be given; see below.</para>
|
---|
1978 | </listitem>
|
---|
1979 | </itemizedlist></para>
|
---|
1980 |
|
---|
1981 | <para>Some of the above changes, in particular for removeable
|
---|
1982 | media (floppies and CDs/DVDs), can be effected while a VM is
|
---|
1983 | running. Others (device changes or changes in hard disk device
|
---|
1984 | slots) require the VM to be powered off.</para>
|
---|
1985 | </glossdef>
|
---|
1986 | </glossentry>
|
---|
1987 |
|
---|
1988 | <glossentry>
|
---|
1989 | <glossterm><computeroutput>--mtype</computeroutput></glossterm>
|
---|
1990 |
|
---|
1991 | <glossdef>
|
---|
1992 | <para>Defines how this medium behaves with respect to snapshots
|
---|
1993 | and write operations. See <xref linkend="hdimagewrites" /> for
|
---|
1994 | details.</para>
|
---|
1995 | </glossdef>
|
---|
1996 | </glossentry>
|
---|
1997 |
|
---|
1998 | <glossentry>
|
---|
1999 | <glossterm><computeroutput>--comment</computeroutput></glossterm>
|
---|
2000 |
|
---|
2001 | <glossdef>
|
---|
2002 | <para>Any description that you want to have stored with this
|
---|
2003 | medium (optional; for example, for an iSCSI target, "Big storage
|
---|
2004 | server downstairs"). This is purely descriptive and not needed for
|
---|
2005 | the medium to function correctly.</para>
|
---|
2006 | </glossdef>
|
---|
2007 | </glossentry>
|
---|
2008 |
|
---|
2009 | <glossentry>
|
---|
2010 | <glossterm><computeroutput>--setuuid, --setparentuuid</computeroutput></glossterm>
|
---|
2011 |
|
---|
2012 | <glossdef>
|
---|
2013 | <para>Modifies the UUID or parent UUID of a medium before
|
---|
2014 | attaching it to a VM. This is an expert option. Inappropriate use
|
---|
2015 | can make the medium unusable or lead to broken VM configurations
|
---|
2016 | if any other VM is referring to the same media already. The most
|
---|
2017 | frequently used variant is <code>--setuuid ""</code>, which assigns
|
---|
2018 | a new (random) UUID to an image. This is useful to resolve the
|
---|
2019 | duplicate UUID errors if one duplicated an image using file copy
|
---|
2020 | utilities.</para>
|
---|
2021 | </glossdef>
|
---|
2022 | </glossentry>
|
---|
2023 |
|
---|
2024 | <glossentry>
|
---|
2025 | <glossterm><computeroutput>--passthrough</computeroutput></glossterm>
|
---|
2026 |
|
---|
2027 | <glossdef>
|
---|
2028 | <para>For a virtual DVD drive only, you can enable DVD writing
|
---|
2029 | support (currently experimental; see <xref
|
---|
2030 | linkend="storage-cds" />).</para>
|
---|
2031 | </glossdef>
|
---|
2032 | </glossentry>
|
---|
2033 |
|
---|
2034 | <glossentry>
|
---|
2035 | <glossterm><computeroutput>--tempeject</computeroutput></glossterm>
|
---|
2036 |
|
---|
2037 | <glossdef>
|
---|
2038 | <para>For a virtual DVD drive only, you can configure the behavior
|
---|
2039 | for guest-triggered medium eject. If this is set to "on", the eject
|
---|
2040 | has only temporary effects. If the VM is powered off and restarted
|
---|
2041 | the originally configured medium will be still in the drive.</para>
|
---|
2042 | </glossdef>
|
---|
2043 | </glossentry>
|
---|
2044 |
|
---|
2045 | <glossentry>
|
---|
2046 | <glossterm><computeroutput>--nonrotational</computeroutput></glossterm>
|
---|
2047 |
|
---|
2048 | <glossdef>
|
---|
2049 | <para>This switch allows to enable the non-rotational flag for virtual
|
---|
2050 | hard disks. Some guests (i.e. Windows 7+) treat such disks like SSDs
|
---|
2051 | and don't perform disk fragmentation on such media.
|
---|
2052 | </para>
|
---|
2053 | </glossdef>
|
---|
2054 | </glossentry>
|
---|
2055 |
|
---|
2056 | <glossentry>
|
---|
2057 | <glossterm><computeroutput>--bandwidthgroup</computeroutput></glossterm>
|
---|
2058 |
|
---|
2059 | <glossdef>
|
---|
2060 | <para>Sets the bandwidth group to use for the given device; see
|
---|
2061 | <xref linkend="storage-bandwidth-limit" />.</para>
|
---|
2062 | </glossdef>
|
---|
2063 | </glossentry>
|
---|
2064 |
|
---|
2065 | <glossentry>
|
---|
2066 | <glossterm><computeroutput>--forceunmount</computeroutput></glossterm>
|
---|
2067 |
|
---|
2068 | <glossdef>
|
---|
2069 | <para>For a virtual DVD or floppy drive only, this forcibly
|
---|
2070 | unmounts the DVD/CD/Floppy or mounts a new DVD/CD/Floppy even if
|
---|
2071 | the previous one is locked down by the guest for reading. Again,
|
---|
2072 | see <xref linkend="storage-cds" /> for details.</para>
|
---|
2073 | </glossdef>
|
---|
2074 | </glossentry>
|
---|
2075 | </glosslist></para>
|
---|
2076 |
|
---|
2077 | <para>When "iscsi" is used with the
|
---|
2078 | <computeroutput>--medium</computeroutput> parameter for iSCSI support --
|
---|
2079 | see <xref linkend="storage-iscsi" /> --, additional parameters must or can
|
---|
2080 | be used:<glosslist>
|
---|
2081 | <glossentry>
|
---|
2082 | <glossterm><computeroutput>--server</computeroutput></glossterm>
|
---|
2083 |
|
---|
2084 | <glossdef>
|
---|
2085 | <para>The host name or IP address of the iSCSI target;
|
---|
2086 | required.</para>
|
---|
2087 | </glossdef>
|
---|
2088 | </glossentry>
|
---|
2089 |
|
---|
2090 | <glossentry>
|
---|
2091 | <glossterm><computeroutput>--target</computeroutput></glossterm>
|
---|
2092 |
|
---|
2093 | <glossdef>
|
---|
2094 | <para>Target name string. This is determined by the iSCSI target
|
---|
2095 | and used to identify the storage resource; required.</para>
|
---|
2096 | </glossdef>
|
---|
2097 | </glossentry>
|
---|
2098 |
|
---|
2099 | <glossentry>
|
---|
2100 | <glossterm><computeroutput>--tport</computeroutput></glossterm>
|
---|
2101 |
|
---|
2102 | <glossdef>
|
---|
2103 | <para>TCP/IP port number of the iSCSI service on the target
|
---|
2104 | (optional).</para>
|
---|
2105 | </glossdef>
|
---|
2106 | </glossentry>
|
---|
2107 |
|
---|
2108 | <glossentry>
|
---|
2109 | <glossterm><computeroutput>--lun</computeroutput></glossterm>
|
---|
2110 |
|
---|
2111 | <glossdef>
|
---|
2112 | <para>Logical Unit Number of the target resource (optional).
|
---|
2113 | Often, this value is zero.</para>
|
---|
2114 | </glossdef>
|
---|
2115 | </glossentry>
|
---|
2116 |
|
---|
2117 | <glossentry>
|
---|
2118 | <glossterm><computeroutput>--username, --password</computeroutput></glossterm>
|
---|
2119 |
|
---|
2120 | <glossdef>
|
---|
2121 | <para>Username and password (initiator secret) for target
|
---|
2122 | authentication, if required (optional).<note>
|
---|
2123 | <para>Username and password are stored without
|
---|
2124 | encryption (i.e. in clear text) in the XML machine
|
---|
2125 | configuration file if no settings password is provided.
|
---|
2126 | When a settings password was specified the first time,
|
---|
2127 | the password is stored encrypted.</para>
|
---|
2128 | </note></para>
|
---|
2129 | </glossdef>
|
---|
2130 | </glossentry>
|
---|
2131 |
|
---|
2132 | <glossentry>
|
---|
2133 | <glossterm><computeroutput>--intnet</computeroutput></glossterm>
|
---|
2134 |
|
---|
2135 | <glossdef>
|
---|
2136 | <para>If specified, connect to the iSCSI target via Internal
|
---|
2137 | Networking. This needs further configuration which is described in
|
---|
2138 | <xref linkend="iscsi-intnet" />.</para>
|
---|
2139 | </glossdef>
|
---|
2140 | </glossentry>
|
---|
2141 | </glosslist></para>
|
---|
2142 | </sect1>
|
---|
2143 |
|
---|
2144 | <sect1 id="vboxmanage-storagectl">
|
---|
2145 | <title>VBoxManage storagectl</title>
|
---|
2146 |
|
---|
2147 | <para>This command attaches/modifies/removes a storage controller. After
|
---|
2148 | this, virtual media can be attached to the controller with the
|
---|
2149 | <computeroutput>storageattach</computeroutput> command (see the next
|
---|
2150 | section).</para>
|
---|
2151 |
|
---|
2152 | <para>The syntax is as follows:</para>
|
---|
2153 |
|
---|
2154 | <screen>VBoxManage storagectl <uuid|vmname>
|
---|
2155 | --name <name>
|
---|
2156 | [--add <ide/sata/scsi/floppy>]
|
---|
2157 | [--controller <LsiLogic|LSILogicSAS|BusLogic|
|
---|
2158 | IntelAhci|PIIX3|PIIX4|ICH6|I82078>]
|
---|
2159 | [--sataportcount <1-30>]
|
---|
2160 | [--hostiocache on|off]
|
---|
2161 | [--bootable on|off]
|
---|
2162 | [--remove]</screen>
|
---|
2163 |
|
---|
2164 | <para>where the parameters mean: <glosslist>
|
---|
2165 | <glossentry>
|
---|
2166 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
2167 |
|
---|
2168 | <glossdef>
|
---|
2169 | <para>The VM UUID or VM Name. Mandatory.</para>
|
---|
2170 | </glossdef>
|
---|
2171 | </glossentry>
|
---|
2172 |
|
---|
2173 | <glossentry>
|
---|
2174 | <glossterm><computeroutput>--name</computeroutput></glossterm>
|
---|
2175 |
|
---|
2176 | <glossdef>
|
---|
2177 | <para>Name of the storage controller. Mandatory.</para>
|
---|
2178 | </glossdef>
|
---|
2179 | </glossentry>
|
---|
2180 |
|
---|
2181 | <glossentry>
|
---|
2182 | <glossterm><computeroutput>--add</computeroutput></glossterm>
|
---|
2183 |
|
---|
2184 | <glossdef>
|
---|
2185 | <para>Define the type of the system bus to which the storage
|
---|
2186 | controller must be connected.</para>
|
---|
2187 | </glossdef>
|
---|
2188 | </glossentry>
|
---|
2189 |
|
---|
2190 | <glossentry>
|
---|
2191 | <glossterm><computeroutput>--controller</computeroutput></glossterm>
|
---|
2192 |
|
---|
2193 | <glossdef>
|
---|
2194 | <para>Allows to choose the type of chipset being emulated for the
|
---|
2195 | given storage controller.</para>
|
---|
2196 | </glossdef>
|
---|
2197 | </glossentry>
|
---|
2198 |
|
---|
2199 | <glossentry>
|
---|
2200 | <glossterm><computeroutput>--sataportcount</computeroutput></glossterm>
|
---|
2201 |
|
---|
2202 | <glossdef>
|
---|
2203 | <para>This determines how many ports the SATA controller should
|
---|
2204 | support.</para>
|
---|
2205 | </glossdef>
|
---|
2206 | </glossentry>
|
---|
2207 |
|
---|
2208 | <glossentry>
|
---|
2209 | <glossterm><computeroutput>--hostiocache</computeroutput></glossterm>
|
---|
2210 |
|
---|
2211 | <glossdef>
|
---|
2212 | <para>Configures the use of the host I/O cache for all disk images
|
---|
2213 | attached to this storage controller. For details, please see <xref
|
---|
2214 | linkend="iocaching" />.</para>
|
---|
2215 | </glossdef>
|
---|
2216 | </glossentry>
|
---|
2217 |
|
---|
2218 | <glossentry>
|
---|
2219 | <glossterm><computeroutput>--bootable</computeroutput></glossterm>
|
---|
2220 |
|
---|
2221 | <glossdef>
|
---|
2222 | <para>Selects whether this controller is bootable.</para>
|
---|
2223 | </glossdef>
|
---|
2224 | </glossentry>
|
---|
2225 |
|
---|
2226 | <glossentry>
|
---|
2227 | <glossterm><computeroutput>--remove</computeroutput></glossterm>
|
---|
2228 |
|
---|
2229 | <glossdef>
|
---|
2230 | <para>Removes the storage controller from the VM config.</para>
|
---|
2231 | </glossdef>
|
---|
2232 | </glossentry>
|
---|
2233 | </glosslist></para>
|
---|
2234 | </sect1>
|
---|
2235 |
|
---|
2236 | <sect1>
|
---|
2237 | <title>VBoxManage bandwidthctl</title>
|
---|
2238 |
|
---|
2239 | <para>This command creates/deletes/modifies/shows bandwidth groups of the given
|
---|
2240 | virtual machine:<screen>VBoxManage bandwidthctl <uuid|vmname>
|
---|
2241 | add <name> --type disk|network --limit <megabytes per second>[k|m|g|K|M|G] |
|
---|
2242 | set <name> --limit <megabytes per second>[k|m|g|K|M|G] |
|
---|
2243 | remove <name> |
|
---|
2244 | list [--machinereadable]</screen></para>
|
---|
2245 |
|
---|
2246 | <para>The following subcommands are available:<itemizedlist>
|
---|
2247 | <listitem>
|
---|
2248 | <para><computeroutput>add</computeroutput>, creates a new bandwidth
|
---|
2249 | group of given type.</para>
|
---|
2250 | </listitem>
|
---|
2251 | <listitem>
|
---|
2252 | <para><computeroutput>set</computeroutput>, modifies the limit for an
|
---|
2253 | existing bandwidth group.</para>
|
---|
2254 | </listitem>
|
---|
2255 | <listitem>
|
---|
2256 | <para><computeroutput>remove</computeroutput>, destroys a bandwidth
|
---|
2257 | group.</para>
|
---|
2258 | </listitem>
|
---|
2259 | <listitem>
|
---|
2260 | <para><computeroutput>list</computeroutput>, shows all bandwidth groups
|
---|
2261 | defined for the given VM.</para>
|
---|
2262 | </listitem>
|
---|
2263 | </itemizedlist>
|
---|
2264 | </para>
|
---|
2265 | <para>The parameters mean:<glosslist>
|
---|
2266 | <glossentry>
|
---|
2267 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
2268 |
|
---|
2269 | <glossdef>
|
---|
2270 | <para>The VM UUID or VM Name. Mandatory.</para>
|
---|
2271 | </glossdef>
|
---|
2272 | </glossentry>
|
---|
2273 |
|
---|
2274 | <glossentry>
|
---|
2275 | <glossterm><computeroutput>--name</computeroutput></glossterm>
|
---|
2276 |
|
---|
2277 | <glossdef>
|
---|
2278 | <para>Name of the bandwidth group. Mandatory.</para>
|
---|
2279 | </glossdef>
|
---|
2280 | </glossentry>
|
---|
2281 |
|
---|
2282 | <glossentry>
|
---|
2283 | <glossterm><computeroutput>--type</computeroutput></glossterm>
|
---|
2284 |
|
---|
2285 | <glossdef>
|
---|
2286 | <para>Type of the bandwidth group. Mandatory. Two types are
|
---|
2287 | supported: <computeroutput>disk</computeroutput> and
|
---|
2288 | <computeroutput>network</computeroutput>. See
|
---|
2289 | <xref linkend="storage-bandwidth-limit" /> or
|
---|
2290 | <xref linkend="network_bandwidth_limit" /> for a description of a
|
---|
2291 | particular type.</para>
|
---|
2292 | </glossdef>
|
---|
2293 | </glossentry>
|
---|
2294 |
|
---|
2295 | <glossentry>
|
---|
2296 | <glossterm><computeroutput>--limit</computeroutput></glossterm>
|
---|
2297 |
|
---|
2298 | <glossdef>
|
---|
2299 | <para>Specifies the limit for the given group. Can be changed
|
---|
2300 | while the VM is running. The default unit is megabytes per
|
---|
2301 | second. The unit can be changed by specifying one of the
|
---|
2302 | following suffixes: <computeroutput>k</computeroutput> for kilobits/s, <computeroutput>m</computeroutput> for megabits/s, <computeroutput>g</computeroutput> for gigabits/s, <computeroutput>K</computeroutput> for kilobytes/s, <computeroutput>M</computeroutput> for megabytes/s, <computeroutput>G</computeroutput> for gigabytes/s.</para>
|
---|
2303 | </glossdef>
|
---|
2304 | </glossentry>
|
---|
2305 | </glosslist>
|
---|
2306 | <note>
|
---|
2307 | <para>The network bandwidth limits apply only to the traffic being sent by
|
---|
2308 | virtual machines. The traffic being received by VMs is unlimited.</para>
|
---|
2309 | </note>
|
---|
2310 | <note>
|
---|
2311 | <para>To remove a bandwidth group it must not be referenced by any disks
|
---|
2312 | or adapters in running VM.</para>
|
---|
2313 | </note>
|
---|
2314 | </para>
|
---|
2315 | </sect1>
|
---|
2316 |
|
---|
2317 | <sect1>
|
---|
2318 | <title>VBoxManage showhdinfo</title>
|
---|
2319 |
|
---|
2320 | <para>This command shows information about a virtual hard disk image,
|
---|
2321 | notably its size, its size on disk, its type and the virtual machines
|
---|
2322 | which use it.<note>
|
---|
2323 | <para>For compatibility with earlier versions of VirtualBox, the
|
---|
2324 | "showvdiinfo" command is also supported and mapped internally to the
|
---|
2325 | "showhdinfo" command.</para>
|
---|
2326 | </note></para>
|
---|
2327 | <para>The disk image must be specified either by its UUID (if the medium
|
---|
2328 | is registered) or by its filename. Registered images can be listed by
|
---|
2329 | <computeroutput>VBoxManage list hdds</computeroutput> (see <xref linkend="vboxmanage-list" />
|
---|
2330 | for more information). A filename must be specified as valid path, either
|
---|
2331 | as an absolute path or as a relative path starting from the current
|
---|
2332 | directory.</para>
|
---|
2333 | </sect1>
|
---|
2334 |
|
---|
2335 | <sect1 id="vboxmanage-createvdi">
|
---|
2336 | <title>VBoxManage createhd</title>
|
---|
2337 |
|
---|
2338 | <para>This command creates a new virtual hard disk image. The syntax is as
|
---|
2339 | follows:</para>
|
---|
2340 |
|
---|
2341 | <screen>VBoxManage createhd --filename <filename>
|
---|
2342 | --size <megabytes>
|
---|
2343 | [--format VDI|VMDK|VHD] (default: VDI)
|
---|
2344 | [--variant Standard,Fixed,Split2G,Stream,ESX]</screen>
|
---|
2345 |
|
---|
2346 | <para>where the parameters mean:<glosslist>
|
---|
2347 | <glossentry>
|
---|
2348 | <glossterm><computeroutput>--filename</computeroutput></glossterm>
|
---|
2349 |
|
---|
2350 | <glossdef>
|
---|
2351 | <para>Allows to choose a file name. Mandatory.</para>
|
---|
2352 | </glossdef>
|
---|
2353 | </glossentry>
|
---|
2354 |
|
---|
2355 | <glossentry>
|
---|
2356 | <glossterm><computeroutput>--size</computeroutput></glossterm>
|
---|
2357 |
|
---|
2358 | <glossdef>
|
---|
2359 | <para>Allows to define the image capacity, in 1 MiB units.
|
---|
2360 | Mandatory.</para>
|
---|
2361 | </glossdef>
|
---|
2362 | </glossentry>
|
---|
2363 |
|
---|
2364 | <glossentry>
|
---|
2365 | <glossterm><computeroutput>--format</computeroutput></glossterm>
|
---|
2366 |
|
---|
2367 | <glossdef>
|
---|
2368 | <para>Allows to choose a file format for the output file different
|
---|
2369 | from the file format of the input file.</para>
|
---|
2370 | </glossdef>
|
---|
2371 | </glossentry>
|
---|
2372 |
|
---|
2373 | <glossentry>
|
---|
2374 | <glossterm><computeroutput>--variant</computeroutput></glossterm>
|
---|
2375 |
|
---|
2376 | <glossdef>
|
---|
2377 | <para>Allows to choose a file format variant for the output file.
|
---|
2378 | It is a comma-separated list of variant flags. Not all
|
---|
2379 | combinations are supported, and specifying inconsistent flags will
|
---|
2380 | result in an error message.</para>
|
---|
2381 | </glossdef>
|
---|
2382 | </glossentry>
|
---|
2383 | </glosslist> <note>
|
---|
2384 | <para>For compatibility with earlier versions of VirtualBox, the
|
---|
2385 | "createvdi" command is also supported and mapped internally to the
|
---|
2386 | "createhd" command.</para>
|
---|
2387 | </note></para>
|
---|
2388 | </sect1>
|
---|
2389 |
|
---|
2390 | <sect1 id="vboxmanage-modifyvdi">
|
---|
2391 | <title>VBoxManage modifyhd</title>
|
---|
2392 |
|
---|
2393 | <para>With the <computeroutput>modifyhd</computeroutput> command, you can
|
---|
2394 | change the characteristics of a disk image after it has been
|
---|
2395 | created:<screen>VBoxManage modifyhd <uuid|filename>
|
---|
2396 | [--type normal|writethrough|immutable|shareable|
|
---|
2397 | readonly|multiattach]
|
---|
2398 | [--autoreset on|off]
|
---|
2399 | [--compact]
|
---|
2400 | [--resize <megabytes>|--resizebyte <bytes>]</screen><note>
|
---|
2401 | <para>Despite the "hd" in the subcommand name, the command works with
|
---|
2402 | all disk images, not only hard disks. For compatibility with earlier
|
---|
2403 | versions of VirtualBox, the "modifyvdi" command is also supported and
|
---|
2404 | mapped internally to the "modifyhd" command.</para>
|
---|
2405 | </note></para>
|
---|
2406 |
|
---|
2407 | <para>The disk image to modify must be specified either by its UUID
|
---|
2408 | (if the medium is registered) or by its filename. Registered images
|
---|
2409 | can be listed by <computeroutput>VBoxManage list hdds</computeroutput>
|
---|
2410 | (see <xref linkend="vboxmanage-list" /> for more information).
|
---|
2411 | A filename must be specified as valid path, either as an absolute path
|
---|
2412 | or as a relative path starting from the current directory.</para>
|
---|
2413 | <para>The following options are available:<itemizedlist>
|
---|
2414 | <listitem>
|
---|
2415 | <para>With the <computeroutput>--type</computeroutput> argument, you
|
---|
2416 | can change the type of an existing image between the normal,
|
---|
2417 | immutable, write-through and other modes; see <xref
|
---|
2418 | linkend="hdimagewrites" /> for details.</para>
|
---|
2419 | </listitem>
|
---|
2420 |
|
---|
2421 | <listitem>
|
---|
2422 | <para>For immutable (differencing) hard disks only, the
|
---|
2423 | <computeroutput>--autoreset on|off</computeroutput> option
|
---|
2424 | determines whether the disk is automatically reset on every VM
|
---|
2425 | startup (again, see <xref linkend="hdimagewrites" />). The default
|
---|
2426 | is "on".</para>
|
---|
2427 | </listitem>
|
---|
2428 |
|
---|
2429 | <listitem>
|
---|
2430 | <para>With the <computeroutput>--compact</computeroutput> option,
|
---|
2431 | can be used to compact disk images, i.e. remove blocks that only
|
---|
2432 | contains zeroes. This will shrink a dynamically allocated image
|
---|
2433 | again; it will reduce the <emphasis>physical</emphasis> size of the
|
---|
2434 | image without affecting the logical size of the virtual disk.
|
---|
2435 | Compaction works both for base images and for diff images created as
|
---|
2436 | part of a snapshot.</para>
|
---|
2437 |
|
---|
2438 | <para>For this operation to be effective, it is required that free
|
---|
2439 | space in the guest system first be zeroed out using a suitable
|
---|
2440 | software tool. For Windows guests, you can use the
|
---|
2441 | <computeroutput>sdelete</computeroutput> tool provided by Microsoft.
|
---|
2442 | Execute <computeroutput>sdelete -z</computeroutput> in the guest to
|
---|
2443 | zero the free disk space before compressing the virtual disk
|
---|
2444 | image. For Linux, use the <code>zerofree</code> utility which
|
---|
2445 | supports ext2/ext3 filesystems. For Mac OS X guests, use the
|
---|
2446 | <emphasis>Erase Free Space</emphasis> feature of the built-in
|
---|
2447 | <emphasis>Disk Utility</emphasis>. Use
|
---|
2448 | <emphasis>Zero Out Data</emphasis> there.</para>
|
---|
2449 |
|
---|
2450 | <para>Please note that compacting is currently only available for
|
---|
2451 | VDI images. A similar effect can be achieved by zeroing out free
|
---|
2452 | blocks and then cloning the disk to any other dynamically allocated
|
---|
2453 | format. You can use this workaround until compacting is also
|
---|
2454 | supported for disk formats other than VDI.</para>
|
---|
2455 | </listitem>
|
---|
2456 |
|
---|
2457 | <listitem>
|
---|
2458 | <para>The <computeroutput>--resize x</computeroutput> option (where x
|
---|
2459 | is the desired new total space in <emphasis role="bold">megabytes</emphasis>)
|
---|
2460 | allows you to change the capacity of an existing image; this adjusts the
|
---|
2461 | <emphasis>logical</emphasis> size of a virtual disk without affecting
|
---|
2462 | the physical size much.<footnote>
|
---|
2463 | <para>Image resizing was added with VirtualBox 4.0.</para>
|
---|
2464 | </footnote> This currently works only for VDI and VHD formats, and only
|
---|
2465 | for the dynamically allocated variants, and can only be used to expand
|
---|
2466 | (not shrink) the capacity.
|
---|
2467 | For example, if you originally created a 10G disk which is now full,
|
---|
2468 | you can use the <computeroutput>--resize 15360</computeroutput>
|
---|
2469 | command to change the capacity to 15G (15,360MB) without having to create a new
|
---|
2470 | image and copy all data from within a virtual machine. Note however that
|
---|
2471 | this only changes the drive capacity; you will typically next need to use
|
---|
2472 | a partition management tool inside the guest to adjust the main partition
|
---|
2473 | to fill the drive.</para><para>The <computeroutput>--resizebyte x</computeroutput>
|
---|
2474 | option does almost the same thing, except that x is expressed in bytes
|
---|
2475 | instead of megabytes.</para>
|
---|
2476 | </listitem>
|
---|
2477 | </itemizedlist></para>
|
---|
2478 | </sect1>
|
---|
2479 |
|
---|
2480 | <sect1 id="vboxmanage-clonevdi">
|
---|
2481 | <title>VBoxManage clonehd</title>
|
---|
2482 |
|
---|
2483 | <para>This command duplicates a registered virtual hard disk image to a
|
---|
2484 | new image file with a new unique identifier (UUID). The new image can be
|
---|
2485 | transferred to another host system or imported into VirtualBox again using
|
---|
2486 | the Virtual Media Manager; see <xref linkend="vdis" /> and <xref
|
---|
2487 | linkend="cloningvdis" />. The syntax is as follows:</para>
|
---|
2488 |
|
---|
2489 | <screen>VBoxManage clonehd <uuid|inutfile> <uuid|outputfile>
|
---|
2490 | [--format VDI|VMDK|VHD|RAW|<other>]
|
---|
2491 | [--variant Standard,Fixed,Split2G,Stream,ESX]
|
---|
2492 | [--existing]</screen>
|
---|
2493 |
|
---|
2494 | <para>The disk image to clone as well as the target image must be described
|
---|
2495 | either by its UUIDs (if the mediums are registered) or by its filename.
|
---|
2496 | Registered images can be listed by <computeroutput>VBoxManage list hdds</computeroutput>
|
---|
2497 | (see <xref linkend="vboxmanage-list" /> for more information).
|
---|
2498 | A filename must be specified as valid path, either as an absolute path or
|
---|
2499 | as a relative path starting from the current directory.</para>
|
---|
2500 | <para>The following options are available:<glosslist>
|
---|
2501 | <glossentry>
|
---|
2502 | <glossterm><computeroutput>--format</computeroutput></glossterm>
|
---|
2503 |
|
---|
2504 | <glossdef>
|
---|
2505 | <para>Allow to choose a file format for the output file different
|
---|
2506 | from the file format of the input file.</para>
|
---|
2507 | </glossdef>
|
---|
2508 | </glossentry>
|
---|
2509 |
|
---|
2510 | <glossentry>
|
---|
2511 | <glossterm><computeroutput>--variant</computeroutput></glossterm>
|
---|
2512 |
|
---|
2513 | <glossdef>
|
---|
2514 | <para>Allow to choose a file format variant for the output file.
|
---|
2515 | It is a comma-separated list of variant flags. Not all
|
---|
2516 | combinations are supported, and specifying inconsistent flags will
|
---|
2517 | result in an error message.</para>
|
---|
2518 | </glossdef>
|
---|
2519 | </glossentry>
|
---|
2520 |
|
---|
2521 | <glossentry>
|
---|
2522 | <glossterm><computeroutput>--existing</computeroutput></glossterm>
|
---|
2523 |
|
---|
2524 | <glossdef>
|
---|
2525 | <para>Perform the clone operation to an already existing
|
---|
2526 | destination medium. Only the portion of the source medium which
|
---|
2527 | fits into the destination medium is copied. This means if the
|
---|
2528 | destination medium is smaller than the source only a part of it is
|
---|
2529 | copied, and if the destination medium is larger than the source
|
---|
2530 | the remaining part of the destination medium is unchanged.</para>
|
---|
2531 | </glossdef>
|
---|
2532 | </glossentry>
|
---|
2533 | </glosslist> <note>
|
---|
2534 | <para>For compatibility with earlier versions of VirtualBox, the
|
---|
2535 | "clonevdi" command is also supported and mapped internally to the
|
---|
2536 | "clonehd" command.</para>
|
---|
2537 | </note></para>
|
---|
2538 | </sect1>
|
---|
2539 |
|
---|
2540 | <sect1>
|
---|
2541 | <title>VBoxManage convertfromraw</title>
|
---|
2542 |
|
---|
2543 | <para>This command converts a raw disk image to a VirtualBox Disk Image
|
---|
2544 | (VDI) file. The syntax is as follows:</para>
|
---|
2545 |
|
---|
2546 | <screen>VBoxManage convertfromraw <filename> <outputfile>
|
---|
2547 | [--format VDI|VMDK|VHD]
|
---|
2548 | [--variant Standard,Fixed,Split2G,Stream,ESX]
|
---|
2549 | [--uuid <uuid>]
|
---|
2550 | VBoxManage convertfromraw stdin <outputfile> <bytes>
|
---|
2551 | [--format VDI|VMDK|VHD]
|
---|
2552 | [--variant Standard,Fixed,Split2G,Stream,ESX]
|
---|
2553 | [--uuid <uuid>]</screen>
|
---|
2554 |
|
---|
2555 | <para>where the parameters mean:<glosslist>
|
---|
2556 | <glossentry>
|
---|
2557 | <glossterm><computeroutput>--bytes</computeroutput></glossterm>
|
---|
2558 |
|
---|
2559 | <glossdef>
|
---|
2560 | <para>The size of the image file, in bytes, provided through
|
---|
2561 | stdin.</para>
|
---|
2562 | </glossdef>
|
---|
2563 | </glossentry>
|
---|
2564 |
|
---|
2565 | <glossentry>
|
---|
2566 | <glossterm><computeroutput>--format</computeroutput></glossterm>
|
---|
2567 |
|
---|
2568 | <glossdef>
|
---|
2569 | <para>Select the disk image format to create. Default is
|
---|
2570 | VDI.</para>
|
---|
2571 | </glossdef>
|
---|
2572 | </glossentry>
|
---|
2573 |
|
---|
2574 | <glossentry>
|
---|
2575 | <glossterm><computeroutput>--variant</computeroutput></glossterm>
|
---|
2576 |
|
---|
2577 | <glossdef>
|
---|
2578 | <para>Allow to choose a file format variant for the output file.
|
---|
2579 | It is a comma-separated list of variant flags. Not all
|
---|
2580 | combinations are supported, and specifying inconsistent flags will
|
---|
2581 | result in an error message.</para>
|
---|
2582 | </glossdef>
|
---|
2583 | </glossentry>
|
---|
2584 |
|
---|
2585 | <glossentry>
|
---|
2586 | <glossterm><computeroutput>--uuid</computeroutput></glossterm>
|
---|
2587 |
|
---|
2588 | <glossdef>
|
---|
2589 | <para>Allow to specifiy the UUID of the output file.</para>
|
---|
2590 | </glossdef>
|
---|
2591 | </glossentry>
|
---|
2592 | </glosslist> The second form forces VBoxManage to read the content for
|
---|
2593 | the disk image from standard input (useful for using that command in a
|
---|
2594 | pipe).</para>
|
---|
2595 |
|
---|
2596 | <para><note>
|
---|
2597 | <para>For compatibility with earlier versions of VirtualBox, the
|
---|
2598 | "convertdd" command is also supported and mapped internally to the
|
---|
2599 | "convertfromraw" command.</para>
|
---|
2600 | </note></para>
|
---|
2601 | </sect1>
|
---|
2602 |
|
---|
2603 | <sect1>
|
---|
2604 | <title>VBoxManage getextradata/setextradata</title>
|
---|
2605 |
|
---|
2606 | <para>These commands let you attach and retrieve string data to a virtual
|
---|
2607 | machine or to a VirtualBox configuration (by specifying
|
---|
2608 | <computeroutput>global</computeroutput> instead of a virtual machine
|
---|
2609 | name). You must specify a key (as a text string) to associate the data
|
---|
2610 | with, which you can later use to retrieve it. For example:</para>
|
---|
2611 |
|
---|
2612 | <screen>VBoxManage setextradata Fedora5 installdate 2006.01.01
|
---|
2613 | VBoxManage setextradata SUSE10 installdate 2006.02.02</screen>
|
---|
2614 |
|
---|
2615 | <para>would associate the string "2006.01.01" with the key installdate for
|
---|
2616 | the virtual machine Fedora5, and "2006.02.02" on the machine SUSE10. You
|
---|
2617 | could retrieve the information as follows:</para>
|
---|
2618 |
|
---|
2619 | <screen>VBoxManage getextradata Fedora5 installdate</screen>
|
---|
2620 |
|
---|
2621 | <para>which would return</para>
|
---|
2622 |
|
---|
2623 | <screen>VirtualBox Command Line Management Interface Version $VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD
|
---|
2624 | (C) 2005-$VBOX_C_YEAR $VBOX_VENDOR
|
---|
2625 | All rights reserved.
|
---|
2626 |
|
---|
2627 | Value: 2006.01.01</screen>
|
---|
2628 | <para>To remove a key, the <computeroutput>setextradata</computeroutput>
|
---|
2629 | command must be run without specifying data (only the key), for example:
|
---|
2630 | </para>
|
---|
2631 |
|
---|
2632 | <screen>VBoxManage setextradata Fedora5 installdate</screen>
|
---|
2633 |
|
---|
2634 | </sect1>
|
---|
2635 |
|
---|
2636 | <sect1 id="vboxmanage-setproperty">
|
---|
2637 | <title>VBoxManage setproperty</title>
|
---|
2638 |
|
---|
2639 | <para>This command is used to change global settings which affect the
|
---|
2640 | entire VirtualBox installation. Some of these correspond to the settings
|
---|
2641 | in the "Global settings" dialog in the graphical user interface. The
|
---|
2642 | following properties are available:<glosslist>
|
---|
2643 | <glossentry>
|
---|
2644 | <glossterm><computeroutput>machinefolder</computeroutput></glossterm>
|
---|
2645 |
|
---|
2646 | <glossdef>
|
---|
2647 | <para>This specifies the default folder in which virtual machine
|
---|
2648 | definitions are kept; see <xref linkend="vboxconfigdata" /> for
|
---|
2649 | details.</para>
|
---|
2650 | </glossdef>
|
---|
2651 | </glossentry>
|
---|
2652 |
|
---|
2653 | <glossentry>
|
---|
2654 | <glossterm><computeroutput>hwvirtexclusive</computeroutput></glossterm>
|
---|
2655 | <para>This specifies whether VirtualBox will make exclusive use of
|
---|
2656 | the hardware virtualization extensions (Intel VT-x or AMD-V) of the
|
---|
2657 | host system's processor; see <xref linkend="hwvirt" />. If you wish to
|
---|
2658 | share these extensions with other hypervisors running at the same time,
|
---|
2659 | you must disable this setting. Doing so has negative performance implications.
|
---|
2660 | </para>
|
---|
2661 | </glossentry>
|
---|
2662 |
|
---|
2663 |
|
---|
2664 | <glossentry>
|
---|
2665 | <glossterm><computeroutput>vrdeauthlibrary</computeroutput></glossterm>
|
---|
2666 |
|
---|
2667 | <glossdef>
|
---|
2668 | <para>This specifies which library to use when "external"
|
---|
2669 | authentication has been selected for a particular virtual machine;
|
---|
2670 | see <xref linkend="vbox-auth" /> for details.</para>
|
---|
2671 | </glossdef>
|
---|
2672 | </glossentry>
|
---|
2673 |
|
---|
2674 | <glossentry>
|
---|
2675 | <glossterm><computeroutput>websrvauthlibrary</computeroutput></glossterm>
|
---|
2676 |
|
---|
2677 | <glossdef>
|
---|
2678 | <para>This specifies which library the web service uses to
|
---|
2679 | authenticate users. For details about the VirtualBox web service,
|
---|
2680 | please refer to the separate VirtualBox SDK reference (see <xref
|
---|
2681 | linkend="VirtualBoxAPI" />).</para>
|
---|
2682 | </glossdef>
|
---|
2683 | </glossentry>
|
---|
2684 |
|
---|
2685 | <glossentry>
|
---|
2686 | <glossterm><computeroutput>vrdeextpack</computeroutput></glossterm>
|
---|
2687 |
|
---|
2688 | <glossdef>
|
---|
2689 | <para>This specifies which library implements the VirtualBox
|
---|
2690 | Remote Desktop Extension.</para>
|
---|
2691 | </glossdef>
|
---|
2692 | </glossentry>
|
---|
2693 |
|
---|
2694 | <glossentry>
|
---|
2695 | <glossterm><computeroutput>loghistorycount</computeroutput></glossterm>
|
---|
2696 |
|
---|
2697 | <glossdef>
|
---|
2698 | <para>This selects how many rotated (old) VM logs are kept.</para>
|
---|
2699 | </glossdef>
|
---|
2700 | </glossentry>
|
---|
2701 |
|
---|
2702 | <glossentry>
|
---|
2703 | <glossterm><computeroutput>autostartdbpath</computeroutput></glossterm>
|
---|
2704 |
|
---|
2705 | <glossdef>
|
---|
2706 | <para>This selects the path to the autostart database. See
|
---|
2707 | <xref linkend="autostart" />.</para>
|
---|
2708 | </glossdef>
|
---|
2709 | </glossentry>
|
---|
2710 |
|
---|
2711 | <glossentry>
|
---|
2712 | <glossterm><computeroutput>defaultfrontend</computeroutput></glossterm>
|
---|
2713 |
|
---|
2714 | <glossdef>
|
---|
2715 | <para>This selects the global default VM frontend setting. See
|
---|
2716 | <xref linkend="vboxmanage-startvm" />.</para>
|
---|
2717 | </glossdef>
|
---|
2718 | </glossentry>
|
---|
2719 | </glosslist></para>
|
---|
2720 | </sect1>
|
---|
2721 |
|
---|
2722 | <sect1>
|
---|
2723 | <title>VBoxManage usbfilter add/modify/remove</title>
|
---|
2724 |
|
---|
2725 | <para>The <computeroutput>usbfilter</computeroutput> commands are used for
|
---|
2726 | working with USB filters in virtual machines, or global filters which
|
---|
2727 | affect the whole VirtualBox setup. Global filters are applied before
|
---|
2728 | machine-specific filters, and may be used to prevent devices from being
|
---|
2729 | captured by any virtual machine. Global filters are always applied in a
|
---|
2730 | particular order, and only the first filter which fits a device is
|
---|
2731 | applied. So for example, if the first global filter says to hold (make
|
---|
2732 | available) a particular Kingston memory stick device and the second to
|
---|
2733 | ignore all Kingston devices, that memory stick will be available to any
|
---|
2734 | machine with an appropriate filter, but no other Kingston device
|
---|
2735 | will.</para>
|
---|
2736 |
|
---|
2737 | <para>When creating a USB filter using <computeroutput>usbfilter
|
---|
2738 | add</computeroutput>, you must supply three or four mandatory parameters.
|
---|
2739 | The index specifies the position in the list at which the filter should be
|
---|
2740 | placed. If there is already a filter at that position, then it and the
|
---|
2741 | following ones will be shifted back one place. Otherwise the new filter
|
---|
2742 | will be added onto the end of the list. The
|
---|
2743 | <computeroutput>target</computeroutput> parameter selects the virtual
|
---|
2744 | machine that the filter should be attached to or use "global" to apply it
|
---|
2745 | to all virtual machines. <computeroutput>name</computeroutput> is a name
|
---|
2746 | for the new filter and for global filters,
|
---|
2747 | <computeroutput>action</computeroutput> says whether to allow machines
|
---|
2748 | access to devices that fit the filter description ("hold") or not to give
|
---|
2749 | them access ("ignore"). In addition, you should specify parameters to
|
---|
2750 | filter by. You can find the parameters for devices attached to your system
|
---|
2751 | using <computeroutput>VBoxManage list usbhost</computeroutput>. Finally,
|
---|
2752 | you can specify whether the filter should be active, and for local
|
---|
2753 | filters, whether they are for local devices, remote (over an RDP
|
---|
2754 | connection) or either.</para>
|
---|
2755 |
|
---|
2756 | <para>When you modify a USB filter using <computeroutput>usbfilter
|
---|
2757 | modify</computeroutput>, you must specify the filter by index (see the
|
---|
2758 | output of <computeroutput>VBoxManage list usbfilters</computeroutput> to
|
---|
2759 | find global filter indexes and that of <computeroutput>VBoxManage
|
---|
2760 | showvminfo</computeroutput> to find indexes for individual machines) and
|
---|
2761 | by target, which is either a virtual machine or "global". The properties
|
---|
2762 | which can be changed are the same as for <computeroutput>usbfilter
|
---|
2763 | add</computeroutput>. To remove a filter, use <computeroutput>usbfilter
|
---|
2764 | remove</computeroutput> and specify the index and the target.</para>
|
---|
2765 | </sect1>
|
---|
2766 |
|
---|
2767 | <sect1 id="vboxmanage-sharedfolder">
|
---|
2768 | <title>VBoxManage sharedfolder add/remove</title>
|
---|
2769 |
|
---|
2770 | <para>This command allows you to share folders on the host computer with
|
---|
2771 | guest operating systems. For this, the guest systems must have a version
|
---|
2772 | of the VirtualBox Guest Additions installed which supports this
|
---|
2773 | functionality.</para>
|
---|
2774 |
|
---|
2775 | <para>Shared folders are described in detail in <xref
|
---|
2776 | linkend="sharedfolders" />.</para>
|
---|
2777 | </sect1>
|
---|
2778 |
|
---|
2779 | <sect1 id="vboxmanage-guestproperty">
|
---|
2780 | <title>VBoxManage guestproperty</title>
|
---|
2781 |
|
---|
2782 | <para>The "guestproperty" commands allow you to get or set properties of a
|
---|
2783 | running virtual machine. Please see <xref linkend="guestadd-guestprops" />
|
---|
2784 | for an introduction. As explained there, guest properties are arbitrary
|
---|
2785 | key/value string pairs which can be written to and read from by either the
|
---|
2786 | guest or the host, so they can be used as a low-volume communication
|
---|
2787 | channel for strings, provided that a guest is running and has the Guest
|
---|
2788 | Additions installed. In addition, a number of values whose keys begin with
|
---|
2789 | "/VirtualBox/" are automatically set and maintained by the Guest
|
---|
2790 | Additions.</para>
|
---|
2791 |
|
---|
2792 | <para>The following subcommands are available (where
|
---|
2793 | <computeroutput><vm></computeroutput>, in each case, can either be a
|
---|
2794 | VM name or a VM UUID, as with the other VBoxManage commands):<itemizedlist>
|
---|
2795 | <listitem>
|
---|
2796 | <para><computeroutput>enumerate <vm> [--patterns
|
---|
2797 | <pattern>]</computeroutput>: This lists all the guest
|
---|
2798 | properties that are available for the given VM, including the value.
|
---|
2799 | This list will be very limited if the guest's service process cannot
|
---|
2800 | be contacted, e.g. because the VM is not running or the Guest
|
---|
2801 | Additions are not installed.</para>
|
---|
2802 |
|
---|
2803 | <para>If <computeroutput>--patterns <pattern></computeroutput>
|
---|
2804 | is specified, it acts as a filter to only list properties that match
|
---|
2805 | the given pattern. The pattern can contain the following wildcard
|
---|
2806 | characters:<itemizedlist>
|
---|
2807 | <listitem>
|
---|
2808 | <para><computeroutput>*</computeroutput> (asterisk):
|
---|
2809 | represents any number of characters; for example,
|
---|
2810 | "<computeroutput>/VirtualBox*</computeroutput>" would match
|
---|
2811 | all properties beginning with "/VirtualBox".</para>
|
---|
2812 | </listitem>
|
---|
2813 |
|
---|
2814 | <listitem>
|
---|
2815 | <para><computeroutput>?</computeroutput> (question mark):
|
---|
2816 | represents a single arbitrary character; for example,
|
---|
2817 | "<computeroutput>fo?</computeroutput>" would match both "foo"
|
---|
2818 | and "for".</para>
|
---|
2819 | </listitem>
|
---|
2820 |
|
---|
2821 | <listitem>
|
---|
2822 | <para><computeroutput>|</computeroutput> (pipe symbol): can be
|
---|
2823 | used to specify multiple alternative patterns; for example,
|
---|
2824 | "<computeroutput>s*|t*</computeroutput>" would match anything
|
---|
2825 | starting with either "s" or "t".</para>
|
---|
2826 | </listitem>
|
---|
2827 | </itemizedlist></para>
|
---|
2828 | </listitem>
|
---|
2829 |
|
---|
2830 | <listitem>
|
---|
2831 | <para><computeroutput>get <vm></computeroutput>: This
|
---|
2832 | retrieves the value of a single property only. If the property
|
---|
2833 | cannot be found (e.g. because the guest is not running), this will
|
---|
2834 | print <screen>No value set!</screen></para>
|
---|
2835 | </listitem>
|
---|
2836 |
|
---|
2837 | <listitem>
|
---|
2838 | <para><computeroutput>set <vm> <property> [<value>
|
---|
2839 | [--flags <flags>]]</computeroutput>: This allows you to set a
|
---|
2840 | guest property by specifying the key and value. If
|
---|
2841 | <computeroutput><value></computeroutput> is omitted, the
|
---|
2842 | property is deleted. With <computeroutput>--flags</computeroutput>
|
---|
2843 | you can optionally specify additional behavior (you can combine
|
---|
2844 | several by separating them with commas):<itemizedlist>
|
---|
2845 | <listitem>
|
---|
2846 | <para><computeroutput>TRANSIENT</computeroutput>: the value
|
---|
2847 | will not be stored with the VM data when the VM exits;</para>
|
---|
2848 | </listitem>
|
---|
2849 |
|
---|
2850 | <listitem>
|
---|
2851 | <para><computeroutput>TRANSRESET</computeroutput>: the value
|
---|
2852 | will be deleted as soon as the VM restarts and/or exits;</para>
|
---|
2853 | </listitem>
|
---|
2854 |
|
---|
2855 | <listitem>
|
---|
2856 | <para><computeroutput>RDONLYGUEST</computeroutput>: the value
|
---|
2857 | can only be changed by the host, but the guest can only read
|
---|
2858 | it;</para>
|
---|
2859 | </listitem>
|
---|
2860 |
|
---|
2861 | <listitem>
|
---|
2862 | <para><computeroutput>RDONLYHOST</computeroutput>: reversely,
|
---|
2863 | the value can only be changed by the guest, but the host can
|
---|
2864 | only read it;</para>
|
---|
2865 | </listitem>
|
---|
2866 |
|
---|
2867 | <listitem>
|
---|
2868 | <para><computeroutput>READONLY</computeroutput>: a combination
|
---|
2869 | of the two, the value cannot be changed at all.</para>
|
---|
2870 | </listitem>
|
---|
2871 | </itemizedlist></para>
|
---|
2872 | </listitem>
|
---|
2873 |
|
---|
2874 | <listitem>
|
---|
2875 | <para><computeroutput>wait <vm> <pattern> --timeout
|
---|
2876 | <timeout></computeroutput>: This waits for a particular value
|
---|
2877 | described by "pattern" to change or to be deleted or created. The
|
---|
2878 | pattern rules are the same as for the "enumerate" subcommand
|
---|
2879 | above.</para>
|
---|
2880 | </listitem>
|
---|
2881 |
|
---|
2882 | <listitem>
|
---|
2883 | <para><computeroutput>delete <vm> <property>
|
---|
2884 | </computeroutput>: Deletes a formerly set guest property.
|
---|
2885 | </para></listitem>
|
---|
2886 | </itemizedlist></para>
|
---|
2887 | </sect1>
|
---|
2888 |
|
---|
2889 | <sect1 id="vboxmanage-guestcontrol">
|
---|
2890 | <title>VBoxManage guestcontrol</title>
|
---|
2891 |
|
---|
2892 | <para>The <computeroutput>guestcontrol</computeroutput> commands allow you
|
---|
2893 | to control certain things inside a guest from the host. Please see <xref
|
---|
2894 | linkend="guestadd-guestcontrol" /> for an introduction.</para>
|
---|
2895 |
|
---|
2896 | <para>Generally, the syntax is as follows:</para>
|
---|
2897 |
|
---|
2898 | <screen>VBoxManage guestcontrol <uuid|vmname> <command></screen>
|
---|
2899 |
|
---|
2900 | <para>The following subcommands are available (where
|
---|
2901 | <computeroutput><uuid|vmname></computeroutput>, in each case, can either be a
|
---|
2902 | VM name or a VM UUID, as with the other VBoxManage commands):<itemizedlist>
|
---|
2903 | <listitem>
|
---|
2904 | <para><emphasis role="bold"><computeroutput>execute</computeroutput></emphasis>,
|
---|
2905 | which allows for
|
---|
2906 | executing a program/script (process) which already is installed and
|
---|
2907 | runnable on the guest. This command only works while a VM is up and
|
---|
2908 | running and has the following syntax:</para>
|
---|
2909 |
|
---|
2910 | <screen>VBoxManage guestcontrol <uuid|vmname> exec[ute]
|
---|
2911 | --image <path to program> --username <name>
|
---|
2912 | [--passwordfile <file> | --password <password>]
|
---|
2913 | [--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"]
|
---|
2914 | [--verbose] [--timeout <msec>]
|
---|
2915 | [--wait-exit] [--wait-stdout] [--wait-stderr]
|
---|
2916 | [--dos2unix] [--unix2dos]
|
---|
2917 | -- [[<argument1>] ... [<argumentN>]]</screen>
|
---|
2918 |
|
---|
2919 | <para>where the parameters mean: <glosslist>
|
---|
2920 | <glossentry>
|
---|
2921 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
2922 |
|
---|
2923 | <glossdef>
|
---|
2924 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
2925 | </glossdef>
|
---|
2926 | </glossentry>
|
---|
2927 |
|
---|
2928 | <glossentry>
|
---|
2929 | <glossterm><computeroutput>--image "<path to program>"</computeroutput></glossterm>
|
---|
2930 |
|
---|
2931 | <glossdef>
|
---|
2932 | <para>Absolute path and process name of process to execute
|
---|
2933 | in the guest, e.g.
|
---|
2934 | <computeroutput>C:\Windows\System32\calc.exe</computeroutput></para>
|
---|
2935 | </glossdef>
|
---|
2936 | </glossentry>
|
---|
2937 |
|
---|
2938 | <glossentry>
|
---|
2939 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
2940 |
|
---|
2941 | <glossdef>
|
---|
2942 | <para>Name of the user the process should run under. This
|
---|
2943 | user must exist on the guest OS.</para>
|
---|
2944 | </glossdef>
|
---|
2945 | </glossentry>
|
---|
2946 |
|
---|
2947 | <glossentry>
|
---|
2948 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
2949 |
|
---|
2950 | <glossdef>
|
---|
2951 | <para>Password of the user account specified to be read from
|
---|
2952 | the given file. If not given, an empty password is
|
---|
2953 | assumed.</para>
|
---|
2954 | </glossdef>
|
---|
2955 | </glossentry>
|
---|
2956 |
|
---|
2957 | <glossentry>
|
---|
2958 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
2959 |
|
---|
2960 | <glossdef>
|
---|
2961 | <para>Password of the user account specified with
|
---|
2962 | <computeroutput>--username</computeroutput>. If not given,
|
---|
2963 | an empty password is assumed.</para>
|
---|
2964 | </glossdef>
|
---|
2965 | </glossentry>
|
---|
2966 |
|
---|
2967 | <glossentry>
|
---|
2968 | <glossterm><computeroutput>--dos2unix</computeroutput></glossterm>
|
---|
2969 |
|
---|
2970 | <glossdef>
|
---|
2971 | Converts output from DOS/Windows guests to UNIX-compatible
|
---|
2972 | line endings (CR + LF -> LF). Not implemented yet.
|
---|
2973 | </glossdef>
|
---|
2974 | </glossentry>
|
---|
2975 |
|
---|
2976 | <glossentry>
|
---|
2977 | <glossterm><computeroutput>--environment
|
---|
2978 | "<NAME>=<VALUE>"</computeroutput></glossterm>
|
---|
2979 |
|
---|
2980 | <glossdef>
|
---|
2981 | <para>One or more environment variables to be set or
|
---|
2982 | unset.</para>
|
---|
2983 |
|
---|
2984 | <para>By default, the new process in the guest will be
|
---|
2985 | created with the standard environment of the guest OS. This
|
---|
2986 | option allows for modifying that environment. To set/modify
|
---|
2987 | a variable, a pair of
|
---|
2988 | <computeroutput>NAME=VALUE</computeroutput> must be
|
---|
2989 | specified; to unset a certain variable, the name with no
|
---|
2990 | value must set, e.g.
|
---|
2991 | <computeroutput>NAME=</computeroutput>.</para>
|
---|
2992 |
|
---|
2993 | <para>Arguments containing spaces must be enclosed in
|
---|
2994 | quotation marks. More than one
|
---|
2995 | <computeroutput>--environment</computeroutput> at a time can
|
---|
2996 | be specified to keep the command line tidy.</para>
|
---|
2997 | </glossdef>
|
---|
2998 | </glossentry>
|
---|
2999 |
|
---|
3000 | <glossentry>
|
---|
3001 | <glossterm><computeroutput>--timeout <msec></computeroutput></glossterm>
|
---|
3002 |
|
---|
3003 | <glossdef>
|
---|
3004 | <para>Value (in milliseconds) that specifies the time how
|
---|
3005 | long the started process is allowed to run and how long
|
---|
3006 | VBoxManage waits for getting output from that process. If no
|
---|
3007 | timeout is specified, VBoxManage will wait forever until the
|
---|
3008 | started process ends or an error occured.</para>
|
---|
3009 | </glossdef>
|
---|
3010 | </glossentry>
|
---|
3011 |
|
---|
3012 | <glossentry>
|
---|
3013 | <glossterm><computeroutput>--unix2dos</computeroutput></glossterm>
|
---|
3014 |
|
---|
3015 | <glossdef>
|
---|
3016 | Converts output from a UNIX/Linux guests to DOS-/Windows-compatible
|
---|
3017 | line endings (LF -> CR + LF). Not implemented yet.
|
---|
3018 | </glossdef>
|
---|
3019 | </glossentry>
|
---|
3020 |
|
---|
3021 | <glossentry>
|
---|
3022 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3023 |
|
---|
3024 | <glossdef>
|
---|
3025 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3026 | </glossdef>
|
---|
3027 | </glossentry>
|
---|
3028 |
|
---|
3029 | <glossentry>
|
---|
3030 | <glossterm><computeroutput>--wait-exit</computeroutput></glossterm>
|
---|
3031 |
|
---|
3032 | <glossdef>
|
---|
3033 | <para>Waits until the process ends and outputs its
|
---|
3034 | exit code along with the exit reason/flags.</para>
|
---|
3035 | </glossdef>
|
---|
3036 | </glossentry>
|
---|
3037 |
|
---|
3038 | <glossentry>
|
---|
3039 | <glossterm><computeroutput>--wait-stdout</computeroutput></glossterm>
|
---|
3040 |
|
---|
3041 | <glossdef>
|
---|
3042 | <para>Waits until the process ends and outputs its
|
---|
3043 | exit code along with the exit reason/flags. While waiting
|
---|
3044 | VBoxManage retrieves the process output collected from stdout.</para>
|
---|
3045 | </glossdef>
|
---|
3046 | </glossentry>
|
---|
3047 |
|
---|
3048 | <glossentry>
|
---|
3049 | <glossterm><computeroutput>--wait-stderr</computeroutput></glossterm>
|
---|
3050 |
|
---|
3051 | <glossdef>
|
---|
3052 | <para>Waits until the process ends and outputs its
|
---|
3053 | exit code along with the exit reason/flags. While waiting
|
---|
3054 | VBoxManage retrieves the process output collected from stderr.</para>
|
---|
3055 | </glossdef>
|
---|
3056 | </glossentry>
|
---|
3057 |
|
---|
3058 | <glossentry>
|
---|
3059 | <glossterm><computeroutput>[-- [<argument1s>] ... [<argumentNs>]]</computeroutput></glossterm>
|
---|
3060 |
|
---|
3061 | <glossdef>
|
---|
3062 | <para>One or more arguments to pass to the process being
|
---|
3063 | executed.</para>
|
---|
3064 | <para>Arguments containing spaces must be enclosed in
|
---|
3065 | quotation marks.</para>
|
---|
3066 | </glossdef>
|
---|
3067 | </glossentry>
|
---|
3068 |
|
---|
3069 | </glosslist></para>
|
---|
3070 |
|
---|
3071 | <para><note>
|
---|
3072 | <para>On Windows there are certain limitations for graphical
|
---|
3073 | applications; please see <xref linkend="KnownIssues" /> for more
|
---|
3074 | information.</para>
|
---|
3075 | </note> Examples: <screen>VBoxManage --nologo guestcontrol "My VM" execute --image "/bin/ls"
|
---|
3076 | --username foo --passwordfile bar.txt --wait-exit --wait-stdout -- -l /usr</screen> <screen>VBoxManage --nologo guestcontrol "My VM" execute --image "c:\\windows\\system32\\ipconfig.exe"
|
---|
3077 | --username foo --passwordfile bar.txt --wait-exit --wait-stdout</screen> Note that
|
---|
3078 | the double backslashes in the second example are only required on
|
---|
3079 | Unix hosts.</para>
|
---|
3080 |
|
---|
3081 | <para><note>
|
---|
3082 | <para>For certain commands a user name of an existing user account on the guest
|
---|
3083 | must be specified; anonymous executions are not supported for security reasons. A
|
---|
3084 | user account password, however, is optional and depends on the guest's OS security
|
---|
3085 | policy or rules. If no password is specified for a given user name, an empty password
|
---|
3086 | will be used. On certain OSes like Windows the security policy may needs to be adjusted
|
---|
3087 | in order to allow user accounts with an empty password set. Also, global domain rules might
|
---|
3088 | apply and therefore cannot be changed.</para>
|
---|
3089 | </note></para>
|
---|
3090 |
|
---|
3091 | <para>Starting at VirtualBox 4.1.2 guest process execution by default is limited
|
---|
3092 | to serve up to 5 guest processes at a time. If a new guest process gets started
|
---|
3093 | which would exceed this limit, the oldest not running guest process will be discarded
|
---|
3094 | in order to be able to run that new process. Also, retrieving output from this
|
---|
3095 | old guest process will not be possible anymore then. If all 5 guest processes
|
---|
3096 | are still active and running, starting a new guest process will result in an
|
---|
3097 | appropriate error message.</para>
|
---|
3098 |
|
---|
3099 | <para>To raise or lower the guest process execution limit, either the guest
|
---|
3100 | property <computeroutput>/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept</computeroutput>
|
---|
3101 | or VBoxService' command line by specifying <computeroutput>--control-procs-max-kept</computeroutput>
|
---|
3102 | needs to be modified. A restart of the guest OS is required afterwards. To serve unlimited
|
---|
3103 | guest processes, a value of <computeroutput>0</computeroutput> needs to be set (not recommended).</para>
|
---|
3104 | </listitem>
|
---|
3105 |
|
---|
3106 | <listitem>
|
---|
3107 | <para><emphasis role="bold"><computeroutput>copyto</computeroutput></emphasis>,
|
---|
3108 | which allows copying
|
---|
3109 | files from the host to the guest (only with installed Guest
|
---|
3110 | Additions 4.0 and later).</para>
|
---|
3111 |
|
---|
3112 | <screen>VBoxManage guestcontrol <uuid|vmname> copyto|cp
|
---|
3113 | <guest source> <host dest> --username <name>
|
---|
3114 | [--passwordfile <file> | --password <password>]
|
---|
3115 | [--dryrun] [--follow] [--recursive] [--verbose]</screen>
|
---|
3116 |
|
---|
3117 | <para>where the parameters mean: <glosslist>
|
---|
3118 | <glossentry>
|
---|
3119 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3120 |
|
---|
3121 | <glossdef>
|
---|
3122 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3123 | </glossdef>
|
---|
3124 | </glossentry>
|
---|
3125 |
|
---|
3126 | <glossentry>
|
---|
3127 | <glossterm><computeroutput>source on host</computeroutput></glossterm>
|
---|
3128 |
|
---|
3129 | <glossdef>
|
---|
3130 | <para>Absolute path of source file(s) on host to copy over
|
---|
3131 | to the guest, e.g.
|
---|
3132 | <computeroutput>C:\Windows\System32\calc.exe</computeroutput>.
|
---|
3133 | This also can be a wildcard expression, e.g.
|
---|
3134 | <computeroutput>C:\Windows\System32\*.dll</computeroutput></para>
|
---|
3135 | </glossdef>
|
---|
3136 | </glossentry>
|
---|
3137 |
|
---|
3138 | <glossentry>
|
---|
3139 | <glossterm><computeroutput>destination on guest</computeroutput></glossterm>
|
---|
3140 |
|
---|
3141 | <glossdef>
|
---|
3142 | <para>Absolute destination path on the guest, e.g.
|
---|
3143 | <computeroutput>C:\Temp</computeroutput></para>
|
---|
3144 | </glossdef>
|
---|
3145 | </glossentry>
|
---|
3146 |
|
---|
3147 | <glossentry>
|
---|
3148 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3149 |
|
---|
3150 | <glossdef>
|
---|
3151 | <para>Name of the user the copy process should run under.
|
---|
3152 | This user must exist on the guest OS.</para>
|
---|
3153 | </glossdef>
|
---|
3154 | </glossentry>
|
---|
3155 |
|
---|
3156 | <glossentry>
|
---|
3157 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3158 |
|
---|
3159 | <glossdef>
|
---|
3160 | <para>Password of the user account specified to be read from
|
---|
3161 | the given file. If not given, an empty password is
|
---|
3162 | assumed.</para>
|
---|
3163 | </glossdef>
|
---|
3164 | </glossentry>
|
---|
3165 |
|
---|
3166 | <glossentry>
|
---|
3167 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3168 |
|
---|
3169 | <glossdef>
|
---|
3170 | <para>Password of the user account specified with
|
---|
3171 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3172 | an empty password is assumed.</para>
|
---|
3173 | </glossdef>
|
---|
3174 | </glossentry>
|
---|
3175 |
|
---|
3176 | <glossentry>
|
---|
3177 | <glossterm><computeroutput>--dryrun</computeroutput></glossterm>
|
---|
3178 |
|
---|
3179 | <glossdef>
|
---|
3180 | <para>Tells VBoxManage to only perform a dry run instead of
|
---|
3181 | really copying files to the guest.</para>
|
---|
3182 | </glossdef>
|
---|
3183 | </glossentry>
|
---|
3184 |
|
---|
3185 | <glossentry>
|
---|
3186 | <glossterm><computeroutput>--follow</computeroutput></glossterm>
|
---|
3187 |
|
---|
3188 | <glossdef>
|
---|
3189 | <para>Enables following symlinks on the host's
|
---|
3190 | source.</para>
|
---|
3191 | </glossdef>
|
---|
3192 | </glossentry>
|
---|
3193 |
|
---|
3194 | <glossentry>
|
---|
3195 | <glossterm><computeroutput>--recursive</computeroutput></glossterm>
|
---|
3196 |
|
---|
3197 | <glossdef>
|
---|
3198 | <para>Recursively copies files/directories of the specified
|
---|
3199 | source.</para>
|
---|
3200 | </glossdef>
|
---|
3201 | </glossentry>
|
---|
3202 |
|
---|
3203 | <glossentry>
|
---|
3204 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3205 |
|
---|
3206 | <glossdef>
|
---|
3207 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3208 | </glossdef>
|
---|
3209 | </glossentry>
|
---|
3210 |
|
---|
3211 | <glossentry>
|
---|
3212 | <glossterm><computeroutput>--flags <flags></computeroutput></glossterm>
|
---|
3213 |
|
---|
3214 | <glossdef>
|
---|
3215 | <para>Additional flags to set. This is not used at the
|
---|
3216 | moment.</para>
|
---|
3217 | </glossdef>
|
---|
3218 | </glossentry>
|
---|
3219 | </glosslist></para>
|
---|
3220 | </listitem>
|
---|
3221 |
|
---|
3222 | <listitem>
|
---|
3223 | <para><emphasis role="bold"><computeroutput>copyfrom</computeroutput></emphasis>,
|
---|
3224 | which allows copying
|
---|
3225 | files from the guest to the host (only with installed Guest
|
---|
3226 | Additions 4.0 and later). It has the same parameters as
|
---|
3227 | <computeroutput>copyto</computeroutput> above.</para>
|
---|
3228 | </listitem>
|
---|
3229 |
|
---|
3230 | <listitem>
|
---|
3231 | <para><emphasis role="bold"><computeroutput>createdirectory</computeroutput></emphasis>,
|
---|
3232 | which allows
|
---|
3233 | copying files from the host to the guest (only with installed Guest
|
---|
3234 | Additions 4.0 and later).</para>
|
---|
3235 |
|
---|
3236 | <screen>VBoxManage guestcontrol <uuid|vmname> createdir[ectory]|mkdir|md
|
---|
3237 | <guest directory>... --username <name>
|
---|
3238 | [--passwordfile <file> | --password <password>]
|
---|
3239 | [--parents] [--mode <mode>] [--verbose]</screen>
|
---|
3240 |
|
---|
3241 | <para>where the parameters mean: <glosslist>
|
---|
3242 | <glossentry>
|
---|
3243 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3244 |
|
---|
3245 | <glossdef>
|
---|
3246 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3247 | </glossdef>
|
---|
3248 | </glossentry>
|
---|
3249 |
|
---|
3250 | <glossentry>
|
---|
3251 | <glossterm><computeroutput>directory to create on guest</computeroutput></glossterm>
|
---|
3252 |
|
---|
3253 | <glossdef>
|
---|
3254 | <para>Absolute path of directory/directories to create on
|
---|
3255 | guest, e.g. <computeroutput>D:\Foo\Bar</computeroutput>.
|
---|
3256 | Parent directories need to exist (e.g. in this example
|
---|
3257 | <computeroutput>D:\Foo</computeroutput>) when switch
|
---|
3258 | <computeroutput>--parents</computeroutput> is omitted. The
|
---|
3259 | specified user must have appropriate rights to create the
|
---|
3260 | specified directory.</para>
|
---|
3261 | </glossdef>
|
---|
3262 | </glossentry>
|
---|
3263 |
|
---|
3264 | <glossentry>
|
---|
3265 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3266 |
|
---|
3267 | <glossdef>
|
---|
3268 | <para>Name of the user the copy process should run under.
|
---|
3269 | This user must exist on the guest OS.</para>
|
---|
3270 | </glossdef>
|
---|
3271 | </glossentry>
|
---|
3272 |
|
---|
3273 | <glossentry>
|
---|
3274 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3275 |
|
---|
3276 | <glossdef>
|
---|
3277 | <para>Password of the user account specified to be read from
|
---|
3278 | the given file. If not given, an empty password is
|
---|
3279 | assumed.</para>
|
---|
3280 | </glossdef>
|
---|
3281 | </glossentry>
|
---|
3282 |
|
---|
3283 | <glossentry>
|
---|
3284 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3285 |
|
---|
3286 | <glossdef>
|
---|
3287 | <para>Password of the user account specified with
|
---|
3288 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3289 | an empty password is assumed.</para>
|
---|
3290 | </glossdef>
|
---|
3291 | </glossentry>
|
---|
3292 |
|
---|
3293 | <glossentry>
|
---|
3294 | <glossterm><computeroutput>--parents</computeroutput></glossterm>
|
---|
3295 |
|
---|
3296 | <glossdef>
|
---|
3297 | <para>Also creates not yet existing parent directories of
|
---|
3298 | the specified directory, e.g. if the directory
|
---|
3299 | <computeroutput>D:\Foo</computeroutput> of
|
---|
3300 | <computeroutput>D:\Foo\Bar</computeroutput> does not exist
|
---|
3301 | yet it will be created. Without specifying
|
---|
3302 | <computeroutput>--parent</computeroutput> the action would
|
---|
3303 | have failed.</para>
|
---|
3304 | </glossdef>
|
---|
3305 | </glossentry>
|
---|
3306 |
|
---|
3307 | <glossentry>
|
---|
3308 | <glossterm><computeroutput>--mode <mode></computeroutput></glossterm>
|
---|
3309 |
|
---|
3310 | <glossdef>
|
---|
3311 | <para>Sets the permission mode of the specified directory.
|
---|
3312 | Only octal modes (e.g.
|
---|
3313 | <computeroutput>0755</computeroutput>) are supported right
|
---|
3314 | now.</para>
|
---|
3315 | </glossdef>
|
---|
3316 | </glossentry>
|
---|
3317 |
|
---|
3318 | <glossentry>
|
---|
3319 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3320 |
|
---|
3321 | <glossdef>
|
---|
3322 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3323 | </glossdef>
|
---|
3324 | </glossentry>
|
---|
3325 | </glosslist></para>
|
---|
3326 | </listitem>
|
---|
3327 |
|
---|
3328 | <listitem>
|
---|
3329 | <para><emphasis role="bold"><computeroutput>removedirectory</computeroutput></emphasis>,
|
---|
3330 | which allows deletion of guest directories (only with installed Guest
|
---|
3331 | Additions 4.3.2 and later).</para>
|
---|
3332 |
|
---|
3333 | <screen>VBoxManage guestcontrol <uuid|vmname> removedir[ectory]|rmdir
|
---|
3334 | <guest directory>... --username <name>
|
---|
3335 | [--passwordfile <file> | --password <password>]
|
---|
3336 | [--recursive|-R|-r] [--verbose]</screen>
|
---|
3337 |
|
---|
3338 | <para>where the parameters mean: <glosslist>
|
---|
3339 | <glossentry>
|
---|
3340 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3341 |
|
---|
3342 | <glossdef>
|
---|
3343 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3344 | </glossdef>
|
---|
3345 | </glossentry>
|
---|
3346 |
|
---|
3347 | <glossentry>
|
---|
3348 | <glossterm><computeroutput>directory to remove on guest</computeroutput></glossterm>
|
---|
3349 |
|
---|
3350 | <glossdef>
|
---|
3351 | <para>Absolute path of directory/directories to remove on
|
---|
3352 | guest, e.g. <computeroutput>D:\Foo\Bar</computeroutput>. The
|
---|
3353 | specified user must have appropriate rights to delete the
|
---|
3354 | specified guest directories.</para>
|
---|
3355 | </glossdef>
|
---|
3356 | </glossentry>
|
---|
3357 |
|
---|
3358 | <glossentry>
|
---|
3359 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3360 |
|
---|
3361 | <glossdef>
|
---|
3362 | <para>Name of the user the copy process should run under.
|
---|
3363 | This user must exist on the guest OS.</para>
|
---|
3364 | </glossdef>
|
---|
3365 | </glossentry>
|
---|
3366 |
|
---|
3367 | <glossentry>
|
---|
3368 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3369 |
|
---|
3370 | <glossdef>
|
---|
3371 | <para>Password of the user account specified to be read from
|
---|
3372 | the given file. If not given, an empty password is
|
---|
3373 | assumed.</para>
|
---|
3374 | </glossdef>
|
---|
3375 | </glossentry>
|
---|
3376 |
|
---|
3377 | <glossentry>
|
---|
3378 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3379 |
|
---|
3380 | <glossdef>
|
---|
3381 | <para>Password of the user account specified with
|
---|
3382 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3383 | an empty password is assumed.</para>
|
---|
3384 | </glossdef>
|
---|
3385 | </glossentry>
|
---|
3386 |
|
---|
3387 | <glossentry>
|
---|
3388 | <glossterm><computeroutput>--recursive</computeroutput></glossterm>
|
---|
3389 |
|
---|
3390 | <glossdef>
|
---|
3391 | <para>Remove directories and their contents recursively.</para>
|
---|
3392 | </glossdef>
|
---|
3393 | </glossentry>
|
---|
3394 |
|
---|
3395 | <glossentry>
|
---|
3396 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3397 |
|
---|
3398 | <glossdef>
|
---|
3399 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3400 | </glossdef>
|
---|
3401 | </glossentry>
|
---|
3402 | </glosslist></para>
|
---|
3403 | </listitem>
|
---|
3404 |
|
---|
3405 | <listitem>
|
---|
3406 | <para><emphasis role="bold"><computeroutput>removefile</computeroutput></emphasis>,
|
---|
3407 | which allows deletion of guest files (only with installed Guest
|
---|
3408 | Additions 4.3.2 and later).</para>
|
---|
3409 |
|
---|
3410 | <screen>VBoxManage guestcontrol <uuid|vmname> removefile|rm
|
---|
3411 | <guest file>... --username <name>
|
---|
3412 | [--passwordfile <file> | --password <password>]
|
---|
3413 | [--verbose]</screen>
|
---|
3414 |
|
---|
3415 | <para>where the parameters mean: <glosslist>
|
---|
3416 | <glossentry>
|
---|
3417 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3418 |
|
---|
3419 | <glossdef>
|
---|
3420 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3421 | </glossdef>
|
---|
3422 | </glossentry>
|
---|
3423 |
|
---|
3424 | <glossentry>
|
---|
3425 | <glossterm><computeroutput>file to remove on guest</computeroutput></glossterm>
|
---|
3426 |
|
---|
3427 | <glossdef>
|
---|
3428 | <para>Absolute path of a file/files to remove on
|
---|
3429 | guest, e.g. <computeroutput>D:\Foo\Bar\text.txt</computeroutput>. The
|
---|
3430 | specified user must have appropriate rights to delete the
|
---|
3431 | specified guest files.</para>
|
---|
3432 | </glossdef>
|
---|
3433 | </glossentry>
|
---|
3434 |
|
---|
3435 | <glossentry>
|
---|
3436 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3437 |
|
---|
3438 | <glossdef>
|
---|
3439 | <para>Name of the user the copy process should run under.
|
---|
3440 | This user must exist on the guest OS.</para>
|
---|
3441 | </glossdef>
|
---|
3442 | </glossentry>
|
---|
3443 |
|
---|
3444 | <glossentry>
|
---|
3445 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3446 |
|
---|
3447 | <glossdef>
|
---|
3448 | <para>Password of the user account specified to be read from
|
---|
3449 | the given file. If not given, an empty password is
|
---|
3450 | assumed.</para>
|
---|
3451 | </glossdef>
|
---|
3452 | </glossentry>
|
---|
3453 |
|
---|
3454 | <glossentry>
|
---|
3455 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3456 |
|
---|
3457 | <glossdef>
|
---|
3458 | <para>Password of the user account specified with
|
---|
3459 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3460 | an empty password is assumed.</para>
|
---|
3461 | </glossdef>
|
---|
3462 | </glossentry>
|
---|
3463 |
|
---|
3464 | <glossentry>
|
---|
3465 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3466 |
|
---|
3467 | <glossdef>
|
---|
3468 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3469 | </glossdef>
|
---|
3470 | </glossentry>
|
---|
3471 | </glosslist></para>
|
---|
3472 | </listitem>
|
---|
3473 |
|
---|
3474 | <listitem>
|
---|
3475 | <para><emphasis role="bold"><computeroutput>ren[ame]|mv</computeroutput></emphasis>,
|
---|
3476 | which allows renaming of guest files and/or directories (only with installed Guest
|
---|
3477 | Additions 4.3.2 and later).</para>
|
---|
3478 |
|
---|
3479 | <screen>VBoxManage guestcontrol <uuid|vmname> ren[ame]|mv
|
---|
3480 | <source>... <dest> --username <name>
|
---|
3481 | [--passwordfile <file> | --password <password>]
|
---|
3482 | [--verbose]</screen>
|
---|
3483 |
|
---|
3484 | <para>where the parameters mean: <glosslist>
|
---|
3485 | <glossentry>
|
---|
3486 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3487 |
|
---|
3488 | <glossdef>
|
---|
3489 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3490 | </glossdef>
|
---|
3491 | </glossentry>
|
---|
3492 |
|
---|
3493 | <glossentry>
|
---|
3494 | <glossterm><computeroutput>source</computeroutput></glossterm>
|
---|
3495 |
|
---|
3496 | <glossdef>
|
---|
3497 | <para>Absolute path of one or more source(s) to move to
|
---|
3498 | destination. If more than one source is specified, destination
|
---|
3499 | must be an existing directory on the guest. The specified user
|
---|
3500 | must have appropriate rights to access source and destination
|
---|
3501 | files and directories.</para>
|
---|
3502 | </glossdef>
|
---|
3503 | </glossentry>
|
---|
3504 |
|
---|
3505 | <glossentry>
|
---|
3506 | <glossterm><computeroutput>dest</computeroutput></glossterm>
|
---|
3507 |
|
---|
3508 | <glossdef>
|
---|
3509 | <para>Absolute path of the destination to move the source(s)
|
---|
3510 | to. This can be a directory or a file, depending if one or more
|
---|
3511 | sources have been specified. The specified user
|
---|
3512 | must have appropriate rights to access the destination
|
---|
3513 | file and directory.</para>
|
---|
3514 | </glossdef>
|
---|
3515 | </glossentry>
|
---|
3516 |
|
---|
3517 | <glossentry>
|
---|
3518 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3519 |
|
---|
3520 | <glossdef>
|
---|
3521 | <para>Name of the user the copy process should run under.
|
---|
3522 | This user must exist on the guest OS.</para>
|
---|
3523 | </glossdef>
|
---|
3524 | </glossentry>
|
---|
3525 |
|
---|
3526 | <glossentry>
|
---|
3527 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3528 |
|
---|
3529 | <glossdef>
|
---|
3530 | <para>Password of the user account specified to be read from
|
---|
3531 | the given file. If not given, an empty password is
|
---|
3532 | assumed.</para>
|
---|
3533 | </glossdef>
|
---|
3534 | </glossentry>
|
---|
3535 |
|
---|
3536 | <glossentry>
|
---|
3537 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3538 |
|
---|
3539 | <glossdef>
|
---|
3540 | <para>Password of the user account specified with
|
---|
3541 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3542 | an empty password is assumed.</para>
|
---|
3543 | </glossdef>
|
---|
3544 | </glossentry>
|
---|
3545 |
|
---|
3546 | <glossentry>
|
---|
3547 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3548 |
|
---|
3549 | <glossdef>
|
---|
3550 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3551 | </glossdef>
|
---|
3552 | </glossentry>
|
---|
3553 | </glosslist></para>
|
---|
3554 | </listitem>
|
---|
3555 |
|
---|
3556 | <listitem>
|
---|
3557 | <para><emphasis role="bold"><computeroutput>createtemporary</computeroutput></emphasis>,
|
---|
3558 | which allows
|
---|
3559 | copying files from the host to the guest (only with installed Guest
|
---|
3560 | Additions 4.2 and later).</para>
|
---|
3561 |
|
---|
3562 | <screen>VBoxManage guestcontrol <uuid|vmname> createtemp[orary]|mktemp
|
---|
3563 | <template> --username <name>
|
---|
3564 | [--passwordfile <file> | --password <password>]
|
---|
3565 | [--directory] [--secure] [--tmpdir <directory>]
|
---|
3566 | [--domain <domain>] [--mode <mode>] [--verbose]</screen>
|
---|
3567 |
|
---|
3568 | <para>where the parameters mean: <glosslist>
|
---|
3569 | <glossentry>
|
---|
3570 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3571 |
|
---|
3572 | <glossdef>
|
---|
3573 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3574 | </glossdef>
|
---|
3575 | </glossentry>
|
---|
3576 |
|
---|
3577 | <glossentry>
|
---|
3578 | <glossterm><computeroutput>template</computeroutput></glossterm>
|
---|
3579 |
|
---|
3580 | <glossdef>
|
---|
3581 | <para>A file name without a path and with at least three consecutive 'X'
|
---|
3582 | characters or ending in 'X'
|
---|
3583 | </para>
|
---|
3584 | </glossdef>
|
---|
3585 | </glossentry>
|
---|
3586 |
|
---|
3587 | <glossentry>
|
---|
3588 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3589 |
|
---|
3590 | <glossdef>
|
---|
3591 | <para>Name of the user the copy process should run under.
|
---|
3592 | This user must exist on the guest OS.</para>
|
---|
3593 | </glossdef>
|
---|
3594 | </glossentry>
|
---|
3595 |
|
---|
3596 | <glossentry>
|
---|
3597 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3598 |
|
---|
3599 | <glossdef>
|
---|
3600 | <para>Password of the user account specified to be read from
|
---|
3601 | the given file. If not given, an empty password is
|
---|
3602 | assumed.</para>
|
---|
3603 | </glossdef>
|
---|
3604 | </glossentry>
|
---|
3605 |
|
---|
3606 | <glossentry>
|
---|
3607 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3608 |
|
---|
3609 | <glossdef>
|
---|
3610 | <para>Password of the user account specified with
|
---|
3611 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3612 | an empty password is assumed.</para>
|
---|
3613 | </glossdef>
|
---|
3614 | </glossentry>
|
---|
3615 |
|
---|
3616 | <glossentry>
|
---|
3617 | <glossterm><computeroutput>--directory</computeroutput></glossterm>
|
---|
3618 |
|
---|
3619 | <glossdef>
|
---|
3620 | <para>Create a temporary directory instead of a file.</para>
|
---|
3621 | </glossdef>
|
---|
3622 | </glossentry>
|
---|
3623 |
|
---|
3624 | <glossentry>
|
---|
3625 | <glossterm><computeroutput>--secure</computeroutput></glossterm>
|
---|
3626 |
|
---|
3627 | <glossdef>
|
---|
3628 | <para>
|
---|
3629 | Secure creation. The file mode is fixed to
|
---|
3630 | <computeroutput>0755</computeroutput>. And the operation
|
---|
3631 | will fail if it cannot performed securely.
|
---|
3632 | </para>
|
---|
3633 | </glossdef>
|
---|
3634 | </glossentry>
|
---|
3635 |
|
---|
3636 | <glossentry>
|
---|
3637 | <glossterm><computeroutput>--tmpdir <directory></computeroutput></glossterm>
|
---|
3638 |
|
---|
3639 | <glossdef>
|
---|
3640 | <para>
|
---|
3641 | Directory where the file / directory is created. If not
|
---|
3642 | specified, the platform-specific temp directory is used.
|
---|
3643 | </para>
|
---|
3644 | </glossdef>
|
---|
3645 | </glossentry>
|
---|
3646 |
|
---|
3647 | <glossentry>
|
---|
3648 | <glossterm><computeroutput>--mode <mode></computeroutput></glossterm>
|
---|
3649 |
|
---|
3650 | <glossdef>
|
---|
3651 | <para>Sets the permission mode of the specified directory.
|
---|
3652 | Only octal modes (e.g.
|
---|
3653 | <computeroutput>0755</computeroutput>) are supported right
|
---|
3654 | now.</para>
|
---|
3655 | </glossdef>
|
---|
3656 | </glossentry>
|
---|
3657 |
|
---|
3658 | <glossentry>
|
---|
3659 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3660 |
|
---|
3661 | <glossdef>
|
---|
3662 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3663 | </glossdef>
|
---|
3664 | </glossentry>
|
---|
3665 | </glosslist></para>
|
---|
3666 | </listitem>
|
---|
3667 |
|
---|
3668 | <listitem>
|
---|
3669 | <para><emphasis role="bold"><computeroutput>list</computeroutput></emphasis>,
|
---|
3670 | which lists various guest control information such as open guest sessions,
|
---|
3671 | guest processes and guest files.</para>
|
---|
3672 |
|
---|
3673 | <screen>VBoxManage guestcontrol <uuid|vmname> list
|
---|
3674 | <all|sessions|processes|files> [--verbose]</screen>
|
---|
3675 |
|
---|
3676 | <para>where the parameters mean: <glosslist>
|
---|
3677 | <glossentry>
|
---|
3678 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3679 |
|
---|
3680 | <glossdef>
|
---|
3681 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3682 | </glossdef>
|
---|
3683 | </glossentry>
|
---|
3684 |
|
---|
3685 | <glossentry>
|
---|
3686 | <glossterm><computeroutput>all|sessions|processes|files</computeroutput></glossterm>
|
---|
3687 |
|
---|
3688 | <glossdef>
|
---|
3689 | <para>Whether to list guest sessions, guest processes, guest files
|
---|
3690 | or all information available. Mandatory.</para>
|
---|
3691 | </glossdef>
|
---|
3692 | </glossentry>
|
---|
3693 |
|
---|
3694 | <glossentry>
|
---|
3695 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3696 |
|
---|
3697 | <glossdef>
|
---|
3698 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3699 | </glossdef>
|
---|
3700 | </glossentry>
|
---|
3701 | </glosslist></para>
|
---|
3702 | </listitem>
|
---|
3703 |
|
---|
3704 | <listitem>
|
---|
3705 | <para><emphasis role="bold"><computeroutput>process kill</computeroutput></emphasis>,
|
---|
3706 | which terminates specific guest processes of a guest session, based on either the
|
---|
3707 | session's ID or the session's name.</para>
|
---|
3708 |
|
---|
3709 | <screen>VBoxManage guestcontrol <uuid|vmname> process kill
|
---|
3710 | --session-id <ID>
|
---|
3711 | | --session-name <name or pattern>
|
---|
3712 | [--verbose]
|
---|
3713 | <PID> ... <PID n></screen>
|
---|
3714 |
|
---|
3715 | <para>where the parameters mean: <glosslist>
|
---|
3716 | <glossentry>
|
---|
3717 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3718 |
|
---|
3719 | <glossdef>
|
---|
3720 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3721 | </glossdef>
|
---|
3722 | </glossentry>
|
---|
3723 |
|
---|
3724 | <glossentry>
|
---|
3725 | <glossterm><computeroutput>--session-id</computeroutput></glossterm>
|
---|
3726 |
|
---|
3727 | <glossdef>
|
---|
3728 | <para>Specifies the guest session to use by its ID.</para>
|
---|
3729 | </glossdef>
|
---|
3730 | </glossentry>
|
---|
3731 |
|
---|
3732 | <glossentry>
|
---|
3733 | <glossterm><computeroutput>--session-name</computeroutput></glossterm>
|
---|
3734 |
|
---|
3735 | <glossdef>
|
---|
3736 | <para>Specifies the guest session to use by its name. Multiple
|
---|
3737 | sessions can be closed when specifying * or ? wildcards.</para>
|
---|
3738 | </glossdef>
|
---|
3739 | </glossentry>
|
---|
3740 |
|
---|
3741 | <glossentry>
|
---|
3742 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3743 |
|
---|
3744 | <glossdef>
|
---|
3745 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3746 | </glossdef>
|
---|
3747 | </glossentry>
|
---|
3748 |
|
---|
3749 | <glossentry>
|
---|
3750 | <glossterm><computeroutput><PID> ... <PID n></computeroutput></glossterm>
|
---|
3751 |
|
---|
3752 | <glossdef>
|
---|
3753 | <para>List of process identifiers (PIDs) to terminate.</para>
|
---|
3754 | </glossdef>
|
---|
3755 | </glossentry>
|
---|
3756 | </glosslist></para>
|
---|
3757 | </listitem>
|
---|
3758 |
|
---|
3759 | <listitem>
|
---|
3760 | <para><emphasis role="bold"><computeroutput>[p[s]]kill</computeroutput></emphasis>,
|
---|
3761 | which terminates specific guest processes of a guest session, based on either the
|
---|
3762 | session's ID or the session's name.</para>
|
---|
3763 |
|
---|
3764 | <screen>VBoxManage guestcontrol <uuid|vmname> process kill
|
---|
3765 | --session-id <ID>
|
---|
3766 | | --session-name <name or pattern>
|
---|
3767 | [--verbose]
|
---|
3768 | <PID> ... <PID n></screen>
|
---|
3769 |
|
---|
3770 | <para>where the parameters mean: <glosslist>
|
---|
3771 | <glossentry>
|
---|
3772 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3773 |
|
---|
3774 | <glossdef>
|
---|
3775 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3776 | </glossdef>
|
---|
3777 | </glossentry>
|
---|
3778 |
|
---|
3779 | <glossentry>
|
---|
3780 | <glossterm><computeroutput>--session-id</computeroutput></glossterm>
|
---|
3781 |
|
---|
3782 | <glossdef>
|
---|
3783 | <para>Specifies the guest session to use by its ID.</para>
|
---|
3784 | </glossdef>
|
---|
3785 | </glossentry>
|
---|
3786 |
|
---|
3787 | <glossentry>
|
---|
3788 | <glossterm><computeroutput>--session-name</computeroutput></glossterm>
|
---|
3789 |
|
---|
3790 | <glossdef>
|
---|
3791 | <para>Specifies the guest session to use by its name. Multiple
|
---|
3792 | sessions can be closed when specifying * or ? wildcards.</para>
|
---|
3793 | </glossdef>
|
---|
3794 | </glossentry>
|
---|
3795 |
|
---|
3796 | <glossentry>
|
---|
3797 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3798 |
|
---|
3799 | <glossdef>
|
---|
3800 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3801 | </glossdef>
|
---|
3802 | </glossentry>
|
---|
3803 |
|
---|
3804 | <glossentry>
|
---|
3805 | <glossterm><computeroutput><PID> ... <PID n></computeroutput></glossterm>
|
---|
3806 |
|
---|
3807 | <glossdef>
|
---|
3808 | <para>List of process identifiers (PIDs) to terminate.</para>
|
---|
3809 | </glossdef>
|
---|
3810 | </glossentry>
|
---|
3811 | </glosslist></para>
|
---|
3812 | </listitem>
|
---|
3813 |
|
---|
3814 | <listitem>
|
---|
3815 | <para><emphasis role="bold"><computeroutput>session close</computeroutput></emphasis>,
|
---|
3816 | which closes specific guest sessions, based on either the session's ID or the
|
---|
3817 | session's name.</para>
|
---|
3818 |
|
---|
3819 | <screen>VBoxManage guestcontrol <uuid|vmname> session close
|
---|
3820 | --session-id <ID>
|
---|
3821 | | --session-name <name or pattern>
|
---|
3822 | | --all
|
---|
3823 | [--verbose]</screen>
|
---|
3824 |
|
---|
3825 | <para>where the parameters mean: <glosslist>
|
---|
3826 | <glossentry>
|
---|
3827 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3828 |
|
---|
3829 | <glossdef>
|
---|
3830 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3831 | </glossdef>
|
---|
3832 | </glossentry>
|
---|
3833 |
|
---|
3834 | <glossentry>
|
---|
3835 | <glossterm><computeroutput>--session-id</computeroutput></glossterm>
|
---|
3836 |
|
---|
3837 | <glossdef>
|
---|
3838 | <para>Close a guest session specified by its ID.</para>
|
---|
3839 | </glossdef>
|
---|
3840 | </glossentry>
|
---|
3841 |
|
---|
3842 | <glossentry>
|
---|
3843 | <glossterm><computeroutput>--session-name</computeroutput></glossterm>
|
---|
3844 |
|
---|
3845 | <glossdef>
|
---|
3846 | <para>Close a guest session specified by its name. Multiple sessions
|
---|
3847 | can be closed when specifying * or ? wildcards.</para>
|
---|
3848 | </glossdef>
|
---|
3849 | </glossentry>
|
---|
3850 |
|
---|
3851 | <glossentry>
|
---|
3852 | <glossterm><computeroutput>--all</computeroutput></glossterm>
|
---|
3853 |
|
---|
3854 | <glossdef>
|
---|
3855 | <para>Close all guest sessions.</para>
|
---|
3856 | </glossdef>
|
---|
3857 | </glossentry>
|
---|
3858 |
|
---|
3859 | <glossentry>
|
---|
3860 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3861 |
|
---|
3862 | <glossdef>
|
---|
3863 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3864 | </glossdef>
|
---|
3865 | </glossentry>
|
---|
3866 | </glosslist></para>
|
---|
3867 | </listitem>
|
---|
3868 |
|
---|
3869 | <listitem>
|
---|
3870 | <para><emphasis role="bold"><computeroutput>stat</computeroutput></emphasis>,
|
---|
3871 | which displays file
|
---|
3872 | or file system status on the guest.</para>
|
---|
3873 |
|
---|
3874 | <screen>VBoxManage guestcontrol <uuid|vmname> stat
|
---|
3875 | <file>... --username <name>
|
---|
3876 | [--passwordfile <file> | --password <password>]
|
---|
3877 | [--verbose]</screen>
|
---|
3878 |
|
---|
3879 | <para>where the parameters mean: <glosslist>
|
---|
3880 | <glossentry>
|
---|
3881 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3882 |
|
---|
3883 | <glossdef>
|
---|
3884 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3885 | </glossdef>
|
---|
3886 | </glossentry>
|
---|
3887 |
|
---|
3888 | <glossentry>
|
---|
3889 | <glossterm><computeroutput>file element(s) to check on guest</computeroutput></glossterm>
|
---|
3890 |
|
---|
3891 | <glossdef>
|
---|
3892 | <para>Absolute path of directory/directories to check on
|
---|
3893 | guest, e.g. <computeroutput>/home/foo/a.out</computeroutput>.
|
---|
3894 | The specified user must have appropriate rights to access
|
---|
3895 | the given file element(s).</para>
|
---|
3896 | </glossdef>
|
---|
3897 | </glossentry>
|
---|
3898 |
|
---|
3899 | <glossentry>
|
---|
3900 | <glossterm><computeroutput>--username <name></computeroutput></glossterm>
|
---|
3901 |
|
---|
3902 | <glossdef>
|
---|
3903 | <para>Name of the user the copy process should run under.
|
---|
3904 | This user must exist on the guest OS.</para>
|
---|
3905 | </glossdef>
|
---|
3906 | </glossentry>
|
---|
3907 |
|
---|
3908 | <glossentry>
|
---|
3909 | <glossterm><computeroutput>--passwordfile <file></computeroutput></glossterm>
|
---|
3910 |
|
---|
3911 | <glossdef>
|
---|
3912 | <para>Password of the user account specified to be read from
|
---|
3913 | the given file. If not given, an empty password is
|
---|
3914 | assumed.</para>
|
---|
3915 | </glossdef>
|
---|
3916 | </glossentry>
|
---|
3917 |
|
---|
3918 | <glossentry>
|
---|
3919 | <glossterm><computeroutput>--password <password></computeroutput></glossterm>
|
---|
3920 |
|
---|
3921 | <glossdef>
|
---|
3922 | <para>Password of the user account specified with
|
---|
3923 | <computeroutput>--username</computeroutput>. If not given,
|
---|
3924 | an empty password is assumed.</para>
|
---|
3925 | </glossdef>
|
---|
3926 | </glossentry>
|
---|
3927 |
|
---|
3928 | <glossentry>
|
---|
3929 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3930 |
|
---|
3931 | <glossdef>
|
---|
3932 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3933 | </glossdef>
|
---|
3934 | </glossentry>
|
---|
3935 | </glosslist></para>
|
---|
3936 | </listitem>
|
---|
3937 |
|
---|
3938 | <listitem>
|
---|
3939 | <para><emphasis role="bold"><computeroutput>updateadditions</computeroutput></emphasis>,
|
---|
3940 | which allows
|
---|
3941 | for updating an already installed Guest Additions version on the
|
---|
3942 | guest (only already installed Guest Additions 4.0 and later).</para>
|
---|
3943 |
|
---|
3944 | <screen>VBoxManage guestcontrol <uuid|vmname> updateadditions
|
---|
3945 | [--source "<guest additions .ISO file to use>"] [--verbose]
|
---|
3946 | [--wait-start] [-- [<argument1>] ... [<argumentN>]]</screen>
|
---|
3947 |
|
---|
3948 | <para>where the parameters mean: <glosslist>
|
---|
3949 | <glossentry>
|
---|
3950 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
3951 |
|
---|
3952 | <glossdef>
|
---|
3953 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
3954 | </glossdef>
|
---|
3955 | </glossentry>
|
---|
3956 |
|
---|
3957 | <glossentry>
|
---|
3958 | <glossterm><computeroutput>--source</computeroutput> "<guest additions .ISO file to
|
---|
3959 | use>"</glossterm>
|
---|
3960 |
|
---|
3961 | <glossdef>
|
---|
3962 | <para>Full path to an alternative VirtualBox Guest Additions
|
---|
3963 | .ISO file to use for the Guest Additions update.</para>
|
---|
3964 | </glossdef>
|
---|
3965 | </glossentry>
|
---|
3966 |
|
---|
3967 | <glossentry>
|
---|
3968 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
3969 |
|
---|
3970 | <glossdef>
|
---|
3971 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
3972 | </glossdef>
|
---|
3973 | </glossentry>
|
---|
3974 |
|
---|
3975 | <glossentry>
|
---|
3976 | <glossterm><computeroutput>--wait-start</computeroutput></glossterm>
|
---|
3977 | <glossdef>
|
---|
3978 | <para>Starts the regular updating process and waits until the
|
---|
3979 | actual Guest Additions update inside the guest was started.
|
---|
3980 | This can be necessary due to needed interaction with the
|
---|
3981 | guest OS during the installation phase.</para>
|
---|
3982 | <para>When omitting this flag VBoxManage will wait for the
|
---|
3983 | whole Guest Additions update to complete.</para>
|
---|
3984 | </glossdef>
|
---|
3985 | </glossentry>
|
---|
3986 |
|
---|
3987 | <glossentry>
|
---|
3988 | <glossterm><computeroutput>[-- [<argument1s>] ... [<argumentNs>]]</computeroutput></glossterm>
|
---|
3989 |
|
---|
3990 | <glossdef>
|
---|
3991 | <para>Optional command line arguments to use for the Guest Additions
|
---|
3992 | installer. Useful for retrofitting features which weren't installed
|
---|
3993 | before on the guest.</para>
|
---|
3994 | <para>Arguments containing spaces must be enclosed in
|
---|
3995 | quotation marks.</para>
|
---|
3996 | </glossdef>
|
---|
3997 | </glossentry>
|
---|
3998 | </glosslist></para>
|
---|
3999 | </listitem>
|
---|
4000 | <listitem>
|
---|
4001 | <para><emphasis role="bold"><computeroutput>watch</computeroutput></emphasis>,
|
---|
4002 | which prints current guest control activity.</para>
|
---|
4003 |
|
---|
4004 | <screen>VBoxManage guestcontrol <uuid|vmname> watch
|
---|
4005 | [--verbose]</screen>
|
---|
4006 |
|
---|
4007 | <para>where the parameters mean: <glosslist>
|
---|
4008 | <glossentry>
|
---|
4009 | <glossterm><computeroutput>uuid|vmname</computeroutput></glossterm>
|
---|
4010 |
|
---|
4011 | <glossdef>
|
---|
4012 | <para>The VM UUID or VM name. Mandatory.</para>
|
---|
4013 | </glossdef>
|
---|
4014 | </glossentry>
|
---|
4015 |
|
---|
4016 | <glossentry>
|
---|
4017 | <glossterm><computeroutput>--verbose</computeroutput></glossterm>
|
---|
4018 |
|
---|
4019 | <glossdef>
|
---|
4020 | <para>Tells VBoxManage to be more verbose.</para>
|
---|
4021 | </glossdef>
|
---|
4022 | </glossentry>
|
---|
4023 | </glosslist></para>
|
---|
4024 | </listitem>
|
---|
4025 | </itemizedlist></para>
|
---|
4026 | </sect1>
|
---|
4027 |
|
---|
4028 | <sect1 id="vboxmanage-debugvm">
|
---|
4029 | <title>VBoxManage debugvm</title>
|
---|
4030 |
|
---|
4031 | <para>The "debugvm" commands are for experts who want to tinker with the
|
---|
4032 | exact details of virtual machine execution. Like the VM debugger described
|
---|
4033 | in <xref linkend="ts_debugger" />, these commands are only useful if you are
|
---|
4034 | very familiar with the details of the PC architecture and how to debug
|
---|
4035 | software.</para>
|
---|
4036 |
|
---|
4037 | <para>The subcommands of "debugvm" all operate on a running virtual
|
---|
4038 | machine. The following are available:<itemizedlist>
|
---|
4039 | <listitem>
|
---|
4040 | <para>With <computeroutput>dumpguestcore --filename
|
---|
4041 | <name></computeroutput>, you can create a system dump of the
|
---|
4042 | running VM, which will be written into the given file. This file
|
---|
4043 | will have the standard ELF core format (with custom sections); see
|
---|
4044 | <xref linkend="ts_guest-core-format" />.</para>
|
---|
4045 |
|
---|
4046 | <para>This corresponds to the
|
---|
4047 | <computeroutput>writecore</computeroutput> command in the debugger.
|
---|
4048 | </para>
|
---|
4049 | </listitem>
|
---|
4050 |
|
---|
4051 | <listitem>
|
---|
4052 | <para>The <computeroutput>info</computeroutput> command is used to
|
---|
4053 | display info items relating to the VMM, device emulations and
|
---|
4054 | associated drivers. This command takes one or two arguments: the
|
---|
4055 | name of the info item, optionally followed by a string containing
|
---|
4056 | arguments specific to the info item.
|
---|
4057 | The <computeroutput>help</computeroutput> info item provides a
|
---|
4058 | listning of the available items and hints about any optional
|
---|
4059 | arguments.</para>
|
---|
4060 |
|
---|
4061 | <para>This corresponds to the <computeroutput>info</computeroutput>
|
---|
4062 | command in the debugger.</para>
|
---|
4063 | </listitem>
|
---|
4064 |
|
---|
4065 | <listitem>
|
---|
4066 | <para>The <computeroutput>injectnmi</computeroutput> command causes
|
---|
4067 | a non-maskable interrupt (NMI) in the guest, which might be useful
|
---|
4068 | for certain debugging scenarios. What happens exactly is dependent
|
---|
4069 | on the guest operating system, but an NMI can crash the whole guest
|
---|
4070 | operating system. Do not use unless you know what you're
|
---|
4071 | doing.</para>
|
---|
4072 | </listitem>
|
---|
4073 |
|
---|
4074 | <listitem>
|
---|
4075 | <para>The <computeroutput>osdetect</computeroutput> command makes the
|
---|
4076 | VMM's debugger facility (re-)detection the guest operation
|
---|
4077 | system.</para>
|
---|
4078 |
|
---|
4079 | <para>This corresponds to the <computeroutput>detect</computeroutput>
|
---|
4080 | command in the debugger.</para>
|
---|
4081 | </listitem>
|
---|
4082 |
|
---|
4083 | <listitem>
|
---|
4084 | <para>The <computeroutput>osinfo</computeroutput> command is used to
|
---|
4085 | display info about the operating system (OS) detected by the VMM's
|
---|
4086 | debugger facility.</para>
|
---|
4087 | </listitem>
|
---|
4088 |
|
---|
4089 | <listitem>
|
---|
4090 | <para>The <computeroutput>getregisters</computeroutput> command is
|
---|
4091 | used to display CPU and device registers. The command takes a list
|
---|
4092 | of registers, each having one of the following forms:
|
---|
4093 | <itemizedlist>
|
---|
4094 | <listitem><computeroutput>register-set.register-name.sub-field</computeroutput></listitem>
|
---|
4095 | <listitem><computeroutput>register-set.register-name</computeroutput></listitem>
|
---|
4096 | <listitem><computeroutput>cpu-register-name.sub-field</computeroutput></listitem>
|
---|
4097 | <listitem><computeroutput>cpu-register-name</computeroutput></listitem>
|
---|
4098 | <listitem><computeroutput>all</computeroutput></listitem>
|
---|
4099 | </itemizedlist>
|
---|
4100 | The <computeroutput>all</computeroutput> form will cause all
|
---|
4101 | registers to be shown (no sub-fields). The registers names are
|
---|
4102 | case-insensitive. When requesting a CPU register the register set
|
---|
4103 | can be omitted, it will be selected using the value of the
|
---|
4104 | <computeroutput>--cpu</computeroutput> option (defaulting to 0).
|
---|
4105 | </para>
|
---|
4106 | </listitem>
|
---|
4107 |
|
---|
4108 | <listitem>
|
---|
4109 | <para>The <computeroutput>setregisters</computeroutput> command is
|
---|
4110 | used to change CPU and device registers. The command takes a list
|
---|
4111 | of register assignments, each having one of the following forms:
|
---|
4112 | <itemizedlist>
|
---|
4113 | <listitem><computeroutput>register-set.register-name.sub-field=value</computeroutput></listitem>
|
---|
4114 | <listitem><computeroutput>register-set.register-name=value</computeroutput></listitem>
|
---|
4115 | <listitem><computeroutput>cpu-register-name.sub-field=value</computeroutput></listitem>
|
---|
4116 | <listitem><computeroutput>cpu-register-name=value</computeroutput></listitem>
|
---|
4117 | </itemizedlist>
|
---|
4118 | The value format should be in the same style as what
|
---|
4119 | <computeroutput>getregisters</computeroutput> displays, with the
|
---|
4120 | exception that both octal and decimal can be used instead of
|
---|
4121 | hexadecimal. The register naming and the default CPU register set
|
---|
4122 | are handled the same way as with the
|
---|
4123 | <computeroutput>getregisters</computeroutput> command.</para>
|
---|
4124 | </listitem>
|
---|
4125 |
|
---|
4126 | <listitem>
|
---|
4127 | <para>The <computeroutput>statistics</computeroutput> command can be
|
---|
4128 | used to display VMM statistics on the command line. The
|
---|
4129 | <computeroutput>--reset</computeroutput> option will reset
|
---|
4130 | statistics. The affected statistics can be filtered with the
|
---|
4131 | <computeroutput>--pattern</computeroutput> option, which accepts
|
---|
4132 | DOS/NT-style wildcards (<computeroutput>?</computeroutput> and
|
---|
4133 | <computeroutput>*</computeroutput>).</para>
|
---|
4134 | </listitem>
|
---|
4135 | </itemizedlist></para>
|
---|
4136 | </sect1>
|
---|
4137 |
|
---|
4138 | <sect1 id="metrics">
|
---|
4139 | <title>VBoxManage metrics</title>
|
---|
4140 |
|
---|
4141 | <para>This command supports monitoring the usage of system resources.
|
---|
4142 | Resources are represented by various metrics associated with the host
|
---|
4143 | system or a particular VM. For example, the host system has a
|
---|
4144 | <computeroutput>CPU/Load/User</computeroutput> metric that shows the
|
---|
4145 | percentage of time CPUs spend executing in user mode over a specific
|
---|
4146 | sampling period.</para>
|
---|
4147 |
|
---|
4148 | <para>Metric data is collected and retained internally; it may be
|
---|
4149 | retrieved at any time with the <computeroutput>VBoxManage metrics
|
---|
4150 | query</computeroutput> subcommand. The data is available as long as the
|
---|
4151 | background <computeroutput>VBoxSVC</computeroutput> process is alive. That
|
---|
4152 | process terminates shortly after all VMs and frontends have been
|
---|
4153 | closed.</para>
|
---|
4154 |
|
---|
4155 | <para>By default no metrics are collected at all. Metrics collection does
|
---|
4156 | not start until <computeroutput>VBoxManage metrics setup</computeroutput>
|
---|
4157 | is invoked with a proper sampling interval and the number of metrics to be
|
---|
4158 | retained. The interval is measured in seconds. For example, to enable
|
---|
4159 | collecting the host processor and memory usage metrics every second and
|
---|
4160 | keeping the 5 most current samples, the following command can be
|
---|
4161 | used:</para>
|
---|
4162 |
|
---|
4163 | <screen>VBoxManage metrics setup --period 1 --samples 5 host CPU/Load,RAM/Usage</screen>
|
---|
4164 |
|
---|
4165 | <para>Metric collection can only be enabled for started VMs. Collected
|
---|
4166 | data and collection settings for a particular VM will disappear as soon as
|
---|
4167 | it shuts down. Use <computeroutput>VBoxManage metrics list
|
---|
4168 | </computeroutput> subcommand to see which metrics are currently available.
|
---|
4169 | You can also use <computeroutput>--list</computeroutput> option with any
|
---|
4170 | subcommand that modifies metric settings to find out which metrics were
|
---|
4171 | affected.</para>
|
---|
4172 |
|
---|
4173 | <para>Note that the <computeroutput>VBoxManage metrics
|
---|
4174 | setup</computeroutput> subcommand discards all samples that may have been
|
---|
4175 | previously collected for the specified set of objects and metrics.</para>
|
---|
4176 |
|
---|
4177 | <para>To enable or disable metrics collection without discarding the data
|
---|
4178 | <computeroutput>VBoxManage metrics enable</computeroutput> and
|
---|
4179 | <computeroutput>VBoxManage metrics disable</computeroutput> subcommands
|
---|
4180 | can be used. Note that these subcommands expect metrics, not submetrics,
|
---|
4181 | like <code>CPU/Load</code> or <code>RAM/Usage</code> as parameters. In
|
---|
4182 | other words enabling <code>CPU/Load/User</code> while disabling
|
---|
4183 | <code>CPU/Load/Kernel</code> is not supported.</para>
|
---|
4184 |
|
---|
4185 | <para>The host and VMs have different sets of associated metrics.
|
---|
4186 | Available metrics can be listed with <computeroutput>VBoxManage metrics
|
---|
4187 | list</computeroutput> subcommand.</para>
|
---|
4188 |
|
---|
4189 | <para>A complete metric name may include an aggregate function. The name
|
---|
4190 | has the following form:
|
---|
4191 | <computeroutput>Category/Metric[/SubMetric][:aggregate]</computeroutput>.
|
---|
4192 | For example, <computeroutput>RAM/Usage/Free:min</computeroutput> stands
|
---|
4193 | for the minimum amount of available memory over all retained data if
|
---|
4194 | applied to the host object.</para>
|
---|
4195 |
|
---|
4196 | <para>Subcommands may apply to all objects and metrics or can be limited
|
---|
4197 | to one object or/and a list of metrics. If no objects or metrics are given
|
---|
4198 | in the parameters, the subcommands will apply to all available metrics of
|
---|
4199 | all objects. You may use an asterisk
|
---|
4200 | ("<computeroutput>*</computeroutput>") to explicitly specify that the
|
---|
4201 | command should be applied to all objects or metrics. Use "host" as the
|
---|
4202 | object name to limit the scope of the command to host-related metrics. To
|
---|
4203 | limit the scope to a subset of metrics, use a metric list with names
|
---|
4204 | separated by commas.</para>
|
---|
4205 |
|
---|
4206 | <para>For example, to query metric data on the CPU time spent in user and
|
---|
4207 | kernel modes by the virtual machine named "test", you can use the
|
---|
4208 | following command:</para>
|
---|
4209 |
|
---|
4210 | <screen>VBoxManage metrics query test CPU/Load/User,CPU/Load/Kernel</screen>
|
---|
4211 |
|
---|
4212 | <para>The following list summarizes the available subcommands:</para>
|
---|
4213 |
|
---|
4214 | <glosslist>
|
---|
4215 | <glossentry>
|
---|
4216 | <glossterm><computeroutput>list</computeroutput></glossterm>
|
---|
4217 |
|
---|
4218 | <glossdef>
|
---|
4219 | <para>This subcommand shows the parameters of the currently existing
|
---|
4220 | metrics. Note that VM-specific metrics are only available when a
|
---|
4221 | particular VM is running.</para>
|
---|
4222 | </glossdef>
|
---|
4223 | </glossentry>
|
---|
4224 |
|
---|
4225 | <glossentry>
|
---|
4226 | <glossterm><computeroutput>setup</computeroutput></glossterm>
|
---|
4227 |
|
---|
4228 | <glossdef>
|
---|
4229 | <para>This subcommand sets the interval between taking two samples
|
---|
4230 | of metric data and the number of samples retained internally. The
|
---|
4231 | retained data is available for displaying with the
|
---|
4232 | <code>query</code> subcommand. The <computeroutput>--list
|
---|
4233 | </computeroutput> option shows which metrics have been modified as
|
---|
4234 | the result of the command execution.</para>
|
---|
4235 | </glossdef>
|
---|
4236 | </glossentry>
|
---|
4237 |
|
---|
4238 | <glossentry>
|
---|
4239 | <glossterm><computeroutput>enable</computeroutput></glossterm>
|
---|
4240 |
|
---|
4241 | <glossdef>
|
---|
4242 | <para>This subcommand "resumes" data collection after it has been
|
---|
4243 | stopped with <code>disable</code> subcommand. Note that specifying
|
---|
4244 | submetrics as parameters will not enable underlying metrics. Use
|
---|
4245 | <computeroutput>--list</computeroutput> to find out if the command
|
---|
4246 | did what was expected.</para>
|
---|
4247 | </glossdef>
|
---|
4248 | </glossentry>
|
---|
4249 |
|
---|
4250 | <glossentry>
|
---|
4251 | <glossterm><computeroutput>disable</computeroutput></glossterm>
|
---|
4252 |
|
---|
4253 | <glossdef>
|
---|
4254 | <para>This subcommand "suspends" data collection without affecting
|
---|
4255 | collection parameters or collected data. Note that specifying
|
---|
4256 | submetrics as parameters will not disable underlying metrics. Use
|
---|
4257 | <computeroutput>--list</computeroutput> to find out if the command
|
---|
4258 | did what was expected.</para>
|
---|
4259 | </glossdef>
|
---|
4260 | </glossentry>
|
---|
4261 |
|
---|
4262 | <glossentry>
|
---|
4263 | <glossterm><computeroutput>query</computeroutput></glossterm>
|
---|
4264 |
|
---|
4265 | <glossdef>
|
---|
4266 | <para>This subcommand retrieves and displays the currently retained
|
---|
4267 | metric data.<note>
|
---|
4268 | <para>The <code>query</code> subcommand does not remove or
|
---|
4269 | "flush" retained data. If you query often enough you will see
|
---|
4270 | how old samples are gradually being "phased out" by new
|
---|
4271 | samples.</para>
|
---|
4272 | </note></para>
|
---|
4273 | </glossdef>
|
---|
4274 | </glossentry>
|
---|
4275 |
|
---|
4276 | <glossentry>
|
---|
4277 | <glossterm><computeroutput>collect</computeroutput></glossterm>
|
---|
4278 |
|
---|
4279 | <glossdef>
|
---|
4280 | <para>This subcommand sets the interval between taking two samples
|
---|
4281 | of metric data and the number of samples retained internally. The
|
---|
4282 | collected data is displayed periodically until Ctrl-C is pressed
|
---|
4283 | unless the <computeroutput>--detach</computeroutput> option is
|
---|
4284 | specified. With the <computeroutput>--detach</computeroutput>
|
---|
4285 | option, this subcommand operates the same way as <code>setup</code>
|
---|
4286 | does. The <computeroutput>--list</computeroutput> option shows which
|
---|
4287 | metrics match the specified filter.</para>
|
---|
4288 | </glossdef>
|
---|
4289 | </glossentry>
|
---|
4290 | </glosslist>
|
---|
4291 | </sect1>
|
---|
4292 |
|
---|
4293 | <sect1>
|
---|
4294 | <title>VBoxManage hostonlyif</title>
|
---|
4295 |
|
---|
4296 | <para>With "hostonlyif" you can change the IP configuration of a host-only
|
---|
4297 | network interface. For a description of host-only networking, please
|
---|
4298 | refer to <xref linkend="network_hostonly" />. Each host-only interface is
|
---|
4299 | identified by a name and can either use the internal DHCP server or a
|
---|
4300 | manual IP configuration (both IP4 and IP6).</para>
|
---|
4301 | </sect1>
|
---|
4302 |
|
---|
4303 | <sect1 id="vboxmanage-dhcpserver">
|
---|
4304 | <title>VBoxManage dhcpserver</title>
|
---|
4305 |
|
---|
4306 | <para>The "dhcpserver" commands allow you to control the DHCP server that
|
---|
4307 | is built into VirtualBox. You may find this useful when using internal or
|
---|
4308 | host-only networking. (Theoretically, you can enable it for a bridged
|
---|
4309 | network as well, but that will likely cause conflicts with other DHCP
|
---|
4310 | servers in your physical network.)</para>
|
---|
4311 |
|
---|
4312 | <para>Use the following command line options:<itemizedlist>
|
---|
4313 | <listitem>
|
---|
4314 | <para>If you use internal networking for a virtual network adapter
|
---|
4315 | of a virtual machine, use <computeroutput>VBoxManage dhcpserver add
|
---|
4316 | --netname <network_name></computeroutput>, where
|
---|
4317 | <computeroutput><network_name></computeroutput> is the same
|
---|
4318 | network name you used with <computeroutput>VBoxManage modifyvm
|
---|
4319 | <vmname> --intnet<X>
|
---|
4320 | <network_name></computeroutput>.</para>
|
---|
4321 | </listitem>
|
---|
4322 |
|
---|
4323 | <listitem>
|
---|
4324 | <para>If you use host-only networking for a virtual network adapter
|
---|
4325 | of a virtual machine, use <computeroutput>VBoxManage dhcpserver add
|
---|
4326 | --ifname <hostonly_if_name></computeroutput> instead, where
|
---|
4327 | <computeroutput><hostonly_if_name></computeroutput> is the
|
---|
4328 | same host-only interface name you used with
|
---|
4329 | <computeroutput>VBoxManage modifyvm <vmname>
|
---|
4330 | --hostonlyadapter<X>
|
---|
4331 | <hostonly_if_name></computeroutput>.</para>
|
---|
4332 |
|
---|
4333 | <para>Alternatively, you can also use the --netname option as with
|
---|
4334 | internal networks if you know the host-only network's name; you can
|
---|
4335 | see the names with <computeroutput>VBoxManage list
|
---|
4336 | hostonlyifs</computeroutput> (see <xref linkend="vboxmanage-list" />
|
---|
4337 | above).</para>
|
---|
4338 | </listitem>
|
---|
4339 | </itemizedlist></para>
|
---|
4340 |
|
---|
4341 | <para>The following additional parameters are required when first adding a
|
---|
4342 | DHCP server:<itemizedlist>
|
---|
4343 | <listitem>
|
---|
4344 | <para>With <computeroutput>--ip</computeroutput>, specify the IP
|
---|
4345 | address of the DHCP server itself.</para>
|
---|
4346 | </listitem>
|
---|
4347 |
|
---|
4348 | <listitem>
|
---|
4349 | <para>With <computeroutput>--netmask</computeroutput>, specify the
|
---|
4350 | netmask of the network.</para>
|
---|
4351 | </listitem>
|
---|
4352 |
|
---|
4353 | <listitem>
|
---|
4354 | <para>With <computeroutput>--lowerip</computeroutput> and
|
---|
4355 | <computeroutput>--upperip</computeroutput>, you can specify the
|
---|
4356 | lowest and highest IP address, respectively, that the DHCP server
|
---|
4357 | will hand out to clients.</para>
|
---|
4358 | </listitem>
|
---|
4359 | </itemizedlist></para>
|
---|
4360 |
|
---|
4361 | <para>Finally, you must specify <computeroutput>--enable</computeroutput>
|
---|
4362 | or the DHCP server will be created in the disabled state, doing
|
---|
4363 | nothing.</para>
|
---|
4364 |
|
---|
4365 | <para>After this, VirtualBox will automatically start the DHCP server for
|
---|
4366 | given internal or host-only network as soon as the first virtual machine
|
---|
4367 | which uses that network is started.</para>
|
---|
4368 |
|
---|
4369 | <para>Reversely, use <computeroutput>VBoxManage dhcpserver
|
---|
4370 | remove</computeroutput> with the given <computeroutput>--netname
|
---|
4371 | <network_name></computeroutput> or <computeroutput>--ifname
|
---|
4372 | <hostonly_if_name></computeroutput> to remove the DHCP server again
|
---|
4373 | for the given internal or host-only network.</para>
|
---|
4374 |
|
---|
4375 | <para>To modify the settings of a DHCP server created earlier with
|
---|
4376 | <computeroutput>VBoxManage dhcpserver add</computeroutput>, you can use
|
---|
4377 | <computeroutput>VBoxManage dhcpserver modify</computeroutput> for a given
|
---|
4378 | network or host-only interface name.</para>
|
---|
4379 | </sect1>
|
---|
4380 |
|
---|
4381 | <sect1 id="vboxmanage-extpack">
|
---|
4382 | <title>VBoxManage extpack</title>
|
---|
4383 |
|
---|
4384 | <para>The "extpack" command allows you to add or remove VirtualBox
|
---|
4385 | extension packs, as described in <xref
|
---|
4386 | linkend="intro-installing" />.<itemizedlist>
|
---|
4387 | <listitem>
|
---|
4388 | <para>To add a new extension pack, use <computeroutput>VBoxManage
|
---|
4389 | extpack install <.vbox-extpack></computeroutput>. This command
|
---|
4390 | will fail if an older version of the same extension pack is already
|
---|
4391 | installed. The optional <computeroutput>--replace</computeroutput>
|
---|
4392 | parameter can be used to uninstall the old package before the new
|
---|
4393 | package is installed.</para>
|
---|
4394 | </listitem>
|
---|
4395 |
|
---|
4396 | <listitem>
|
---|
4397 | <para>To remove a previously installed extension pack, use
|
---|
4398 | <computeroutput>VBoxManage extpack uninstall
|
---|
4399 | <name></computeroutput>. You can use
|
---|
4400 | <computeroutput>VBoxManage list extpacks</computeroutput> to show
|
---|
4401 | the names of the extension packs which are currently installed;
|
---|
4402 | please see <xref linkend="vboxmanage-list" /> also. The optional
|
---|
4403 | <computeroutput>--force</computeroutput> parameter can be used to
|
---|
4404 | override the refusal of an extension pack to be uninstalled.</para>
|
---|
4405 | </listitem>
|
---|
4406 |
|
---|
4407 | <listitem>
|
---|
4408 | <para>The <computeroutput>VBoxManage extpack
|
---|
4409 | cleanup</computeroutput> command can be used to remove temporary
|
---|
4410 | files and directories that may have been left behind if a previous
|
---|
4411 | install or uninstall command failed.</para>
|
---|
4412 | </listitem>
|
---|
4413 | </itemizedlist></para>
|
---|
4414 | <para>The following commands show examples how to list extension packs and
|
---|
4415 | remove one:<screen>
|
---|
4416 | $ VBoxManage list extpacks
|
---|
4417 | Extension Packs: 1
|
---|
4418 | Pack no. 0: Oracle VM VirtualBox Extension Pack
|
---|
4419 | Version: 4.1.12
|
---|
4420 | Revision: 77218
|
---|
4421 | Edition:
|
---|
4422 | Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
|
---|
4423 | VRDE Module: VBoxVRDP
|
---|
4424 | Usable: true
|
---|
4425 | Why unusable:
|
---|
4426 | $ VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
|
---|
4427 | 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
|
---|
4428 | Successfully uninstalled "Oracle VM VirtualBox Extension Pack".</screen></para>
|
---|
4429 | </sect1>
|
---|
4430 | </chapter>
|
---|