1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | manpage, user manual, usage: VBoxManage guestcontrol
|
---|
4 |
|
---|
5 | Copyright (C) 2006-2020 Oracle Corporation
|
---|
6 |
|
---|
7 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | available from http://www.virtualbox.org. This file is free software;
|
---|
9 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | General Public License (GPL) as published by the Free Software
|
---|
11 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | -->
|
---|
15 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
16 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
|
---|
17 | <!ENTITY % all.entities SYSTEM "all-entities.ent">
|
---|
18 | %all.entities;
|
---|
19 | ]>
|
---|
20 | <refentry id="vboxmanage-guestcontrol" lang="en">
|
---|
21 | <refentryinfo>
|
---|
22 | <pubdate>September 2019</pubdate>
|
---|
23 | <title>VBoxManage guestcontrol</title>
|
---|
24 | </refentryinfo>
|
---|
25 |
|
---|
26 | <refmeta>
|
---|
27 | <refentrytitle>VBoxManage-guestcontrol</refentrytitle>
|
---|
28 | <manvolnum>1</manvolnum>
|
---|
29 | </refmeta>
|
---|
30 |
|
---|
31 | <refnamediv>
|
---|
32 | <refname>VBoxManage-guestcontrol</refname>
|
---|
33 | <refpurpose>control a virtual machine from the host system</refpurpose>
|
---|
34 | <refclass>Oracle VM VirtualBox</refclass>
|
---|
35 | </refnamediv>
|
---|
36 |
|
---|
37 | <refsynopsisdiv>
|
---|
38 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-run">
|
---|
39 | <!-- The 'id' is mandatory and must start with 'synopsis-'. -->
|
---|
40 | <command>VBoxManage guestcontrol</command>
|
---|
41 | <group choice="req">
|
---|
42 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
43 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
44 | </group>
|
---|
45 | <arg choice="plain">run</arg>
|
---|
46 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
47 | <arg>--dos2unix</arg>
|
---|
48 | <arg>--exe=<replaceable>filename</replaceable></arg>
|
---|
49 | <arg>--ignore-orphaned-processes</arg>
|
---|
50 | <group>
|
---|
51 | <arg choice="plain">--no-wait-stderr</arg>
|
---|
52 | <arg choice="plain">--wait-stderr</arg>
|
---|
53 | </group>
|
---|
54 | <group>
|
---|
55 | <arg choice="plain">--no-wait-stdout</arg>
|
---|
56 | <arg choice="plain">--wait-stdout</arg>
|
---|
57 | </group>
|
---|
58 | <group>
|
---|
59 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
60 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
61 | </group>
|
---|
62 | <arg>--profile</arg>
|
---|
63 | <arg>--putenv=<replaceable>var-name</replaceable>=[<replaceable>value</replaceable>]</arg>
|
---|
64 | <arg>--quiet</arg>
|
---|
65 | <arg>--timeout=<replaceable>msec</replaceable></arg>
|
---|
66 | <arg>--unix2dos</arg>
|
---|
67 | <arg>--unquoted-args</arg>
|
---|
68 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
69 | <arg>--verbose</arg>
|
---|
70 | <arg choice="req">-- <replaceable>program/arg0</replaceable> <arg rep="repeat"><replaceable>argument</replaceable></arg></arg>
|
---|
71 | </cmdsynopsis>
|
---|
72 |
|
---|
73 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-start">
|
---|
74 | <command>VBoxManage guestcontrol</command>
|
---|
75 | <group choice="req">
|
---|
76 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
77 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
78 | </group>
|
---|
79 | <arg choice="plain">start</arg>
|
---|
80 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
81 | <arg>--exe=<replaceable>filename</replaceable></arg>
|
---|
82 | <arg>--ignore-orphaned-processes</arg>
|
---|
83 | <group>
|
---|
84 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
85 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
86 | </group>
|
---|
87 | <arg>--profile</arg>
|
---|
88 | <arg>--putenv=<replaceable>var-name</replaceable>=[<replaceable>value</replaceable>]</arg>
|
---|
89 | <arg>--quiet</arg>
|
---|
90 | <arg>--timeout=<replaceable>msec</replaceable></arg>
|
---|
91 | <arg>--unquoted-args</arg>
|
---|
92 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
93 | <arg>--verbose</arg>
|
---|
94 | <arg choice="req">-- <replaceable>program/arg0</replaceable> <arg rep="repeat"><replaceable>argument</replaceable></arg></arg>
|
---|
95 | </cmdsynopsis>
|
---|
96 |
|
---|
97 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-copyfrom-hostdest">
|
---|
98 | <command>VBoxManage guestcontrol</command>
|
---|
99 | <group choice="req">
|
---|
100 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
101 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
102 | </group>
|
---|
103 | <arg choice="plain">copyfrom</arg>
|
---|
104 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
105 | <arg>--follow</arg>
|
---|
106 | <group>
|
---|
107 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
108 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
109 | </group>
|
---|
110 | <arg>--quiet</arg>
|
---|
111 | <arg>--recursive</arg>
|
---|
112 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
113 | <arg>--verbose</arg>
|
---|
114 | <arg choice="req"><replaceable>guest-source0</replaceable></arg>
|
---|
115 | <arg choice="plain"><replaceable>guest-source1</replaceable> [...]</arg>
|
---|
116 | <arg choice="req"><replaceable>host-destination</replaceable></arg>
|
---|
117 | </cmdsynopsis>
|
---|
118 |
|
---|
119 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-copyfrom-hostdestdir">
|
---|
120 | <command>VBoxManage guestcontrol</command>
|
---|
121 | <group choice="req">
|
---|
122 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
123 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
124 | </group>
|
---|
125 | <arg choice="plain">copyfrom</arg>
|
---|
126 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
127 | <arg>--follow</arg>
|
---|
128 | <group>
|
---|
129 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
130 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
131 | </group>
|
---|
132 | <arg>--quiet</arg>
|
---|
133 | <arg>--recursive</arg>
|
---|
134 | <arg>--target-directory=<replaceable>host-destination-dir</replaceable></arg>
|
---|
135 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
136 | <arg>--verbose</arg>
|
---|
137 | <arg choice="req"><replaceable>guest-source0</replaceable></arg>
|
---|
138 | <arg choice="plain"><replaceable>guest-source1</replaceable> [...]</arg>
|
---|
139 | </cmdsynopsis>
|
---|
140 |
|
---|
141 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-copyto-hostdest">
|
---|
142 | <command>VBoxManage guestcontrol</command>
|
---|
143 | <group choice="req">
|
---|
144 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
145 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
146 | </group>
|
---|
147 | <arg choice="plain">copyto</arg>
|
---|
148 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
149 | <arg>--follow</arg>
|
---|
150 | <group>
|
---|
151 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
152 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
153 | </group>
|
---|
154 | <arg>--quiet</arg>
|
---|
155 | <arg>--recursive</arg>
|
---|
156 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
157 | <arg>--verbose</arg>
|
---|
158 | <arg choice="req"><replaceable>host-source0</replaceable></arg>
|
---|
159 | <arg choice="plain"><replaceable>host-source1</replaceable> [...]</arg>
|
---|
160 | <arg choice="req"><replaceable>guest-destination</replaceable></arg>
|
---|
161 | </cmdsynopsis>
|
---|
162 |
|
---|
163 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-copyto-hostdestdir">
|
---|
164 | <command>VBoxManage guestcontrol</command>
|
---|
165 | <group choice="req">
|
---|
166 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
167 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
168 | </group>
|
---|
169 | <arg choice="plain">copyto</arg>
|
---|
170 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
171 | <arg>--follow</arg>
|
---|
172 | <group>
|
---|
173 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
174 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
175 | </group>
|
---|
176 | <arg>--quiet</arg>
|
---|
177 | <arg>--recursive</arg>
|
---|
178 | <arg>--target-directory=<replaceable>guest-destination-dir</replaceable></arg>
|
---|
179 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
180 | <arg>--verbose</arg>
|
---|
181 | <arg choice="req"><replaceable>host-source0</replaceable></arg>
|
---|
182 | <arg choice="plain"><replaceable>host-source1</replaceable> [...]</arg>
|
---|
183 | </cmdsynopsis>
|
---|
184 |
|
---|
185 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-mkdir">
|
---|
186 | <command>VBoxManage guestcontrol</command>
|
---|
187 | <group choice="req">
|
---|
188 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
189 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
190 | </group>
|
---|
191 | <arg choice="plain">mkdir</arg>
|
---|
192 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
193 | <arg>--mode=<replaceable>mode</replaceable></arg>
|
---|
194 | <arg>--parents</arg>
|
---|
195 | <group>
|
---|
196 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
197 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
198 | </group>
|
---|
199 | <arg>--quiet</arg>
|
---|
200 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
201 | <arg>--verbose</arg>
|
---|
202 | <arg choice="req" rep="repeat"><replaceable>guest-directory</replaceable></arg>
|
---|
203 | </cmdsynopsis>
|
---|
204 |
|
---|
205 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-rmdir">
|
---|
206 | <command>VBoxManage guestcontrol</command>
|
---|
207 | <group choice="req">
|
---|
208 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
209 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
210 | </group>
|
---|
211 | <arg choice="plain">rmdir</arg>
|
---|
212 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
213 | <group>
|
---|
214 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
215 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
216 | </group>
|
---|
217 | <arg>--quiet</arg>
|
---|
218 | <arg>--recursive</arg>
|
---|
219 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
220 | <arg>--verbose</arg>
|
---|
221 | <arg choice="req" rep="repeat"><replaceable>guest-directory</replaceable></arg>
|
---|
222 | </cmdsynopsis>
|
---|
223 |
|
---|
224 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-rm">
|
---|
225 | <command>VBoxManage guestcontrol</command>
|
---|
226 | <group choice="req">
|
---|
227 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
228 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
229 | </group>
|
---|
230 | <arg choice="plain">rm</arg>
|
---|
231 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
232 | <arg>--force</arg>
|
---|
233 | <group>
|
---|
234 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
235 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
236 | </group>
|
---|
237 | <arg>--quiet</arg>
|
---|
238 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
239 | <arg>--verbose</arg>
|
---|
240 | <arg choice="req" rep="repeat"><replaceable>guest-directory</replaceable></arg>
|
---|
241 | </cmdsynopsis>
|
---|
242 |
|
---|
243 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-mv">
|
---|
244 | <command>VBoxManage guestcontrol</command>
|
---|
245 | <group choice="req">
|
---|
246 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
247 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
248 | </group>
|
---|
249 | <arg choice="plain">mv</arg>
|
---|
250 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
251 | <group>
|
---|
252 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
253 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
254 | </group>
|
---|
255 | <arg>--quiet</arg>
|
---|
256 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
257 | <arg>--verbose</arg>
|
---|
258 | <arg choice="req" rep="repeat"><replaceable>source</replaceable></arg>
|
---|
259 | <arg choice="req"><replaceable>destination-directory</replaceable></arg>
|
---|
260 | </cmdsynopsis>
|
---|
261 |
|
---|
262 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-mktemp">
|
---|
263 | <command>VBoxManage guestcontrol</command>
|
---|
264 | <group choice="req">
|
---|
265 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
266 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
267 | </group>
|
---|
268 | <arg choice="plain">mktemp</arg>
|
---|
269 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
270 | <arg>--mode=<replaceable>mode</replaceable></arg>
|
---|
271 | <group>
|
---|
272 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
273 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
274 | </group>
|
---|
275 | <arg>--quiet</arg>
|
---|
276 | <arg>--secure</arg>
|
---|
277 | <arg>--tmpdir=<replaceable>directory-name</replaceable></arg>
|
---|
278 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
279 | <arg>--verbose</arg>
|
---|
280 | <arg choice="req"><replaceable>template-name</replaceable></arg>
|
---|
281 | </cmdsynopsis>
|
---|
282 |
|
---|
283 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-stat">
|
---|
284 | <command>VBoxManage guestcontrol</command>
|
---|
285 | <group choice="req">
|
---|
286 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
287 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
288 | </group>
|
---|
289 | <arg choice="plain">stat</arg>
|
---|
290 | <arg>--domain=<replaceable>domainname</replaceable></arg>
|
---|
291 | <group>
|
---|
292 | <arg choice="plain">--passwordfile=<replaceable>password-file</replaceable></arg>
|
---|
293 | <arg choice="plain">--password=<replaceable>password</replaceable></arg>
|
---|
294 | </group>
|
---|
295 | <arg>--quiet</arg>
|
---|
296 | <arg>--username=<replaceable>username</replaceable></arg>
|
---|
297 | <arg>--verbose</arg>
|
---|
298 | <arg choice="req"><replaceable>filename</replaceable></arg>
|
---|
299 | </cmdsynopsis>
|
---|
300 |
|
---|
301 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-list">
|
---|
302 | <command>VBoxManage guestcontrol</command>
|
---|
303 | <group choice="req">
|
---|
304 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
305 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
306 | </group>
|
---|
307 | <arg choice="plain">list</arg>
|
---|
308 | <group choice="req">
|
---|
309 | <arg choice="plain">all</arg>
|
---|
310 | <arg choice="plain">files</arg>
|
---|
311 | <arg choice="plain">processes</arg>
|
---|
312 | <arg choice="plain">sessions</arg>
|
---|
313 | </group>
|
---|
314 | <arg>--quiet</arg>
|
---|
315 | <arg>--verbose</arg>
|
---|
316 | </cmdsynopsis>
|
---|
317 |
|
---|
318 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-closeprocess">
|
---|
319 | <command>VBoxManage guestcontrol</command>
|
---|
320 | <group choice="req">
|
---|
321 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
322 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
323 | </group>
|
---|
324 | <arg choice="plain">closeprocess</arg>
|
---|
325 | <group>
|
---|
326 | <arg choice="plain">--session-id=<replaceable>ID</replaceable></arg>
|
---|
327 | <arg choice="plain">--session-name=<replaceable>name-or-pattern</replaceable></arg>
|
---|
328 | </group>
|
---|
329 | <arg>--quiet</arg>
|
---|
330 | <arg>--verbose</arg>
|
---|
331 | <arg choice="req" rep="repeat"><replaceable>PID</replaceable></arg>
|
---|
332 | </cmdsynopsis>
|
---|
333 |
|
---|
334 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-closesession">
|
---|
335 | <command>VBoxManage guestcontrol</command>
|
---|
336 | <group choice="req">
|
---|
337 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
338 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
339 | </group>
|
---|
340 | <arg choice="plain">closesession</arg>
|
---|
341 | <group>
|
---|
342 | <arg choice="plain">--all</arg>
|
---|
343 | <arg choice="plain">--session-id=<replaceable>ID</replaceable></arg>
|
---|
344 | <arg choice="plain">--session-name=<replaceable>name-or-pattern</replaceable></arg>
|
---|
345 | </group>
|
---|
346 | <arg>--quiet</arg>
|
---|
347 | <arg>--verbose</arg>
|
---|
348 | </cmdsynopsis>
|
---|
349 |
|
---|
350 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-updatega">
|
---|
351 | <command>VBoxManage guestcontrol</command>
|
---|
352 | <group choice="req">
|
---|
353 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
354 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
355 | </group>
|
---|
356 | <arg choice="plain">updatega</arg>
|
---|
357 | <arg>--quiet</arg>
|
---|
358 | <arg>--verbose</arg>
|
---|
359 | <arg>--source=<replaceable>guest-additions.ISO</replaceable></arg>
|
---|
360 | <arg>--wait-start</arg>
|
---|
361 | <arg>-- <arg rep="repeat"><replaceable>argument</replaceable></arg></arg>
|
---|
362 | </cmdsynopsis>
|
---|
363 |
|
---|
364 | <cmdsynopsis id="synopsis-vboxmanage-guestcontrol-watch">
|
---|
365 | <command>VBoxManage guestcontrol</command>
|
---|
366 | <group choice="req">
|
---|
367 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
368 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
369 | </group>
|
---|
370 | <arg choice="plain">watch</arg>
|
---|
371 | <arg>--quiet</arg>
|
---|
372 | <arg>--verbose</arg>
|
---|
373 | </cmdsynopsis>
|
---|
374 | </refsynopsisdiv>
|
---|
375 |
|
---|
376 | <refsect1>
|
---|
377 | <title>Description</title>
|
---|
378 | <para>
|
---|
379 | The <command>VBoxManage guestcontrol</command> command enables you
|
---|
380 | to control a guest virtual machine (VM) from the host system. See
|
---|
381 | <xref linkend="guestadd-guestcontrol" />.
|
---|
382 | </para>
|
---|
383 | <refsect2>
|
---|
384 | <title>Common Options and Operands</title>
|
---|
385 | <para>
|
---|
386 | The following options can be used by any of the
|
---|
387 | <command>VBoxManage guestcontrol</command> subcommands:
|
---|
388 | </para>
|
---|
389 | <variablelist>
|
---|
390 | <varlistentry>
|
---|
391 | <term><replaceable>uuid</replaceable>|<replaceable>vmname</replaceable></term>
|
---|
392 | <listitem><para>
|
---|
393 | Specifies the Universally Unique Identifier (UUID) or name
|
---|
394 | of the VM.
|
---|
395 | </para></listitem>
|
---|
396 | </varlistentry>
|
---|
397 | <varlistentry>
|
---|
398 | <term><option>--quiet</option></term>
|
---|
399 | <listitem><para>
|
---|
400 | Specifies that the command produce quieter output.
|
---|
401 | </para><para>
|
---|
402 | The short form of this option is <option>-q</option>.
|
---|
403 | </para></listitem>
|
---|
404 | </varlistentry>
|
---|
405 | <varlistentry>
|
---|
406 | <term><option>--verbose</option></term>
|
---|
407 | <listitem><para>
|
---|
408 | Specifies that the command produce more detailed output.
|
---|
409 | </para><para>
|
---|
410 | The short form of this option is <option>-v</option>.
|
---|
411 | </para></listitem>
|
---|
412 | </varlistentry>
|
---|
413 | </variablelist>
|
---|
414 | <para>
|
---|
415 | Some of the <command>VBoxManage guestcontrol</command>
|
---|
416 | subcommands require that you provide guest credentials for
|
---|
417 | authentication. The subcommands are:
|
---|
418 | <command>copyfrom</command>, <command>copyto</command>,
|
---|
419 | <command>mkdir</command>, <command>mktemp</command>,
|
---|
420 | <command>mv</command>, <command>rmdir</command>,
|
---|
421 | <command>rm</command>, <command>run</command>,
|
---|
422 | <command>start</command>, and <command>stat</command>.
|
---|
423 | </para>
|
---|
424 | <para>
|
---|
425 | While you cannot perform anonymous executions, a user account
|
---|
426 | password is optional and depends on the guest's OS security
|
---|
427 | policy. If a user account does not have an associated password,
|
---|
428 | specify an empty password. On OSes such as Windows, you might
|
---|
429 | need to adjust the security policy to permit user accounts with
|
---|
430 | an empty password. In additional, global domain rules might
|
---|
431 | apply and therefore cannot be changed.
|
---|
432 | </para>
|
---|
433 | <para>
|
---|
434 | The following options are used for authentication on the guest
|
---|
435 | VM:
|
---|
436 | </para>
|
---|
437 | <variablelist>
|
---|
438 | <varlistentry>
|
---|
439 | <term><option>--domain=<replaceable>domainname</replaceable></option></term>
|
---|
440 | <listitem><para>
|
---|
441 | Specifies the user domain for Windows guest VMs.
|
---|
442 | </para></listitem>
|
---|
443 | </varlistentry>
|
---|
444 | <varlistentry>
|
---|
445 | <term><option>--password=<replaceable>password</replaceable></option></term>
|
---|
446 | <listitem><para>
|
---|
447 | Specifies the password for the specified user. If you do
|
---|
448 | not specify a password on the command line or if the
|
---|
449 | password file is empty, the specified user has a null
|
---|
450 | password.
|
---|
451 | </para></listitem>
|
---|
452 | </varlistentry>
|
---|
453 | <varlistentry>
|
---|
454 | <term><option>--passwordfile=<replaceable>filename</replaceable></option></term>
|
---|
455 | <listitem><para>
|
---|
456 | Specifies the absolute path to a file on the guest OS that
|
---|
457 | contains the password for the specified user. If the
|
---|
458 | password file is empty or if you do not specify a password
|
---|
459 | on the command line, the specified user has a null
|
---|
460 | password.
|
---|
461 | </para></listitem>
|
---|
462 | </varlistentry>
|
---|
463 | <varlistentry>
|
---|
464 | <term><option>--username=<replaceable>username</replaceable></option></term>
|
---|
465 | <listitem><para>
|
---|
466 | Specifies an existing user on the guest OS that runs the
|
---|
467 | process. If unspecified, the host user runs the process.
|
---|
468 | </para></listitem>
|
---|
469 | </varlistentry>
|
---|
470 | </variablelist>
|
---|
471 | </refsect2>
|
---|
472 | <refsect2>
|
---|
473 | <title>Guest Process Restrictions</title>
|
---|
474 | <para>
|
---|
475 | By default, you can run up to five guest processes
|
---|
476 | simultaneously. If a new guest process starts and would exceed
|
---|
477 | this limit, the oldest not-running guest process is discarded to
|
---|
478 | run the new process. You cannot retrieve output from a discarded
|
---|
479 | guest process. If all five guest processes are active and
|
---|
480 | running, attempting to start a new guest process fails.
|
---|
481 | </para>
|
---|
482 | <para>
|
---|
483 | You can modify the guest process execution limit in two ways:
|
---|
484 | </para>
|
---|
485 | <itemizedlist>
|
---|
486 | <listitem><para>
|
---|
487 | Use the <command>VBoxManage setproperty</command> command to
|
---|
488 | update the
|
---|
489 | <literal>/VirtualBox/GuestAdd/VBoxService/--control-procs-max-kept</literal>
|
---|
490 | guest property value.
|
---|
491 | </para></listitem>
|
---|
492 | <listitem><para>
|
---|
493 | Use the <command>VBoxService</command> command and specify
|
---|
494 | the
|
---|
495 | <option>--control-procs-max-kept=<replaceable>value</replaceable></option>
|
---|
496 | option.
|
---|
497 | </para></listitem>
|
---|
498 | </itemizedlist>
|
---|
499 | <para>
|
---|
500 | After you change the limit, you must restart the guest OS.
|
---|
501 | </para>
|
---|
502 | <para>
|
---|
503 | You can serve an unlimited number guest processes by specifing a
|
---|
504 | value of <literal>0</literal>, however this action is not
|
---|
505 | recommended.
|
---|
506 | </para>
|
---|
507 | </refsect2>
|
---|
508 | <refsect2 id="vboxmanage-guestcontrol-run">
|
---|
509 | <title>Run a Command on the Guest Virtual Machine</title>
|
---|
510 | <remark role="help-copy-synopsis"/>
|
---|
511 | <para>
|
---|
512 | The <command>VBoxManage guestcontrol
|
---|
513 | <replaceable>vmname</replaceable> run</command> command enables
|
---|
514 | you to execute a program on the guest VM. Standard input,
|
---|
515 | standard output, and standard error are redirected from the VM
|
---|
516 | to the host system until the program completes.
|
---|
517 | </para>
|
---|
518 | <note>
|
---|
519 | <para>
|
---|
520 | The Windows OS imposes certain limitations for graphical
|
---|
521 | applications. See <xref linkend="KnownIssues" />.
|
---|
522 | </para>
|
---|
523 | </note>
|
---|
524 | <variablelist>
|
---|
525 | <varlistentry>
|
---|
526 | <term><option>--exe=<replaceable>path-to-executable</replaceable></option></term>
|
---|
527 | <listitem><para>
|
---|
528 | Specifies the absolute path of the executable program to
|
---|
529 | run on the guest VM. For example:
|
---|
530 | <filename>C:\Windows\System32\calc.exe</filename>.
|
---|
531 | </para></listitem>
|
---|
532 | </varlistentry>
|
---|
533 | <varlistentry>
|
---|
534 | <term><option>--timeout=<replaceable>msec</replaceable></option></term>
|
---|
535 | <listitem><para>
|
---|
536 | Specifies the maximum amount of time, in milliseconds,
|
---|
537 | that the program can run. While the program runs,
|
---|
538 | <command>VBoxManage</command> receives its output.
|
---|
539 | </para><para>
|
---|
540 | If you do not specify a timeout value,
|
---|
541 | <command>VBoxManage</command> waits indefinitely for the
|
---|
542 | process to end, or for an error to occur.
|
---|
543 | </para></listitem>
|
---|
544 | </varlistentry>
|
---|
545 | <varlistentry>
|
---|
546 | <term><option>--putenv=<replaceable>NAME</replaceable>=[<replaceable>value</replaceable>]</option></term>
|
---|
547 | <listitem><para>
|
---|
548 | Sets, modifies, and unsets environment variables in the
|
---|
549 | guest VM environment.
|
---|
550 | </para><para>
|
---|
551 | When you create a guest process, it runs with the default
|
---|
552 | standard guest OS environment. Use this option to modify
|
---|
553 | environment variables in that default environment.
|
---|
554 | </para><para>
|
---|
555 | Use the
|
---|
556 | <option>--putenv=<replaceable>NAME</replaceable>=[<replaceable>value</replaceable>]</option>
|
---|
557 | option to set or modify the environment variable specified
|
---|
558 | by <replaceable>NAME</replaceable>.
|
---|
559 | </para><para>
|
---|
560 | Use the
|
---|
561 | <option>--putenv=<replaceable>NAME</replaceable>=[<replaceable>value</replaceable>]</option>
|
---|
562 | option to unset the environment variable specified by
|
---|
563 | <replaceable>NAME</replaceable>.
|
---|
564 | </para><para>
|
---|
565 | Ensure that any environment variable name or value that
|
---|
566 | includes spaces is enclosed by quotes.
|
---|
567 | </para><para>
|
---|
568 | Specify a <option>--putenv</option> option for each
|
---|
569 | environment variable that you want to modify.
|
---|
570 | </para><para>
|
---|
571 | The short form of this option is <option>-E</option>.
|
---|
572 | </para></listitem>
|
---|
573 | </varlistentry>
|
---|
574 | <varlistentry>
|
---|
575 | <term><option>--unquoted-args</option></term>
|
---|
576 | <listitem><para>
|
---|
577 | Disables the escaped double quoting of arguments that you
|
---|
578 | pass to the program. For example,
|
---|
579 | <literal>\"fred\"</literal>.
|
---|
580 | </para></listitem>
|
---|
581 | </varlistentry>
|
---|
582 | <varlistentry>
|
---|
583 | <term><option>--ignore-orphaned-processes</option></term>
|
---|
584 | <listitem><para>
|
---|
585 | Ignores orphaned processes. Not yet implemented.
|
---|
586 | </para></listitem>
|
---|
587 | </varlistentry>
|
---|
588 | <varlistentry>
|
---|
589 | <term><option>--profile</option></term>
|
---|
590 | <listitem><para>
|
---|
591 | Uses a shell profile to specify the environment to use.
|
---|
592 | Not yet implemented.
|
---|
593 | </para></listitem>
|
---|
594 | </varlistentry>
|
---|
595 | <varlistentry>
|
---|
596 | <term><option>--no-wait-stdout</option></term>
|
---|
597 | <listitem><para>
|
---|
598 | Does not wait for the guest process to end or receive its
|
---|
599 | exit code and any failure explanation.
|
---|
600 | </para></listitem>
|
---|
601 | </varlistentry>
|
---|
602 | <varlistentry>
|
---|
603 | <term><option>--wait-stdout</option></term>
|
---|
604 | <listitem><para>
|
---|
605 | Waits for the guest process to end to receive its exit
|
---|
606 | code and any failure explanation. The
|
---|
607 | <command>VBoxManage</command> command receives the
|
---|
608 | standard output of the guest process while the process
|
---|
609 | runs.
|
---|
610 | </para></listitem>
|
---|
611 | </varlistentry>
|
---|
612 | <varlistentry>
|
---|
613 | <term><option>--no-wait-stderr</option></term>
|
---|
614 | <listitem><para>
|
---|
615 | Does not wait for the guest process to end to receive its
|
---|
616 | exit code, error messages, and flags.
|
---|
617 | </para></listitem>
|
---|
618 | </varlistentry>
|
---|
619 | <varlistentry>
|
---|
620 | <term><option>--wait-stderr</option></term>
|
---|
621 | <listitem><para>
|
---|
622 | Waits for the guest process to end to receive its exit
|
---|
623 | code, error messages, and flags. The
|
---|
624 | <command>VBoxManage</command> command receives the
|
---|
625 | standard error of the guest process while the process
|
---|
626 | runs.
|
---|
627 | </para></listitem>
|
---|
628 | </varlistentry>
|
---|
629 | <varlistentry>
|
---|
630 | <term><option>--dos2unix</option></term>
|
---|
631 | <listitem><para>
|
---|
632 | Transform DOS or Windows guest output to UNIX or Linux
|
---|
633 | output. This transformation changes CR + LF line endings
|
---|
634 | to LF. Not yet implemented.
|
---|
635 | </para></listitem>
|
---|
636 | </varlistentry>
|
---|
637 | <varlistentry>
|
---|
638 | <term><option>--unix2dos</option></term>
|
---|
639 | <listitem><para>
|
---|
640 | Transform UNIX or Linux guest output to DOS or Windows
|
---|
641 | output. This transformation changes LF line endings to CR
|
---|
642 | + LF.
|
---|
643 | </para></listitem>
|
---|
644 | </varlistentry>
|
---|
645 | <varlistentry>
|
---|
646 | <term><option>-- <replaceable>program/arg0</replaceable> [<replaceable>argument</replaceable>...]</option></term>
|
---|
647 | <listitem><para>
|
---|
648 | Specifies the name of the program and any arguments to
|
---|
649 | pass to the program.
|
---|
650 | </para><para>
|
---|
651 | Ensure that any command argument that includes spaces is
|
---|
652 | enclosed by quotes.
|
---|
653 | </para></listitem>
|
---|
654 | </varlistentry>
|
---|
655 | </variablelist>
|
---|
656 | </refsect2>
|
---|
657 | <refsect2 id="vboxmanage-guestcontrol-start">
|
---|
658 | <title>Start a Command on the Guest Virtual Machine</title>
|
---|
659 | <remark role="help-copy-synopsis"/>
|
---|
660 | <para>
|
---|
661 | The <command>VBoxManage guestcontrol
|
---|
662 | <replaceable>vmname</replaceable> start</command> command
|
---|
663 | enables you to execute a guest program until it completes.
|
---|
664 | </para>
|
---|
665 | <note>
|
---|
666 | <para>
|
---|
667 | The Windows OS imposes certain limitations for graphical
|
---|
668 | applications. See <xref linkend="KnownIssues" />.
|
---|
669 | </para>
|
---|
670 | </note>
|
---|
671 | </refsect2>
|
---|
672 | <refsect2 id="vboxmanage-guestcontrol-copyfrom-hostdest">
|
---|
673 | <title>Copy a File From the Guest Virtual Machine to the Host System</title>
|
---|
674 | <remark role="help-copy-synopsis"/>
|
---|
675 | <para>
|
---|
676 | The <command>VBoxManage guestcontrol
|
---|
677 | <replaceable>vmname</replaceable> copyfrom</command> command
|
---|
678 | enables you to copy a file from the guest VM to the host system.
|
---|
679 | </para>
|
---|
680 | <variablelist>
|
---|
681 | <varlistentry>
|
---|
682 | <term><option>--follow</option></term>
|
---|
683 | <listitem><para>
|
---|
684 | Enables following of symbolic links on the guest file
|
---|
685 | system.
|
---|
686 | </para></listitem>
|
---|
687 | </varlistentry>
|
---|
688 | <varlistentry>
|
---|
689 | <term><option>--recursive</option></term>
|
---|
690 | <listitem><para>
|
---|
691 | Recursively copies files and directories from the
|
---|
692 | specified directory on the guest VM.
|
---|
693 | </para><para>
|
---|
694 | The short form of this option is <option>-R</option>.
|
---|
695 | </para></listitem>
|
---|
696 | </varlistentry>
|
---|
697 | <varlistentry>
|
---|
698 | <term><literal><replaceable>guest-source0</replaceable> [<replaceable>guest-source1</replaceable> [...]]</literal></term>
|
---|
699 | <listitem><para>
|
---|
700 | Specifies the absolute path of one or more files to copy
|
---|
701 | from the guest VM. For example,
|
---|
702 | <filename>C:\Windows\System32\calc.exe</filename>. You can
|
---|
703 | use wildcards to specify multiple files. For example,
|
---|
704 | <filename>C:\Windows\System*\*.dll</filename>.
|
---|
705 | </para></listitem>
|
---|
706 | </varlistentry>
|
---|
707 | </variablelist>
|
---|
708 | </refsect2>
|
---|
709 | <refsect2 id="vboxmanage-guestcontrol-copyfrom-hostdestdir">
|
---|
710 | <title>Copy a File From the Guest Virtual Machine to a Directory on the Host
|
---|
711 | System</title>
|
---|
712 | <remark role="help-copy-synopsis"/>
|
---|
713 | <para>
|
---|
714 | The <command>VBoxManage guestcontrol
|
---|
715 | <replaceable>vmname</replaceable> copyfrom</command> command
|
---|
716 | enables you to copy a file from the guest VM to the host system.
|
---|
717 | </para>
|
---|
718 | <variablelist>
|
---|
719 | <varlistentry>
|
---|
720 | <term><option>--follow</option></term>
|
---|
721 | <listitem><para>
|
---|
722 | Enables following of symbolic links on the guest file
|
---|
723 | system.
|
---|
724 | </para></listitem>
|
---|
725 | </varlistentry>
|
---|
726 | <varlistentry>
|
---|
727 | <term><option>--recursive</option></term>
|
---|
728 | <listitem><para>
|
---|
729 | Recursively copies files and directories from the
|
---|
730 | specified directory on the guest VM.
|
---|
731 | </para><para>
|
---|
732 | The short form of this option is <option>-R</option>.
|
---|
733 | </para></listitem>
|
---|
734 | </varlistentry>
|
---|
735 | <varlistentry>
|
---|
736 | <term><option>--target-directory=<replaceable>host-dst-dir</replaceable></option></term>
|
---|
737 | <listitem><para>
|
---|
738 | Specifies the absolute path of the destination directory
|
---|
739 | on the host system. For example,
|
---|
740 | <filename>C:\Temp</filename>.
|
---|
741 | </para></listitem>
|
---|
742 | </varlistentry>
|
---|
743 | <varlistentry>
|
---|
744 | <term><literal><replaceable>guest-source0</replaceable> [<replaceable>guest-source1</replaceable> [...]]</literal></term>
|
---|
745 | <listitem><para>
|
---|
746 | Specifies the absolute path of one or more the files to
|
---|
747 | copy from the guest VM. For example,
|
---|
748 | <filename>C:\Windows\System32\calc.exe</filename>. You can
|
---|
749 | use wildcards to specify multiple files. For example,
|
---|
750 | <filename>C:\Windows\System*\*.dll</filename>.
|
---|
751 | </para></listitem>
|
---|
752 | </varlistentry>
|
---|
753 | </variablelist>
|
---|
754 | </refsect2>
|
---|
755 | <refsect2 id="vboxmanage-guestcontrol-copyto-hostdest">
|
---|
756 | <title>Copy a File to the Guest Virtual Machine From the Host System</title>
|
---|
757 | <remark role="help-copy-synopsis"/>
|
---|
758 | <para>
|
---|
759 | The <command>VBoxManage guestcontrol
|
---|
760 | <replaceable>vmname</replaceable> copyto</command> command
|
---|
761 | enables you to copy a file from the host system to the guest VM.
|
---|
762 | </para>
|
---|
763 | <variablelist>
|
---|
764 | <varlistentry>
|
---|
765 | <term><option>--follow</option></term>
|
---|
766 | <listitem><para>
|
---|
767 | Enables following of symbolic links on the host system.
|
---|
768 | </para></listitem>
|
---|
769 | </varlistentry>
|
---|
770 | <varlistentry>
|
---|
771 | <term><option>--recursive</option></term>
|
---|
772 | <listitem><para>
|
---|
773 | Recursively copies files and directories from the
|
---|
774 | specified directory on the host system.
|
---|
775 | </para><para>
|
---|
776 | The short form of this option is <option>-R</option>.
|
---|
777 | </para></listitem>
|
---|
778 | </varlistentry>
|
---|
779 | <varlistentry>
|
---|
780 | <term><literal><replaceable>host-source0</replaceable> [<replaceable>host-source1</replaceable> [...]]</literal></term>
|
---|
781 | <listitem><para>
|
---|
782 | Specifies the absolute path of one or more the files to
|
---|
783 | copy from the host system. For example,
|
---|
784 | <filename>C:\Windows\System32\calc.exe</filename>. You can
|
---|
785 | use wildcards to specify multiple files. For example,
|
---|
786 | <filename>C:\Windows\System*\*.dll</filename>.
|
---|
787 | </para></listitem>
|
---|
788 | </varlistentry>
|
---|
789 | </variablelist>
|
---|
790 | </refsect2>
|
---|
791 | <refsect2 id="vboxmanage-guestcontrol-copyto-hostdestdir">
|
---|
792 | <title>Copy a File to a Directory on the Guest Virtual Machine From the Host
|
---|
793 | System</title>
|
---|
794 | <remark role="help-copy-synopsis"/>
|
---|
795 | <para>
|
---|
796 | The <command>VBoxManage guestcontrol
|
---|
797 | <replaceable>vmname</replaceable> copyto</command> command
|
---|
798 | enables you to copy a file from the host system to the guest VM.
|
---|
799 | </para>
|
---|
800 | <variablelist>
|
---|
801 | <varlistentry>
|
---|
802 | <term><option>--follow</option></term>
|
---|
803 | <listitem><para>
|
---|
804 | Enables following of symbolic links on the host system.
|
---|
805 | </para></listitem>
|
---|
806 | </varlistentry>
|
---|
807 | <varlistentry>
|
---|
808 | <term><option>--recursive</option></term>
|
---|
809 | <listitem><para>
|
---|
810 | Recursively copies files and directories from the
|
---|
811 | specified directory on the host system.
|
---|
812 | </para><para>
|
---|
813 | The short form of this option is <option>-R</option>.
|
---|
814 | </para></listitem>
|
---|
815 | </varlistentry>
|
---|
816 | <varlistentry>
|
---|
817 | <term><option>--target-directory=<replaceable>guest-dst-dir</replaceable></option></term>
|
---|
818 | <listitem><para>
|
---|
819 | Specifies the absolute path of the destination directory
|
---|
820 | on the guest VM. For example,
|
---|
821 | <filename>C:\Temp</filename>.
|
---|
822 | </para></listitem>
|
---|
823 | </varlistentry>
|
---|
824 | <varlistentry>
|
---|
825 | <term><literal><replaceable>host-source0</replaceable> [<replaceable>host-source1</replaceable> [...]]</literal></term>
|
---|
826 | <listitem><para>
|
---|
827 | Specifies the absolute path of one or more the files to
|
---|
828 | copy from the host system. For example,
|
---|
829 | <filename>C:\Windows\System32\calc.exe</filename>. You can
|
---|
830 | use wildcards to specify multiple files. For example,
|
---|
831 | <filename>C:\Windows\System*\*.dll</filename>.
|
---|
832 | </para></listitem>
|
---|
833 | </varlistentry>
|
---|
834 | </variablelist>
|
---|
835 | </refsect2>
|
---|
836 | <refsect2 id="vboxmanage-guestcontrol-mkdir">
|
---|
837 | <title>Create a Directory on the Guest Virtual Machine</title>
|
---|
838 | <remark role="help-copy-synopsis"/>
|
---|
839 | <para>
|
---|
840 | The <command>VBoxManage guestcontrol
|
---|
841 | <replaceable>vmname</replaceable> mkdir</command> command
|
---|
842 | enables you to create one or more directories on the guest VM.
|
---|
843 | </para>
|
---|
844 | <para>
|
---|
845 | Alternate forms of this subcommand are <command>md</command>,
|
---|
846 | <command>createdir</command>, and
|
---|
847 | <command>createdirectory</command>.
|
---|
848 | </para>
|
---|
849 | <variablelist>
|
---|
850 | <varlistentry>
|
---|
851 | <term><option>--parents</option></term>
|
---|
852 | <listitem><para>
|
---|
853 | Creates any of the missing parent directories of the
|
---|
854 | specified directory.
|
---|
855 | </para><para>
|
---|
856 | For example, if you attempt to create the
|
---|
857 | <filename>D:\Foo\Bar</filename> directory and the
|
---|
858 | <filename>D:\Foo</filename> directory does not exist,
|
---|
859 | using the <option>--parents</option> creates the missing
|
---|
860 | <filename>D:\Foo</filename> directory. However, if you
|
---|
861 | attempt to create the <filename>D:\Foo\Bar</filename> and
|
---|
862 | do not specify the <option>--parents</option> option, the
|
---|
863 | command fails.
|
---|
864 | </para></listitem>
|
---|
865 | </varlistentry>
|
---|
866 | <varlistentry>
|
---|
867 | <term><option>--mode=<replaceable>mode</replaceable></option></term>
|
---|
868 | <listitem><para>
|
---|
869 | Specifies the permission mode to use for the specified
|
---|
870 | directory. If you specify the <option>--parents</option>
|
---|
871 | option, the mode is used for the associated parent
|
---|
872 | directories, as well. <replaceable>mode</replaceable> is a
|
---|
873 | four-digit octal mode such as <literal>0755</literal>.
|
---|
874 | </para></listitem>
|
---|
875 | </varlistentry>
|
---|
876 | <varlistentry>
|
---|
877 | <term><literal><replaceable>guest-dir</replaceable> [<replaceable>guest-dir</replaceable>...]</literal></term>
|
---|
878 | <listitem><para>
|
---|
879 | Specifies an absolute path of one or more directories to
|
---|
880 | create on the guest VM. For example,
|
---|
881 | <filename>D:\Foo\Bar</filename>.
|
---|
882 | </para><para>
|
---|
883 | If all of the associated parent directories do not exist
|
---|
884 | on the guest VM, you must specify the
|
---|
885 | <option>--parents</option> option.
|
---|
886 | </para><para>
|
---|
887 | You must have sufficient rights on the guest VM to create
|
---|
888 | the specified directory and its parent directories.
|
---|
889 | </para></listitem>
|
---|
890 | </varlistentry>
|
---|
891 | </variablelist>
|
---|
892 | </refsect2>
|
---|
893 | <refsect2 id="vboxmanage-guestcontrol-rmdir">
|
---|
894 | <title>Remove a Directory From the Guest Virtual Machine</title>
|
---|
895 | <remark role="help-copy-synopsis"/>
|
---|
896 | <para>
|
---|
897 | The <command>VBoxManage guestcontrol
|
---|
898 | <replaceable>vmname</replaceable> rmdir</command> command
|
---|
899 | enables you to delete the specified directory from the guest VM.
|
---|
900 | </para>
|
---|
901 | <para>
|
---|
902 | Alternate forms of this subcommand are
|
---|
903 | <command>removedir</command> and
|
---|
904 | <command>removedirectory</command>.
|
---|
905 | </para>
|
---|
906 | <variablelist>
|
---|
907 | <varlistentry>
|
---|
908 | <term><option>--recursive</option></term>
|
---|
909 | <listitem><para>
|
---|
910 | Recursively removes directories from the specified from
|
---|
911 | the guest VM.
|
---|
912 | </para><para>
|
---|
913 | The short form of this option is <option>-R</option>.
|
---|
914 | </para></listitem>
|
---|
915 | </varlistentry>
|
---|
916 | <varlistentry>
|
---|
917 | <term><literal><replaceable>guest-dir</replaceable> [<replaceable>guest-dir</replaceable>...]</literal></term>
|
---|
918 | <listitem><para>
|
---|
919 | Specifies an absolute path of one or more directories to
|
---|
920 | remove from the guest VM. You can use wildcards to specify
|
---|
921 | the directory names. For example,
|
---|
922 | <filename>D:\Foo\*Bar</filename>.
|
---|
923 | </para><para>
|
---|
924 | You must have sufficient rights on the guest VM to remove
|
---|
925 | the specified directory and its parent directories.
|
---|
926 | </para></listitem>
|
---|
927 | </varlistentry>
|
---|
928 | </variablelist>
|
---|
929 | </refsect2>
|
---|
930 | <refsect2 id="vboxmanage-guestcontrol-rm">
|
---|
931 | <title>Remove a File From the Guest Virtual Machine</title>
|
---|
932 | <remark role="help-copy-synopsis"/>
|
---|
933 | <para>
|
---|
934 | The <command>VBoxManage guestcontrol
|
---|
935 | <replaceable>vmname</replaceable> rm</command> command enables
|
---|
936 | you to delete the specified files from the guest VM.
|
---|
937 | </para>
|
---|
938 | <para>
|
---|
939 | The alternate form of this subcommand is
|
---|
940 | <command>removefile</command>.
|
---|
941 | </para>
|
---|
942 | <variablelist>
|
---|
943 | <varlistentry>
|
---|
944 | <term><option>--force</option></term>
|
---|
945 | <listitem><para>
|
---|
946 | Forces the operation and overrides any confirmation
|
---|
947 | requests.
|
---|
948 | </para><para>
|
---|
949 | The short form of this option is <option>-f</option>.
|
---|
950 | </para></listitem>
|
---|
951 | </varlistentry>
|
---|
952 | <varlistentry>
|
---|
953 | <term><literal><replaceable>guest-file</replaceable> [<replaceable>guest-file</replaceable>...]</literal></term>
|
---|
954 | <listitem><para>
|
---|
955 | Specifies an absolute path of one or more file to remove
|
---|
956 | from the guest VM. You can use wildcards to specify the
|
---|
957 | file names. For example,
|
---|
958 | <filename>D:\Foo\Bar\text*.txt</filename>.
|
---|
959 | </para><para>
|
---|
960 | You must have sufficient rights on the guest VM to remove
|
---|
961 | the specified file.
|
---|
962 | </para></listitem>
|
---|
963 | </varlistentry>
|
---|
964 | </variablelist>
|
---|
965 | </refsect2>
|
---|
966 | <refsect2 id="vboxmanage-guestcontrol-mv">
|
---|
967 | <title>Rename a File or Directory on the Guest Virtual Machine</title>
|
---|
968 | <remark role="help-copy-synopsis"/>
|
---|
969 | <para>
|
---|
970 | The <command>VBoxManage guestcontrol
|
---|
971 | <replaceable>vmname</replaceable> mv</command> command enables
|
---|
972 | you to rename files and directories on the guest VM.
|
---|
973 | </para>
|
---|
974 | <para>
|
---|
975 | Alternate forms of this subcommand are <command>move</command>,
|
---|
976 | <command>ren</command>, and <command>rename</command>.
|
---|
977 | </para>
|
---|
978 | <variablelist>
|
---|
979 | <varlistentry>
|
---|
980 | <term><literal><replaceable>guest-source</replaceable> [<replaceable>guest-source</replaceable>...]</literal></term>
|
---|
981 | <listitem><para>
|
---|
982 | Specifies an absolute path of a file or a single directory
|
---|
983 | to move or rename on the guest VM. You can use wildcards
|
---|
984 | to specify the file names.
|
---|
985 | </para><para>
|
---|
986 | You must have sufficient rights on the guest VM to access
|
---|
987 | the specified file or directory.
|
---|
988 | </para></listitem>
|
---|
989 | </varlistentry>
|
---|
990 | <varlistentry>
|
---|
991 | <term><replaceable>dest</replaceable></term>
|
---|
992 | <listitem><para>
|
---|
993 | Specifies the absolute path of the renamed file or
|
---|
994 | directory, or the destination directory to which to move
|
---|
995 | the files. If you move only one file,
|
---|
996 | <replaceable>dest</replaceable> can be a file or a
|
---|
997 | directory, otherwise <replaceable>dest</replaceable> must
|
---|
998 | be a directory.
|
---|
999 | </para><para>
|
---|
1000 | You must have sufficient rights on the guest VM to access
|
---|
1001 | the destination file or directory.
|
---|
1002 | </para></listitem>
|
---|
1003 | </varlistentry>
|
---|
1004 | </variablelist>
|
---|
1005 | </refsect2>
|
---|
1006 | <refsect2 id="vboxmanage-guestcontrol-mktemp">
|
---|
1007 | <title>Create a Temporary File or Directory on the Guest Virtual Machine</title>
|
---|
1008 | <remark role="help-copy-synopsis"/>
|
---|
1009 | <para>
|
---|
1010 | The <command>VBoxManage guestcontrol
|
---|
1011 | <replaceable>vmname</replaceable> mktemp</command> command
|
---|
1012 | enables you to create a temporary file or temporary directory on
|
---|
1013 | the guest VM. You can use this command to assist with the
|
---|
1014 | subsequent copying of files from the host system to the guest
|
---|
1015 | VM. By default, this command creates the file or directory in
|
---|
1016 | the guest VM's platform-specific <filename>temp</filename>
|
---|
1017 | directory.
|
---|
1018 | </para>
|
---|
1019 | <para>
|
---|
1020 | Alternate forms of this subcommand are
|
---|
1021 | <command>createtemp</command> and
|
---|
1022 | <command>createtemporary</command>.
|
---|
1023 | </para>
|
---|
1024 | <variablelist>
|
---|
1025 | <varlistentry>
|
---|
1026 | <term><option>--directory</option></term>
|
---|
1027 | <listitem><para>
|
---|
1028 | Creates a temporary directory that is specified by the
|
---|
1029 | <replaceable>template</replaceable> operand.
|
---|
1030 | </para></listitem>
|
---|
1031 | </varlistentry>
|
---|
1032 | <varlistentry>
|
---|
1033 | <term><option>--secure</option></term>
|
---|
1034 | <listitem><para>
|
---|
1035 | Enforces secure file and directory creation by setting the
|
---|
1036 | permission mode to <literal>0755</literal>. Any operation
|
---|
1037 | that cannot be performed securely fails.
|
---|
1038 | </para></listitem>
|
---|
1039 | </varlistentry>
|
---|
1040 | <varlistentry>
|
---|
1041 | <term><option>--mode=<replaceable>mode</replaceable></option></term>
|
---|
1042 | <listitem><para>
|
---|
1043 | Specifies the permission mode to use for the specified
|
---|
1044 | directory. <replaceable>mode</replaceable> is a four-digit
|
---|
1045 | octal mode such as <literal>0755</literal>.
|
---|
1046 | </para></listitem>
|
---|
1047 | </varlistentry>
|
---|
1048 | <varlistentry>
|
---|
1049 | <term><option>--tmpdir=<replaceable>directory</replaceable></option></term>
|
---|
1050 | <listitem><para>
|
---|
1051 | Specifies the absolute path of the directory on the guest
|
---|
1052 | VM in which to create the specified file or directory. If
|
---|
1053 | unspecified, <replaceable>directory</replaceable> is the
|
---|
1054 | platform-specific <filename>temp</filename> directory.
|
---|
1055 | </para></listitem>
|
---|
1056 | </varlistentry>
|
---|
1057 | <varlistentry>
|
---|
1058 | <term><replaceable>template</replaceable></term>
|
---|
1059 | <listitem><para>
|
---|
1060 | Specifies a template file name for the temporary file,
|
---|
1061 | without a directory path. The template file name must
|
---|
1062 | contain at least one sequence of three consecutive X
|
---|
1063 | characters, or must end in X.
|
---|
1064 | </para></listitem>
|
---|
1065 | </varlistentry>
|
---|
1066 | </variablelist>
|
---|
1067 | </refsect2>
|
---|
1068 | <refsect2 id="vboxmanage-guestcontrol-stat">
|
---|
1069 | <title>Show a File or File System Status on the Guest Virtual Machine</title>
|
---|
1070 | <remark role="help-copy-synopsis"/>
|
---|
1071 | <para>
|
---|
1072 | The <command>VBoxManage guestcontrol
|
---|
1073 | <replaceable>vmname</replaceable> stat</command> command enables
|
---|
1074 | you to show the status of files or file systems on the guest VM.
|
---|
1075 | </para>
|
---|
1076 | <variablelist>
|
---|
1077 | <varlistentry>
|
---|
1078 | <term><literal><replaceable>file</replaceable> [<replaceable>file</replaceable> ...]</literal></term>
|
---|
1079 | <listitem><para>
|
---|
1080 | Specifies an absolute path of a file or file system on the
|
---|
1081 | guest VM. For example,
|
---|
1082 | <filename>/home/foo/a.out</filename>.
|
---|
1083 | </para><para>
|
---|
1084 | You must have sufficient rights on the guest VM to access
|
---|
1085 | the specified files or file systems.
|
---|
1086 | </para></listitem>
|
---|
1087 | </varlistentry>
|
---|
1088 | </variablelist>
|
---|
1089 | </refsect2>
|
---|
1090 | <refsect2 id="vboxmanage-guestcontrol-list">
|
---|
1091 | <title>List the Configuration and Status Information for a Guest Virtual
|
---|
1092 | Machine</title>
|
---|
1093 | <remark role="help-copy-synopsis"/>
|
---|
1094 | <para>
|
---|
1095 | The <command>VBoxManage guestcontrol
|
---|
1096 | <replaceable>vmname</replaceable> list</command> command enables
|
---|
1097 | you to list guest control configuration and status information.
|
---|
1098 | For example, the output shows open guest sessions, guest
|
---|
1099 | processes, and files.
|
---|
1100 | </para>
|
---|
1101 | <variablelist>
|
---|
1102 | <varlistentry>
|
---|
1103 | <term><literal>all</literal>|<literal>sessions</literal>|<literal>processes</literal>|<literal>files</literal></term>
|
---|
1104 | <listitem><para>
|
---|
1105 | Indicates the type of information to show.
|
---|
1106 | <literal>all</literal> shows all available data,
|
---|
1107 | <literal>sessions</literal> shows guest sessions,
|
---|
1108 | <literal>processes</literal> shows processes, and
|
---|
1109 | <literal>files</literal> shows files.
|
---|
1110 | </para></listitem>
|
---|
1111 | </varlistentry>
|
---|
1112 | </variablelist>
|
---|
1113 | </refsect2>
|
---|
1114 | <refsect2 id="vboxmanage-guestcontrol-closeprocess">
|
---|
1115 | <title>Terminate a Process in a Guest Virtual Machine Session</title>
|
---|
1116 | <remark role="help-copy-synopsis"/>
|
---|
1117 | <para>
|
---|
1118 | The <command>VBoxManage guestcontrol
|
---|
1119 | <replaceable>vmname</replaceable> closeprocess</command> command
|
---|
1120 | enables you to terminate a guest process that runs in a guest
|
---|
1121 | session. Specify the process by using a process identifier (PID)
|
---|
1122 | and the session by using the session ID or name.
|
---|
1123 | </para>
|
---|
1124 | <variablelist>
|
---|
1125 | <varlistentry>
|
---|
1126 | <term><option>--session-id=<replaceable>ID</replaceable></option></term>
|
---|
1127 | <listitem><para>
|
---|
1128 | Specifies the ID of the guest session.
|
---|
1129 | </para></listitem>
|
---|
1130 | </varlistentry>
|
---|
1131 | <varlistentry>
|
---|
1132 | <term><option>--session-name=<replaceable>name</replaceable>|<replaceable>pattern</replaceable></option></term>
|
---|
1133 | <listitem><para>
|
---|
1134 | Specifies the name of the guest session. Use a pattern
|
---|
1135 | that contains wildcards to specify multiple sessions.
|
---|
1136 | </para></listitem>
|
---|
1137 | </varlistentry>
|
---|
1138 | <varlistentry>
|
---|
1139 | <term><literal><replaceable>PID</replaceable> [<replaceable>PID</replaceable> ...]</literal></term>
|
---|
1140 | <listitem><para>
|
---|
1141 | Specifies the list of PIDs of guest processes to
|
---|
1142 | terminate.
|
---|
1143 | </para></listitem>
|
---|
1144 | </varlistentry>
|
---|
1145 | </variablelist>
|
---|
1146 | </refsect2>
|
---|
1147 | <refsect2 id="vboxmanage-guestcontrol-closesession">
|
---|
1148 | <title>Close a Guest Virtual Machine Session</title>
|
---|
1149 | <remark role="help-copy-synopsis"/>
|
---|
1150 | <para>
|
---|
1151 | The <command>VBoxManage guestcontrol
|
---|
1152 | <replaceable>vmname</replaceable> closesession</command> command
|
---|
1153 | enables you to close a guest session. Specify the guest session
|
---|
1154 | either by session ID or by name.
|
---|
1155 | </para>
|
---|
1156 | <variablelist>
|
---|
1157 | <varlistentry>
|
---|
1158 | <term><option>--session-id=<replaceable>ID</replaceable></option></term>
|
---|
1159 | <listitem><para>
|
---|
1160 | Specifies the ID of the guest session.
|
---|
1161 | </para></listitem>
|
---|
1162 | </varlistentry>
|
---|
1163 | <varlistentry>
|
---|
1164 | <term><option>--session-name=<replaceable>name</replaceable>|<replaceable>pattern</replaceable></option></term>
|
---|
1165 | <listitem><para>
|
---|
1166 | Specifies the name of the guest session. Use a pattern
|
---|
1167 | that contains wildcards to specify multiple sessions.
|
---|
1168 | </para></listitem>
|
---|
1169 | </varlistentry>
|
---|
1170 | <varlistentry>
|
---|
1171 | <term><option>--all</option></term>
|
---|
1172 | <listitem><para>
|
---|
1173 | Closes all guest sessions.
|
---|
1174 | </para></listitem>
|
---|
1175 | </varlistentry>
|
---|
1176 | </variablelist>
|
---|
1177 | </refsect2>
|
---|
1178 | <refsect2 id="vboxmanage-guestcontrol-updatega">
|
---|
1179 | <title>Update the Guest Additions Software on the Guest Virtual Machine</title>
|
---|
1180 | <remark role="help-copy-synopsis"/>
|
---|
1181 | <para>
|
---|
1182 | The <command>VBoxManage guestcontrol
|
---|
1183 | <replaceable>vmname</replaceable> updatega</command> command
|
---|
1184 | enables you to update the Guest Additions software installed in
|
---|
1185 | the specified guest VM.
|
---|
1186 | </para>
|
---|
1187 | <para>
|
---|
1188 | Alternate forms of this subcommand are
|
---|
1189 | <command>updateadditions</command> and
|
---|
1190 | <command>updateguestadditions</command>.
|
---|
1191 | </para>
|
---|
1192 | <variablelist>
|
---|
1193 | <varlistentry>
|
---|
1194 | <term><option>--source=<replaceable>new-iso-path</replaceable></option></term>
|
---|
1195 | <listitem><para>
|
---|
1196 | Specifies the absolute path of the Guest Additions update
|
---|
1197 | <filename>.ISO</filename> file on the guest VM.
|
---|
1198 | </para></listitem>
|
---|
1199 | </varlistentry>
|
---|
1200 | <varlistentry>
|
---|
1201 | <term><option>--reboot</option></term>
|
---|
1202 | <listitem><para>
|
---|
1203 | Automatically reboots the guest after a successful Guest Additions
|
---|
1204 | update.
|
---|
1205 | </para></listitem>
|
---|
1206 | </varlistentry>
|
---|
1207 | <varlistentry>
|
---|
1208 | <term><option>--timeout=<replaceable>ms</replaceable></option></term>
|
---|
1209 | <listitem><para>
|
---|
1210 | Sets the timeout (in ms) to wait for the overall Guest Additions update
|
---|
1211 | to complete. By default no timeout is being used.
|
---|
1212 | </para></listitem>
|
---|
1213 | </varlistentry>
|
---|
1214 | <varlistentry>
|
---|
1215 | <term><option>--verify</option></term>
|
---|
1216 | <listitem><para>
|
---|
1217 | Verifies whether the Guest Additions were updated successfully after
|
---|
1218 | a successful installation. A guest reboot is mandatory.
|
---|
1219 | </para></listitem>
|
---|
1220 | </varlistentry>
|
---|
1221 | <varlistentry>
|
---|
1222 | <term><option>--wait-ready</option></term>
|
---|
1223 | <listitem><para>
|
---|
1224 | Waits for the current Guest Additions being ready to handle the
|
---|
1225 | Guest Additions update.
|
---|
1226 | </para>
|
---|
1227 | </listitem>
|
---|
1228 | </varlistentry>
|
---|
1229 | <varlistentry>
|
---|
1230 | <term><option>--wait-start</option></term>
|
---|
1231 | <listitem><para>
|
---|
1232 | Starts the <command>VBoxManage</command> update process on
|
---|
1233 | the guest VM and then waits for the Guest Additions update
|
---|
1234 | to begin before terminating the
|
---|
1235 | <command>VBoxManage</command> process.
|
---|
1236 | </para><para>
|
---|
1237 | By default, the <command>VBoxManage</command> command
|
---|
1238 | waits for the Guest Additions update to complete before it
|
---|
1239 | terminates. Use this option when a running
|
---|
1240 | <command>VBoxManage</command> process affects the
|
---|
1241 | interaction between the installer and the guest OS.
|
---|
1242 | </para></listitem>
|
---|
1243 | </varlistentry>
|
---|
1244 | <varlistentry>
|
---|
1245 | <term><option>-- <replaceable>argument</replaceable> [<replaceable>argument</replaceable> ...]</option></term>
|
---|
1246 | <listitem><para>
|
---|
1247 | Specifies optional command-line arguments to pass to the
|
---|
1248 | Guest Additions updater. You might use the
|
---|
1249 | <option>--</option> option to pass the appropriate updater
|
---|
1250 | arguments to retrofit features that are not yet installed.
|
---|
1251 | </para><para>
|
---|
1252 | Ensure that any command argument that includes spaces is
|
---|
1253 | enclosed by quotes.
|
---|
1254 | </para></listitem>
|
---|
1255 | </varlistentry>
|
---|
1256 | </variablelist>
|
---|
1257 | </refsect2>
|
---|
1258 | <refsect2 id="vboxmanage-guestcontrol-waitrunlevel">
|
---|
1259 | <title>Wait for a guest run level</title>
|
---|
1260 | <para>
|
---|
1261 | The <command>VBoxManage guestcontrol
|
---|
1262 | <replaceable>vmname</replaceable> waitrunlevel</command> command
|
---|
1263 | enables you to wait for a guest run level being reached.
|
---|
1264 | </para>
|
---|
1265 | <variablelist>
|
---|
1266 | <varlistentry>
|
---|
1267 | <term><option>--timeout=<replaceable>ms</replaceable></option></term>
|
---|
1268 | <listitem><para>
|
---|
1269 | Sets the timeout (in ms) to wait for reaching the run level.
|
---|
1270 | By default no timeout is being used.
|
---|
1271 | </para></listitem>
|
---|
1272 | </varlistentry>
|
---|
1273 | <varlistentry>
|
---|
1274 | <term><option><replaceable>system</replaceable>|<replaceable>userland</replaceable>|<replaceable>desktop</replaceable></option></term>
|
---|
1275 | <listitem><para>
|
---|
1276 | Specifies the run level to wait for.
|
---|
1277 | </para></listitem>
|
---|
1278 | </varlistentry>
|
---|
1279 | </variablelist>
|
---|
1280 | </refsect2>
|
---|
1281 | <refsect2 id="vboxmanage-guestcontrol-watch">
|
---|
1282 | <title>Show Current Guest Control Activity</title>
|
---|
1283 | <remark role="help-copy-synopsis"/>
|
---|
1284 | <para>
|
---|
1285 | The <command>VBoxManage guestcontrol
|
---|
1286 | <replaceable>vmname</replaceable> watch</command> command
|
---|
1287 | enables you to show current guest control activity.
|
---|
1288 | </para>
|
---|
1289 | </refsect2>
|
---|
1290 | </refsect1>
|
---|
1291 |
|
---|
1292 | <refsect1>
|
---|
1293 | <title>Examples</title>
|
---|
1294 | <remark role="help-scope" condition="GLOBAL"/>
|
---|
1295 | <para>
|
---|
1296 | The following <command>VBoxManage guestcontrol run</command>
|
---|
1297 | command executes the <command>ls -l /usr</command> command on the
|
---|
1298 | <literal>My OL VM</literal> Oracle Linux VM as the
|
---|
1299 | <literal>user1</literal> user.
|
---|
1300 | </para>
|
---|
1301 | <screen>
|
---|
1302 | $ VBoxManage --nologo guestcontrol "My OL VM" run --exe "/bin/ls" \
|
---|
1303 | --username user1 --passwordfile pw.txt --wait-stdout -- -l /usr
|
---|
1304 | </screen>
|
---|
1305 | <para>
|
---|
1306 | The <option>--exe</option> option specifies the absolute path of
|
---|
1307 | the command to run in the guest VM, <filename>/bin/ls</filename>.
|
---|
1308 | Use the <option>--</option> option to pass any arguments that
|
---|
1309 | follow it to the <command>ls</command> command.
|
---|
1310 | </para>
|
---|
1311 | <para>
|
---|
1312 | Use the <option>--username</option> option to specify the user
|
---|
1313 | name, <literal>user1</literal> and use the
|
---|
1314 | <option>--passwordfile</option> option to specify the name of a
|
---|
1315 | file that includes the password for the <literal>user1</literal>
|
---|
1316 | user, <filename>pw.txt</filename>.
|
---|
1317 | </para>
|
---|
1318 | <para>
|
---|
1319 | The <option>--wait-stdout</option> option waits for the
|
---|
1320 | <command>ls</command> guest process to complete before providing
|
---|
1321 | the exit code and the command output. The
|
---|
1322 | <option>--nologo</option> option suppresses the output of the logo
|
---|
1323 | information.
|
---|
1324 | </para>
|
---|
1325 | <para>
|
---|
1326 | The following <command>VBoxManage guestcontrol run</command>
|
---|
1327 | command executes the <command>ipconfig</command> command on the
|
---|
1328 | <literal>My Win VM</literal> Windows VM as the
|
---|
1329 | <literal>user1</literal> user. Standard input, standard output,
|
---|
1330 | and standard error are redirected from the VM to the host system
|
---|
1331 | until the program completes.
|
---|
1332 | </para>
|
---|
1333 | <screen>
|
---|
1334 | $ VBoxManage --nologo guestcontrol "My Win VM" run \
|
---|
1335 | --exe "c:\\windows\\system32\\ipconfig.exe" \
|
---|
1336 | --username user1 --passwordfile pw.txt --wait-stdout
|
---|
1337 | </screen>
|
---|
1338 | <para>
|
---|
1339 | The <option>--exe</option> specifies the absolute path of command
|
---|
1340 | to run in the guest VM,
|
---|
1341 | <filename>c:\windows\system32\ipconfig.exe</filename>. The double
|
---|
1342 | backslashes shown in this example are required only on UNIX host
|
---|
1343 | systems.
|
---|
1344 | </para>
|
---|
1345 | <para>
|
---|
1346 | Use the <option>--username</option> option to specify the user
|
---|
1347 | name, <literal>user1</literal> and use the
|
---|
1348 | <option>--passwordfile</option> option to specify the name of a
|
---|
1349 | file that includes the password for the <literal>user1</literal>
|
---|
1350 | user, <filename>pw.txt</filename>.
|
---|
1351 | </para>
|
---|
1352 | <para>
|
---|
1353 | The <option>--wait-stdout</option> option waits for the
|
---|
1354 | <command>ls</command> guest process to complete before providing
|
---|
1355 | the exit code and the command output. The
|
---|
1356 | <option>--nologo</option> option to suppress the output of the
|
---|
1357 | logo information.
|
---|
1358 | </para>
|
---|
1359 | <para>
|
---|
1360 | The following <command>VBoxManage guestcontrol start</command>
|
---|
1361 | command executes the <command>ls -l /usr</command> command on the
|
---|
1362 | <literal>My OL VM</literal> Oracle Linux VM until the program
|
---|
1363 | completes.
|
---|
1364 | </para>
|
---|
1365 | <screen>
|
---|
1366 | $ VBoxManage --nologo guestcontrol "My Win VM" start \
|
---|
1367 | --exe "c:\\windows\\system32\\ipconfig.exe" \
|
---|
1368 | --username user1 --passwordfile pw.txt --wait-stdout
|
---|
1369 | </screen>
|
---|
1370 | </refsect1>
|
---|
1371 | </refentry>
|
---|