VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-guestproperty.xml@ 82057

Last change on this file since 82057 was 82057, checked in by vboxsync, 5 years ago

doc/manual: traling whitespace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage guestproperty
4
5 Copyright (C) 2006-2019 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-guestproperty" lang="en">
21 <refentryinfo>
22 <pubdate>September 2019</pubdate>
23 <title>VBoxManage guestproperty</title>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>VBoxManage-guestproperty</refentrytitle>
28 <manvolnum>1</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>VBoxManage-guestproperty</refname>
33 <refpurpose>manage virtual machine guest properties</refpurpose>
34 <refclass>Oracle VM VirtualBox</refclass>
35 </refnamediv>
36
37 <refsynopsisdiv>
38<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
39 <cmdsynopsis id="synopsis-vboxmanage-guestproperty-get">
40 <command>VBoxManage guestproperty get</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="req"><replaceable>property-name</replaceable></arg>
46 <arg>--verbose</arg>
47 </cmdsynopsis>
48
49 <cmdsynopsis id="synopsis-vboxmanage-guestproperty-enumerate">
50 <command>VBoxManage guestproperty enumerate</command>
51 <group choice="req">
52 <arg choice="plain"><replaceable>uuid</replaceable></arg>
53 <arg choice="plain"><replaceable>vmname</replaceable></arg>
54 </group>
55 <arg>--patterns=<replaceable>patterns</replaceable></arg>
56 </cmdsynopsis>
57
58 <cmdsynopsis id="synopsis-vboxmanage-guestproperty-set">
59 <command>VBoxManage guestproperty set</command>
60 <group choice="req">
61 <arg choice="plain"><replaceable>uuid</replaceable></arg>
62 <arg choice="plain"><replaceable>vmname</replaceable></arg>
63 </group>
64 <arg choice="req"><replaceable>property-name</replaceable></arg>
65 <arg><replaceable>property-value</replaceable><arg>--flags=<replaceable>flags</replaceable></arg></arg>
66 </cmdsynopsis>
67
68 <cmdsynopsis id="synopsis-vboxmanage-guestproperty-unset">
69 <command>VBoxManage guestproperty unset</command>
70 <group choice="req">
71 <arg choice="plain"><replaceable>uuid</replaceable></arg>
72 <arg choice="plain"><replaceable>vmname</replaceable></arg>
73 </group>
74 <arg choice="req"><replaceable>property-name</replaceable></arg>
75 </cmdsynopsis>
76
77 <cmdsynopsis id="synopsis-vboxmanage-guestproperty-wait">
78 <command>VBoxManage guestproperty wait</command>
79 <group choice="req">
80 <arg choice="plain"><replaceable>uuid</replaceable></arg>
81 <arg choice="plain"><replaceable>vmname</replaceable></arg>
82 </group>
83 <arg choice="req"><replaceable>patterns</replaceable></arg>
84 <arg>--timeout=<replaceable>msec</replaceable></arg>
85 <arg>--fail-on-timeout</arg>
86 </cmdsynopsis>
87 </refsynopsisdiv>
88
89 <refsect1>
90 <title>Description</title>
91 <para>
92 The <command>VBoxManage guestproperty</command> command enables
93 you to set or retrieve the properties of a running virtual machine
94 (VM). See <xref linkend="guestadd-guestprops" />. Guest properties
95 are arbitrary name-value string pairs that can be written to and
96 read from by either the guest or the host. As a result, these
97 properties can be used as a low-volume communication channel for
98 strings provided that a guest is running and has the Guest
99 Additions installed. In addition, the Guest Additions
100 automatically set and maintain values whose keywords begin with
101 <literal>/VirtualBox/</literal>.
102 </para>
103 <refsect2>
104 <title>General Command Operand</title>
105 <variablelist>
106 <varlistentry>
107 <term><replaceable>uuid</replaceable>|<replaceable>vmname</replaceable></term>
108 <listitem><para>
109 Specifies the Universally Unique Identifier (UUID) or name
110 of the VM.
111 </para></listitem>
112 </varlistentry>
113 </variablelist>
114 </refsect2>
115 <refsect2 id="vboxmanage-guestproperty-enumerate">
116 <title>List All Properties for a Virtual Machine</title>
117 <para>
118 The <command>VBoxManage guestproperty enumerate</command>
119 command lists each guest property and value for the specified
120 VM. Note that the output is limited if the guest's service
121 process cannot be contacted, for example because the VM is not
122 running or because the Guest Additions are not installed.
123 </para>
124 <variablelist>
125 <varlistentry>
126 <term><option>--patterns=<replaceable>pattern</replaceable></option></term>
127 <listitem><para>
128 Filters the list of properties based on the specified
129 pattern, which can contain the following wildcard
130 characters:
131 </para><variablelist>
132 <varlistentry>
133 <term><literal>*</literal> (asterisk)</term>
134 <listitem><para>
135 Represents any number of characters. For example,
136 the <literal>/VirtualBox*</literal> pattern matches
137 all properties that begin with
138 <literal>/VirtualBox</literal>.
139 </para></listitem>
140 </varlistentry>
141 <varlistentry>
142 <term><literal>?</literal> (question mark)</term>
143 <listitem><para>
144 Represents a single arbitrary character. For
145 example, the <literal>fo?</literal> pattern matches
146 both <literal>foo</literal> and
147 <literal>for</literal>.
148 </para></listitem>
149 </varlistentry>
150 <varlistentry>
151 <term><literal>|</literal> (pipe)</term>
152 <listitem><para>
153 Specifies multiple alternative patterns. For
154 example, the <literal>s*|t*</literal> pattern
155 matches any property that begins with
156 <literal>s</literal> or <literal>t</literal>.
157 </para></listitem>
158 </varlistentry>
159 </variablelist></listitem>
160 </varlistentry>
161 </variablelist>
162 </refsect2>
163 <refsect2 id="vboxmanage-guestproperty-get">
164 <title>Retrieve a Property Value for a Virtual Machine</title>
165 <remark role="help-copy-synopsis"/>
166 <para>
167 The <command>VBoxManage guestproperty get</command> command
168 retrieves the value of the specified property. If the property
169 cannot be found, for example because the guest is not running,
170 the command issues the following message:
171 </para>
172<screen>No value set!</screen>
173 <variablelist>
174 <varlistentry>
175 <term><replaceable>property-name</replaceable></term>
176 <listitem><para>
177 Specifies the name of the property.
178 </para></listitem>
179 </varlistentry>
180 <varlistentry>
181 <term><option>--verbose</option></term>
182 <listitem><para>
183 Provides the property value, timestamp, and any specified
184 value attributes.
185 </para></listitem>
186 </varlistentry>
187 </variablelist>
188 </refsect2>
189 <refsect2 id="vboxmanage-guestproperty-set">
190 <title>Set a Property Value for a Virtual Machine</title>
191 <remark role="help-copy-synopsis"/>
192 <para>
193 The <command>VBoxManage guestproperty set</command> command
194 enables you to set a guest property by specifying the property
195 and its value. If you omit the value, the property is deleted.
196 </para>
197 <variablelist>
198 <varlistentry>
199 <term><replaceable>property-name</replaceable></term>
200 <listitem><para>
201 Specifies the name of the property.
202 </para></listitem>
203 </varlistentry>
204 <varlistentry>
205 <term><replaceable>property-value</replaceable></term>
206 <listitem><para>
207 Specifies the value of the property. If no value is
208 specified, any existing value is removed.
209 </para></listitem>
210 </varlistentry>
211 <varlistentry>
212 <term><option>--flags=<replaceable>flags</replaceable></option></term>
213 <listitem><para>
214 Specify the additional attributes of the value. The
215 following attributes can be specified as a comma-separated
216 list:
217 </para><variablelist>
218 <varlistentry>
219 <term><literal>TRANSIENT</literal></term>
220 <listitem><para>
221 Removes the value with the VM data when the VM
222 exits.
223 </para></listitem>
224 </varlistentry>
225 <varlistentry>
226 <term><literal>TRANSRESET</literal></term>
227 <listitem><para>
228 Removes the value when the VM restarts or exits.
229 </para></listitem>
230 </varlistentry>
231 <varlistentry>
232 <term><literal>RDONLYGUEST</literal></term>
233 <listitem><para>
234 Specifies that the value can be changed only by the
235 host and that the guest can read the value.
236 </para></listitem>
237 </varlistentry>
238 <varlistentry>
239 <term><literal>RDONLYHOST</literal></term>
240 <listitem><para>
241 Specifies that the value can be changed only by the
242 guest and that the host can read the value.
243 </para></listitem>
244 </varlistentry>
245 <varlistentry>
246 <term><literal>READONLY</literal></term>
247 <listitem><para>
248 Specifies that the value cannot be changed.
249 </para></listitem>
250 </varlistentry>
251 </variablelist></listitem>
252 </varlistentry>
253 </variablelist>
254 </refsect2>
255 <refsect2 id="vboxmanage-guestproperty-wait">
256 <title>Wait for a Property Value to Be Created, Deleted, or Changed</title>
257 <remark role="help-copy-synopsis"/>
258 <para>
259 The <command>VBoxManage guestproperty wait</command> command
260 waits for a particular value that is described by the pattern
261 string to change, to be deleted, or to be created.
262 </para>
263 <variablelist>
264 <varlistentry>
265 <term><replaceable>patterns</replaceable></term>
266 <listitem><para>
267 Specifies a pattern that matches the properties on which
268 you want to wait. For information about the pattern
269 wildcards, see the description of the
270 <option>--patterns</option> option.
271 </para></listitem>
272 </varlistentry>
273 <varlistentry>
274 <term><option>--timeout<replaceable>msec</replaceable></option></term>
275 <listitem><para>
276 Specifies the number of microseconds to wait.
277 </para></listitem>
278 </varlistentry>
279 <varlistentry>
280 <term><option>--fail-on-timeout</option></term>
281 <listitem><para>
282 Specifies that the command fails if the timeout is
283 reached.
284 </para></listitem>
285 </varlistentry>
286 </variablelist>
287 </refsect2>
288 <refsect2 id="vboxmanage-guestproperty-unset">
289 <title>Unset a Virtual Machine Property Value</title>
290 <remark role="help-copy-synopsis"/>
291 <para>
292 The <command>VBoxManage guestproperty unset</command> command
293 unsets the value of a guest property.
294 </para>
295 <para>
296 The alternate form of this subcommand is
297 <command>delete</command>.
298 </para>
299 <variablelist>
300 <varlistentry>
301 <term><replaceable>property-name</replaceable></term>
302 <listitem><para>
303 Specifies the name of the property.
304 </para></listitem>
305 </varlistentry>
306 </variablelist>
307 </refsect2>
308 </refsect1>
309
310 <refsect1>
311 <title>Examples</title>
312 <remark role="help-scope" condition="GLOBAL" />
313 <para>
314 The following command lists the guest properties and their values
315 for the <literal>win8</literal> VM.
316 </para>
317<screen>$ VBoxManage guestproperty enumerate win8</screen>
318 <para>
319 The following command creates a guest property called
320 <literal>region</literal> for the <literal>win8</literal> VM. The
321 value of the property is set to <literal>west</literal>.
322 </para>
323<screen>$ VBoxManage guestproperty set win8 region west</screen>
324 </refsect1>
325</refentry>
Note: See TracBrowser for help on using the repository browser.

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