1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | * :tabSize=2:indentSize=2:noTabs=true:
|
---|
5 | * :folding=explicit:collapseFolds=1:
|
---|
6 | *
|
---|
7 | * Master declaration for VirtualBox's Main API, represented
|
---|
8 | * by COM/XPCOM and web service interfaces.
|
---|
9 | *
|
---|
10 | * From this document, the build system generates several files
|
---|
11 | * via XSLT that are then used during the build process.
|
---|
12 | *
|
---|
13 | * Below is the list of XSL templates that operate on this file and
|
---|
14 | * output files they generate. These XSL templates must be updated
|
---|
15 | * whenever the schema of this file changes:
|
---|
16 | *
|
---|
17 | * 1. src/VBox/Main/idl/midl.xsl =>
|
---|
18 | * out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
19 | * (MS COM interface definition file for Main API)
|
---|
20 | *
|
---|
21 | * 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
22 | * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
23 | * (XPCOM interface definition file for Main API)
|
---|
24 | *
|
---|
25 | * 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
26 | * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
27 | * (pseudo-IDL for Doxygen to generate the official Main API
|
---|
28 | * documentation)
|
---|
29 | *
|
---|
30 | * 4. src/VBox/Main/webservice/*.xsl =>
|
---|
31 | * a bunch of WSDL and C++ files
|
---|
32 | * (VirtualBox web service sources and SOAP mappers;
|
---|
33 | * see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
34 | *
|
---|
35 | * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
36 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
37 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
38 | * of the Main API)
|
---|
39 | *
|
---|
40 | * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
41 | * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
42 | * (Main API TypeLib block for the WiX installer)
|
---|
43 | *
|
---|
44 | * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
|
---|
45 | * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
|
---|
46 | * (<result> extraction for the %Rhrc format specifier)
|
---|
47 | *
|
---|
48 | Copyright (C) 2006-2010 Sun Microsystems, Inc.
|
---|
49 |
|
---|
50 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
51 | available from http://www.virtualbox.org. This file is free software;
|
---|
52 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
53 | General Public License (GPL) as published by the Free Software
|
---|
54 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
55 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
56 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
57 |
|
---|
58 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
59 | Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
60 | additional information or have any questions.
|
---|
61 | -->
|
---|
62 |
|
---|
63 | <idl>
|
---|
64 |
|
---|
65 | <desc>
|
---|
66 | Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
|
---|
67 | describes the so-called <i>VirtualBox Main API</i> which comprises all public
|
---|
68 | COM interfaces and components provided by the VirtualBox server and by the
|
---|
69 | VirtualBox client library.
|
---|
70 |
|
---|
71 | VirtualBox employs a client-server design, meaning that whenever any part of
|
---|
72 | VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
|
---|
73 | interface or any virtual machine --, a dedicated server process named
|
---|
74 | VBoxSVC runs in the background. This allows multiple processes working with
|
---|
75 | VirtualBox to cooperate without conflicts. These processes communicate to each
|
---|
76 | other using inter-process communication facilities provided by the COM
|
---|
77 | implementation of the host computer.
|
---|
78 |
|
---|
79 | On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
|
---|
80 | implementation. On all other platforms, Mozilla XPCOM, an open-source COM
|
---|
81 | implementation, is used.
|
---|
82 |
|
---|
83 | All the parts that a typical VirtualBox user interacts with (the Qt GUI,
|
---|
84 | the VBoxManage command-line interface and the VBoxVRDP server) are technically
|
---|
85 | front-ends to the Main API and only use the interfaces that are documented
|
---|
86 | in this Main API documentation. This ensures that, with any given release
|
---|
87 | version of VirtualBox, all capabilities of the product that could be useful
|
---|
88 | to an external client program are always exposed by way of this API.
|
---|
89 |
|
---|
90 | The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
|
---|
91 | contains two public component classes:
|
---|
92 | <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
|
---|
93 | implement IVirtualBox and ISession interfaces respectively. These two classes
|
---|
94 | are of supreme importance and will be needed in order for any front-end
|
---|
95 | program to do anything useful. It is recommended to read the documentation of
|
---|
96 | the mentioned interfaces first.
|
---|
97 |
|
---|
98 | The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
|
---|
99 | there can be only one object of this class on the local machine at any given
|
---|
100 | time. This object is a parent of many other objects in the VirtualBox COM
|
---|
101 | library and lives in the VBoxSVC process. In fact, when you create an instance
|
---|
102 | of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
|
---|
103 | process is already running, starts it if not, and returns you a reference to
|
---|
104 | the <tt>VirtualBox</tt> object created in this process. When the last reference
|
---|
105 | to this object is released, the VBoxSVC process ends (with a 5 second delay to
|
---|
106 | protect from too frequent restarts).
|
---|
107 |
|
---|
108 | The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
|
---|
109 | as many <tt>Session</tt> objects as you need but all of them will live in a
|
---|
110 | process which issues the object instantiation call. <tt>Session</tt> objects
|
---|
111 | represent virtual machine sessions which are used to configure virtual
|
---|
112 | machines and control their execution.
|
---|
113 | </desc>
|
---|
114 |
|
---|
115 | <if target="midl">
|
---|
116 | <cpp line="enum {"/>
|
---|
117 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
118 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
119 | <cpp line="};"/>
|
---|
120 | </if>
|
---|
121 |
|
---|
122 | <if target="xpidl">
|
---|
123 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
124 | <cpp>
|
---|
125 | /* currently, nsISupportsImpl.h lacks the below-like macros */
|
---|
126 |
|
---|
127 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
|
---|
128 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
|
---|
129 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
|
---|
130 |
|
---|
131 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
132 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
133 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
134 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
135 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
136 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
137 | #endif
|
---|
138 |
|
---|
139 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
140 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
141 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
142 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
143 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
144 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
145 | #endif
|
---|
146 |
|
---|
147 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
|
---|
148 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
|
---|
149 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
150 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
151 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
|
---|
152 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
153 | #endif
|
---|
154 |
|
---|
155 | #ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
156 | # define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
157 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
158 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
159 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
160 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
161 | NS_INTERFACE_MAP_END
|
---|
162 | #endif
|
---|
163 |
|
---|
164 | #ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
165 | # define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
166 | _i2, _ic2) \
|
---|
167 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
168 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
169 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
170 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
171 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
172 | NS_INTERFACE_MAP_END
|
---|
173 | #endif
|
---|
174 |
|
---|
175 | #ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
176 | # define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
177 | _i2, _ic2, _i3, _ic3) \
|
---|
178 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
179 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
180 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
181 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
|
---|
182 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
183 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
184 | NS_INTERFACE_MAP_END
|
---|
185 | #endif
|
---|
186 |
|
---|
187 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
188 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
189 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
190 |
|
---|
191 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
|
---|
192 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
193 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
194 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
195 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
196 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
|
---|
197 | #endif
|
---|
198 |
|
---|
199 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
|
---|
200 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
201 | _i2, _ic2) \
|
---|
202 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
203 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
204 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
205 | _i2, _ic2) \
|
---|
206 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
207 | #endif
|
---|
208 |
|
---|
209 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
|
---|
210 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
211 | _i2, _ic2, _i3, _ic3) \
|
---|
212 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
213 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
214 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
215 | _i2, _ic2, _i3, _ic3) \
|
---|
216 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
217 | #endif
|
---|
218 |
|
---|
219 | </cpp>
|
---|
220 | </if>
|
---|
221 |
|
---|
222 | <library
|
---|
223 | name="VirtualBox"
|
---|
224 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
225 | version="1.3"
|
---|
226 | desc="VirtualBox Type Library"
|
---|
227 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
228 | supportsErrorInfo="yes"
|
---|
229 | >
|
---|
230 |
|
---|
231 |
|
---|
232 | <!--
|
---|
233 | // COM result codes for VirtualBox
|
---|
234 | /////////////////////////////////////////////////////////////////////////
|
---|
235 | -->
|
---|
236 |
|
---|
237 | <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
|
---|
238 | <desc>
|
---|
239 | This section describes all VirtualBox-specific COM result codes that may
|
---|
240 | be returned by methods of VirtualBox COM interfaces in addition to
|
---|
241 | standard COM result codes.
|
---|
242 |
|
---|
243 | Note that along with the result code, every VirtualBox method returns
|
---|
244 | extended error information through the IVirtualBoxErrorInfo interface on
|
---|
245 | failure. This interface is a preferred way to present the error to the end
|
---|
246 | user because it contains a human readable description of the error. Raw
|
---|
247 | result codes, both standard and described in this section, are intended to
|
---|
248 | be used by programs to analyze the reason of a failure and select an
|
---|
249 | appropriate course of action without involving the end user (for example,
|
---|
250 | retry the operation later or make a different call).
|
---|
251 |
|
---|
252 | The standard COM result codes that may originate from our methods include:
|
---|
253 |
|
---|
254 | <table>
|
---|
255 | <tr><td>E_INVALIDARG</td>
|
---|
256 | <td>
|
---|
257 | Returned when the value of the method's argument is not within the range
|
---|
258 | of valid values. This should not be confused with situations when the
|
---|
259 | value is within the range but simply doesn't suit the current object
|
---|
260 | state and there is a possibility that it will be accepted later (in such
|
---|
261 | cases VirtualBox-specific codes are returned, for example,
|
---|
262 | <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
|
---|
263 | </td>
|
---|
264 | </tr>
|
---|
265 | <tr><td>E_POINTER</td>
|
---|
266 | <td>
|
---|
267 | Returned if a memory pointer for the output argument is invalid (for
|
---|
268 | example, @c null). Note that when pointers representing input
|
---|
269 | arguments (such as strings) are invalid, E_INVALIDARG is returned.
|
---|
270 | </td>
|
---|
271 | </tr>
|
---|
272 | <tr><td>E_ACCESSDENIED</td>
|
---|
273 | <td>
|
---|
274 | Returned when the called object is not ready. Since the lifetime of a
|
---|
275 | public COM object cannot be fully controlled by the implementation,
|
---|
276 | VirtualBox maintains the readiness state for all objects it creates and
|
---|
277 | returns this code in response to any method call on the object that was
|
---|
278 | deactivated by VirtualBox and is not functioning any more.
|
---|
279 | </td>
|
---|
280 | </tr>
|
---|
281 | <tr><td>E_OUTOFMEMORY</td>
|
---|
282 | <td>
|
---|
283 | Returned when a memory allocation operation fails.
|
---|
284 | </td>
|
---|
285 | </tr>
|
---|
286 | </table>
|
---|
287 | </desc>
|
---|
288 | </descGroup>
|
---|
289 |
|
---|
290 | <!--
|
---|
291 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
292 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
293 | the matter of the error code in the first sentence and keep it short.
|
---|
294 | -->
|
---|
295 |
|
---|
296 | <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
|
---|
297 | <desc>
|
---|
298 | Object corresponding to the supplied arguments does not exist.
|
---|
299 | </desc>
|
---|
300 | </result>
|
---|
301 |
|
---|
302 | <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
|
---|
303 | <desc>
|
---|
304 | Current virtual machine state prevents the operation.
|
---|
305 | </desc>
|
---|
306 | </result>
|
---|
307 |
|
---|
308 | <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
|
---|
309 | <desc>
|
---|
310 | Virtual machine error occurred attempting the operation.
|
---|
311 | </desc>
|
---|
312 | </result>
|
---|
313 |
|
---|
314 | <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
|
---|
315 | <desc>
|
---|
316 | File not accessible or erroneous file contents.
|
---|
317 | </desc>
|
---|
318 | </result>
|
---|
319 |
|
---|
320 | <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
|
---|
321 | <desc>
|
---|
322 | Runtime subsystem error.
|
---|
323 | </desc>
|
---|
324 | </result>
|
---|
325 |
|
---|
326 | <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
|
---|
327 | <desc>
|
---|
328 | Pluggable Device Manager error.
|
---|
329 | </desc>
|
---|
330 | </result>
|
---|
331 |
|
---|
332 | <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
|
---|
333 | <desc>
|
---|
334 | Current object state prohibits operation.
|
---|
335 | </desc>
|
---|
336 | </result>
|
---|
337 |
|
---|
338 | <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
|
---|
339 | <desc>
|
---|
340 | Host operating system related error.
|
---|
341 | </desc>
|
---|
342 | </result>
|
---|
343 |
|
---|
344 | <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
|
---|
345 | <desc>
|
---|
346 | Requested operation is not supported.
|
---|
347 | </desc>
|
---|
348 | </result>
|
---|
349 |
|
---|
350 | <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
|
---|
351 | <desc>
|
---|
352 | Invalid XML found.
|
---|
353 | </desc>
|
---|
354 | </result>
|
---|
355 |
|
---|
356 | <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
|
---|
357 | <desc>
|
---|
358 | Current session state prohibits operation.
|
---|
359 | </desc>
|
---|
360 | </result>
|
---|
361 |
|
---|
362 | <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
|
---|
363 | <desc>
|
---|
364 | Object being in use prohibits operation.
|
---|
365 | </desc>
|
---|
366 | </result>
|
---|
367 |
|
---|
368 | <!--
|
---|
369 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
370 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
371 | the matter of the error code in the first sentence and keep it short.
|
---|
372 | -->
|
---|
373 |
|
---|
374 | <descGroup/>
|
---|
375 |
|
---|
376 | <!--
|
---|
377 | // all common enums
|
---|
378 | /////////////////////////////////////////////////////////////////////////
|
---|
379 | -->
|
---|
380 |
|
---|
381 | <enum name="SettingsVersion"
|
---|
382 | uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
|
---|
383 | >
|
---|
384 | <desc>Settings version of VirtualBox settings files. This is written to
|
---|
385 | the "version" attribute of the root "VirtualBox" element in the settings
|
---|
386 | file XML and indicates which VirtualBox version wrote the file.
|
---|
387 | </desc>
|
---|
388 |
|
---|
389 | <const name="Null" value="0">
|
---|
390 | <desc>Null value, indicates invalid version.</desc>
|
---|
391 | </const>
|
---|
392 | <const name="v1_0" value="1">
|
---|
393 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
394 | </const>
|
---|
395 | <const name="v1_1" value="2">
|
---|
396 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
397 | </const>
|
---|
398 | <const name="v1_2" value="3">
|
---|
399 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
400 | </const>
|
---|
401 | <const name="v1_3pre" value="4">
|
---|
402 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
403 | </const>
|
---|
404 | <const name="v1_3" value="5">
|
---|
405 | <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
|
---|
406 | <!--
|
---|
407 | Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
|
---|
408 | -->
|
---|
409 | </const>
|
---|
410 | <const name="v1_4" value="6">
|
---|
411 | <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
|
---|
412 | <!--
|
---|
413 | VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
|
---|
414 | (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
|
---|
415 | -->
|
---|
416 | </const>
|
---|
417 | <const name="v1_5" value="7">
|
---|
418 | <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
|
---|
419 | <!-- 2008-09-04: 2.0.0 released
|
---|
420 | 2008-11-20: settings version 1.5 introduced
|
---|
421 | 2008-12-17: 2.1.0 released
|
---|
422 | Machine changes:
|
---|
423 | guest OS identifiers changed;
|
---|
424 | Machine/Hardware/Display/MonitorCount renamed to monitorCount;
|
---|
425 | Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
|
---|
426 | Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
|
---|
427 | -->
|
---|
428 | </const>
|
---|
429 | <const name="v1_6" value="8">
|
---|
430 | <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
|
---|
431 | <!-- 2008-12-17: 2.1.0 released
|
---|
432 | 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
|
---|
433 | 2009-04-08: 2.2.0 released
|
---|
434 | Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
|
---|
435 | -->
|
---|
436 | </const>
|
---|
437 | <const name="v1_7" value="9">
|
---|
438 | <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
|
---|
439 | <!-- 2008-12-17: 2.1.0 released
|
---|
440 | 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
|
---|
441 | 2009-04-08: 2.2.0 released
|
---|
442 | VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
|
---|
443 | Machine changes: HardDiskAttachments is now StorageControllers (done)
|
---|
444 | -->
|
---|
445 | </const>
|
---|
446 | <const name="v1_8" value="10">
|
---|
447 | <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
|
---|
448 | <!-- Machine additions: Display/@accelerate2DVideo (done)
|
---|
449 | -->
|
---|
450 | </const>
|
---|
451 | <const name="v1_9" value="11">
|
---|
452 | <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
|
---|
453 | <!-- The big storage controller / DVD / Floppy rework (done)
|
---|
454 | -->
|
---|
455 | </const>
|
---|
456 | <const name="v1_10" value="12">
|
---|
457 | <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
|
---|
458 | <!-- Machine changes: RTC localOrUTC (done)
|
---|
459 | CPU hot-plug support
|
---|
460 | -->
|
---|
461 | </const>
|
---|
462 | <const name="Future" value="13">
|
---|
463 | <desc>Settings version greater than "1.10", written by a future VirtualBox version.</desc>
|
---|
464 | </const>
|
---|
465 | </enum>
|
---|
466 |
|
---|
467 | <enum
|
---|
468 | name="AccessMode"
|
---|
469 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
470 | >
|
---|
471 | <desc>
|
---|
472 | Access mode for opening files.
|
---|
473 | </desc>
|
---|
474 |
|
---|
475 | <const name="ReadOnly" value="1"/>
|
---|
476 | <const name="ReadWrite" value="2"/>
|
---|
477 | </enum>
|
---|
478 |
|
---|
479 | <enum
|
---|
480 | name="MachineState"
|
---|
481 | uuid="36518cf6-cdf0-4d0d-ad2a-5ee9c60c7494"
|
---|
482 | >
|
---|
483 | <desc>
|
---|
484 | Virtual machine execution state.
|
---|
485 |
|
---|
486 | This enumeration represents possible values of the <link
|
---|
487 | to="IMachine::state"/> attribute.
|
---|
488 |
|
---|
489 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
490 | changes during virtual machine execution. The text in square braces shows
|
---|
491 | a method of the IConsole interface that performs the given state
|
---|
492 | transition.
|
---|
493 |
|
---|
494 | <pre>
|
---|
495 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
496 | V |
|
---|
497 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
498 | | | | | V |
|
---|
499 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
500 | | | ^ | ^ |
|
---|
501 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
502 | | ^ | | | |
|
---|
503 | | | +-----------------------------------------+-|-------------------+ +
|
---|
504 | | | | | |
|
---|
505 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
506 | | | | |
|
---|
507 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
508 | | | |
|
---|
509 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
510 | </pre>
|
---|
511 |
|
---|
512 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
513 | above diagram are called <i>online VM states</i>. These states
|
---|
514 | represent the virtual machine which is being executed in a dedicated
|
---|
515 | process (usually with a GUI window attached to it where you can see the
|
---|
516 | activity of the virtual machine and interact with it). There are two
|
---|
517 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
518 | relational expressions to detect if the given machine state is online or
|
---|
519 | not:
|
---|
520 |
|
---|
521 | <pre>
|
---|
522 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
523 | machine.GetState() <= MachineState_LastOnline)
|
---|
524 | {
|
---|
525 | ...the machine is being executed...
|
---|
526 | }
|
---|
527 | </pre>
|
---|
528 |
|
---|
529 | When the virtual machine is in one of the online VM states (that is, being
|
---|
530 | executed), only a few machine settings can be modified. Methods working
|
---|
531 | with such settings contain an explicit note about that. An attempt to
|
---|
532 | change any oter setting or perform a modifying operation during this time
|
---|
533 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
534 |
|
---|
535 | All online states except Running, Paused and Stuck are transitional: they
|
---|
536 | represent temporary conditions of the virtual machine that will last as
|
---|
537 | long as the operation that initiated such a condition.
|
---|
538 |
|
---|
539 | The Stuck state is a special case. It means that execution of the machine
|
---|
540 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
541 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
542 | result of either an unhandled low-level virtual hardware exception or one
|
---|
543 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
544 | condition).
|
---|
545 |
|
---|
546 | Note also that any online VM state may transit to the Aborted state. This
|
---|
547 | happens if the process that is executing the virtual machine terminates
|
---|
548 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
549 | equivalent to PoweredOff.
|
---|
550 |
|
---|
551 | There are also a few additional state diagrams that do not deal with
|
---|
552 | virtual machine execution and therefore are shown separately. The states
|
---|
553 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
554 | PoweredOff, Aborted and Saved too).
|
---|
555 |
|
---|
556 | The first diagram shows what happens when a lengthy setup operation is
|
---|
557 | being executed (such as <link to="IMachine::attachDevice"/>).
|
---|
558 |
|
---|
559 | <pre>
|
---|
560 | +----------------------------------(same state as before the call)------+
|
---|
561 | | |
|
---|
562 | +-> PoweredOff --+ |
|
---|
563 | | | |
|
---|
564 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
565 | | |
|
---|
566 | +-> Saved -------+
|
---|
567 | </pre>
|
---|
568 |
|
---|
569 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
570 | powered off virtual machine, restoring the state to that as of a snapshot
|
---|
571 | or deleting a snapshot, respectively.
|
---|
572 |
|
---|
573 | <pre>
|
---|
574 | +----------------------------------(same state as before the call)------+
|
---|
575 | | |
|
---|
576 | +-> PoweredOff --+ |
|
---|
577 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
578 | +-> Aborted -----+
|
---|
579 |
|
---|
580 | +-> PoweredOff --+
|
---|
581 | | |
|
---|
582 | | Aborted -----+-->[restoreSnapshot() ]-------> RestoringSnapshot -+
|
---|
583 | | | [deleteSnapshot() ]-------> DeletingSnapshot --+
|
---|
584 | +-> Saved -------+ |
|
---|
585 | | |
|
---|
586 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
587 | </pre>
|
---|
588 |
|
---|
589 | Note that the Saving state is present in both the offline state group and
|
---|
590 | online state group. Currently, the only way to determine what group is
|
---|
591 | assumed in a particular case is to remember the previous machine state: if
|
---|
592 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
593 | an offline state. This inconsistency may be removed in one of the future
|
---|
594 | versions of VirtualBox by adding a new state.
|
---|
595 |
|
---|
596 | <note internal="yes">
|
---|
597 | For whoever decides to touch this enum: In order to keep the
|
---|
598 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
599 | the numeric values of these states must be correspondingly updated if
|
---|
600 | needed: for any online VM state, the condition
|
---|
601 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
602 | @c true. The same relates to transient states for which
|
---|
603 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
604 | @c true.
|
---|
605 | </note>
|
---|
606 | </desc>
|
---|
607 |
|
---|
608 | <const name="Null" value="0">
|
---|
609 | <desc>Null value (never used by the API).</desc>
|
---|
610 | </const>
|
---|
611 | <const name="PoweredOff" value="1">
|
---|
612 | <desc>
|
---|
613 | The machine is not running and has no saved execution state; it has
|
---|
614 | either never been started or been shut down successfully.
|
---|
615 | </desc>
|
---|
616 | </const>
|
---|
617 | <const name="Saved" value="2">
|
---|
618 | <desc>
|
---|
619 | The machine is not currently running, but the execution state of the machine
|
---|
620 | has been saved to an external file when it was running, from where
|
---|
621 | it can be resumed.
|
---|
622 | </desc>
|
---|
623 | </const>
|
---|
624 | <const name="Teleported" value="3">
|
---|
625 | <desc>
|
---|
626 | The machine was teleported to a different host (or process) and then
|
---|
627 | powered off. Take care when powering it on again may corrupt resources
|
---|
628 | it shares with the teleportation target (e.g. disk and network).
|
---|
629 | </desc>
|
---|
630 | </const>
|
---|
631 | <const name="Aborted" value="4">
|
---|
632 | <desc>
|
---|
633 | The process running the machine has terminated abnormally. This may
|
---|
634 | indicate a crash of the VM process in host execution context, or
|
---|
635 | the VM process has been terminated externally.
|
---|
636 | </desc>
|
---|
637 | </const>
|
---|
638 | <const name="Running" value="5">
|
---|
639 | <desc>
|
---|
640 | The machine is currently being executed.
|
---|
641 | <note internal="yes">
|
---|
642 | For whoever decides to touch this enum: In order to keep the
|
---|
643 | comparisons in the old source code valid, this state must immediately
|
---|
644 | precede the Paused state.
|
---|
645 | TODO: Lift this spectacularly wonderful restriction.
|
---|
646 | </note>
|
---|
647 | </desc>
|
---|
648 | </const>
|
---|
649 | <const name="Paused" value="6">
|
---|
650 | <desc>
|
---|
651 | Execution of the machine has been paused.
|
---|
652 | <note internal="yes">
|
---|
653 | For whoever decides to touch this enum: In order to keep the
|
---|
654 | comparisons in the old source code valid, this state must immediately
|
---|
655 | follow the Running state.
|
---|
656 | TODO: Lift this spectacularly wonderful restriction.
|
---|
657 | </note>
|
---|
658 | </desc>
|
---|
659 | </const>
|
---|
660 | <const name="Stuck" value="7">
|
---|
661 | <desc>
|
---|
662 | Execution of the machine has reached the "Guru Meditation"
|
---|
663 | condition. This indicates a severe error in the hypervisor itself.
|
---|
664 | <note internal="yes">
|
---|
665 | bird: Why this uncool name? Could we rename it to "GuruMeditation" or
|
---|
666 | "Guru", perhaps? Or are there some other VMM states that are
|
---|
667 | intended to be lumped in here as well?
|
---|
668 | </note>
|
---|
669 | </desc>
|
---|
670 | </const>
|
---|
671 | <const name="Teleporting" value="8">
|
---|
672 | <desc>
|
---|
673 | The machine is about to be teleported to a different host or process.
|
---|
674 | It is possible to pause a machine in this state, but it will go to the
|
---|
675 | <link to="MachineState::PausedTeleporting"/> state and it will not be
|
---|
676 | possible to resume it again unless the teleportation fails.
|
---|
677 | </desc>
|
---|
678 | </const>
|
---|
679 | <const name="LiveSnapshotting" value="9">
|
---|
680 | <desc>
|
---|
681 | A live snapshot is being taken. The machine is running normally, but
|
---|
682 | some of the runtime configuration options are inaccessible. Also, if
|
---|
683 | paused while in this state it will transition to
|
---|
684 | <link to="MachineState::Saving"/> and it will not be resume the
|
---|
685 | execution until the snapshot operation has completed.
|
---|
686 | </desc>
|
---|
687 | </const>
|
---|
688 | <const name="Starting" value="10">
|
---|
689 | <desc>
|
---|
690 | Machine is being started after powering it on from a
|
---|
691 | zero execution state.
|
---|
692 | </desc>
|
---|
693 | </const>
|
---|
694 | <const name="Stopping" value="11">
|
---|
695 | <desc>
|
---|
696 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
697 | has initiated a shutdown sequence.
|
---|
698 | </desc>
|
---|
699 | </const>
|
---|
700 | <const name="Saving" value="12">
|
---|
701 | <desc>
|
---|
702 | Machine is saving its execution state to a file, or an online
|
---|
703 | snapshot of the machine is being taken.
|
---|
704 | </desc>
|
---|
705 | </const>
|
---|
706 | <const name="Restoring" value="13">
|
---|
707 | <desc>
|
---|
708 | Execution state of the machine is being restored from a file
|
---|
709 | after powering it on from the saved execution state.
|
---|
710 | </desc>
|
---|
711 | </const>
|
---|
712 | <const name="TeleportingPausedVM" value="14">
|
---|
713 | <desc>
|
---|
714 | The machine is being teleported to another host or process, but it is
|
---|
715 | not running. This is the paused variant of the
|
---|
716 | <link to="MachineState::Teleporting"/> state.
|
---|
717 | </desc>
|
---|
718 | </const>
|
---|
719 | <const name="TeleportingIn" value="15">
|
---|
720 | <desc>
|
---|
721 | Teleporting the machine state in from another host or process.
|
---|
722 | </desc>
|
---|
723 | </const>
|
---|
724 | <const name="RestoringSnapshot" value="16">
|
---|
725 | <desc>
|
---|
726 | A machine snapshot is being restored; this typically does not take long.
|
---|
727 | </desc>
|
---|
728 | </const>
|
---|
729 | <const name="DeletingSnapshot" value="17">
|
---|
730 | <desc>
|
---|
731 | A machine snapshot is being deleted; this can take a long time since this
|
---|
732 | may require merging differencing media.
|
---|
733 | </desc>
|
---|
734 | </const>
|
---|
735 | <const name="SettingUp" value="18">
|
---|
736 | <desc>
|
---|
737 | Lengthy setup operation is in progress.
|
---|
738 | </desc>
|
---|
739 | </const>
|
---|
740 |
|
---|
741 | <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
|
---|
742 | <desc>
|
---|
743 | Pseudo-state: first online state (for use in relational expressions).
|
---|
744 | </desc>
|
---|
745 | </const>
|
---|
746 | <const name="LastOnline" value="13" wsmap="suppress"> <!-- TeleportingIn -->
|
---|
747 | <desc>
|
---|
748 | Pseudo-state: last online state (for use in relational expressions).
|
---|
749 | </desc>
|
---|
750 | </const>
|
---|
751 |
|
---|
752 | <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
|
---|
753 | <desc>
|
---|
754 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
755 | </desc>
|
---|
756 | </const>
|
---|
757 | <const name="LastTransient" value="18" wsmap="suppress"> <!-- SettingUp -->
|
---|
758 | <desc>
|
---|
759 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
760 | </desc>
|
---|
761 | </const>
|
---|
762 |
|
---|
763 | </enum>
|
---|
764 |
|
---|
765 | <enum
|
---|
766 | name="SessionState"
|
---|
767 | uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
|
---|
768 | >
|
---|
769 | <desc>
|
---|
770 | Session state. This enumeration represents possible values of
|
---|
771 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
772 | attributes. See individual enumerator descriptions for the meaning for
|
---|
773 | every value.
|
---|
774 | </desc>
|
---|
775 |
|
---|
776 | <const name="Null" value="0">
|
---|
777 | <desc>Null value (never used by the API).</desc>
|
---|
778 | </const>
|
---|
779 | <const name="Closed" value="1">
|
---|
780 | <desc>
|
---|
781 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
782 | the session is closed (<link to="ISession::state"/>)
|
---|
783 | </desc>
|
---|
784 | </const>
|
---|
785 | <const name="Open" value="2">
|
---|
786 | <desc>
|
---|
787 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
788 | the session is open (<link to="ISession::state"/>)
|
---|
789 | </desc>
|
---|
790 | </const>
|
---|
791 | <const name="Spawning" value="3">
|
---|
792 | <desc>
|
---|
793 | A new (direct) session is being opened for the machine as a result of
|
---|
794 | <link to="IVirtualBox::openRemoteSession"/> call
|
---|
795 | (<link to="IMachine::sessionState"/> or <link to="ISession::state"/>).
|
---|
796 | This state also occurs as a short transient state when a new direct
|
---|
797 | session is opened by calling <link to="IVirtualBox::openSession"/>.
|
---|
798 | </desc>
|
---|
799 | </const>
|
---|
800 | <const name="Closing" value="4">
|
---|
801 | <desc>
|
---|
802 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
803 | the session is being closed (<link to="ISession::state"/>)
|
---|
804 | </desc>
|
---|
805 | </const>
|
---|
806 | </enum>
|
---|
807 |
|
---|
808 | <enum
|
---|
809 | name="CPUPropertyType"
|
---|
810 | uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
|
---|
811 | >
|
---|
812 | <desc>
|
---|
813 | Virtual CPU property type. This enumeration represents possible values of the
|
---|
814 | IMachine get- and setCPUProperty methods.
|
---|
815 | </desc>
|
---|
816 | <const name="Null" value="0">
|
---|
817 | <desc>Null value (never used by the API).</desc>
|
---|
818 | </const>
|
---|
819 | <const name="PAE" value="1">
|
---|
820 | <desc>
|
---|
821 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
822 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
823 | is not available, it will not be reported.
|
---|
824 | </desc>
|
---|
825 | </const>
|
---|
826 | <const name="Synthetic" value="2">
|
---|
827 | <desc>
|
---|
828 | This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
|
---|
829 | teleporting between host systems that differ significantly.
|
---|
830 | </desc>
|
---|
831 | </const>
|
---|
832 | </enum>
|
---|
833 |
|
---|
834 |
|
---|
835 | <enum
|
---|
836 | name="HWVirtExPropertyType"
|
---|
837 | uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
|
---|
838 | >
|
---|
839 | <desc>
|
---|
840 | Hardware virtualization property type. This enumeration represents possible values
|
---|
841 | for the <link to="IMachine::getHWVirtExProperty"/> and
|
---|
842 | <link to="IMachine::setHWVirtExProperty"/> methods.
|
---|
843 | </desc>
|
---|
844 | <const name="Null" value="0">
|
---|
845 | <desc>Null value (never used by the API).</desc>
|
---|
846 | </const>
|
---|
847 | <const name="Enabled" value="1">
|
---|
848 | <desc>
|
---|
849 | Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
|
---|
850 | such extensions are not available, they will not be used.
|
---|
851 | </desc>
|
---|
852 | </const>
|
---|
853 | <const name="Exclusive" value="2">
|
---|
854 | <desc>
|
---|
855 | Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
|
---|
856 | VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
|
---|
857 | feature of the host. To share these with other hypervisors, you must disable this property.
|
---|
858 | </desc>
|
---|
859 | </const>
|
---|
860 | <const name="VPID" value="3">
|
---|
861 | <desc>
|
---|
862 | Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
|
---|
863 | </desc>
|
---|
864 | </const>
|
---|
865 | <const name="NestedPaging" value="4">
|
---|
866 | <desc>
|
---|
867 | Whether Nested Paging is enabled. If this extension is not available, it will not be used.
|
---|
868 | </desc>
|
---|
869 | </const>
|
---|
870 | <const name="LargePages" value="5">
|
---|
871 | <desc>
|
---|
872 | Whether large page allocation is enabled; requires nested paging and a 64 bits host.
|
---|
873 | </desc>
|
---|
874 | </const>
|
---|
875 | </enum>
|
---|
876 |
|
---|
877 | <enum
|
---|
878 | name="SessionType"
|
---|
879 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
880 | >
|
---|
881 | <desc>
|
---|
882 | Session type. This enumeration represents possible values of the
|
---|
883 | <link to="ISession::type"/> attribute.
|
---|
884 | </desc>
|
---|
885 |
|
---|
886 | <const name="Null" value="0">
|
---|
887 | <desc>Null value (never used by the API).</desc>
|
---|
888 | </const>
|
---|
889 | <const name="Direct" value="1">
|
---|
890 | <desc>
|
---|
891 | Direct session
|
---|
892 | (opened by <link to="IVirtualBox::openSession"/>)
|
---|
893 | </desc>
|
---|
894 | </const>
|
---|
895 | <const name="Remote" value="2">
|
---|
896 | <desc>
|
---|
897 | Remote session
|
---|
898 | (opened by <link to="IVirtualBox::openRemoteSession"/>)
|
---|
899 | </desc>
|
---|
900 | </const>
|
---|
901 | <const name="Existing" value="3">
|
---|
902 | <desc>
|
---|
903 | Existing session
|
---|
904 | (opened by <link to="IVirtualBox::openExistingSession"/>)
|
---|
905 | </desc>
|
---|
906 | </const>
|
---|
907 | </enum>
|
---|
908 |
|
---|
909 | <enum
|
---|
910 | name="DeviceType"
|
---|
911 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
912 | >
|
---|
913 | <desc>
|
---|
914 | Device type.
|
---|
915 | </desc>
|
---|
916 | <const name="Null" value="0">
|
---|
917 | <desc>
|
---|
918 | Null value, may also mean "no device" (not allowed for
|
---|
919 | <link to="IConsole::getDeviceActivity"/>).
|
---|
920 | </desc>
|
---|
921 | </const>
|
---|
922 | <const name="Floppy" value="1">
|
---|
923 | <desc>Floppy device.</desc>
|
---|
924 | </const>
|
---|
925 | <const name="DVD" value="2">
|
---|
926 | <desc>CD/DVD-ROM device.</desc>
|
---|
927 | </const>
|
---|
928 | <const name="HardDisk" value="3">
|
---|
929 | <desc>Hard disk device.</desc>
|
---|
930 | </const>
|
---|
931 | <const name="Network" value="4">
|
---|
932 | <desc>Network device.</desc>
|
---|
933 | </const>
|
---|
934 | <const name="USB" value="5">
|
---|
935 | <desc>USB device.</desc>
|
---|
936 | </const>
|
---|
937 | <const name="SharedFolder" value="6">
|
---|
938 | <desc>Shared folder device.</desc>
|
---|
939 | </const>
|
---|
940 | </enum>
|
---|
941 |
|
---|
942 | <enum
|
---|
943 | name="DeviceActivity"
|
---|
944 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
945 | >
|
---|
946 | <desc>
|
---|
947 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
948 | </desc>
|
---|
949 |
|
---|
950 | <const name="Null" value="0"/>
|
---|
951 | <const name="Idle" value="1"/>
|
---|
952 | <const name="Reading" value="2"/>
|
---|
953 | <const name="Writing" value="3"/>
|
---|
954 | </enum>
|
---|
955 |
|
---|
956 | <enum
|
---|
957 | name="ClipboardMode"
|
---|
958 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
959 | >
|
---|
960 | <desc>
|
---|
961 | Host-Guest clipboard interchange mode.
|
---|
962 | </desc>
|
---|
963 |
|
---|
964 | <const name="Disabled" value="0"/>
|
---|
965 | <const name="HostToGuest" value="1"/>
|
---|
966 | <const name="GuestToHost" value="2"/>
|
---|
967 | <const name="Bidirectional" value="3"/>
|
---|
968 | </enum>
|
---|
969 |
|
---|
970 | <enum
|
---|
971 | name="Scope"
|
---|
972 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
973 | >
|
---|
974 | <desc>
|
---|
975 | Scope of the operation.
|
---|
976 |
|
---|
977 | A generic enumeration used in various methods to define the action or
|
---|
978 | argument scope.
|
---|
979 | </desc>
|
---|
980 |
|
---|
981 | <const name="Global" value="0"/>
|
---|
982 | <const name="Machine" value="1"/>
|
---|
983 | <const name="Session" value="2"/>
|
---|
984 | </enum>
|
---|
985 |
|
---|
986 | <enum
|
---|
987 | name="BIOSBootMenuMode"
|
---|
988 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
989 | >
|
---|
990 | <desc>
|
---|
991 | BIOS boot menu mode.
|
---|
992 | </desc>
|
---|
993 |
|
---|
994 | <const name="Disabled" value="0"/>
|
---|
995 | <const name="MenuOnly" value="1"/>
|
---|
996 | <const name="MessageAndMenu" value="2"/>
|
---|
997 | </enum>
|
---|
998 |
|
---|
999 | <enum
|
---|
1000 | name="ProcessorFeature"
|
---|
1001 | uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
|
---|
1002 | >
|
---|
1003 | <desc>
|
---|
1004 | CPU features.
|
---|
1005 | </desc>
|
---|
1006 |
|
---|
1007 | <const name="HWVirtEx" value="0"/>
|
---|
1008 | <const name="PAE" value="1"/>
|
---|
1009 | <const name="LongMode" value="2"/>
|
---|
1010 | <const name="NestedPaging" value="3"/>
|
---|
1011 | </enum>
|
---|
1012 |
|
---|
1013 | <enum
|
---|
1014 | name="FirmwareType"
|
---|
1015 | uuid="b903f264-c230-483e-ac74-2b37ce60d371"
|
---|
1016 | >
|
---|
1017 | <desc>
|
---|
1018 | Firmware type.
|
---|
1019 | </desc>
|
---|
1020 | <const name="BIOS" value="1">
|
---|
1021 | <desc>BIOS Firmware.</desc>
|
---|
1022 | </const>
|
---|
1023 | <const name="EFI" value="2">
|
---|
1024 | <desc>EFI Firmware, bitness detetced basing on OS type.</desc>
|
---|
1025 | </const>
|
---|
1026 | <const name="EFI32" value="3">
|
---|
1027 | <desc>Efi firmware, 32-bit.</desc>
|
---|
1028 | </const>
|
---|
1029 | <const name="EFI64" value="4">
|
---|
1030 | <desc>Efi firmware, 64-bit.</desc>
|
---|
1031 | </const>
|
---|
1032 | <const name="EFIDUAL" value="5">
|
---|
1033 | <desc>Efi firmware, combined 32 and 64-bit.</desc>
|
---|
1034 | </const>
|
---|
1035 | </enum>
|
---|
1036 |
|
---|
1037 | <enum
|
---|
1038 | name="PointingHidType"
|
---|
1039 | uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
|
---|
1040 | >
|
---|
1041 | <desc>
|
---|
1042 | Type of pointing device used in a virtual machine.
|
---|
1043 | </desc>
|
---|
1044 | <const name="None" value="1">
|
---|
1045 | <desc>No mouse.</desc>
|
---|
1046 | </const>
|
---|
1047 | <const name="PS2Mouse" value="2">
|
---|
1048 | <desc>PS/2 auxillary device, a.k.a. mouse.</desc>
|
---|
1049 | </const>
|
---|
1050 | <const name="USBMouse" value="3">
|
---|
1051 | <desc>USB mouse (relative pointer).</desc>
|
---|
1052 | </const>
|
---|
1053 | <const name="USBTablet" value="4">
|
---|
1054 | <desc>USB tablet (absolute pointer).</desc>
|
---|
1055 | </const>
|
---|
1056 | <const name="ComboMouse" value="5">
|
---|
1057 | <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
|
---|
1058 | Using of such device can have negative performance implications. </desc>
|
---|
1059 | </const>
|
---|
1060 | </enum>
|
---|
1061 |
|
---|
1062 | <enum
|
---|
1063 | name="KeyboardHidType"
|
---|
1064 | uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
|
---|
1065 | >
|
---|
1066 | <desc>
|
---|
1067 | Type of keyboard device used in a virtual machine.
|
---|
1068 | </desc>
|
---|
1069 | <const name="None" value="1">
|
---|
1070 | <desc>No keyboard.</desc>
|
---|
1071 | </const>
|
---|
1072 | <const name="PS2Keyboard" value="2">
|
---|
1073 | <desc>PS/2 keyboard.</desc>
|
---|
1074 | </const>
|
---|
1075 | <const name="USBKeyboard" value="3">
|
---|
1076 | <desc>USB keyboard.</desc>
|
---|
1077 | </const>
|
---|
1078 | <const name="ComboKeyboard" value="4">
|
---|
1079 | <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
|
---|
1080 | Using of such device can have negative performance implications. </desc>
|
---|
1081 | </const>
|
---|
1082 | </enum>
|
---|
1083 |
|
---|
1084 | <enum
|
---|
1085 | name="IoMgrType"
|
---|
1086 | uuid="35567419-4d2a-4256-a74e-efcae33493a2"
|
---|
1087 | >
|
---|
1088 | <desc>
|
---|
1089 | Type of the I/O manager used for the image files in a virtual machine.
|
---|
1090 | </desc>
|
---|
1091 | <const name="Simple" value="1">
|
---|
1092 | <desc>Simple manager. Normally only used if the default one runs into an
|
---|
1093 | error. </desc>
|
---|
1094 | </const>
|
---|
1095 | <const name="Async" value="2">
|
---|
1096 | <desc>Asynchronous manager using the async I/O API on the host if present.
|
---|
1097 | This is the default manager.</desc>
|
---|
1098 | </const>
|
---|
1099 | </enum>
|
---|
1100 |
|
---|
1101 | <enum
|
---|
1102 | name="IoBackendType"
|
---|
1103 | uuid="2a7e16d1-4e6b-4d5d-b0c9-b9bbe6c5b2ad"
|
---|
1104 | >
|
---|
1105 | <desc>
|
---|
1106 | Type of I/O backend used for the image files in a virtual machine.
|
---|
1107 | </desc>
|
---|
1108 | <const name="Buffered" value="1">
|
---|
1109 | <desc>Image files will use the host cache if possible.
|
---|
1110 | This type does not work with the Async I/O manager on Linux hosts.
|
---|
1111 | Default on all hosts except Linux.</desc>
|
---|
1112 | </const>
|
---|
1113 | <const name="Unbuffered" value="2">
|
---|
1114 | <desc>Image files will not use the host cache.
|
---|
1115 | This should be used on OS X and Linux hosts if a high I/O load is expected
|
---|
1116 | or many virtual machines are running to prevent I/O cache
|
---|
1117 | related hangs. Default on Linux hosts.</desc>
|
---|
1118 | </const>
|
---|
1119 | </enum>
|
---|
1120 |
|
---|
1121 | <!--
|
---|
1122 | // IVirtualBoxErrorInfo
|
---|
1123 | /////////////////////////////////////////////////////////////////////////
|
---|
1124 | -->
|
---|
1125 |
|
---|
1126 | <interface
|
---|
1127 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
1128 | uuid="4b86d186-407e-4f9e-8be8-e50061be8725"
|
---|
1129 | supportsErrorInfo="no"
|
---|
1130 | wsmap="managed"
|
---|
1131 | >
|
---|
1132 | <desc>
|
---|
1133 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
1134 |
|
---|
1135 | Extended error information can be set by VirtualBox components after
|
---|
1136 | unsuccessful or partially successful method invocation. This information
|
---|
1137 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
1138 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
1139 |
|
---|
1140 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
1141 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
1142 | it provides a set of common attributes to retrieve error
|
---|
1143 | information.
|
---|
1144 |
|
---|
1145 | Sometimes invocation of some component's method may involve methods of
|
---|
1146 | other components that may also fail (independently of this method's
|
---|
1147 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
1148 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
1149 | information about all errors happened during method invocation and deliver
|
---|
1150 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
1151 | specifically for this purpose and allows to represent a chain of errors
|
---|
1152 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
1153 |
|
---|
1154 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
1155 | initial error object you query right after method invocation is the last
|
---|
1156 | error set by the callee, the object it points to in the @a next attribute
|
---|
1157 | is the previous error and so on, up to the first error (which is the last
|
---|
1158 | in the chain).
|
---|
1159 | </desc>
|
---|
1160 |
|
---|
1161 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
1162 | <desc>
|
---|
1163 | Result code of the error.
|
---|
1164 | Usually, it will be the same as the result code returned
|
---|
1165 | by the method that provided this error information, but not
|
---|
1166 | always. For example, on Win32, CoCreateInstance() will most
|
---|
1167 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
1168 | instantiation attempt, but not the value the component factory
|
---|
1169 | returned. Value is typed 'long', not 'result',
|
---|
1170 | to make interface usable from scripting languages.
|
---|
1171 | <note>
|
---|
1172 | In MS COM, there is no equivalent.
|
---|
1173 | In XPCOM, it is the same as nsIException::result.
|
---|
1174 | </note>
|
---|
1175 | </desc>
|
---|
1176 | </attribute>
|
---|
1177 |
|
---|
1178 | <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
|
---|
1179 | <desc>
|
---|
1180 | UUID of the interface that defined the error.
|
---|
1181 | <note>
|
---|
1182 | In MS COM, it is the same as IErrorInfo::GetGUID, except for the
|
---|
1183 | data type.
|
---|
1184 | In XPCOM, there is no equivalent.
|
---|
1185 | </note>
|
---|
1186 | </desc>
|
---|
1187 | </attribute>
|
---|
1188 |
|
---|
1189 | <attribute name="component" type="wstring" readonly="yes">
|
---|
1190 | <desc>
|
---|
1191 | Name of the component that generated the error.
|
---|
1192 | <note>
|
---|
1193 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
1194 | In XPCOM, there is no equivalent.
|
---|
1195 | </note>
|
---|
1196 | </desc>
|
---|
1197 | </attribute>
|
---|
1198 |
|
---|
1199 | <attribute name="text" type="wstring" readonly="yes">
|
---|
1200 | <desc>
|
---|
1201 | Text description of the error.
|
---|
1202 | <note>
|
---|
1203 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
1204 | In XPCOM, it is the same as nsIException::message.
|
---|
1205 | </note>
|
---|
1206 | </desc>
|
---|
1207 | </attribute>
|
---|
1208 |
|
---|
1209 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
1210 | <desc>
|
---|
1211 | Next error object if there is any, or @c null otherwise.
|
---|
1212 | <note>
|
---|
1213 | In MS COM, there is no equivalent.
|
---|
1214 | In XPCOM, it is the same as nsIException::inner.
|
---|
1215 | </note>
|
---|
1216 | </desc>
|
---|
1217 | </attribute>
|
---|
1218 |
|
---|
1219 | </interface>
|
---|
1220 |
|
---|
1221 | <interface
|
---|
1222 | name="ILocalOwner" extends="$unknown"
|
---|
1223 | uuid="308FF42A-DC45-49D4-A950-B1EEE5E00BB5" wsmap="suppress"
|
---|
1224 | >
|
---|
1225 | <desc>
|
---|
1226 | The ILocalOwner interface allows to register local objects
|
---|
1227 | (created without COM calls, but with new()).
|
---|
1228 | Once registered, calls to methods of such objects can be made
|
---|
1229 | from remote COM processes.
|
---|
1230 | The main usecase is the event callback implementation where
|
---|
1231 | API clients provide callback objects.
|
---|
1232 | </desc>
|
---|
1233 | <method name="setLocalObject">
|
---|
1234 | <desc>
|
---|
1235 | Set local object.
|
---|
1236 | </desc>
|
---|
1237 | <param name="object" type="$unknown" dir="in">
|
---|
1238 | <desc>Local object to forward requests to.
|
---|
1239 | If null, clears currently set local object.</desc>
|
---|
1240 | </param>
|
---|
1241 | </method>
|
---|
1242 | </interface>
|
---|
1243 |
|
---|
1244 | <!--
|
---|
1245 | // IVirtualBox
|
---|
1246 | /////////////////////////////////////////////////////////////////////////
|
---|
1247 | -->
|
---|
1248 |
|
---|
1249 | <interface
|
---|
1250 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
1251 | uuid="7f6a65b6-ad5d-4a67-8872-0b11cb7ea95c"
|
---|
1252 | wsmap="suppress"
|
---|
1253 | >
|
---|
1254 |
|
---|
1255 | <method name="onMachineStateChange">
|
---|
1256 | <desc>
|
---|
1257 | The execution state of the given machine has changed.
|
---|
1258 | <see>IMachine::state</see>
|
---|
1259 | </desc>
|
---|
1260 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1261 | <desc>ID of the machine this event relates to.</desc>
|
---|
1262 | </param>
|
---|
1263 | <param name="state" type="MachineState" dir="in">
|
---|
1264 | <desc>New execution state.</desc>
|
---|
1265 | </param>
|
---|
1266 | </method>
|
---|
1267 |
|
---|
1268 | <method name="onMachineDataChange">
|
---|
1269 | <desc>
|
---|
1270 | Any of the settings of the given machine has changed.
|
---|
1271 | </desc>
|
---|
1272 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1273 | <desc>ID of the machine this event relates to.</desc>
|
---|
1274 | </param>
|
---|
1275 | </method>
|
---|
1276 |
|
---|
1277 | <method name="onExtraDataCanChange">
|
---|
1278 | <desc>
|
---|
1279 | Notification when someone tries to change extra data for
|
---|
1280 | either the given machine or (if @c null) global extra data.
|
---|
1281 | This gives the chance to veto against changes.
|
---|
1282 | </desc>
|
---|
1283 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1284 | <desc>
|
---|
1285 | ID of the machine this event relates to
|
---|
1286 | (@c null ID for global extra data change requests).
|
---|
1287 | </desc>
|
---|
1288 | </param>
|
---|
1289 | <param name="key" type="wstring" dir="in">
|
---|
1290 | <desc>
|
---|
1291 | Extra data key for the attempted write.
|
---|
1292 | </desc>
|
---|
1293 | </param>
|
---|
1294 | <param name="value" type="wstring" dir="in">
|
---|
1295 | <desc>
|
---|
1296 | Extra data value for the given key.
|
---|
1297 | </desc>
|
---|
1298 | </param>
|
---|
1299 | <param name="error" type="wstring" dir="out">
|
---|
1300 | <desc>
|
---|
1301 | Optional error message describing the reason of the
|
---|
1302 | veto (ignored if this notification returns @c true).
|
---|
1303 | </desc>
|
---|
1304 | </param>
|
---|
1305 | <param name="allowChange" type="boolean" dir="return">
|
---|
1306 | <desc>
|
---|
1307 | Flag to indicate whether the callee agrees (@c true)
|
---|
1308 | or vetoes against the change (@c false).
|
---|
1309 | </desc>
|
---|
1310 | </param>
|
---|
1311 | </method>
|
---|
1312 |
|
---|
1313 | <method name="onExtraDataChange">
|
---|
1314 | <desc>
|
---|
1315 | Notification when machine specific or global extra data
|
---|
1316 | has changed.
|
---|
1317 | </desc>
|
---|
1318 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1319 | <desc>
|
---|
1320 | ID of the machine this event relates to.
|
---|
1321 | Null for global extra data changes.
|
---|
1322 | </desc>
|
---|
1323 | </param>
|
---|
1324 | <param name="key" type="wstring" dir="in">
|
---|
1325 | <desc>
|
---|
1326 | Extra data key that has changed.
|
---|
1327 | </desc>
|
---|
1328 | </param>
|
---|
1329 | <param name="value" type="wstring" dir="in">
|
---|
1330 | <desc>
|
---|
1331 | Extra data value for the given key.
|
---|
1332 | </desc>
|
---|
1333 | </param>
|
---|
1334 | </method>
|
---|
1335 |
|
---|
1336 | <method name="onMediumRegistered">
|
---|
1337 | <desc>
|
---|
1338 | The given medium was registered or unregistered
|
---|
1339 | within this VirtualBox installation.
|
---|
1340 |
|
---|
1341 | The @a mediumType parameter describes what type of
|
---|
1342 | medium the specified @a mediumId refers to. Possible
|
---|
1343 | values are:
|
---|
1344 |
|
---|
1345 | <ul>
|
---|
1346 | <li><link to="DeviceType_HardDisk"/>: the medium is a hard disk
|
---|
1347 | that, if registered, can be obtained using the
|
---|
1348 | <link to="IVirtualBox::getHardDisk"/> call.</li>
|
---|
1349 | <li><link to="DeviceType_DVD"/>: the medium is a CD/DVD image
|
---|
1350 | that, if registered, can be obtained using the
|
---|
1351 | <link to="IVirtualBox::getDVDImage"/> call.</li>
|
---|
1352 | <li><link to="DeviceType_Floppy"/>: the medium is a Floppy image
|
---|
1353 | that, if registered, can be obtained using the
|
---|
1354 | <link to="IVirtualBox::getFloppyImage"/> call.</li>
|
---|
1355 | </ul>
|
---|
1356 |
|
---|
1357 | Note that if this is a deregistration notification,
|
---|
1358 | there is no way to access the object representing the
|
---|
1359 | unregistered medium. It is supposed that the
|
---|
1360 | application will do required cleanup based on the
|
---|
1361 | @a mediumId value.
|
---|
1362 | </desc>
|
---|
1363 | <param name="mediumId" type="uuid" mod="string" dir="in">
|
---|
1364 | <desc>ID of the medium this event relates to.</desc>
|
---|
1365 | </param>
|
---|
1366 | <param name="mediumType" type="DeviceType" dir="in">
|
---|
1367 | <desc>Type of the medium this event relates to.</desc>
|
---|
1368 | </param>
|
---|
1369 | <param name="registered" type="boolean" dir="in">
|
---|
1370 | <desc>
|
---|
1371 | If @c true, the medium was registered, otherwise it was
|
---|
1372 | unregistered.
|
---|
1373 | </desc>
|
---|
1374 | </param>
|
---|
1375 | </method>
|
---|
1376 |
|
---|
1377 | <method name="onMachineRegistered">
|
---|
1378 | <desc>
|
---|
1379 | The given machine was registered or unregistered
|
---|
1380 | within this VirtualBox installation.
|
---|
1381 | </desc>
|
---|
1382 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1383 | <desc>ID of the machine this event relates to.</desc>
|
---|
1384 | </param>
|
---|
1385 | <param name="registered" type="boolean" dir="in">
|
---|
1386 | <desc>
|
---|
1387 | If @c true, the machine was registered, otherwise it was
|
---|
1388 | unregistered.
|
---|
1389 | </desc>
|
---|
1390 | </param>
|
---|
1391 | </method>
|
---|
1392 |
|
---|
1393 | <method name="onSessionStateChange">
|
---|
1394 | <desc>
|
---|
1395 | The state of the session for the given machine was changed.
|
---|
1396 | <see>IMachine::sessionState</see>
|
---|
1397 | </desc>
|
---|
1398 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1399 | <desc>ID of the machine this event relates to.</desc>
|
---|
1400 | </param>
|
---|
1401 | <param name="state" type="SessionState" dir="in">
|
---|
1402 | <desc>New session state.</desc>
|
---|
1403 | </param>
|
---|
1404 | </method>
|
---|
1405 |
|
---|
1406 | <method name="onSnapshotTaken">
|
---|
1407 | <desc>
|
---|
1408 | A new snapshot of the machine has been taken.
|
---|
1409 | <see>ISnapshot</see>
|
---|
1410 | </desc>
|
---|
1411 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1412 | <desc>ID of the machine this event relates to.</desc>
|
---|
1413 | </param>
|
---|
1414 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1415 | <desc>ID of the new snapshot.</desc>
|
---|
1416 | </param>
|
---|
1417 | </method>
|
---|
1418 |
|
---|
1419 | <method name="onSnapshotDeleted">
|
---|
1420 | <desc>
|
---|
1421 | Snapshot of the given machine has been deleted.
|
---|
1422 |
|
---|
1423 | <note>
|
---|
1424 | This notification is delivered <b>after</b> the snapshot
|
---|
1425 | object has been uninitialized on the server (so that any
|
---|
1426 | attempt to call its methods will return an error).
|
---|
1427 | </note>
|
---|
1428 |
|
---|
1429 | <see>ISnapshot</see>
|
---|
1430 | </desc>
|
---|
1431 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1432 | <desc>ID of the machine this event relates to.</desc>
|
---|
1433 | </param>
|
---|
1434 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1435 | <desc>
|
---|
1436 | ID of the deleted snapshot. @c null means the current machine
|
---|
1437 | state has been deleted (restored from the current snapshot).
|
---|
1438 | </desc>
|
---|
1439 | </param>
|
---|
1440 | </method>
|
---|
1441 |
|
---|
1442 | <method name="onSnapshotChange">
|
---|
1443 | <desc>
|
---|
1444 | Snapshot properties (name and/or description) have been changed.
|
---|
1445 | <see>ISnapshot</see>
|
---|
1446 | </desc>
|
---|
1447 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1448 | <desc>ID of the machine this event relates to.</desc>
|
---|
1449 | </param>
|
---|
1450 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1451 | <desc>ID of the changed snapshot.</desc>
|
---|
1452 | </param>
|
---|
1453 | </method>
|
---|
1454 |
|
---|
1455 | <method name="onGuestPropertyChange">
|
---|
1456 | <desc>
|
---|
1457 | Notification when a guest property has changed.
|
---|
1458 | </desc>
|
---|
1459 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1460 | <desc>
|
---|
1461 | ID of the machine this event relates to.
|
---|
1462 | </desc>
|
---|
1463 | </param>
|
---|
1464 | <param name="name" type="wstring" dir="in">
|
---|
1465 | <desc>
|
---|
1466 | The name of the property that has changed.
|
---|
1467 | </desc>
|
---|
1468 | </param>
|
---|
1469 | <param name="value" type="wstring" dir="in">
|
---|
1470 | <desc>
|
---|
1471 | The new property value.
|
---|
1472 | </desc>
|
---|
1473 | </param>
|
---|
1474 | <param name="flags" type="wstring" dir="in">
|
---|
1475 | <desc>
|
---|
1476 | The new property flags.
|
---|
1477 | </desc>
|
---|
1478 | </param>
|
---|
1479 | </method>
|
---|
1480 |
|
---|
1481 | </interface>
|
---|
1482 |
|
---|
1483 | <interface
|
---|
1484 | name="IDHCPServer" extends="$unknown"
|
---|
1485 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1486 | wsmap="managed"
|
---|
1487 | >
|
---|
1488 | <desc>
|
---|
1489 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1490 |
|
---|
1491 | To enumerate all the dhcp servers on the host, use the
|
---|
1492 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1493 | </desc>
|
---|
1494 |
|
---|
1495 | <attribute name="enabled" type="boolean">
|
---|
1496 | <desc>
|
---|
1497 | specifies if the dhcp server is enabled
|
---|
1498 | </desc>
|
---|
1499 | </attribute>
|
---|
1500 |
|
---|
1501 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1502 | <desc>
|
---|
1503 | specifies server IP
|
---|
1504 | </desc>
|
---|
1505 | </attribute>
|
---|
1506 |
|
---|
1507 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1508 | <desc>
|
---|
1509 | specifies server network mask
|
---|
1510 | </desc>
|
---|
1511 | </attribute>
|
---|
1512 |
|
---|
1513 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1514 | <desc>
|
---|
1515 | specifies internal network name the server is used for
|
---|
1516 | </desc>
|
---|
1517 | </attribute>
|
---|
1518 |
|
---|
1519 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1520 | <desc>
|
---|
1521 | specifies from IP adrres in server address range
|
---|
1522 | </desc>
|
---|
1523 | </attribute>
|
---|
1524 |
|
---|
1525 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1526 | <desc>
|
---|
1527 | specifies to IP adrres in server address range
|
---|
1528 | </desc>
|
---|
1529 | </attribute>
|
---|
1530 |
|
---|
1531 | <method name="setConfiguration">
|
---|
1532 | <desc>
|
---|
1533 | configures the server
|
---|
1534 | <result name="E_INVALIDARG">
|
---|
1535 | invalid configuration supplied
|
---|
1536 | </result>
|
---|
1537 | </desc>
|
---|
1538 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1539 | <desc>
|
---|
1540 | server IP address
|
---|
1541 | </desc>
|
---|
1542 | </param>
|
---|
1543 | <param name="networkMask" type="wstring" dir="in">
|
---|
1544 | <desc>
|
---|
1545 | server network mask
|
---|
1546 | </desc>
|
---|
1547 | </param>
|
---|
1548 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1549 | <desc>
|
---|
1550 | server From IP address for address range
|
---|
1551 | </desc>
|
---|
1552 | </param>
|
---|
1553 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1554 | <desc>
|
---|
1555 | server To IP address for address range
|
---|
1556 | </desc>
|
---|
1557 | </param>
|
---|
1558 | </method>
|
---|
1559 |
|
---|
1560 | <method name="start">
|
---|
1561 | <desc>
|
---|
1562 | Starts DHCP server process.
|
---|
1563 | <result name="E_FAIL">
|
---|
1564 | Failed to start the process.
|
---|
1565 | </result>
|
---|
1566 | </desc>
|
---|
1567 | <param name="networkName" type="wstring" dir="in">
|
---|
1568 | <desc>
|
---|
1569 | Name of internal network DHCP server should attach to.
|
---|
1570 | </desc>
|
---|
1571 | </param>
|
---|
1572 | <param name="trunkName" type="wstring" dir="in">
|
---|
1573 | <desc>
|
---|
1574 | Name of internal network trunk.
|
---|
1575 | </desc>
|
---|
1576 | </param>
|
---|
1577 | <param name="trunkType" type="wstring" dir="in">
|
---|
1578 | <desc>
|
---|
1579 | Type of internal network trunk.
|
---|
1580 | </desc>
|
---|
1581 | </param>
|
---|
1582 | </method>
|
---|
1583 |
|
---|
1584 | <method name="stop">
|
---|
1585 | <desc>
|
---|
1586 | Stops DHCP server process.
|
---|
1587 | <result name="E_FAIL">
|
---|
1588 | Failed to stop the process.
|
---|
1589 | </result>
|
---|
1590 | </desc>
|
---|
1591 | </method>
|
---|
1592 | </interface>
|
---|
1593 |
|
---|
1594 | <interface
|
---|
1595 | name="IVirtualBox" extends="$unknown"
|
---|
1596 | uuid="3f36e024-7fed-4f20-a02c-9158a82b44e6"
|
---|
1597 | wsmap="managed"
|
---|
1598 | >
|
---|
1599 | <desc>
|
---|
1600 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1601 | product that provides virtual machine management.
|
---|
1602 |
|
---|
1603 | An instance of IVirtualBox is required for the product to do anything
|
---|
1604 | useful. Even though the interface does not expose this, internally,
|
---|
1605 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1606 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1607 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1608 | host, regardless of which frontend started them.
|
---|
1609 |
|
---|
1610 | To enumerate all the virtual machines on the host, use the
|
---|
1611 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1612 | </desc>
|
---|
1613 |
|
---|
1614 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1615 | <desc>
|
---|
1616 | A string representing the version number of the product. The
|
---|
1617 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1618 | last number represents the build number and will frequently change.
|
---|
1619 | </desc>
|
---|
1620 | </attribute>
|
---|
1621 |
|
---|
1622 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1623 | <desc>
|
---|
1624 | The internal build revision number of the product.
|
---|
1625 | </desc>
|
---|
1626 | </attribute>
|
---|
1627 |
|
---|
1628 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1629 | <desc>
|
---|
1630 | A string representing the package type of this product. The
|
---|
1631 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1632 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1633 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1634 | this.
|
---|
1635 | </desc>
|
---|
1636 | </attribute>
|
---|
1637 |
|
---|
1638 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1639 | <desc>
|
---|
1640 | Full path to the directory where the global settings file,
|
---|
1641 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1642 |
|
---|
1643 | In this version of VirtualBox, the value of this property is
|
---|
1644 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1645 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1646 | as determined by the host OS), and cannot be changed.
|
---|
1647 |
|
---|
1648 | This path is also used as the base to resolve relative paths in
|
---|
1649 | places where relative paths are allowed (unless otherwise
|
---|
1650 | expressly indicated).
|
---|
1651 | </desc>
|
---|
1652 | </attribute>
|
---|
1653 |
|
---|
1654 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1655 | <desc>
|
---|
1656 | Full name of the global settings file.
|
---|
1657 | The value of this property corresponds to the value of
|
---|
1658 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1659 | </desc>
|
---|
1660 | </attribute>
|
---|
1661 |
|
---|
1662 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1663 | <desc>Associated host object.</desc>
|
---|
1664 | </attribute>
|
---|
1665 |
|
---|
1666 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1667 | <desc>Associated system information object.</desc>
|
---|
1668 | </attribute>
|
---|
1669 |
|
---|
1670 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1671 | <desc>
|
---|
1672 | Array of machine objects registered within this VirtualBox instance.
|
---|
1673 | </desc>
|
---|
1674 | </attribute>
|
---|
1675 |
|
---|
1676 | <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
|
---|
1677 | <desc>
|
---|
1678 | Array of medium objects known to this VirtualBox installation.
|
---|
1679 |
|
---|
1680 | This array contains only base media. All differencing
|
---|
1681 | media of the given base medium can be enumerated using
|
---|
1682 | <link to="IMedium::children"/>.
|
---|
1683 | </desc>
|
---|
1684 | </attribute>
|
---|
1685 |
|
---|
1686 | <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1687 | <desc>
|
---|
1688 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1689 | </desc>
|
---|
1690 | </attribute>
|
---|
1691 |
|
---|
1692 | <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1693 | <desc>
|
---|
1694 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1695 | </desc>
|
---|
1696 | </attribute>
|
---|
1697 |
|
---|
1698 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1699 |
|
---|
1700 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1701 |
|
---|
1702 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1703 | <desc>
|
---|
1704 | Collection of global shared folders. Global shared folders are
|
---|
1705 | available to all virtual machines.
|
---|
1706 |
|
---|
1707 | New shared folders are added to the collection using
|
---|
1708 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1709 | removed using <link to="#removeSharedFolder"/>.
|
---|
1710 |
|
---|
1711 | <note>
|
---|
1712 | In the current version of the product, global shared folders are not
|
---|
1713 | implemented and therefore this collection is always empty.
|
---|
1714 | </note>
|
---|
1715 | </desc>
|
---|
1716 | </attribute>
|
---|
1717 |
|
---|
1718 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1719 | <desc>
|
---|
1720 | Associated performance collector object.
|
---|
1721 | </desc>
|
---|
1722 | </attribute>
|
---|
1723 |
|
---|
1724 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1725 | <desc>
|
---|
1726 | dhcp server settings.
|
---|
1727 | </desc>
|
---|
1728 | </attribute>
|
---|
1729 |
|
---|
1730 | <method name="createMachine">
|
---|
1731 | <desc>
|
---|
1732 | Creates a new virtual machine.
|
---|
1733 |
|
---|
1734 | The new machine is created unregistered, with the initial configuration
|
---|
1735 | set according to the specified guest OS type. A typical sequence of
|
---|
1736 | actions to create a new virtual machine is as follows:
|
---|
1737 |
|
---|
1738 | <ol>
|
---|
1739 | <li>
|
---|
1740 | Call this method to have a new machine created. The returned machine
|
---|
1741 | object will be "mutable" allowing to change any machine property.
|
---|
1742 | </li>
|
---|
1743 |
|
---|
1744 | <li>
|
---|
1745 | Configure the machine using the appropriate attributes and methods.
|
---|
1746 | </li>
|
---|
1747 |
|
---|
1748 | <li>
|
---|
1749 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1750 | to the machine's XML settings file. The configuration of the newly
|
---|
1751 | created machine will not be saved to disk until this method is
|
---|
1752 | called.
|
---|
1753 | </li>
|
---|
1754 |
|
---|
1755 | <li>
|
---|
1756 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1757 | of machines known to VirtualBox.
|
---|
1758 | </li>
|
---|
1759 | </ol>
|
---|
1760 |
|
---|
1761 | You should specify valid name for the newly created machine when calling
|
---|
1762 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1763 | for more details about the machine name.
|
---|
1764 |
|
---|
1765 | The specified guest OS type identifier must match an ID of one of known
|
---|
1766 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1767 | array.
|
---|
1768 |
|
---|
1769 | Every machine has a <i>settings file</i> that is used to store
|
---|
1770 | the machine configuration. This file is stored in a directory called the
|
---|
1771 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1772 | will have a name that corresponds to the name of the virtual machine.
|
---|
1773 | You can specify where to create the machine setting subfolder using the
|
---|
1774 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1775 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1776 | directory</link>.
|
---|
1777 |
|
---|
1778 | If @a baseFolder is a @c null or empty string (which is recommended), the
|
---|
1779 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1780 | settings folder</link> will be used as a base folder for the created
|
---|
1781 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1782 | the full path to the resulting settings file has the following
|
---|
1783 | structure:
|
---|
1784 | <pre>
|
---|
1785 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1786 | </pre>
|
---|
1787 |
|
---|
1788 | Note that if the resulting settings file already exists, this method
|
---|
1789 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1790 |
|
---|
1791 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1792 | However, this is not recommended and you should normally pass an empty
|
---|
1793 | (@c null) UUID to this method so that a new UUID will be automatically
|
---|
1794 | generated for every created machine. You can use UUID
|
---|
1795 | 00000000-0000-0000-0000-000000000000 as @c null value.
|
---|
1796 |
|
---|
1797 | <note>
|
---|
1798 | There is no way to change the name of the settings file or
|
---|
1799 | subfolder of the created machine directly.
|
---|
1800 | </note>
|
---|
1801 |
|
---|
1802 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1803 | @a osTypeId is invalid.
|
---|
1804 | </result>
|
---|
1805 | <result name="VBOX_E_FILE_ERROR">
|
---|
1806 | Resulting settings file name is invalid or the settings file already
|
---|
1807 | exists or could not be created due to an I/O error.
|
---|
1808 | </result>
|
---|
1809 | <result name="E_INVALIDARG">
|
---|
1810 | @a name is empty or @c null.
|
---|
1811 | </result>
|
---|
1812 | </desc>
|
---|
1813 |
|
---|
1814 | <param name="name" type="wstring" dir="in">
|
---|
1815 | <desc>Machine name.</desc>
|
---|
1816 | </param>
|
---|
1817 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1818 | <desc>Guest OS Type ID.</desc>
|
---|
1819 | </param>
|
---|
1820 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1821 | <desc>Base machine folder (optional).</desc>
|
---|
1822 | </param>
|
---|
1823 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1824 | <desc>Machine UUID (optional).</desc>
|
---|
1825 | </param>
|
---|
1826 | <param name="override" type="boolean" dir="in">
|
---|
1827 | <desc>Create the VM even if there are conflicting files.</desc>
|
---|
1828 | </param>
|
---|
1829 | <param name="machine" type="IMachine" dir="return">
|
---|
1830 | <desc>Created machine object.</desc>
|
---|
1831 | </param>
|
---|
1832 | </method>
|
---|
1833 |
|
---|
1834 | <method name="createLegacyMachine">
|
---|
1835 | <desc>
|
---|
1836 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1837 | settings file to store machine settings.
|
---|
1838 |
|
---|
1839 | As opposed to machines created by <link to="#createMachine"/>,
|
---|
1840 | the settings file of the machine created in "legacy" mode is not
|
---|
1841 | automatically renamed when the machine name is changed -- it will always
|
---|
1842 | remain the same as specified in this method call.
|
---|
1843 |
|
---|
1844 | The specified settings file name can be absolute (full path) or relative
|
---|
1845 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1846 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1847 | default extension (.xml) will be appended.
|
---|
1848 |
|
---|
1849 | Note that the configuration of the newly created machine is not
|
---|
1850 | saved to disk (and therefore no settings file is created)
|
---|
1851 | until <link to="IMachine::saveSettings"/> is called. If the
|
---|
1852 | specified settings file already exists, this method
|
---|
1853 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1854 |
|
---|
1855 | See <link to="#createMachine"/> for more information.
|
---|
1856 |
|
---|
1857 | @deprecated This method may be removed later. Use <link
|
---|
1858 | to="IVirtualBox::createMachine"/> instead.
|
---|
1859 |
|
---|
1860 | <note>
|
---|
1861 | There is no way to change the name of the settings file
|
---|
1862 | of the machine created in "legacy" mode.
|
---|
1863 | </note>
|
---|
1864 |
|
---|
1865 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1866 | @a osTypeId is invalid.
|
---|
1867 | </result>
|
---|
1868 | <result name="VBOX_E_FILE_ERROR">
|
---|
1869 | @a settingsFile is invalid or the settings file already exists or
|
---|
1870 | could not be created due to an I/O error.
|
---|
1871 | </result>
|
---|
1872 | <result name="E_INVALIDARG">
|
---|
1873 | @a name or @a settingsFile is empty or @c null.
|
---|
1874 | </result>
|
---|
1875 | </desc>
|
---|
1876 |
|
---|
1877 | <param name="name" type="wstring" dir="in">
|
---|
1878 | <desc>Machine name.</desc>
|
---|
1879 | </param>
|
---|
1880 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1881 | <desc>Machine OS Type ID.</desc>
|
---|
1882 | </param>
|
---|
1883 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1884 | <desc>Name of the machine settings file.</desc>
|
---|
1885 | </param>
|
---|
1886 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1887 | <desc>Machine UUID (optional).</desc>
|
---|
1888 | </param>
|
---|
1889 | <param name="machine" type="IMachine" dir="return">
|
---|
1890 | <desc>Created machine object.</desc>
|
---|
1891 | </param>
|
---|
1892 | </method>
|
---|
1893 |
|
---|
1894 | <method name="openMachine">
|
---|
1895 | <desc>
|
---|
1896 | Opens a virtual machine from the existing settings file.
|
---|
1897 | The opened machine remains unregistered until you call
|
---|
1898 | <link to="#registerMachine"/>.
|
---|
1899 |
|
---|
1900 | The specified settings file name can be absolute
|
---|
1901 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1902 | VirtualBox home directory</link>. This file must exist
|
---|
1903 | and must be a valid machine settings file whose contents
|
---|
1904 | will be used to construct the machine object.
|
---|
1905 |
|
---|
1906 | @deprecated Will be removed soon.
|
---|
1907 | <result name="VBOX_E_FILE_ERROR">
|
---|
1908 | Settings file name invalid, not found or sharing violation.
|
---|
1909 | </result>
|
---|
1910 | </desc>
|
---|
1911 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1912 | <desc>
|
---|
1913 | Name of the machine settings file.
|
---|
1914 | </desc>
|
---|
1915 | </param>
|
---|
1916 | <param name="machine" type="IMachine" dir="return">
|
---|
1917 | <desc>Opened machine object.</desc>
|
---|
1918 | </param>
|
---|
1919 | <note>
|
---|
1920 | <link to="IMachine::settingsModified"/> will return
|
---|
1921 | @c false for the created machine, until any of machine settings
|
---|
1922 | are changed.
|
---|
1923 | </note>
|
---|
1924 | </method>
|
---|
1925 |
|
---|
1926 | <method name="registerMachine">
|
---|
1927 | <desc>
|
---|
1928 |
|
---|
1929 | Registers the machine previously created using
|
---|
1930 | <link to="#createMachine"/> or opened using
|
---|
1931 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1932 | successful method invocation, the
|
---|
1933 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1934 | to all registered callbacks.
|
---|
1935 |
|
---|
1936 | <note>
|
---|
1937 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1938 | to save all current machine settings before registering it.
|
---|
1939 | </note>
|
---|
1940 |
|
---|
1941 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1942 | No matching virtual machine found.
|
---|
1943 | </result>
|
---|
1944 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1945 | Virtual machine was not created within this VirtualBox instance.
|
---|
1946 | </result>
|
---|
1947 |
|
---|
1948 | </desc>
|
---|
1949 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1950 | </method>
|
---|
1951 |
|
---|
1952 | <method name="getMachine">
|
---|
1953 | <desc>
|
---|
1954 | Attempts to find a virtual machine given its UUID.
|
---|
1955 | To look up a machine by name, use <link to="IVirtualBox::findMachine" />
|
---|
1956 | instead.
|
---|
1957 |
|
---|
1958 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1959 | Could not find registered machine matching @a id.
|
---|
1960 | </result>
|
---|
1961 |
|
---|
1962 | </desc>
|
---|
1963 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
1964 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1965 | </method>
|
---|
1966 |
|
---|
1967 | <method name="findMachine">
|
---|
1968 | <desc>
|
---|
1969 | Attempts to find a virtual machine given its name.
|
---|
1970 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
|
---|
1971 | instead.
|
---|
1972 |
|
---|
1973 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1974 | Could not find registered machine matching @a name.
|
---|
1975 | </result>
|
---|
1976 |
|
---|
1977 | </desc>
|
---|
1978 | <param name="name" type="wstring" dir="in"/>
|
---|
1979 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1980 | </method>
|
---|
1981 |
|
---|
1982 | <method name="unregisterMachine">
|
---|
1983 | <desc>
|
---|
1984 |
|
---|
1985 | Unregisters the machine previously registered using
|
---|
1986 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1987 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1988 | to all registered callbacks.
|
---|
1989 |
|
---|
1990 | <note>
|
---|
1991 | The specified machine must not be in the Saved state, have an open
|
---|
1992 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1993 | have any medium attached.
|
---|
1994 | </note>
|
---|
1995 |
|
---|
1996 | <note>
|
---|
1997 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1998 | save all current machine settings before unregistering it.
|
---|
1999 | </note>
|
---|
2000 |
|
---|
2001 | <note>
|
---|
2002 | If the given machine is inaccessible (see
|
---|
2003 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
2004 | fully uninitialized right afterwards. As a result, the returned
|
---|
2005 | machine object will be unusable and an attempt to call
|
---|
2006 | <b>any</b> method will return the "Object not ready" error.
|
---|
2007 | </note>
|
---|
2008 |
|
---|
2009 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2010 | Could not find registered machine matching @a id.
|
---|
2011 | </result>
|
---|
2012 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
2013 | Machine is in Saved state.
|
---|
2014 | </result>
|
---|
2015 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2016 | Machine has snapshot or open session or medium attached.
|
---|
2017 | </result>
|
---|
2018 |
|
---|
2019 | </desc>
|
---|
2020 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2021 | <desc>UUID of the machine to unregister.</desc>
|
---|
2022 | </param>
|
---|
2023 | <param name="machine" type="IMachine" dir="return">
|
---|
2024 | <desc>Unregistered machine object.</desc>
|
---|
2025 | </param>
|
---|
2026 | </method>
|
---|
2027 |
|
---|
2028 | <method name="createAppliance">
|
---|
2029 | <desc>
|
---|
2030 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
2031 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
2032 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
2033 | </desc>
|
---|
2034 | <param name="appliance" type="IAppliance" dir="return">
|
---|
2035 | <desc>New appliance.</desc>
|
---|
2036 | </param>
|
---|
2037 | </method>
|
---|
2038 |
|
---|
2039 | <method name="createHardDisk">
|
---|
2040 | <desc>
|
---|
2041 | Creates a new base medium object that will use the given storage
|
---|
2042 | format and location for medium data.
|
---|
2043 |
|
---|
2044 | Note that the actual storage unit is not created by this method. In
|
---|
2045 | order to do it, and before you are able to attach the created medium
|
---|
2046 | to virtual machines, you must call one of the following methods to
|
---|
2047 | allocate a format-specific storage unit at the specified location:
|
---|
2048 | <ul>
|
---|
2049 | <li><link to="IMedium::createBaseStorage"/></li>
|
---|
2050 | <li><link to="IMedium::createDiffStorage"/></li>
|
---|
2051 | </ul>
|
---|
2052 |
|
---|
2053 | Some medium attributes, such as <link to="IMedium::id"/>, may
|
---|
2054 | remain uninitialized until the medium storage unit is successfully
|
---|
2055 | created by one of the above methods.
|
---|
2056 |
|
---|
2057 | After the storage unit is successfully created, the medium gets
|
---|
2058 | remembered by this VirtualBox installation and will be accessible
|
---|
2059 | through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
|
---|
2060 | methods. Remembered base medium are also returned as part of
|
---|
2061 | the <link to="#hardDisks"/> array. See IMedium for more details.
|
---|
2062 |
|
---|
2063 | The list of all storage formats supported by this VirtualBox
|
---|
2064 | installation can be obtained using
|
---|
2065 | <link to="ISystemProperties::mediumFormats"/>. If the @a format
|
---|
2066 | attribute is empty or @c null then the default storage format
|
---|
2067 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
2068 | be used for creating a storage unit of the medium.
|
---|
2069 |
|
---|
2070 | Note that the format of the location string is storage format specific.
|
---|
2071 | See <link to="IMedium::location"/>, IMedium and
|
---|
2072 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
2073 |
|
---|
2074 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2075 | @a format identifier is invalid. See
|
---|
2076 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
2077 | </result>
|
---|
2078 | <result name="VBOX_E_FILE_ERROR">
|
---|
2079 | @a location is a not valid file name (for file-based formats only).
|
---|
2080 | </result>
|
---|
2081 | </desc>
|
---|
2082 | <param name="format" type="wstring" dir="in">
|
---|
2083 | <desc>
|
---|
2084 | Identifier of the storage format to use for the new medium.
|
---|
2085 | </desc>
|
---|
2086 | </param>
|
---|
2087 | <param name="location" type="wstring" dir="in">
|
---|
2088 | <desc>
|
---|
2089 | Location of the storage unit for the new medium.
|
---|
2090 | </desc>
|
---|
2091 | </param>
|
---|
2092 | <param name="medium" type="IMedium" dir="return">
|
---|
2093 | <desc>Created medium object.</desc>
|
---|
2094 | </param>
|
---|
2095 | </method>
|
---|
2096 |
|
---|
2097 | <method name="openHardDisk">
|
---|
2098 | <desc>
|
---|
2099 | Opens a medium from an existing location, optionally replacing
|
---|
2100 | the image UUID and/or parent UUID.
|
---|
2101 |
|
---|
2102 | After the medium is successfully opened by this method, it gets
|
---|
2103 | remembered by (known to) this VirtualBox installation and will be
|
---|
2104 | accessible through <link to="#getHardDisk"/> and
|
---|
2105 | <link to="#findHardDisk"/> methods. Remembered base media
|
---|
2106 | are also returned as part of the <link to="#hardDisks"/> array and can
|
---|
2107 | be attached to virtual machines. See IMedium for more details.
|
---|
2108 |
|
---|
2109 | If a differencing medium is to be opened by this method, the
|
---|
2110 | operation will succeed only if its parent medium and all ancestors,
|
---|
2111 | if any, are already known to this VirtualBox installation (for example,
|
---|
2112 | were opened by this method before).
|
---|
2113 |
|
---|
2114 | This method tries to guess the storage format of the specified medium
|
---|
2115 | by reading medium data at the specified location.
|
---|
2116 |
|
---|
2117 | If @a accessMode is ReadWrite (which it should be), the image is opened
|
---|
2118 | for read/write access and must have according permissions, as VirtualBox
|
---|
2119 | may actually write status information into the disk's metadata sections.
|
---|
2120 |
|
---|
2121 | Note that write access is required for all typical image usage in VirtualBox,
|
---|
2122 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
2123 | The only exception is opening a source image temporarily for copying and
|
---|
2124 | cloning when the image will quickly be closed again.
|
---|
2125 |
|
---|
2126 | Note that the format of the location string is storage format specific.
|
---|
2127 | See <link to="IMedium::location"/>, IMedium and
|
---|
2128 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
2129 |
|
---|
2130 | <result name="VBOX_E_FILE_ERROR">
|
---|
2131 | Invalid medium storage file location or could not find the medium
|
---|
2132 | at the specified location.
|
---|
2133 | </result>
|
---|
2134 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2135 | Could not get medium storage format.
|
---|
2136 | </result>
|
---|
2137 | <result name="E_INVALIDARG">
|
---|
2138 | Invalid medium storage format.
|
---|
2139 | </result>
|
---|
2140 |
|
---|
2141 | </desc>
|
---|
2142 | <param name="location" type="wstring" dir="in">
|
---|
2143 | <desc>
|
---|
2144 | Location of the storage unit that contains medium data in one of
|
---|
2145 | the supported storage formats.
|
---|
2146 | </desc>
|
---|
2147 | </param>
|
---|
2148 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
2149 | <desc>
|
---|
2150 | Determines whether to open the image in read/write or read-only mode.
|
---|
2151 | </desc>
|
---|
2152 | </param>
|
---|
2153 | <param name="setImageId" type="boolean" dir="in">
|
---|
2154 | <desc>
|
---|
2155 | Select whether a new image UUID is set or not.
|
---|
2156 | </desc>
|
---|
2157 | </param>
|
---|
2158 | <param name="imageId" type="uuid" mod="string" dir="in">
|
---|
2159 | <desc>
|
---|
2160 | New UUID for the image. If an empty string is passed, then a new
|
---|
2161 | UUID is automatically created. Specifying a zero UUIDs is not valid.
|
---|
2162 | </desc>
|
---|
2163 | </param>
|
---|
2164 | <param name="setParentId" type="boolean" dir="in">
|
---|
2165 | <desc>
|
---|
2166 | Select whether a new parent UUID is set or not.
|
---|
2167 | </desc>
|
---|
2168 | </param>
|
---|
2169 | <param name="parentId" type="uuid" mod="string" dir="in">
|
---|
2170 | <desc>
|
---|
2171 | New parent UUID for the image. If an empty string is passed, then a
|
---|
2172 | new UUID is automatically created, provided @a setParentId is
|
---|
2173 | @c true. A zero UUID is valid.
|
---|
2174 | </desc>
|
---|
2175 | </param>
|
---|
2176 | <param name="medium" type="IMedium" dir="return">
|
---|
2177 | <desc>Opened medium object.</desc>
|
---|
2178 | </param>
|
---|
2179 | </method>
|
---|
2180 |
|
---|
2181 | <method name="getHardDisk" const="yes">
|
---|
2182 | <desc>
|
---|
2183 | Returns a medium with the given UUID.
|
---|
2184 |
|
---|
2185 | The medium with the given UUID must be known to this VirtualBox
|
---|
2186 | installation, i.e. it must be previously created by
|
---|
2187 | <link to="#createHardDisk"/> or opened by <link
|
---|
2188 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2189 |
|
---|
2190 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2191 | No medium object matching @a id found.
|
---|
2192 | </result>
|
---|
2193 |
|
---|
2194 | </desc>
|
---|
2195 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2196 | <desc>UUID of the medium to look for.</desc>
|
---|
2197 | </param>
|
---|
2198 | <param name="medium" type="IMedium" dir="return">
|
---|
2199 | <desc>Found medium object.</desc>
|
---|
2200 | </param>
|
---|
2201 | </method>
|
---|
2202 |
|
---|
2203 | <method name="findHardDisk">
|
---|
2204 | <desc>
|
---|
2205 | Returns a medium that uses the given location to store medium data.
|
---|
2206 |
|
---|
2207 | The given medium must be known to this VirtualBox installation, i.e.
|
---|
2208 | it must be previously created by
|
---|
2209 | <link to="#createHardDisk"/> or opened by <link
|
---|
2210 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2211 |
|
---|
2212 | The search is done by comparing the value of the @a location argument to
|
---|
2213 | the <link to="IMedium::location"/> attribute of each known medium.
|
---|
2214 |
|
---|
2215 | For locations represented by file names in the host's file system, the
|
---|
2216 | requested location can be a path relative to the
|
---|
2217 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2218 | only a file name without any path is given, the
|
---|
2219 | <link to="ISystemProperties::defaultHardDiskFolder"> default medium
|
---|
2220 | folder</link> will be prepended to the file name before searching. Note
|
---|
2221 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2222 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2223 |
|
---|
2224 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2225 | No medium object matching @a location found.
|
---|
2226 | </result>
|
---|
2227 |
|
---|
2228 | </desc>
|
---|
2229 | <param name="location" type="wstring" dir="in">
|
---|
2230 | <desc>Location string to search for.</desc>
|
---|
2231 | </param>
|
---|
2232 | <param name="medium" type="IMedium" dir="return">
|
---|
2233 | <desc>Found medium object.</desc>
|
---|
2234 | </param>
|
---|
2235 | </method>
|
---|
2236 |
|
---|
2237 | <method name="openDVDImage">
|
---|
2238 | <desc>
|
---|
2239 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
2240 | format and assigns it the given UUID.
|
---|
2241 |
|
---|
2242 | After the image is successfully opened by this method, it gets
|
---|
2243 | remembered by (known to) this VirtualBox installation and will be
|
---|
2244 | accessible through <link to="#getDVDImage"/> and
|
---|
2245 | <link to="#findDVDImage"/> methods. Remembered images are also
|
---|
2246 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
2247 | to virtual machines. See IMedium for more details.
|
---|
2248 |
|
---|
2249 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2250 | of the location string.
|
---|
2251 |
|
---|
2252 | <note>
|
---|
2253 | Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
|
---|
2254 | </note>
|
---|
2255 |
|
---|
2256 | <result name="VBOX_E_FILE_ERROR">
|
---|
2257 | Invalid CD/DVD image file location or could not find the CD/DVD
|
---|
2258 | image at the specified location.
|
---|
2259 | </result>
|
---|
2260 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2261 | CD/DVD image already exists in the media registry.
|
---|
2262 | </result>
|
---|
2263 |
|
---|
2264 | </desc>
|
---|
2265 | <param name="location" type="wstring" dir="in">
|
---|
2266 | <desc>
|
---|
2267 | Full path to the file that contains a valid CD/DVD image.
|
---|
2268 | </desc>
|
---|
2269 | </param>
|
---|
2270 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2271 | <desc>
|
---|
2272 | UUID to assign to the given image within this VirtualBox installation.
|
---|
2273 | If an empty (@c null) UUID is specified, the system will randomly
|
---|
2274 | generate a new UUID.
|
---|
2275 | </desc>
|
---|
2276 | </param>
|
---|
2277 | <param name="image" type="IMedium" dir="return">
|
---|
2278 | <desc>Opened CD/DVD image object.</desc>
|
---|
2279 | </param>
|
---|
2280 | </method>
|
---|
2281 |
|
---|
2282 | <method name="getDVDImage">
|
---|
2283 | <desc>
|
---|
2284 | Returns a CD/DVD image with the given UUID.
|
---|
2285 |
|
---|
2286 | The image with the given UUID must be known to this VirtualBox
|
---|
2287 | installation, i.e. it must be previously opened by <link
|
---|
2288 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2289 |
|
---|
2290 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2291 | No matching DVD image found in the media registry.
|
---|
2292 | </result>
|
---|
2293 |
|
---|
2294 | </desc>
|
---|
2295 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2296 | <desc>UUID of the image to look for.</desc>
|
---|
2297 | </param>
|
---|
2298 | <param name="image" type="IMedium" dir="return">
|
---|
2299 | <desc>Found CD/DVD image object.</desc>
|
---|
2300 | </param>
|
---|
2301 | </method>
|
---|
2302 |
|
---|
2303 | <method name="findDVDImage">
|
---|
2304 | <desc>
|
---|
2305 | Returns a CD/DVD image with the given image location.
|
---|
2306 |
|
---|
2307 | The image with the given UUID must be known to this VirtualBox
|
---|
2308 | installation, i.e. it must be previously opened by <link
|
---|
2309 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2310 |
|
---|
2311 | The search is done by comparing the value of the @a location argument to
|
---|
2312 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
2313 |
|
---|
2314 | The requested location can be a path relative to the
|
---|
2315 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2316 | only a file name without any path is given, the
|
---|
2317 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2318 | folder</link> will be prepended to the file name before searching. Note
|
---|
2319 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2320 | performed, otherwise the case in the file path is ignored.
|
---|
2321 |
|
---|
2322 | <result name="VBOX_E_FILE_ERROR">
|
---|
2323 | Invalid image file location.
|
---|
2324 | </result>
|
---|
2325 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2326 | No matching DVD image found in the media registry.
|
---|
2327 | </result>
|
---|
2328 |
|
---|
2329 | </desc>
|
---|
2330 | <param name="location" type="wstring" dir="in">
|
---|
2331 | <desc>CD/DVD image file path to look for.</desc>
|
---|
2332 | </param>
|
---|
2333 | <param name="image" type="IMedium" dir="return">
|
---|
2334 | <desc>Found CD/DVD image object.</desc>
|
---|
2335 | </param>
|
---|
2336 | </method>
|
---|
2337 |
|
---|
2338 | <method name="openFloppyImage">
|
---|
2339 | <desc>
|
---|
2340 | Opens a floppy image contained in the specified file of the supported
|
---|
2341 | format and assigns it the given UUID.
|
---|
2342 |
|
---|
2343 | After the image is successfully opened by this method, it gets
|
---|
2344 | remembered by (known to) this VirtualBox installation and will be
|
---|
2345 | accessible through <link to="#getFloppyImage"/> and
|
---|
2346 | <link to="#findFloppyImage"/> methods. Remembered images are also
|
---|
2347 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
2348 | mounted to virtual machines. See IMedium for more details.
|
---|
2349 |
|
---|
2350 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2351 | of the location string.
|
---|
2352 |
|
---|
2353 | <result name="VBOX_E_FILE_ERROR">
|
---|
2354 | Invalid floppy image file location or could not find the floppy
|
---|
2355 | image at the specified location.
|
---|
2356 | </result>
|
---|
2357 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2358 | Floppy image already exists in the media registry.
|
---|
2359 | </result>
|
---|
2360 |
|
---|
2361 | <note>
|
---|
2362 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
2363 | </note>
|
---|
2364 | </desc>
|
---|
2365 | <param name="location" type="wstring" dir="in">
|
---|
2366 | <desc>
|
---|
2367 | Full path to the file that contains a valid floppy image.
|
---|
2368 | </desc>
|
---|
2369 | </param>
|
---|
2370 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2371 | <desc>
|
---|
2372 | UUID to assign to the given image file within this VirtualBox
|
---|
2373 | installation. If an empty (@c null) UUID is specified, the system will
|
---|
2374 | randomly generate a new UUID.
|
---|
2375 | </desc>
|
---|
2376 | </param>
|
---|
2377 | <param name="image" type="IMedium" dir="return">
|
---|
2378 | <desc>Opened floppy image object.</desc>
|
---|
2379 | </param>
|
---|
2380 | </method>
|
---|
2381 |
|
---|
2382 | <method name="getFloppyImage">
|
---|
2383 | <desc>
|
---|
2384 | Returns a floppy image with the given UUID.
|
---|
2385 |
|
---|
2386 | The image with the given UUID must be known to this VirtualBox
|
---|
2387 | installation, i.e. it must be previously opened by <link
|
---|
2388 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2389 |
|
---|
2390 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2391 | No matching floppy image found in the media registry.
|
---|
2392 | </result>
|
---|
2393 |
|
---|
2394 | </desc>
|
---|
2395 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2396 | <desc>UUID of the image to look for.</desc>
|
---|
2397 | </param>
|
---|
2398 | <param name="image" type="IMedium" dir="return">
|
---|
2399 | <desc>Found floppy image object.</desc>
|
---|
2400 | </param>
|
---|
2401 | </method>
|
---|
2402 |
|
---|
2403 | <method name="findFloppyImage">
|
---|
2404 | <desc>
|
---|
2405 | Returns a floppy image with the given image location.
|
---|
2406 |
|
---|
2407 | The image with the given UUID must be known to this VirtualBox
|
---|
2408 | installation, i.e. it must be previously opened by <link
|
---|
2409 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2410 |
|
---|
2411 | The search is done by comparing the value of the @a location argument to
|
---|
2412 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
2413 |
|
---|
2414 | The requested location can be a path relative to the
|
---|
2415 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2416 | only a file name without any path is given, the
|
---|
2417 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2418 | folder</link> will be prepended to the file name before searching. Note
|
---|
2419 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2420 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2421 |
|
---|
2422 | <result name="VBOX_E_FILE_ERROR">
|
---|
2423 | Invalid image file location.
|
---|
2424 | </result>
|
---|
2425 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2426 | No matching floppy image found in the media registry.
|
---|
2427 | </result>
|
---|
2428 |
|
---|
2429 | </desc>
|
---|
2430 | <param name="location" type="wstring" dir="in">
|
---|
2431 | <desc>Floppy image file path to look for.</desc>
|
---|
2432 | </param>
|
---|
2433 | <param name="image" type="IMedium" dir="return">
|
---|
2434 | <desc>Found floppy image object.</desc>
|
---|
2435 | </param>
|
---|
2436 | </method>
|
---|
2437 |
|
---|
2438 | <method name="getGuestOSType">
|
---|
2439 | <desc>
|
---|
2440 | Returns an object describing the specified guest OS type.
|
---|
2441 |
|
---|
2442 | The requested guest OS type is specified using a string which is a
|
---|
2443 | mnemonic identifier of the guest operating system, such as
|
---|
2444 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
2445 | particular virtual machine can be read or set using the
|
---|
2446 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
2447 |
|
---|
2448 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
2449 | available guest OS type objects. Each object has an
|
---|
2450 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
2451 | the guest OS this object describes.
|
---|
2452 |
|
---|
2453 | <result name="E_INVALIDARG">
|
---|
2454 | @a id is not a valid Guest OS type.
|
---|
2455 | </result>
|
---|
2456 |
|
---|
2457 | </desc>
|
---|
2458 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2459 | <desc>Guest OS type ID string.</desc>
|
---|
2460 | </param>
|
---|
2461 | <param name="type" type="IGuestOSType" dir="return">
|
---|
2462 | <desc>Guest OS type object.</desc>
|
---|
2463 | </param>
|
---|
2464 | </method>
|
---|
2465 |
|
---|
2466 | <method name="createSharedFolder">
|
---|
2467 | <desc>
|
---|
2468 | Creates a new global shared folder by associating the given logical
|
---|
2469 | name with the given host path, adds it to the collection of shared
|
---|
2470 | folders and starts sharing it. Refer to the description of
|
---|
2471 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
2472 | <note>
|
---|
2473 | In the current implementation, this operation is not
|
---|
2474 | implemented.
|
---|
2475 | </note>
|
---|
2476 | </desc>
|
---|
2477 | <param name="name" type="wstring" dir="in">
|
---|
2478 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2479 | </param>
|
---|
2480 | <param name="hostPath" type="wstring" dir="in">
|
---|
2481 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2482 | </param>
|
---|
2483 | <param name="writable" type="boolean" dir="in">
|
---|
2484 | <desc>Whether the share is writable or readonly</desc>
|
---|
2485 | </param>
|
---|
2486 | </method>
|
---|
2487 |
|
---|
2488 | <method name="removeSharedFolder">
|
---|
2489 | <desc>
|
---|
2490 | Removes the global shared folder with the given name previously
|
---|
2491 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
2492 | shared folders and stops sharing it.
|
---|
2493 | <note>
|
---|
2494 | In the current implementation, this operation is not
|
---|
2495 | implemented.
|
---|
2496 | </note>
|
---|
2497 | </desc>
|
---|
2498 | <param name="name" type="wstring" dir="in">
|
---|
2499 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2500 | </param>
|
---|
2501 | </method>
|
---|
2502 |
|
---|
2503 | <method name="getExtraDataKeys">
|
---|
2504 | <desc>
|
---|
2505 | Returns an array representing the global extra data keys which currently
|
---|
2506 | have values defined.
|
---|
2507 | </desc>
|
---|
2508 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
2509 | <desc>Array of extra data keys.</desc>
|
---|
2510 | </param>
|
---|
2511 | </method>
|
---|
2512 |
|
---|
2513 | <method name="getExtraData">
|
---|
2514 | <desc>
|
---|
2515 | Returns associated global extra data.
|
---|
2516 |
|
---|
2517 | If the requested data @a key does not exist, this function will
|
---|
2518 | succeed and return an empty string in the @a value argument.
|
---|
2519 |
|
---|
2520 | <result name="VBOX_E_FILE_ERROR">
|
---|
2521 | Settings file not accessible.
|
---|
2522 | </result>
|
---|
2523 | <result name="VBOX_E_XML_ERROR">
|
---|
2524 | Could not parse the settings file.
|
---|
2525 | </result>
|
---|
2526 |
|
---|
2527 | </desc>
|
---|
2528 | <param name="key" type="wstring" dir="in">
|
---|
2529 | <desc>Name of the data key to get.</desc>
|
---|
2530 | </param>
|
---|
2531 | <param name="value" type="wstring" dir="return">
|
---|
2532 | <desc>Value of the requested data key.</desc>
|
---|
2533 | </param>
|
---|
2534 | </method>
|
---|
2535 |
|
---|
2536 | <method name="setExtraData">
|
---|
2537 | <desc>
|
---|
2538 | Sets associated global extra data.
|
---|
2539 |
|
---|
2540 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
2541 | will be deleted.
|
---|
2542 |
|
---|
2543 | <note>
|
---|
2544 | Before performing the actual data change, this method will ask all
|
---|
2545 | registered callbacks using the
|
---|
2546 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
2547 | notification for a permission. If one of the callbacks refuses the
|
---|
2548 | new value, the change will not be performed.
|
---|
2549 | </note>
|
---|
2550 | <note>
|
---|
2551 | On success, the
|
---|
2552 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
2553 | is called to inform all registered callbacks about a successful data
|
---|
2554 | change.
|
---|
2555 | </note>
|
---|
2556 |
|
---|
2557 | <result name="VBOX_E_FILE_ERROR">
|
---|
2558 | Settings file not accessible.
|
---|
2559 | </result>
|
---|
2560 | <result name="VBOX_E_XML_ERROR">
|
---|
2561 | Could not parse the settings file.
|
---|
2562 | </result>
|
---|
2563 | <result name="E_ACCESSDENIED">
|
---|
2564 | Modification request refused.
|
---|
2565 | </result>
|
---|
2566 |
|
---|
2567 | </desc>
|
---|
2568 | <param name="key" type="wstring" dir="in">
|
---|
2569 | <desc>Name of the data key to set.</desc>
|
---|
2570 | </param>
|
---|
2571 | <param name="value" type="wstring" dir="in">
|
---|
2572 | <desc>Value to assign to the key.</desc>
|
---|
2573 | </param>
|
---|
2574 | </method>
|
---|
2575 |
|
---|
2576 | <method name="openSession">
|
---|
2577 | <desc>
|
---|
2578 | Opens a new direct session with the given virtual machine.
|
---|
2579 |
|
---|
2580 | A direct session acts as a local lock on the given VM.
|
---|
2581 | There can be only one direct session open at a time for every
|
---|
2582 | virtual machine, protecting the VM from being manipulated by
|
---|
2583 | conflicting actions from different processes. Only after a
|
---|
2584 | direct session has been opened, one can change all VM settings
|
---|
2585 | and execute the VM in the process space of the session object.
|
---|
2586 |
|
---|
2587 | Sessions therefore can be compared to mutex semaphores that
|
---|
2588 | lock a given VM for modification and execution.
|
---|
2589 | See <link to="ISession">ISession</link> for details.
|
---|
2590 |
|
---|
2591 | <note>Unless you are writing a new VM frontend, you will not
|
---|
2592 | want to execute a VM in the current process. To spawn a new
|
---|
2593 | process that executes a VM, use
|
---|
2594 | <link to="IVirtualBox::openRemoteSession" />
|
---|
2595 | instead.</note>
|
---|
2596 |
|
---|
2597 | Upon successful return, the session object can be used to
|
---|
2598 | get access to the machine and to the VM console.
|
---|
2599 |
|
---|
2600 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2601 | a session has been opened. Note that the "mutable" machine
|
---|
2602 | object, on which you may invoke IMachine methods to change its
|
---|
2603 | settings, will be a different object from the immutable IMachine
|
---|
2604 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2605 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2606 | use the <link to="ISession::machine" /> attribute.
|
---|
2607 |
|
---|
2608 | One must always call <link to="ISession::close" /> to release the
|
---|
2609 | lock on the machine, or the machine's state will eventually be
|
---|
2610 | set to "Aborted".
|
---|
2611 |
|
---|
2612 | In other words, to change settings on a machine, the following
|
---|
2613 | sequence is typically performed:
|
---|
2614 |
|
---|
2615 | <ol>
|
---|
2616 | <li>Call this method (openSession) to have a machine locked for
|
---|
2617 | the current session.</li>
|
---|
2618 |
|
---|
2619 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2620 |
|
---|
2621 | <li>Change the settings of the machine.</li>
|
---|
2622 |
|
---|
2623 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2624 |
|
---|
2625 | <li>Close the session by calling <link to="ISession::close"/>.</li>
|
---|
2626 | </ol>
|
---|
2627 |
|
---|
2628 | <result name="E_UNEXPECTED">
|
---|
2629 | Virtual machine not registered.
|
---|
2630 | </result>
|
---|
2631 | <result name="E_ACCESSDENIED">
|
---|
2632 | Process not started by OpenRemoteSession.
|
---|
2633 | </result>
|
---|
2634 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2635 | No matching virtual machine found.
|
---|
2636 | </result>
|
---|
2637 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2638 | Session already open or being opened.
|
---|
2639 | </result>
|
---|
2640 | <result name="VBOX_E_VM_ERROR">
|
---|
2641 | Failed to assign machine to session.
|
---|
2642 | </result>
|
---|
2643 |
|
---|
2644 | </desc>
|
---|
2645 | <param name="session" type="ISession" dir="in">
|
---|
2646 | <desc>
|
---|
2647 | Session object that will represent the opened session after
|
---|
2648 | successful method invocation. This object must not represent
|
---|
2649 | the already open session.
|
---|
2650 | <note>
|
---|
2651 | This session will be automatically closed if the
|
---|
2652 | VirtualBox server is terminated for some reason.
|
---|
2653 | </note>
|
---|
2654 | </desc>
|
---|
2655 | </param>
|
---|
2656 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2657 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2658 | </param>
|
---|
2659 | </method>
|
---|
2660 |
|
---|
2661 | <method name="openRemoteSession">
|
---|
2662 | <desc>
|
---|
2663 | Spawns a new process that executes a virtual machine (called a
|
---|
2664 | "remote session").
|
---|
2665 |
|
---|
2666 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2667 | process that opens a direct session with the given VM. As a result, the
|
---|
2668 | VM is locked by that direct session in the new process, preventing
|
---|
2669 | conflicting changes from other processes. Since sessions act as locks
|
---|
2670 | that prevent conflicting changes, one cannot open a remote session
|
---|
2671 | for a VM that already has another open session (direct or remote), or
|
---|
2672 | is currently in the process of opening one (see <link
|
---|
2673 | to="IMachine::sessionState"/>).
|
---|
2674 |
|
---|
2675 | While the remote session still provides some level of control over the
|
---|
2676 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2677 | not all VM settings are available for modification within the remote
|
---|
2678 | session context.
|
---|
2679 |
|
---|
2680 | This operation can take some time (a new VM is started in a new process,
|
---|
2681 | for which memory and other resources need to be set up). Because of this,
|
---|
2682 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2683 | asynchronous operation to be completed. Until then, the remote session
|
---|
2684 | object remains in the closed state, and accessing the machine or its
|
---|
2685 | console through it is invalid. It is recommended to use
|
---|
2686 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2687 | completion. Completion is signalled when the VM is powered on. Error
|
---|
2688 | messages etc. can be queried via the progress object, if available.
|
---|
2689 |
|
---|
2690 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2691 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2692 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2693 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2694 | until the VM is no longer running). In that case, however, the state of
|
---|
2695 | the session will automatically change back to "Closed".
|
---|
2696 |
|
---|
2697 | Currently supported session types (values of the @a type
|
---|
2698 | argument) are:
|
---|
2699 | <ul>
|
---|
2700 | <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
|
---|
2701 | <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
|
---|
2702 | <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
|
---|
2703 | </ul>
|
---|
2704 |
|
---|
2705 | The @a environment argument is a string containing definitions of
|
---|
2706 | environment variables in the following format:
|
---|
2707 | @code
|
---|
2708 | NAME[=VALUE]\n
|
---|
2709 | NAME[=VALUE]\n
|
---|
2710 | ...
|
---|
2711 | @endcode
|
---|
2712 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2713 | variables will be appended to the environment of the VirtualBox server
|
---|
2714 | process. If an environment variable exists both in the server process
|
---|
2715 | and in this list, the value from this list takes precedence over the
|
---|
2716 | server's variable. If the value of the environment variable is
|
---|
2717 | omitted, this variable will be removed from the resulting environment.
|
---|
2718 | If the environment string is @c null or empty, the server environment
|
---|
2719 | is inherited by the started process as is.
|
---|
2720 |
|
---|
2721 | <see>openExistingSession</see>
|
---|
2722 |
|
---|
2723 | <result name="E_UNEXPECTED">
|
---|
2724 | Virtual machine not registered.
|
---|
2725 | </result>
|
---|
2726 | <result name="E_INVALIDARG">
|
---|
2727 | Invalid session type @a type.
|
---|
2728 | </result>
|
---|
2729 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2730 | No machine matching @a machineId found.
|
---|
2731 | </result>
|
---|
2732 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2733 | Session already open or being opened.
|
---|
2734 | </result>
|
---|
2735 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2736 | Launching process for machine failed.
|
---|
2737 | </result>
|
---|
2738 | <result name="VBOX_E_VM_ERROR">
|
---|
2739 | Failed to assign machine to session.
|
---|
2740 | </result>
|
---|
2741 |
|
---|
2742 | </desc>
|
---|
2743 | <param name="session" type="ISession" dir="in">
|
---|
2744 | <desc>
|
---|
2745 | Session object that will represent the opened remote session
|
---|
2746 | after successful method invocation (this object must not
|
---|
2747 | represent an already open session).
|
---|
2748 | </desc>
|
---|
2749 | </param>
|
---|
2750 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2751 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2752 | </param>
|
---|
2753 | <param name="type" type="wstring" dir="in">
|
---|
2754 | <desc>
|
---|
2755 | Type of the remote session (case sensitive).
|
---|
2756 | </desc>
|
---|
2757 | </param>
|
---|
2758 | <param name="environment" type="wstring" dir="in">
|
---|
2759 | <desc>
|
---|
2760 | Environment to pass to the opened session.
|
---|
2761 | </desc>
|
---|
2762 | </param>
|
---|
2763 | <param name="progress" type="IProgress" dir="return">
|
---|
2764 | <desc>Progress object to track the operation completion.</desc>
|
---|
2765 | </param>
|
---|
2766 | </method>
|
---|
2767 |
|
---|
2768 | <method name="openExistingSession">
|
---|
2769 | <desc>
|
---|
2770 | Opens a new remote session with the virtual machine for
|
---|
2771 | which a direct session is already open.
|
---|
2772 |
|
---|
2773 | The remote session provides some level of control over the VM
|
---|
2774 | execution (using the IConsole interface) to the caller; however,
|
---|
2775 | within the remote session context, not all VM settings are available
|
---|
2776 | for modification.
|
---|
2777 |
|
---|
2778 | As opposed to <link to="#openRemoteSession"/>, the number of
|
---|
2779 | remote sessions opened this way is not limited by the API
|
---|
2780 |
|
---|
2781 | <note>
|
---|
2782 | It is an error to open a remote session with the machine that
|
---|
2783 | doesn't have an open direct session.
|
---|
2784 | </note>
|
---|
2785 |
|
---|
2786 | <result name="E_UNEXPECTED">
|
---|
2787 | Virtual machine not registered.
|
---|
2788 | </result>
|
---|
2789 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2790 | No machine matching @a machineId found.
|
---|
2791 | </result>
|
---|
2792 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2793 | Session already open or being opened.
|
---|
2794 | </result>
|
---|
2795 | <result name="VBOX_E_INVALID_SESSION_STATE">
|
---|
2796 | Direct session state not Open.
|
---|
2797 | </result>
|
---|
2798 | <result name="VBOX_E_VM_ERROR">
|
---|
2799 | Failed to get console object from direct session or assign
|
---|
2800 | machine to session.
|
---|
2801 | </result>
|
---|
2802 |
|
---|
2803 | <see>openRemoteSession</see>
|
---|
2804 | </desc>
|
---|
2805 | <param name="session" type="ISession" dir="in">
|
---|
2806 | <desc>
|
---|
2807 | Session object that will represent the open remote session
|
---|
2808 | after successful method invocation. This object must not
|
---|
2809 | represent an already open session.
|
---|
2810 | <note>
|
---|
2811 | This session will be automatically closed when the peer
|
---|
2812 | (direct) session dies or gets closed.
|
---|
2813 | </note>
|
---|
2814 | </desc>
|
---|
2815 | </param>
|
---|
2816 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2817 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2818 | </param>
|
---|
2819 | </method>
|
---|
2820 |
|
---|
2821 | <method name="registerCallback">
|
---|
2822 | <desc>
|
---|
2823 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2824 | callback object will be called by VirtualBox when an appropriate
|
---|
2825 | event occurs.
|
---|
2826 |
|
---|
2827 | <result name="E_INVALIDARG">
|
---|
2828 | A @c null callback cannot be registered.
|
---|
2829 | </result>
|
---|
2830 |
|
---|
2831 | </desc>
|
---|
2832 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2833 | <desc>Callback object to register.</desc>
|
---|
2834 | </param>
|
---|
2835 | </method>
|
---|
2836 |
|
---|
2837 | <method name="unregisterCallback">
|
---|
2838 | <desc>
|
---|
2839 | Unregisters the previously registered global VirtualBox callback.
|
---|
2840 |
|
---|
2841 | <result name="E_INVALIDARG">
|
---|
2842 | Specified @a callback not registered.
|
---|
2843 | </result>
|
---|
2844 |
|
---|
2845 | </desc>
|
---|
2846 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2847 | <desc>Callback object to unregister.</desc>
|
---|
2848 | </param>
|
---|
2849 | </method>
|
---|
2850 |
|
---|
2851 | <method name="waitForPropertyChange">
|
---|
2852 | <desc>
|
---|
2853 | Blocks the caller until any of the properties represented by the
|
---|
2854 | @a what argument changes the value or until the given timeout interval
|
---|
2855 | expires.
|
---|
2856 |
|
---|
2857 | The @a what argument is a comma separated list of property masks that
|
---|
2858 | describe properties the caller is interested in. The property mask is
|
---|
2859 | a string in the following format:
|
---|
2860 |
|
---|
2861 | <pre>
|
---|
2862 | [[group.]subgroup.]name
|
---|
2863 | </pre>
|
---|
2864 |
|
---|
2865 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2866 | or more property group specifiers. Each element (group or name) in
|
---|
2867 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2868 | (@c "*") which is used to match any string for the given element. A
|
---|
2869 | property mask that doesn't contain asterisk symbols represents a
|
---|
2870 | single fully qualified property name.
|
---|
2871 |
|
---|
2872 | Groups in the fully qualified property name go from more generic (the
|
---|
2873 | left-most part) to more specific (the right-most part). The first
|
---|
2874 | element is usually a name of the object the property belongs to. The
|
---|
2875 | second element may be either a property name, or a child object name,
|
---|
2876 | or an index if the preceding element names an object which is one of
|
---|
2877 | many objects of the same type. This way, property names form a
|
---|
2878 | hierarchy of properties. Here are some examples of property names:
|
---|
2879 |
|
---|
2880 | <table>
|
---|
2881 | <tr>
|
---|
2882 | <td><tt>VirtualBox.version</tt></td>
|
---|
2883 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2884 | </tr>
|
---|
2885 | <tr>
|
---|
2886 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2887 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2888 | given UUID</td>
|
---|
2889 | </tr>
|
---|
2890 | </table>
|
---|
2891 |
|
---|
2892 | Most property names directly correspond to the properties of objects
|
---|
2893 | (components) provided by the VirtualBox library and may be used to
|
---|
2894 | track changes to these properties. However, there may be
|
---|
2895 | pseudo-property names that don't correspond to any existing object's
|
---|
2896 | property directly, as well as there may be object properties that
|
---|
2897 | don't have a corresponding property name that is understood by this
|
---|
2898 | method, and therefore changes to such properties cannot be
|
---|
2899 | tracked. See individual object's property descriptions to get a
|
---|
2900 | fully qualified property name that can be used with this method (if
|
---|
2901 | any).
|
---|
2902 |
|
---|
2903 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2904 | single asterisk symbol) that can be used to match all properties.
|
---|
2905 | Below are more examples of property masks:
|
---|
2906 |
|
---|
2907 | <table>
|
---|
2908 | <tr>
|
---|
2909 | <td><tt>VirtualBox.*</tt></td>
|
---|
2910 | <td>Track all properties of the VirtualBox object</td>
|
---|
2911 | </tr>
|
---|
2912 | <tr>
|
---|
2913 | <td><tt>Machine.*.name</tt></td>
|
---|
2914 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2915 | all registered virtual machines</td>
|
---|
2916 | </tr>
|
---|
2917 | </table>
|
---|
2918 |
|
---|
2919 | <note>
|
---|
2920 | This function is not implemented in the current version of the
|
---|
2921 | product.
|
---|
2922 | </note>
|
---|
2923 | </desc>
|
---|
2924 | <param name="what" type="wstring" dir="in">
|
---|
2925 | <desc>Comma separated list of property masks.</desc>
|
---|
2926 | </param>
|
---|
2927 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2928 | <desc>
|
---|
2929 | Wait timeout in milliseconds.
|
---|
2930 | Specify -1 for an indefinite wait.
|
---|
2931 | </desc>
|
---|
2932 | </param>
|
---|
2933 | <param name="changed" type="wstring" dir="out">
|
---|
2934 | <desc>
|
---|
2935 | Comma separated list of properties that have been changed and caused
|
---|
2936 | this method to return to the caller.
|
---|
2937 | </desc>
|
---|
2938 | </param>
|
---|
2939 | <param name="values" type="wstring" dir="out">
|
---|
2940 | <desc>Reserved, not currently used.</desc>
|
---|
2941 | </param>
|
---|
2942 | </method>
|
---|
2943 |
|
---|
2944 | <!--method name="createDHCPServerForInterface">
|
---|
2945 | <desc>
|
---|
2946 | Creates a dhcp server settings to be used for the given interface
|
---|
2947 | <result name="E_INVALIDARG">
|
---|
2948 | Host network interface @a name already exists.
|
---|
2949 | </result>
|
---|
2950 | </desc>
|
---|
2951 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2952 | <desc>Network Interface</desc>
|
---|
2953 | </param>
|
---|
2954 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2955 | <desc>Dhcp server settings</desc>
|
---|
2956 | </param>
|
---|
2957 | </method-->
|
---|
2958 |
|
---|
2959 | <method name="createDHCPServer">
|
---|
2960 | <desc>
|
---|
2961 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2962 | <result name="E_INVALIDARG">
|
---|
2963 | Host network interface @a name already exists.
|
---|
2964 | </result>
|
---|
2965 | </desc>
|
---|
2966 | <param name="name" type="wstring" dir="in">
|
---|
2967 | <desc>server name</desc>
|
---|
2968 | </param>
|
---|
2969 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2970 | <desc>Dhcp server settings</desc>
|
---|
2971 | </param>
|
---|
2972 | </method>
|
---|
2973 |
|
---|
2974 | <method name="findDHCPServerByNetworkName">
|
---|
2975 | <desc>
|
---|
2976 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2977 | <result name="E_INVALIDARG">
|
---|
2978 | Host network interface @a name already exists.
|
---|
2979 | </result>
|
---|
2980 |
|
---|
2981 | </desc>
|
---|
2982 | <param name="name" type="wstring" dir="in">
|
---|
2983 | <desc>server name</desc>
|
---|
2984 | </param>
|
---|
2985 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2986 | <desc>Dhcp server settings</desc>
|
---|
2987 | </param>
|
---|
2988 | </method>
|
---|
2989 |
|
---|
2990 | <!--method name="findDHCPServerForInterface">
|
---|
2991 | <desc>
|
---|
2992 | Searches a dhcp server settings to be used for the given interface
|
---|
2993 | <result name="E_INVALIDARG">
|
---|
2994 | Host network interface @a name already exists.
|
---|
2995 | </result>
|
---|
2996 | </desc>
|
---|
2997 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2998 | <desc>Network Interface</desc>
|
---|
2999 | </param>
|
---|
3000 | <param name="server" type="IDHCPServer" dir="out">
|
---|
3001 | <desc>Dhcp server settings</desc>
|
---|
3002 | </param>
|
---|
3003 | </method-->
|
---|
3004 |
|
---|
3005 | <method name="removeDHCPServer">
|
---|
3006 | <desc>
|
---|
3007 | Removes the dhcp server settings
|
---|
3008 | <result name="E_INVALIDARG">
|
---|
3009 | Host network interface @a name already exists.
|
---|
3010 | </result>
|
---|
3011 | </desc>
|
---|
3012 | <param name="server" type="IDHCPServer" dir="in">
|
---|
3013 | <desc>Dhcp server settings to be removed</desc>
|
---|
3014 | </param>
|
---|
3015 | </method>
|
---|
3016 |
|
---|
3017 |
|
---|
3018 | <method name="checkFirmwarePresent">
|
---|
3019 | <desc>
|
---|
3020 | Check if this VirtualBox installation has a firmware
|
---|
3021 | of the given type available, either system-wide or per-user.
|
---|
3022 | Optionally, this may return a hint where this firmware can be
|
---|
3023 | downloaded from.
|
---|
3024 | </desc>
|
---|
3025 | <param name="firmwareType" type="FirmwareType" dir="in">
|
---|
3026 | <desc>
|
---|
3027 | Type of firmware to check.
|
---|
3028 | </desc>
|
---|
3029 | </param>
|
---|
3030 | <param name="version" type="wstring" dir="in">
|
---|
3031 | <desc>Expected version number, usually empty string (presently ignored).</desc>
|
---|
3032 | </param>
|
---|
3033 |
|
---|
3034 | <param name="url" type="wstring" dir="out">
|
---|
3035 | <desc>
|
---|
3036 | Suggested URL to download this firmware from.
|
---|
3037 | </desc>
|
---|
3038 | </param>
|
---|
3039 |
|
---|
3040 | <param name="file" type="wstring" dir="out">
|
---|
3041 | <desc>
|
---|
3042 | Filename of firmware, only valid if result == TRUE.
|
---|
3043 | </desc>
|
---|
3044 | </param>
|
---|
3045 |
|
---|
3046 | <param name="result" type="boolean" dir="return">
|
---|
3047 | <desc>If firmware of this type and version is available.</desc>
|
---|
3048 | </param>
|
---|
3049 | </method>
|
---|
3050 |
|
---|
3051 | </interface>
|
---|
3052 |
|
---|
3053 | <!--
|
---|
3054 | // IVFSExplorer
|
---|
3055 | /////////////////////////////////////////////////////////////////////////
|
---|
3056 | -->
|
---|
3057 |
|
---|
3058 | <enum
|
---|
3059 | name="VFSType"
|
---|
3060 | uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
|
---|
3061 | >
|
---|
3062 | <desc>
|
---|
3063 | Virtual file systems supported by VFSExplorer.
|
---|
3064 | </desc>
|
---|
3065 |
|
---|
3066 | <const name="File" value="1" />
|
---|
3067 | <const name="Cloud" value="2" />
|
---|
3068 | <const name="S3" value="3" />
|
---|
3069 | <const name="WebDav" value="4" />
|
---|
3070 | </enum>
|
---|
3071 |
|
---|
3072 | <enum
|
---|
3073 | name="VFSFileType"
|
---|
3074 | uuid="714333cd-44e2-415f-a245-d378fa9b1242"
|
---|
3075 | >
|
---|
3076 | <desc>
|
---|
3077 | File types known by VFSExplorer.
|
---|
3078 | </desc>
|
---|
3079 |
|
---|
3080 | <const name="Unknown" value="1" />
|
---|
3081 | <const name="Fifo" value="2" />
|
---|
3082 | <const name="DevChar" value="3" />
|
---|
3083 | <const name="Directory" value="4" />
|
---|
3084 | <const name="DevBlock" value="5" />
|
---|
3085 | <const name="File" value="6" />
|
---|
3086 | <const name="SymLink" value="7" />
|
---|
3087 | <const name="Socket" value="8" />
|
---|
3088 | <const name="WhiteOut" value="9" />
|
---|
3089 | </enum>
|
---|
3090 |
|
---|
3091 | <interface
|
---|
3092 | name="IVFSExplorer" extends="$unknown"
|
---|
3093 | uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
|
---|
3094 | wsmap="managed"
|
---|
3095 | >
|
---|
3096 | <desc>
|
---|
3097 | The VFSExplorer interface unifies access to different file system
|
---|
3098 | types. This includes local file systems as well remote file systems like
|
---|
3099 | S3. For a list of supported types see <link to="VFSType" />.
|
---|
3100 | An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
|
---|
3101 | </desc>
|
---|
3102 |
|
---|
3103 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3104 | <desc>Returns the current path in the virtual file system.</desc>
|
---|
3105 | </attribute>
|
---|
3106 |
|
---|
3107 | <attribute name="type" type="VFSType" readonly="yes">
|
---|
3108 | <desc>Returns the file system type which is currently in use.</desc>
|
---|
3109 | </attribute>
|
---|
3110 |
|
---|
3111 | <method name="update">
|
---|
3112 | <desc>Updates the internal list of files/directories from the
|
---|
3113 | current directory level. Use <link to="#entryList" /> to get the full list
|
---|
3114 | after a call to this method.</desc>
|
---|
3115 |
|
---|
3116 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3117 | <desc>Progress object to track the operation completion.</desc>
|
---|
3118 | </param>
|
---|
3119 | </method>
|
---|
3120 |
|
---|
3121 | <method name="cd">
|
---|
3122 | <desc>Change the current directory level.</desc>
|
---|
3123 |
|
---|
3124 | <param name="aDir" type="wstring" dir="in">
|
---|
3125 | <desc>The name of the directory to go in.</desc>
|
---|
3126 | </param>
|
---|
3127 |
|
---|
3128 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3129 | <desc>Progress object to track the operation completion.</desc>
|
---|
3130 | </param>
|
---|
3131 | </method>
|
---|
3132 |
|
---|
3133 | <method name="cdUp">
|
---|
3134 | <desc>Go one directory upwards from the current directory level.</desc>
|
---|
3135 |
|
---|
3136 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3137 | <desc>Progress object to track the operation completion.</desc>
|
---|
3138 | </param>
|
---|
3139 | </method>
|
---|
3140 |
|
---|
3141 | <method name="entryList">
|
---|
3142 | <desc>Returns a list of files/directories after a call to <link
|
---|
3143 | to="#update" />. The user is responsible for keeping this internal
|
---|
3144 | list up do date.</desc>
|
---|
3145 |
|
---|
3146 | <param name="aNames" type="wstring" safearray="yes" dir="out">
|
---|
3147 | <desc>The list of names for the entries.</desc>
|
---|
3148 | </param>
|
---|
3149 |
|
---|
3150 | <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
|
---|
3151 | <desc>The list of types for the entries.</desc>
|
---|
3152 | </param>
|
---|
3153 | </method>
|
---|
3154 |
|
---|
3155 | <method name="exists">
|
---|
3156 | <desc>Checks if the given file list exists in the current directory
|
---|
3157 | level.</desc>
|
---|
3158 |
|
---|
3159 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3160 | <desc>The names to check.</desc>
|
---|
3161 | </param>
|
---|
3162 |
|
---|
3163 | <param name="aExists" type="wstring" safearray="yes" dir="return">
|
---|
3164 | <desc>The names which exist.</desc>
|
---|
3165 | </param>
|
---|
3166 | </method>
|
---|
3167 |
|
---|
3168 | <method name="remove">
|
---|
3169 | <desc>Deletes the given files in the current directory level.</desc>
|
---|
3170 |
|
---|
3171 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3172 | <desc>The names to remove.</desc>
|
---|
3173 | </param>
|
---|
3174 |
|
---|
3175 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3176 | <desc>Progress object to track the operation completion.</desc>
|
---|
3177 | </param>
|
---|
3178 | </method>
|
---|
3179 |
|
---|
3180 | </interface>
|
---|
3181 |
|
---|
3182 | <!--
|
---|
3183 | // IAppliance
|
---|
3184 | /////////////////////////////////////////////////////////////////////////
|
---|
3185 | -->
|
---|
3186 |
|
---|
3187 | <interface
|
---|
3188 | name="IAppliance" extends="$unknown"
|
---|
3189 | uuid="e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
|
---|
3190 | wsmap="managed"
|
---|
3191 | >
|
---|
3192 | <desc>
|
---|
3193 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
3194 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
3195 | virtual machines within an appliance with VirtualBox.
|
---|
3196 |
|
---|
3197 | The OVF standard suggests two different physical file formats:
|
---|
3198 |
|
---|
3199 | <ol>
|
---|
3200 | <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
|
---|
3201 | file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
|
---|
3202 | this descriptor file references other files such as disk images, as OVF appliances typically
|
---|
3203 | do, those additional files must be in the same directory as the descriptor file.</li>
|
---|
3204 |
|
---|
3205 | <li>If the appliance is distributed as a single file, it must be in TAR format and have the
|
---|
3206 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
3207 | files and optionally other files.
|
---|
3208 |
|
---|
3209 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
3210 | be added with a later version.</li>
|
---|
3211 | </ol>
|
---|
3212 |
|
---|
3213 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
3214 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
3215 |
|
---|
3216 | <ol>
|
---|
3217 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
3218 | </li>
|
---|
3219 |
|
---|
3220 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
3221 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
3222 | and fill the appliance object with the parsed data from the OVF file.
|
---|
3223 | </li>
|
---|
3224 |
|
---|
3225 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
3226 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
3227 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
3228 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
3229 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
3230 | systems in the OVF, which in turn describe the virtual hardware prescribed by the
|
---|
3231 | OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
3232 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
3233 | </li>
|
---|
3234 |
|
---|
3235 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3236 | virtual system to override the suggestions made by the interpret() routine.
|
---|
3237 | </li>
|
---|
3238 |
|
---|
3239 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
3240 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
3241 | virtual system descriptions.
|
---|
3242 | </li>
|
---|
3243 | </ol>
|
---|
3244 |
|
---|
3245 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
3246 |
|
---|
3247 | <ol>
|
---|
3248 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
3249 | an empty IAppliance object.
|
---|
3250 | </li>
|
---|
3251 |
|
---|
3252 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
3253 | with the IAppliance object you just created. This creates an instance of
|
---|
3254 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
3255 | </li>
|
---|
3256 |
|
---|
3257 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3258 | virtual system to override the suggestions made by the export() routine.
|
---|
3259 | </li>
|
---|
3260 |
|
---|
3261 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
3262 | file written.</li>
|
---|
3263 | </ol>
|
---|
3264 |
|
---|
3265 | </desc>
|
---|
3266 |
|
---|
3267 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3268 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
3269 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
3270 | <link to="#write" /> (for export).
|
---|
3271 | This attribute is empty until one of these methods has been called.
|
---|
3272 | </desc>
|
---|
3273 | </attribute>
|
---|
3274 |
|
---|
3275 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
3276 | <desc>
|
---|
3277 | Array of virtual disk definitions. One such description exists for each
|
---|
3278 | disk definition in the OVF; each string array item represents one such piece of
|
---|
3279 | disk information, with the information fields separated by tab (\t) characters.
|
---|
3280 |
|
---|
3281 | The caller should be prepared for additional fields being appended to
|
---|
3282 | this string in future versions of VirtualBox and therefore check for
|
---|
3283 | the number of tabs in the strings returned.
|
---|
3284 |
|
---|
3285 | In the current version, the following eight fields are returned per string
|
---|
3286 | in the array:
|
---|
3287 |
|
---|
3288 | <ol>
|
---|
3289 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
3290 |
|
---|
3291 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
3292 |
|
---|
3293 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
3294 | disk; can be approximate; -1 if unspecified)</li>
|
---|
3295 |
|
---|
3296 | <li>Format (string identifying the disk format, typically
|
---|
3297 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
3298 |
|
---|
3299 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
3300 | then the disk should be created on import)</li>
|
---|
3301 |
|
---|
3302 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
3303 | which need not necessarily be the same as the values specified above, since
|
---|
3304 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
3305 |
|
---|
3306 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
3307 | presently unsupported and always -1)</li>
|
---|
3308 |
|
---|
3309 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
3310 | </ol>
|
---|
3311 | </desc>
|
---|
3312 | </attribute>
|
---|
3313 |
|
---|
3314 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
3315 | <desc> Array of virtual system descriptions. One such description is created
|
---|
3316 | for each virtual system found in the OVF.
|
---|
3317 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
3318 | (for export) has been called.
|
---|
3319 | </desc>
|
---|
3320 | </attribute>
|
---|
3321 |
|
---|
3322 | <method name="read">
|
---|
3323 | <desc>
|
---|
3324 | Reads an OVF file into the appliance object.
|
---|
3325 |
|
---|
3326 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
3327 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
3328 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
3329 | </desc>
|
---|
3330 | <param name="file" type="wstring" dir="in">
|
---|
3331 | <desc>
|
---|
3332 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3333 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3334 | </desc>
|
---|
3335 | </param>
|
---|
3336 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3337 | <desc></desc>
|
---|
3338 | </param>
|
---|
3339 | </method>
|
---|
3340 |
|
---|
3341 | <method name="interpret">
|
---|
3342 | <desc>
|
---|
3343 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
3344 | calling this method, one can inspect the
|
---|
3345 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
3346 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
3347 | the appliance.
|
---|
3348 |
|
---|
3349 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
3350 | see <link to="IAppliance" /> for an overview.
|
---|
3351 |
|
---|
3352 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
3353 | if problems were encountered during the processing which might later lead to
|
---|
3354 | errors.
|
---|
3355 | </desc>
|
---|
3356 | </method>
|
---|
3357 |
|
---|
3358 | <method name="importMachines">
|
---|
3359 | <desc>
|
---|
3360 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
3361 | and other interfaces that match the information contained in the appliance as
|
---|
3362 | closely as possible, as represented by the import instructions in the
|
---|
3363 | <link to="#virtualSystemDescriptions" /> array.
|
---|
3364 |
|
---|
3365 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
3366 | see <link to="IAppliance" /> for an overview.
|
---|
3367 |
|
---|
3368 | Since importing the appliance will most probably involve copying and converting
|
---|
3369 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3370 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3371 | </desc>
|
---|
3372 |
|
---|
3373 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3374 | <desc></desc>
|
---|
3375 | </param>
|
---|
3376 | </method>
|
---|
3377 |
|
---|
3378 | <method name="createVFSExplorer">
|
---|
3379 | <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
|
---|
3380 |
|
---|
3381 | <param name="aUri" type="wstring" dir="in">
|
---|
3382 | <desc>The URI describing the file system to use.</desc>
|
---|
3383 | </param>
|
---|
3384 |
|
---|
3385 | <param name="aExplorer" type="IVFSExplorer" dir="return">
|
---|
3386 | <desc></desc>
|
---|
3387 | </param>
|
---|
3388 | </method>
|
---|
3389 |
|
---|
3390 | <method name="write">
|
---|
3391 | <desc>
|
---|
3392 | Writes the contents of the appliance exports into a new OVF file.
|
---|
3393 |
|
---|
3394 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
3395 | see <link to="IAppliance" /> for an overview.
|
---|
3396 |
|
---|
3397 | Since exporting the appliance will most probably involve copying and converting
|
---|
3398 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3399 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3400 | </desc>
|
---|
3401 | <param name="format" type="wstring" dir="in">
|
---|
3402 | <desc>
|
---|
3403 | Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
|
---|
3404 | future versions of VirtualBox may support additional formats.
|
---|
3405 | </desc>
|
---|
3406 | </param>
|
---|
3407 | <param name="path" type="wstring" dir="in">
|
---|
3408 | <desc>
|
---|
3409 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3410 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3411 | </desc>
|
---|
3412 | </param>
|
---|
3413 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3414 | <desc>Progress object to track the operation completion.</desc>
|
---|
3415 | </param>
|
---|
3416 | </method>
|
---|
3417 |
|
---|
3418 | <method name="getWarnings">
|
---|
3419 | <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
|
---|
3420 |
|
---|
3421 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
3422 | <desc></desc>
|
---|
3423 | </param>
|
---|
3424 | </method>
|
---|
3425 |
|
---|
3426 | </interface>
|
---|
3427 |
|
---|
3428 | <enum
|
---|
3429 | name="VirtualSystemDescriptionType"
|
---|
3430 | uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
|
---|
3431 | >
|
---|
3432 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
3433 | a configuration value.</desc>
|
---|
3434 |
|
---|
3435 | <const name="Ignore" value="1" />
|
---|
3436 | <const name="OS" value="2" />
|
---|
3437 | <const name="Name" value="3" />
|
---|
3438 | <const name="Product" value="4" />
|
---|
3439 | <const name="Vendor" value="5" />
|
---|
3440 | <const name="Version" value="6" />
|
---|
3441 | <const name="ProductUrl" value="7" />
|
---|
3442 | <const name="VendorUrl" value="8" />
|
---|
3443 | <const name="Description" value="9" />
|
---|
3444 | <const name="License" value="10" />
|
---|
3445 | <const name="Miscellaneous" value="11" />
|
---|
3446 | <const name="CPU" value="12" />
|
---|
3447 | <const name="Memory" value="13" />
|
---|
3448 | <const name="HardDiskControllerIDE" value="14" />
|
---|
3449 | <const name="HardDiskControllerSATA" value="15" />
|
---|
3450 | <const name="HardDiskControllerSCSI" value="16" />
|
---|
3451 | <const name="HardDiskImage" value="17" />
|
---|
3452 | <const name="Floppy" value="18" />
|
---|
3453 | <const name="CDROM" value="19" />
|
---|
3454 | <const name="NetworkAdapter" value="20" />
|
---|
3455 | <const name="USBController" value="21" />
|
---|
3456 | <const name="SoundCard" value="22" />
|
---|
3457 |
|
---|
3458 | </enum>
|
---|
3459 |
|
---|
3460 | <enum
|
---|
3461 | name="VirtualSystemDescriptionValueType"
|
---|
3462 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
3463 | >
|
---|
3464 | <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
|
---|
3465 | type to fetch.</desc>
|
---|
3466 |
|
---|
3467 | <const name="Reference" value="1" />
|
---|
3468 | <const name="Original" value="2" />
|
---|
3469 | <const name="Auto" value="3" />
|
---|
3470 | <const name="ExtraConfig" value="4" />
|
---|
3471 |
|
---|
3472 | </enum>
|
---|
3473 |
|
---|
3474 | <interface
|
---|
3475 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
3476 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
3477 | wsmap="managed"
|
---|
3478 | >
|
---|
3479 |
|
---|
3480 | <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
|
---|
3481 | After <link to="IAppliance::interpret" /> has been called, that array contains
|
---|
3482 | information about how the virtual systems described in the OVF should best be imported into VirtualBox
|
---|
3483 | virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
|
---|
3484 | into VirtualBox.
|
---|
3485 | </desc>
|
---|
3486 |
|
---|
3487 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
3488 | <desc>Return the number of virtual system description entries.</desc>
|
---|
3489 | </attribute>
|
---|
3490 |
|
---|
3491 | <method name="getDescription">
|
---|
3492 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
3493 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
3494 |
|
---|
3495 | The list below identifies the value sets that are possible depending on the
|
---|
3496 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
|
---|
3497 | the array item with the same index in aOvfValues[] will contain the original value as contained
|
---|
3498 | in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
|
---|
3499 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
3500 | the aExtraConfigValues[] array item may also be used.
|
---|
3501 |
|
---|
3502 | <ul>
|
---|
3503 | <li>
|
---|
3504 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
3505 | corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
3506 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
3507 | item in aOvfValues[] will contain a numerical value that described the operating system in the OVF.
|
---|
3508 | </li>
|
---|
3509 | <li>
|
---|
3510 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
3511 | if none is present on import, then an automatic name will be created from the operating system
|
---|
3512 | type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
|
---|
3513 | from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
|
---|
3514 | <link to="IMachine" /> name that does not exist yet.
|
---|
3515 | </li>
|
---|
3516 | <li>
|
---|
3517 | "Description": an arbitrary description.
|
---|
3518 | </li>
|
---|
3519 | <li>
|
---|
3520 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
3521 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
3522 | </li>
|
---|
3523 | <li>
|
---|
3524 | Miscellaneous: reserved for future use.
|
---|
3525 | </li>
|
---|
3526 | <li>
|
---|
3527 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
3528 | </li>
|
---|
3529 | <li>
|
---|
3530 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
3531 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
3532 | type.
|
---|
3533 | </li>
|
---|
3534 | <li>
|
---|
3535 | "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
|
---|
3536 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3537 | The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
3538 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
3539 | </li>
|
---|
3540 | <li>
|
---|
3541 | "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
3542 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3543 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3544 | </li>
|
---|
3545 | <li>
|
---|
3546 | "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
3547 | The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
|
---|
3548 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3549 | </li>
|
---|
3550 | <li>
|
---|
3551 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
3552 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
3553 |
|
---|
3554 | The array item in aOvfValues[] will contain the file specification from the OVF file (without
|
---|
3555 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
3556 | item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
3557 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
3558 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
3559 | On import, the target image will also be registered with VirtualBox.
|
---|
3560 |
|
---|
3561 | The matching item in the aExtraConfigValues[] array must contain a string of the following
|
---|
3562 | format: "controller=<index>;channel=<c>"
|
---|
3563 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
3564 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
3565 | types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
|
---|
3566 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
3567 | this can range from 0-3 (which VirtualBox will interpret as primary master, primary slave, secondary master and
|
---|
3568 | secondary slave. For SATA and SCSI controllers, the channel can range from 0-29.
|
---|
3569 | </li>
|
---|
3570 | <li>
|
---|
3571 | "CDROM": a virtual CD-ROM drive. The matching item in aExtraConfigValue[] contains the same
|
---|
3572 | attachment information as with "HardDiskImage" items.
|
---|
3573 | </li>
|
---|
3574 | <li>
|
---|
3575 | "CDROM": a virtual floppy drive. The matching item in aExtraConfigValue[] contains the same
|
---|
3576 | attachment information as with "HardDiskImage" items.
|
---|
3577 | </li>
|
---|
3578 | <li>
|
---|
3579 | "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
|
---|
3580 | for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
|
---|
3581 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
3582 | </li>
|
---|
3583 | <li>
|
---|
3584 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
3585 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
3586 | </li>
|
---|
3587 | <li>
|
---|
3588 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
3589 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
3590 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
3591 | may be different from the virtual soundcard expected by the appliance.
|
---|
3592 | </li>
|
---|
3593 | </ul>
|
---|
3594 |
|
---|
3595 | </desc>
|
---|
3596 |
|
---|
3597 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3598 | <desc></desc>
|
---|
3599 | </param>
|
---|
3600 |
|
---|
3601 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3602 | <desc></desc>
|
---|
3603 | </param>
|
---|
3604 |
|
---|
3605 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3606 | <desc></desc>
|
---|
3607 | </param>
|
---|
3608 |
|
---|
3609 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3610 | <desc></desc>
|
---|
3611 | </param>
|
---|
3612 |
|
---|
3613 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3614 | <desc></desc>
|
---|
3615 | </param>
|
---|
3616 |
|
---|
3617 | </method>
|
---|
3618 |
|
---|
3619 | <method name="getDescriptionByType">
|
---|
3620 | <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
|
---|
3621 | should be returned.</desc>
|
---|
3622 |
|
---|
3623 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3624 | <desc></desc>
|
---|
3625 | </param>
|
---|
3626 |
|
---|
3627 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3628 | <desc></desc>
|
---|
3629 | </param>
|
---|
3630 |
|
---|
3631 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3632 | <desc></desc>
|
---|
3633 | </param>
|
---|
3634 |
|
---|
3635 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3636 | <desc></desc>
|
---|
3637 | </param>
|
---|
3638 |
|
---|
3639 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3640 | <desc></desc>
|
---|
3641 | </param>
|
---|
3642 |
|
---|
3643 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3644 | <desc></desc>
|
---|
3645 | </param>
|
---|
3646 |
|
---|
3647 | </method>
|
---|
3648 |
|
---|
3649 | <method name="getValuesByType">
|
---|
3650 | <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
|
---|
3651 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
3652 | values.</desc>
|
---|
3653 |
|
---|
3654 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3655 | <desc></desc>
|
---|
3656 | </param>
|
---|
3657 |
|
---|
3658 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
3659 | <desc></desc>
|
---|
3660 | </param>
|
---|
3661 |
|
---|
3662 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
3663 | <desc></desc>
|
---|
3664 | </param>
|
---|
3665 |
|
---|
3666 | </method>
|
---|
3667 |
|
---|
3668 | <method name="setFinalValues">
|
---|
3669 | <desc>
|
---|
3670 | This method allows the appliance's user to change the configuration for the virtual
|
---|
3671 | system descriptions. For each array item returned from <link to="#getDescription" />,
|
---|
3672 | you must pass in one boolean value and one configuration value.
|
---|
3673 |
|
---|
3674 | Each item in the boolean array determines whether the particular configuration item
|
---|
3675 | should be enabled.
|
---|
3676 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
3677 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
3678 | and SoundCard.
|
---|
3679 |
|
---|
3680 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
3681 | as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
|
---|
3682 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
3683 | for valid configuration values for the individual array item types. If the
|
---|
3684 | corresponding item in the aEnabled array is @c false, the configuration value is ignored.
|
---|
3685 | </desc>
|
---|
3686 |
|
---|
3687 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
3688 | <desc></desc>
|
---|
3689 | </param>
|
---|
3690 |
|
---|
3691 | <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
|
---|
3692 | <desc></desc>
|
---|
3693 | </param>
|
---|
3694 |
|
---|
3695 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
3696 | <desc></desc>
|
---|
3697 | </param>
|
---|
3698 | </method>
|
---|
3699 |
|
---|
3700 | <method name="addDescription">
|
---|
3701 | <desc>
|
---|
3702 | This method adds an additional description entry to the stack of already
|
---|
3703 | available descriptions for this virtual system. This is handy for writing
|
---|
3704 | values which aren't directly supported by VirtualBox. One example would
|
---|
3705 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
3706 | </desc>
|
---|
3707 |
|
---|
3708 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3709 | <desc></desc>
|
---|
3710 | </param>
|
---|
3711 |
|
---|
3712 | <param name="aVBoxValue" type="wstring" dir="in">
|
---|
3713 | <desc></desc>
|
---|
3714 | </param>
|
---|
3715 |
|
---|
3716 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
3717 | <desc></desc>
|
---|
3718 | </param>
|
---|
3719 | </method>
|
---|
3720 | </interface>
|
---|
3721 |
|
---|
3722 |
|
---|
3723 | <!--
|
---|
3724 | // IMachine
|
---|
3725 | /////////////////////////////////////////////////////////////////////////
|
---|
3726 | -->
|
---|
3727 |
|
---|
3728 | <interface
|
---|
3729 | name="IInternalMachineControl" extends="$unknown"
|
---|
3730 | uuid="35d8d838-d066-447d-927a-fd93afdbec90"
|
---|
3731 | internal="yes"
|
---|
3732 | wsmap="suppress"
|
---|
3733 | >
|
---|
3734 | <method name="setRemoveSavedState">
|
---|
3735 | <desc>
|
---|
3736 | Updates the flag whether saved state is removed on a machine state
|
---|
3737 | change from Saved to PoweredOff.
|
---|
3738 | </desc>
|
---|
3739 | <param name="aRemove" type="boolean" dir="in"/>
|
---|
3740 | </method>
|
---|
3741 |
|
---|
3742 | <method name="updateState">
|
---|
3743 | <desc>
|
---|
3744 | Updates the VM state.
|
---|
3745 | <note>
|
---|
3746 | This operation will also update the settings file with
|
---|
3747 | the correct information about the saved state file
|
---|
3748 | and delete this file from disk when appropriate.
|
---|
3749 | </note>
|
---|
3750 | </desc>
|
---|
3751 | <param name="state" type="MachineState" dir="in"/>
|
---|
3752 | </method>
|
---|
3753 |
|
---|
3754 | <method name="getIPCId">
|
---|
3755 | <param name="id" type="wstring" dir="return"/>
|
---|
3756 | </method>
|
---|
3757 |
|
---|
3758 | <method name="setPowerUpInfo">
|
---|
3759 | <desc>
|
---|
3760 | Transfers success (@c null) or error information for this session.
|
---|
3761 | This method updates the progress object to signal completion of the
|
---|
3762 | <link to="IVirtualBox::openRemoteSession"/> method if appropriate,
|
---|
3763 | which means that the progress object returned by
|
---|
3764 | <link to="IConsole::powerUp"/>.
|
---|
3765 | </desc>
|
---|
3766 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
3767 | </method>
|
---|
3768 |
|
---|
3769 | <method name="runUSBDeviceFilters">
|
---|
3770 | <desc>
|
---|
3771 | Asks the server to run USB devices filters of the associated
|
---|
3772 | machine against the given USB device and tell if there is
|
---|
3773 | a match.
|
---|
3774 | <note>
|
---|
3775 | Intended to be used only for remote USB devices. Local
|
---|
3776 | ones don't require to call this method (this is done
|
---|
3777 | implicitly by the Host and USBProxyService).
|
---|
3778 | </note>
|
---|
3779 | </desc>
|
---|
3780 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3781 | <param name="matched" type="boolean" dir="out"/>
|
---|
3782 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3783 | </method>
|
---|
3784 |
|
---|
3785 | <method name="captureUSBDevice">
|
---|
3786 | <desc>
|
---|
3787 | Requests a capture of the given host USB device.
|
---|
3788 | When the request is completed, the VM process will
|
---|
3789 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3790 | notification.
|
---|
3791 | </desc>
|
---|
3792 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3793 | </method>
|
---|
3794 |
|
---|
3795 | <method name="detachUSBDevice">
|
---|
3796 | <desc>
|
---|
3797 | Notification that a VM is going to detach (@a done = @c false) or has
|
---|
3798 | already detached (@a done = @c true) the given USB device.
|
---|
3799 | When the @a done = @c true request is completed, the VM process will
|
---|
3800 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3801 | notification.
|
---|
3802 | <note>
|
---|
3803 | In the @a done = @c true case, the server must run its own filters
|
---|
3804 | and filters of all VMs but this one on the detached device
|
---|
3805 | as if it were just attached to the host computer.
|
---|
3806 | </note>
|
---|
3807 | </desc>
|
---|
3808 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3809 | <param name="done" type="boolean" dir="in"/>
|
---|
3810 | </method>
|
---|
3811 |
|
---|
3812 | <method name="autoCaptureUSBDevices">
|
---|
3813 | <desc>
|
---|
3814 | Requests a capture all matching USB devices attached to the host.
|
---|
3815 | When the request is completed, the VM process will
|
---|
3816 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3817 | notification per every captured device.
|
---|
3818 | </desc>
|
---|
3819 | </method>
|
---|
3820 |
|
---|
3821 | <method name="detachAllUSBDevices">
|
---|
3822 | <desc>
|
---|
3823 | Notification that a VM that is being powered down. The done
|
---|
3824 | parameter indicates whether which stage of the power down
|
---|
3825 | we're at. When @a done = @c false the VM is announcing its
|
---|
3826 | intentions, while when @a done = @c true the VM is reporting
|
---|
3827 | what it has done.
|
---|
3828 | <note>
|
---|
3829 | In the @a done = @c true case, the server must run its own filters
|
---|
3830 | and filters of all VMs but this one on all detach devices as
|
---|
3831 | if they were just attached to the host computer.
|
---|
3832 | </note>
|
---|
3833 | </desc>
|
---|
3834 | <param name="done" type="boolean" dir="in"/>
|
---|
3835 | </method>
|
---|
3836 |
|
---|
3837 | <method name="onSessionEnd">
|
---|
3838 | <desc>
|
---|
3839 | Triggered by the given session object when the session is about
|
---|
3840 | to close normally.
|
---|
3841 | </desc>
|
---|
3842 | <param name="session" type="ISession" dir="in">
|
---|
3843 | <desc>Session that is being closed</desc>
|
---|
3844 | </param>
|
---|
3845 | <param name="progress" type="IProgress" dir="return">
|
---|
3846 | <desc>
|
---|
3847 | Used to wait until the corresponding machine is actually
|
---|
3848 | dissociated from the given session on the server.
|
---|
3849 | Returned only when this session is a direct one.
|
---|
3850 | </desc>
|
---|
3851 | </param>
|
---|
3852 | </method>
|
---|
3853 |
|
---|
3854 | <method name="beginSavingState">
|
---|
3855 | <desc>
|
---|
3856 | Called by the VM process to inform the server it wants to
|
---|
3857 | save the current state and stop the VM execution.
|
---|
3858 | </desc>
|
---|
3859 | <param name="progress" type="IProgress" dir="in">
|
---|
3860 | <desc>
|
---|
3861 | Progress object created by the VM process to wait until
|
---|
3862 | the state is saved.
|
---|
3863 | </desc>
|
---|
3864 | </param>
|
---|
3865 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3866 | <desc>
|
---|
3867 | File path the VM process must save the execution state to.
|
---|
3868 | </desc>
|
---|
3869 | </param>
|
---|
3870 | </method>
|
---|
3871 |
|
---|
3872 | <method name="endSavingState">
|
---|
3873 | <desc>
|
---|
3874 | Called by the VM process to inform the server that saving
|
---|
3875 | the state previously requested by #beginSavingState is either
|
---|
3876 | successfully finished or there was a failure.
|
---|
3877 |
|
---|
3878 | <result name="VBOX_E_FILE_ERROR">
|
---|
3879 | Settings file not accessible.
|
---|
3880 | </result>
|
---|
3881 | <result name="VBOX_E_XML_ERROR">
|
---|
3882 | Could not parse the settings file.
|
---|
3883 | </result>
|
---|
3884 |
|
---|
3885 | </desc>
|
---|
3886 |
|
---|
3887 | <param name="success" type="boolean" dir="in">
|
---|
3888 | <desc>@c true to indicate success and @c false otherwise.
|
---|
3889 | </desc>
|
---|
3890 | </param>
|
---|
3891 | </method>
|
---|
3892 |
|
---|
3893 | <method name="adoptSavedState">
|
---|
3894 | <desc>
|
---|
3895 | Gets called by IConsole::adoptSavedState.
|
---|
3896 | <result name="VBOX_E_FILE_ERROR">
|
---|
3897 | Invalid saved state file path.
|
---|
3898 | </result>
|
---|
3899 | </desc>
|
---|
3900 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3901 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3902 | </param>
|
---|
3903 | </method>
|
---|
3904 |
|
---|
3905 | <method name="beginTakingSnapshot">
|
---|
3906 | <desc>
|
---|
3907 | Called from the VM process to request from the server to perform the
|
---|
3908 | server-side actions of creating a snapshot (creating differencing images
|
---|
3909 | and the snapshot object).
|
---|
3910 |
|
---|
3911 | <result name="VBOX_E_FILE_ERROR">
|
---|
3912 | Settings file not accessible.
|
---|
3913 | </result>
|
---|
3914 | <result name="VBOX_E_XML_ERROR">
|
---|
3915 | Could not parse the settings file.
|
---|
3916 | </result>
|
---|
3917 | </desc>
|
---|
3918 | <param name="initiator" type="IConsole" dir="in">
|
---|
3919 | <desc>The console object that initiated this call.</desc>
|
---|
3920 | </param>
|
---|
3921 | <param name="name" type="wstring" dir="in">
|
---|
3922 | <desc>Snapshot name.</desc>
|
---|
3923 | </param>
|
---|
3924 | <param name="description" type="wstring" dir="in">
|
---|
3925 | <desc>Snapshot description.</desc>
|
---|
3926 | </param>
|
---|
3927 | <param name="consoleProgress" type="IProgress" dir="in">
|
---|
3928 | <desc>
|
---|
3929 | Progress object created by the VM process tracking the
|
---|
3930 | snapshot's progress. This has the following sub-operations:
|
---|
3931 | <ul>
|
---|
3932 | <li>setting up (weight 1);</li>
|
---|
3933 | <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
|
---|
3934 | <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
|
---|
3935 | <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
|
---|
3936 | <li>finishing up (weight 1)</li>
|
---|
3937 | </ul>
|
---|
3938 | </desc>
|
---|
3939 | </param>
|
---|
3940 | <param name="fTakingSnapshotOnline" type="boolean" dir="in">
|
---|
3941 | <desc>
|
---|
3942 | Whether this is an online snapshot (i.e. the machine is running).
|
---|
3943 | </desc>
|
---|
3944 | </param>
|
---|
3945 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3946 | <desc>
|
---|
3947 | File path the VM process must save the execution state to.
|
---|
3948 | </desc>
|
---|
3949 | </param>
|
---|
3950 | </method>
|
---|
3951 |
|
---|
3952 | <method name="endTakingSnapshot">
|
---|
3953 | <desc>
|
---|
3954 | Called by the VM process to inform the server that the snapshot
|
---|
3955 | previously requested by #beginTakingSnapshot is either
|
---|
3956 | successfully taken or there was a failure.
|
---|
3957 | </desc>
|
---|
3958 |
|
---|
3959 | <param name="success" type="boolean" dir="in">
|
---|
3960 | <desc>@c true to indicate success and @c false otherwise</desc>
|
---|
3961 | </param>
|
---|
3962 | </method>
|
---|
3963 |
|
---|
3964 | <method name="deleteSnapshot">
|
---|
3965 | <desc>
|
---|
3966 | Gets called by IConsole::deleteSnapshot.
|
---|
3967 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3968 | Snapshot has more than one child snapshot.
|
---|
3969 | </result>
|
---|
3970 | </desc>
|
---|
3971 | <param name="initiator" type="IConsole" dir="in">
|
---|
3972 | <desc>The console object that initiated this call.</desc>
|
---|
3973 | </param>
|
---|
3974 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
3975 | <desc>UUID of the snapshot to delete.</desc>
|
---|
3976 | </param>
|
---|
3977 | <param name="machineState" type="MachineState" dir="out">
|
---|
3978 | <desc>New machine state after this operation is started.</desc>
|
---|
3979 | </param>
|
---|
3980 | <param name="progress" type="IProgress" dir="return">
|
---|
3981 | <desc>Progress object to track the operation completion.</desc>
|
---|
3982 | </param>
|
---|
3983 | </method>
|
---|
3984 |
|
---|
3985 | <method name="restoreSnapshot">
|
---|
3986 | <desc>
|
---|
3987 | Gets called by IConsole::RestoreSnapshot.
|
---|
3988 | </desc>
|
---|
3989 | <param name="initiator" type="IConsole" dir="in">
|
---|
3990 | <desc>The console object that initiated this call.</desc>
|
---|
3991 | </param>
|
---|
3992 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
3993 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
3994 | </param>
|
---|
3995 | <param name="machineState" type="MachineState" dir="out">
|
---|
3996 | <desc>New machine state after this operation is started.</desc>
|
---|
3997 | </param>
|
---|
3998 | <param name="progress" type="IProgress" dir="return">
|
---|
3999 | <desc>Progress object to track the operation completion.</desc>
|
---|
4000 | </param>
|
---|
4001 | </method>
|
---|
4002 |
|
---|
4003 | <method name="pullGuestProperties">
|
---|
4004 | <desc>
|
---|
4005 | Get the list of the guest properties matching a set of patterns along
|
---|
4006 | with their values, time stamps and flags and give responsibility for
|
---|
4007 | managing properties to the console.
|
---|
4008 | </desc>
|
---|
4009 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
4010 | <desc>
|
---|
4011 | The names of the properties returned.
|
---|
4012 | </desc>
|
---|
4013 | </param>
|
---|
4014 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
4015 | <desc>
|
---|
4016 | The values of the properties returned. The array entries match the
|
---|
4017 | corresponding entries in the @a name array.
|
---|
4018 | </desc>
|
---|
4019 | </param>
|
---|
4020 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
4021 | <desc>
|
---|
4022 | The time stamps of the properties returned. The array entries match
|
---|
4023 | the corresponding entries in the @a name array.
|
---|
4024 | </desc>
|
---|
4025 | </param>
|
---|
4026 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
4027 | <desc>
|
---|
4028 | The flags of the properties returned. The array entries match the
|
---|
4029 | corresponding entries in the @a name array.
|
---|
4030 | </desc>
|
---|
4031 | </param>
|
---|
4032 | </method>
|
---|
4033 |
|
---|
4034 | <method name="pushGuestProperty">
|
---|
4035 | <desc>
|
---|
4036 | Update a single guest property in IMachine.
|
---|
4037 | </desc>
|
---|
4038 | <param name="name" type="wstring" dir="in">
|
---|
4039 | <desc>
|
---|
4040 | The name of the property to be updated.
|
---|
4041 | </desc>
|
---|
4042 | </param>
|
---|
4043 | <param name="value" type="wstring" dir="in">
|
---|
4044 | <desc>
|
---|
4045 | The value of the property.
|
---|
4046 | </desc>
|
---|
4047 | </param>
|
---|
4048 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
4049 | <desc>
|
---|
4050 | The timestamp of the property.
|
---|
4051 | </desc>
|
---|
4052 | </param>
|
---|
4053 | <param name="flags" type="wstring" dir="in">
|
---|
4054 | <desc>
|
---|
4055 | The flags of the property.
|
---|
4056 | </desc>
|
---|
4057 | </param>
|
---|
4058 | </method>
|
---|
4059 |
|
---|
4060 | <method name="lockMedia">
|
---|
4061 | <desc>
|
---|
4062 | Locks all media attached to the machine for writing and parents of
|
---|
4063 | attached differencing media (if any) for reading. This operation is
|
---|
4064 | atomic so that if it fails no media is actually locked.
|
---|
4065 |
|
---|
4066 | This method is intended to be called when the machine is in Starting or
|
---|
4067 | Restoring state. The locked media will be automatically unlocked when
|
---|
4068 | the machine is powered off or crashed.
|
---|
4069 | </desc>
|
---|
4070 | </method>
|
---|
4071 | <method name="unlockMedia">
|
---|
4072 | <desc>
|
---|
4073 | Unlocks all media previously locked using
|
---|
4074 | <link to="IInternalMachineControl::lockMedia"/>.
|
---|
4075 |
|
---|
4076 | This method is intended to be used with teleportation so that it is
|
---|
4077 | possible to teleport between processes on the same machine.
|
---|
4078 | </desc>
|
---|
4079 | </method>
|
---|
4080 | </interface>
|
---|
4081 |
|
---|
4082 | <interface
|
---|
4083 | name="IBIOSSettings" extends="$unknown"
|
---|
4084 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
4085 | wsmap="managed"
|
---|
4086 | >
|
---|
4087 | <desc>
|
---|
4088 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
4089 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
4090 | </desc>
|
---|
4091 | <attribute name="logoFadeIn" type="boolean">
|
---|
4092 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
4093 | </attribute>
|
---|
4094 |
|
---|
4095 | <attribute name="logoFadeOut" type="boolean">
|
---|
4096 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
4097 | </attribute>
|
---|
4098 |
|
---|
4099 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
4100 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
4101 | </attribute>
|
---|
4102 |
|
---|
4103 | <attribute name="logoImagePath" type="wstring">
|
---|
4104 | <desc>
|
---|
4105 | Local file system path for external BIOS splash image. Empty string
|
---|
4106 | means the default image is shown on boot.
|
---|
4107 | </desc>
|
---|
4108 | </attribute>
|
---|
4109 |
|
---|
4110 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
4111 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
4112 | </attribute>
|
---|
4113 |
|
---|
4114 | <attribute name="ACPIEnabled" type="boolean">
|
---|
4115 | <desc>ACPI support flag.</desc>
|
---|
4116 | </attribute>
|
---|
4117 |
|
---|
4118 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
4119 | <desc>
|
---|
4120 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
4121 | and support IRQs above 15.
|
---|
4122 | </desc>
|
---|
4123 | </attribute>
|
---|
4124 |
|
---|
4125 | <attribute name="timeOffset" type="long long">
|
---|
4126 | <desc>
|
---|
4127 | Offset in milliseconds from the host system time. This allows for
|
---|
4128 | guests running with a different system date/time than the host.
|
---|
4129 | It is equivalent to setting the system date/time in the BIOS except
|
---|
4130 | it is not an absolute value but a relative one. Guest Additions
|
---|
4131 | time synchronization honors this offset.
|
---|
4132 | </desc>
|
---|
4133 | </attribute>
|
---|
4134 |
|
---|
4135 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
4136 | <desc>
|
---|
4137 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
4138 | PXE trace information to the release log.
|
---|
4139 | </desc>
|
---|
4140 | </attribute>
|
---|
4141 |
|
---|
4142 | </interface>
|
---|
4143 |
|
---|
4144 | <interface
|
---|
4145 | name="IMachine" extends="$unknown"
|
---|
4146 | uuid="fe51e0c8-7e48-4847-95f0-fc8532f3b480"
|
---|
4147 | wsmap="managed"
|
---|
4148 | >
|
---|
4149 | <desc>
|
---|
4150 | The IMachine interface represents a virtual machine, or guest, created
|
---|
4151 | in VirtualBox.
|
---|
4152 |
|
---|
4153 | This interface is used in two contexts. First of all, a collection of
|
---|
4154 | objects implementing this interface is stored in the
|
---|
4155 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
4156 | machines that are currently registered with this VirtualBox
|
---|
4157 | installation. Also, once a session has been opened for the given virtual
|
---|
4158 | machine (e.g. the virtual machine is running), the machine object
|
---|
4159 | associated with the open session can be queried from the session object;
|
---|
4160 | see <link to="ISession"/> for details.
|
---|
4161 |
|
---|
4162 | The main role of this interface is to expose the settings of the virtual
|
---|
4163 | machine and provide methods to change various aspects of the virtual
|
---|
4164 | machine's configuration. For machine objects stored in the
|
---|
4165 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
4166 | read-only unless explicitly stated otherwise in individual attribute
|
---|
4167 | and method descriptions. In order to change a machine setting, a session
|
---|
4168 | for this machine must be opened using one of
|
---|
4169 | <link to="IVirtualBox::openSession"/>,
|
---|
4170 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4171 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
4172 | session has been successfully opened, a mutable machine object needs to
|
---|
4173 | be queried from the session object and then the desired settings changes
|
---|
4174 | can be applied to the returned object using IMachine attributes and
|
---|
4175 | methods. See the <link to="ISession"/> interface description for more
|
---|
4176 | information about sessions.
|
---|
4177 |
|
---|
4178 | Note that IMachine does not provide methods to control virtual machine
|
---|
4179 | execution (such as start the machine, or power it down) -- these methods
|
---|
4180 | are grouped in a separate interface called <link to="IConsole" />.
|
---|
4181 |
|
---|
4182 | <see>ISession, IConsole</see>
|
---|
4183 | </desc>
|
---|
4184 |
|
---|
4185 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
4186 | <desc>Associated parent object.</desc>
|
---|
4187 | </attribute>
|
---|
4188 |
|
---|
4189 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
4190 | <desc>
|
---|
4191 | Whether this virtual machine is currently accessible or not.
|
---|
4192 |
|
---|
4193 | A machine is always deemed accessible unless it is registered <i>and</i>
|
---|
4194 | its settings file cannot be read or parsed (either because the file itself
|
---|
4195 | is unavailable or has invalid XML contents).
|
---|
4196 |
|
---|
4197 | Every time this property is read, the accessibility state of
|
---|
4198 | this machine is re-evaluated. If the returned value is @c false,
|
---|
4199 | the <link to="#accessError"/> property may be used to get the
|
---|
4200 | detailed error information describing the reason of
|
---|
4201 | inaccessibility, including XML error messages.
|
---|
4202 |
|
---|
4203 | When the machine is inaccessible, only the following properties
|
---|
4204 | can be used on it:
|
---|
4205 | <ul>
|
---|
4206 | <li><link to="#parent"/></li>
|
---|
4207 | <li><link to="#id"/></li>
|
---|
4208 | <li><link to="#settingsFilePath"/></li>
|
---|
4209 | <li><link to="#accessible"/></li>
|
---|
4210 | <li><link to="#accessError"/></li>
|
---|
4211 | </ul>
|
---|
4212 |
|
---|
4213 | An attempt to access any other property or method will return
|
---|
4214 | an error.
|
---|
4215 |
|
---|
4216 | The only possible action you can perform on an inaccessible
|
---|
4217 | machine is to unregister it using the
|
---|
4218 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
4219 | for the accessibility state once more by querying this
|
---|
4220 | property).
|
---|
4221 |
|
---|
4222 | <note>
|
---|
4223 | In the current implementation, once this property returns
|
---|
4224 | @c true, the machine will never become inaccessible
|
---|
4225 | later, even if its settings file cannot be successfully
|
---|
4226 | read/written any more (at least, until the VirtualBox
|
---|
4227 | server is restarted). This limitation may be removed in
|
---|
4228 | future releases.
|
---|
4229 | </note>
|
---|
4230 | </desc>
|
---|
4231 | </attribute>
|
---|
4232 |
|
---|
4233 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4234 | <desc>
|
---|
4235 | Error information describing the reason of machine
|
---|
4236 | inaccessibility.
|
---|
4237 |
|
---|
4238 | Reading this property is only valid after the last call to
|
---|
4239 | <link to="#accessible"/> returned @c false (i.e. the
|
---|
4240 | machine is currently unaccessible). Otherwise, a @c null
|
---|
4241 | IVirtualBoxErrorInfo object will be returned.
|
---|
4242 | </desc>
|
---|
4243 | </attribute>
|
---|
4244 |
|
---|
4245 | <attribute name="name" type="wstring">
|
---|
4246 | <desc>
|
---|
4247 | Name of the virtual machine.
|
---|
4248 |
|
---|
4249 | Besides being used for human-readable identification purposes
|
---|
4250 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
4251 | as a name of the machine's settings file and as a name of the
|
---|
4252 | subdirectory this settings file resides in. Thus, every time you
|
---|
4253 | change the value of this property, the settings file will be
|
---|
4254 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
4255 | change. The containing subdirectory will be also renamed, but
|
---|
4256 | only if it has exactly the same name as the settings file
|
---|
4257 | itself prior to changing this property (for backward compatibility
|
---|
4258 | with previous API releases). The above implies the following
|
---|
4259 | limitations:
|
---|
4260 | <ul>
|
---|
4261 | <li>The machine name cannot be empty.</li>
|
---|
4262 | <li>The machine name can contain only characters that are valid
|
---|
4263 | file name characters according to the rules of the file
|
---|
4264 | system used to store VirtualBox configuration.</li>
|
---|
4265 | <li>You cannot have two or more machines with the same name
|
---|
4266 | if they use the same subdirectory for storing the machine
|
---|
4267 | settings files.</li>
|
---|
4268 | <li>You cannot change the name of the machine if it is running,
|
---|
4269 | or if any file in the directory containing the settings file
|
---|
4270 | is being used by another running machine or by any other
|
---|
4271 | process in the host operating system at a time when
|
---|
4272 | <link to="#saveSettings"/> is called.
|
---|
4273 | </li>
|
---|
4274 | </ul>
|
---|
4275 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
4276 | will return an appropriate error message explaining the exact
|
---|
4277 | reason and the changes you made to this machine will not be
|
---|
4278 | saved.
|
---|
4279 | <note>
|
---|
4280 | For "legacy" machines created using the
|
---|
4281 | <link to="IVirtualBox::createLegacyMachine"/> call,
|
---|
4282 | the above naming limitations do not apply because the
|
---|
4283 | machine name does not affect the settings file name.
|
---|
4284 | The settings file name remains the same as it was specified
|
---|
4285 | during machine creation and never changes.
|
---|
4286 | </note>
|
---|
4287 | </desc>
|
---|
4288 | </attribute>
|
---|
4289 |
|
---|
4290 | <attribute name="description" type="wstring">
|
---|
4291 | <desc>
|
---|
4292 | Description of the virtual machine.
|
---|
4293 |
|
---|
4294 | The description attribute can contain any text and is
|
---|
4295 | typically used to describe the hardware and software
|
---|
4296 | configuration of the virtual machine in detail (i.e. network
|
---|
4297 | settings, versions of the installed software and so on).
|
---|
4298 | </desc>
|
---|
4299 | </attribute>
|
---|
4300 |
|
---|
4301 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
4302 | <desc>UUID of the virtual machine.</desc>
|
---|
4303 | </attribute>
|
---|
4304 |
|
---|
4305 | <attribute name="OSTypeId" type="wstring">
|
---|
4306 | <desc>
|
---|
4307 | User-defined identifier of the Guest OS type.
|
---|
4308 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4309 | an IGuestOSType object representing details about the given
|
---|
4310 | Guest OS type.
|
---|
4311 | <note>
|
---|
4312 | This value may differ from the value returned by
|
---|
4313 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
4314 | installed to the guest OS.
|
---|
4315 | </note>
|
---|
4316 | </desc>
|
---|
4317 | </attribute>
|
---|
4318 |
|
---|
4319 | <attribute name="HardwareVersion" type="wstring">
|
---|
4320 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
4321 | </attribute>
|
---|
4322 |
|
---|
4323 | <attribute name="hardwareUUID" type="uuid" mod="string">
|
---|
4324 | <desc>
|
---|
4325 | The UUID presented to the guest via memory tables, hardware and guest
|
---|
4326 | properties. For most VMs this is the same as the @a id, but for VMs
|
---|
4327 | which have been cloned or teleported it may be the same as the source
|
---|
4328 | VM. This latter is because the guest shouldn't notice that it was
|
---|
4329 | cloned or teleported.
|
---|
4330 | </desc>
|
---|
4331 | </attribute>
|
---|
4332 |
|
---|
4333 | <attribute name="CPUCount" type="unsigned long">
|
---|
4334 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
4335 | </attribute>
|
---|
4336 |
|
---|
4337 | <attribute name="CPUHotPlugEnabled" type="boolean">
|
---|
4338 | <desc>
|
---|
4339 | This setting determines whether VirtualBox allows CPU
|
---|
4340 | hotplugging for this machine.</desc>
|
---|
4341 | </attribute>
|
---|
4342 |
|
---|
4343 | <attribute name="memorySize" type="unsigned long">
|
---|
4344 | <desc>System memory size in megabytes.</desc>
|
---|
4345 | </attribute>
|
---|
4346 |
|
---|
4347 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4348 | <desc>Memory balloon size in megabytes.</desc>
|
---|
4349 | </attribute>
|
---|
4350 |
|
---|
4351 | <attribute name="VRAMSize" type="unsigned long">
|
---|
4352 | <desc>Video memory size in megabytes.</desc>
|
---|
4353 | </attribute>
|
---|
4354 |
|
---|
4355 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
4356 | <desc>
|
---|
4357 | This setting determines whether VirtualBox allows this machine to make
|
---|
4358 | use of the 3D graphics support available on the host.</desc>
|
---|
4359 | </attribute>
|
---|
4360 |
|
---|
4361 | <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
|
---|
4362 | <desc>
|
---|
4363 | This setting determines whether VirtualBox allows this machine to make
|
---|
4364 | use of the 2D video acceleration support available on the host.</desc>
|
---|
4365 | </attribute>
|
---|
4366 |
|
---|
4367 | <attribute name="monitorCount" type="unsigned long">
|
---|
4368 | <desc>
|
---|
4369 | Number of virtual monitors.
|
---|
4370 | <note>
|
---|
4371 | Only effective on Windows XP and later guests with
|
---|
4372 | Guest Additions installed.
|
---|
4373 | </note>
|
---|
4374 | </desc>
|
---|
4375 | </attribute>
|
---|
4376 |
|
---|
4377 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
4378 | <desc>Object containing all BIOS settings.</desc>
|
---|
4379 | </attribute>
|
---|
4380 |
|
---|
4381 | <attribute name="firmwareType" type="FirmwareType">
|
---|
4382 | <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
|
---|
4383 | bootstrap in this VM.</desc>
|
---|
4384 | </attribute>
|
---|
4385 |
|
---|
4386 | <attribute name="pointingHidType" type="PointingHidType">
|
---|
4387 | <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
|
---|
4388 | The default is typically "PS2Mouse" but can vary depending on the
|
---|
4389 | requirements of the guest operating system.</desc>
|
---|
4390 | </attribute>
|
---|
4391 |
|
---|
4392 | <attribute name="keyboardHidType" type="KeyboardHidType">
|
---|
4393 | <desc>Type of keyboard HID used in this VM.
|
---|
4394 | The default is typically "PS2Keyboard" but can vary depending on the
|
---|
4395 | requirements of the guest operating system.</desc>
|
---|
4396 | </attribute>
|
---|
4397 |
|
---|
4398 | <attribute name="hpetEnabled" type="boolean">
|
---|
4399 | <desc>This attribute controls if High Precision Event Timer (HPET) is
|
---|
4400 | enabled in this VM. Use this property if you want to provide guests
|
---|
4401 | with additional time source, or if guest requires HPET to function correctly.
|
---|
4402 | Default is false.</desc>
|
---|
4403 | </attribute>
|
---|
4404 |
|
---|
4405 | <attribute name="snapshotFolder" type="wstring">
|
---|
4406 | <desc>
|
---|
4407 | Full path to the directory used to store snapshot data
|
---|
4408 | (differencing media and saved state files) of this machine.
|
---|
4409 |
|
---|
4410 | The initial value of this property is
|
---|
4411 | <tt><</tt><link to="#settingsFilePath">
|
---|
4412 | path_to_settings_file</link><tt>>/<</tt>
|
---|
4413 | <link to="#id">machine_uuid</link>
|
---|
4414 | <tt>></tt>.
|
---|
4415 |
|
---|
4416 | Currently, it is an error to try to change this property on
|
---|
4417 | a machine that has snapshots (because this would require to
|
---|
4418 | move possibly large files to a different location).
|
---|
4419 | A separate method will be available for this purpose later.
|
---|
4420 |
|
---|
4421 | <note>
|
---|
4422 | Setting this property to @c null or to an empty string will restore
|
---|
4423 | the initial value.
|
---|
4424 | </note>
|
---|
4425 | <note>
|
---|
4426 | When setting this property, the specified path can be
|
---|
4427 | absolute (full path) or relative to the directory where the
|
---|
4428 | <link to="#settingsFilePath">machine settings file</link>
|
---|
4429 | is located. When reading this property, a full path is
|
---|
4430 | always returned.
|
---|
4431 | </note>
|
---|
4432 | <note>
|
---|
4433 | The specified path may not exist, it will be created
|
---|
4434 | when necessary.
|
---|
4435 | </note>
|
---|
4436 | </desc>
|
---|
4437 | </attribute>
|
---|
4438 |
|
---|
4439 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
4440 | <desc>VRDP server object.</desc>
|
---|
4441 | </attribute>
|
---|
4442 |
|
---|
4443 | <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
|
---|
4444 | <desc>Array of media attached to this machine.</desc>
|
---|
4445 | </attribute>
|
---|
4446 |
|
---|
4447 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
4448 | <desc>
|
---|
4449 | Associated USB controller object.
|
---|
4450 |
|
---|
4451 | <note>
|
---|
4452 | If USB functionality is not available in the given edition of
|
---|
4453 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4454 | </note>
|
---|
4455 | </desc>
|
---|
4456 | </attribute>
|
---|
4457 |
|
---|
4458 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
4459 | <desc>Associated audio adapter, always present.</desc>
|
---|
4460 | </attribute>
|
---|
4461 |
|
---|
4462 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
4463 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
4464 | </attribute>
|
---|
4465 |
|
---|
4466 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
4467 | <desc>
|
---|
4468 | Full name of the file containing machine settings data.
|
---|
4469 | </desc>
|
---|
4470 | </attribute>
|
---|
4471 |
|
---|
4472 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
4473 | <desc>
|
---|
4474 | Whether the settings of this machine have been modified
|
---|
4475 | (but neither yet saved nor discarded).
|
---|
4476 | <note>
|
---|
4477 | Reading this property is only valid on instances returned
|
---|
4478 | by <link to="ISession::machine"/> and on new machines
|
---|
4479 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
4480 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
4481 | yet registered, or on unregistered machines after calling
|
---|
4482 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
4483 | cases, the settings can never be modified.
|
---|
4484 | </note>
|
---|
4485 | <note>
|
---|
4486 | For newly created unregistered machines, the value of this
|
---|
4487 | property is always @c true until <link to="#saveSettings"/>
|
---|
4488 | is called (no matter if any machine settings have been
|
---|
4489 | changed after the creation or not). For opened machines
|
---|
4490 | the value is set to @c false (and then follows to normal rules).
|
---|
4491 | </note>
|
---|
4492 | </desc>
|
---|
4493 | </attribute>
|
---|
4494 |
|
---|
4495 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
4496 | <desc>Current session state for this machine.</desc>
|
---|
4497 | </attribute>
|
---|
4498 |
|
---|
4499 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
4500 | <desc>
|
---|
4501 | Type of the session. If <link to="#sessionState"/> is
|
---|
4502 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
4503 | same value as passed to the
|
---|
4504 | <link to="IVirtualBox::openRemoteSession"/> method in the
|
---|
4505 | @a type parameter. If the session was opened directly using
|
---|
4506 | <link to="IVirtualBox::openSession"/>, or if
|
---|
4507 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
4508 | attribute is an empty string.
|
---|
4509 | </desc>
|
---|
4510 | </attribute>
|
---|
4511 |
|
---|
4512 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
4513 | <desc>
|
---|
4514 | Identifier of the session process. This attribute contains the
|
---|
4515 | platform-dependent identifier of the process that has opened a
|
---|
4516 | direct session for this machine using the
|
---|
4517 | <link to="IVirtualBox::openSession"/> call. The returned value
|
---|
4518 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
4519 | SessionClosing (i.e. a session is currently open or being
|
---|
4520 | closed) by the time this property is read.
|
---|
4521 | </desc>
|
---|
4522 | </attribute>
|
---|
4523 |
|
---|
4524 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4525 | <desc>Current execution state of this machine.</desc>
|
---|
4526 | </attribute>
|
---|
4527 |
|
---|
4528 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
4529 | <desc>
|
---|
4530 | Time stamp of the last execution state change,
|
---|
4531 | in milliseconds since 1970-01-01 UTC.
|
---|
4532 | </desc>
|
---|
4533 | </attribute>
|
---|
4534 |
|
---|
4535 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
4536 | <desc>
|
---|
4537 | Full path to the file that stores the execution state of
|
---|
4538 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
4539 | <note>
|
---|
4540 | When the machine is not in the Saved state, this attribute is
|
---|
4541 | an empty string.
|
---|
4542 | </note>
|
---|
4543 | </desc>
|
---|
4544 | </attribute>
|
---|
4545 |
|
---|
4546 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
4547 | <desc>
|
---|
4548 | Full path to the folder that stores a set of rotated log files
|
---|
4549 | recorded during machine execution. The most recent log file is
|
---|
4550 | named <tt>VBox.log</tt>, the previous log file is
|
---|
4551 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
4552 | in the current version).
|
---|
4553 | </desc>
|
---|
4554 | </attribute>
|
---|
4555 |
|
---|
4556 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
4557 | <desc>
|
---|
4558 | Current snapshot of this machine. This is @c null if the machine
|
---|
4559 | currently has no snapshots. If it is not @c null, then it was
|
---|
4560 | set by one of <link to="Console::takeSnapshot" />,
|
---|
4561 | <link to="Console::deleteSnapshot" />
|
---|
4562 | or <link to="Console::restoreSnapshot" />, depending on which
|
---|
4563 | was called last. See <link to="ISnapshot"/> for details.
|
---|
4564 | </desc>
|
---|
4565 | </attribute>
|
---|
4566 |
|
---|
4567 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
4568 | <desc>
|
---|
4569 | Number of snapshots taken on this machine. Zero means the
|
---|
4570 | machine doesn't have any snapshots.
|
---|
4571 | </desc>
|
---|
4572 | </attribute>
|
---|
4573 |
|
---|
4574 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
4575 | <desc>
|
---|
4576 | Returns @c true if the current state of the machine is not
|
---|
4577 | identical to the state stored in the current snapshot.
|
---|
4578 |
|
---|
4579 | The current state is identical to the current snapshot only
|
---|
4580 | directly after one of the following calls are made:
|
---|
4581 |
|
---|
4582 | <ul>
|
---|
4583 | <li><link to="IConsole::restoreSnapshot"/>
|
---|
4584 | </li>
|
---|
4585 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
4586 | "powered off" or "saved" machine, for which
|
---|
4587 | <link to="#settingsModified"/> returns @c false)
|
---|
4588 | </li>
|
---|
4589 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
4590 | </li>
|
---|
4591 | </ul>
|
---|
4592 |
|
---|
4593 | The current state remains identical until one of the following
|
---|
4594 | happens:
|
---|
4595 | <ul>
|
---|
4596 | <li>settings of the machine are changed</li>
|
---|
4597 | <li>the saved state is deleted</li>
|
---|
4598 | <li>the current snapshot is deleted</li>
|
---|
4599 | <li>an attempt to execute the machine is made</li>
|
---|
4600 | </ul>
|
---|
4601 |
|
---|
4602 | <note>
|
---|
4603 | For machines that don't have snapshots, this property is
|
---|
4604 | always @c false.
|
---|
4605 | </note>
|
---|
4606 | </desc>
|
---|
4607 | </attribute>
|
---|
4608 |
|
---|
4609 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
4610 | <desc>
|
---|
4611 | Collection of shared folders for this machine (permanent shared
|
---|
4612 | folders). These folders are shared automatically at machine startup
|
---|
4613 | and available only to the guest OS installed within this machine.
|
---|
4614 |
|
---|
4615 | New shared folders are added to the collection using
|
---|
4616 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4617 | removed using <link to="#removeSharedFolder"/>.
|
---|
4618 | </desc>
|
---|
4619 | </attribute>
|
---|
4620 |
|
---|
4621 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
4622 | <desc>
|
---|
4623 | Synchronization mode between the host OS clipboard
|
---|
4624 | and the guest OS clipboard.
|
---|
4625 | </desc>
|
---|
4626 | </attribute>
|
---|
4627 |
|
---|
4628 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
4629 | <desc>
|
---|
4630 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
4631 | properties whose name matches one of the patterns will generate an
|
---|
4632 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
4633 | </desc>
|
---|
4634 | </attribute>
|
---|
4635 |
|
---|
4636 | <attribute name="teleporterEnabled" type="boolean">
|
---|
4637 | <desc>
|
---|
4638 | When set to @a true, the virtual machine becomes a target teleporter
|
---|
4639 | the next time it is powered on. This can only set to @a true when the
|
---|
4640 | VM is in the @a PoweredOff or @a Aborted state.
|
---|
4641 |
|
---|
4642 | <!-- This property is automatically set to @a false when the VM is powered
|
---|
4643 | on. (bird: This doesn't work yet ) -->
|
---|
4644 | </desc>
|
---|
4645 | </attribute>
|
---|
4646 |
|
---|
4647 | <attribute name="teleporterPort" type="unsigned long">
|
---|
4648 | <desc>
|
---|
4649 | The TCP port the target teleporter will listen for incoming
|
---|
4650 | teleportations on.
|
---|
4651 |
|
---|
4652 | 0 means the port is automatically selected upon power on. The actual
|
---|
4653 | value can be read from this property while the machine is waiting for
|
---|
4654 | incoming teleportations.
|
---|
4655 | </desc>
|
---|
4656 | </attribute>
|
---|
4657 |
|
---|
4658 | <attribute name="teleporterAddress" type="wstring">
|
---|
4659 | <desc>
|
---|
4660 | The address the target teleporter will listen on. If set to an empty
|
---|
4661 | string, it will listen on all addresses.
|
---|
4662 | </desc>
|
---|
4663 | </attribute>
|
---|
4664 |
|
---|
4665 | <attribute name="teleporterPassword" type="wstring">
|
---|
4666 | <desc>
|
---|
4667 | The password the to check for on the target teleporter. This is just a
|
---|
4668 | very basic measure to prevent simple hacks and operators accidentally
|
---|
4669 | beaming a virtual machine to the wrong place.
|
---|
4670 | </desc>
|
---|
4671 | </attribute>
|
---|
4672 |
|
---|
4673 | <attribute name="RTCUseUTC" type="boolean">
|
---|
4674 | <desc>
|
---|
4675 | When set to @a true, the RTC device of the virtual machine will run
|
---|
4676 | in UTC time, otherwise in local time. Especially Unix guests prefer
|
---|
4677 | the time in UTC.
|
---|
4678 | </desc>
|
---|
4679 | </attribute>
|
---|
4680 |
|
---|
4681 | <attribute name="ioMgr" type="IoMgrType">
|
---|
4682 | <desc>
|
---|
4683 | Selects the I/O manager to use for the virtual machine.
|
---|
4684 | </desc>
|
---|
4685 | </attribute>
|
---|
4686 |
|
---|
4687 | <attribute name="ioBackend" type="IoBackendType">
|
---|
4688 | <desc>
|
---|
4689 | Selects the I/O backend to use for the virtual machine.
|
---|
4690 | </desc>
|
---|
4691 | </attribute>
|
---|
4692 |
|
---|
4693 | <attribute name="ioCacheEnabled" type="boolean">
|
---|
4694 | <desc>
|
---|
4695 | When set to @a true, the builtin I/O cache of the virtual machine
|
---|
4696 | will be enabled.
|
---|
4697 | </desc>
|
---|
4698 | </attribute>
|
---|
4699 |
|
---|
4700 | <attribute name="ioCacheSize" type="unsigned long">
|
---|
4701 | <desc>
|
---|
4702 | Maximum size of the I/O cache in MB.
|
---|
4703 | </desc>
|
---|
4704 | </attribute>
|
---|
4705 |
|
---|
4706 | <attribute name="ioBandwidthMax" type="unsigned long">
|
---|
4707 | <desc>
|
---|
4708 | The maximum number of MB the VM is allowed to transfer per second.
|
---|
4709 | 0 means unlimited bandwidth.
|
---|
4710 | </desc>
|
---|
4711 | </attribute>
|
---|
4712 |
|
---|
4713 | <method name="setBootOrder">
|
---|
4714 | <desc>
|
---|
4715 | Puts the given device to the specified position in
|
---|
4716 | the boot order.
|
---|
4717 |
|
---|
4718 | To indicate that no device is associated with the given position,
|
---|
4719 | <link to="DeviceType_Null"/> should be used.
|
---|
4720 |
|
---|
4721 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4722 |
|
---|
4723 | <result name="E_INVALIDARG">
|
---|
4724 | Boot @a position out of range.
|
---|
4725 | </result>
|
---|
4726 | <result name="E_NOTIMPL">
|
---|
4727 | Booting from USB @a device currently not supported.
|
---|
4728 | </result>
|
---|
4729 |
|
---|
4730 | </desc>
|
---|
4731 | <param name="position" type="unsigned long" dir="in">
|
---|
4732 | <desc>
|
---|
4733 | Position in the boot order (@c 1 to the total number of
|
---|
4734 | devices the machine can boot from, as returned by
|
---|
4735 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4736 | </desc>
|
---|
4737 | </param>
|
---|
4738 | <param name="device" type="DeviceType" dir="in">
|
---|
4739 | <desc>
|
---|
4740 | The type of the device used to boot at the given position.
|
---|
4741 | </desc>
|
---|
4742 | </param>
|
---|
4743 | </method>
|
---|
4744 |
|
---|
4745 | <method name="getBootOrder" const="yes">
|
---|
4746 | <desc>
|
---|
4747 | Returns the device type that occupies the specified
|
---|
4748 | position in the boot order.
|
---|
4749 |
|
---|
4750 | @todo [remove?]
|
---|
4751 | If the machine can have more than one device of the returned type
|
---|
4752 | (such as hard disks), then a separate method should be used to
|
---|
4753 | retrieve the individual device that occupies the given position.
|
---|
4754 |
|
---|
4755 | If here are no devices at the given position, then
|
---|
4756 | <link to="DeviceType_Null"/> is returned.
|
---|
4757 |
|
---|
4758 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4759 |
|
---|
4760 | <result name="E_INVALIDARG">
|
---|
4761 | Boot @a position out of range.
|
---|
4762 | </result>
|
---|
4763 |
|
---|
4764 | </desc>
|
---|
4765 | <param name="position" type="unsigned long" dir="in">
|
---|
4766 | <desc>
|
---|
4767 | Position in the boot order (@c 1 to the total number of
|
---|
4768 | devices the machine can boot from, as returned by
|
---|
4769 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4770 | </desc>
|
---|
4771 | </param>
|
---|
4772 | <param name="device" type="DeviceType" dir="return">
|
---|
4773 | <desc>
|
---|
4774 | Device at the given position.
|
---|
4775 | </desc>
|
---|
4776 | </param>
|
---|
4777 | </method>
|
---|
4778 |
|
---|
4779 | <method name="attachDevice">
|
---|
4780 | <desc>
|
---|
4781 | Attaches a device and optionally mounts a medium to the given storage
|
---|
4782 | controller (<link to="IStorageController" />, identified by @a name),
|
---|
4783 | at the indicated port and device.
|
---|
4784 |
|
---|
4785 | This method is intended for managing storage devices in general (it works
|
---|
4786 | for both fixed and removable media). For storage devices supporting removable
|
---|
4787 | media (such as DVDs and floppies), you can also use <link to="IMedium::mountMedium"/>
|
---|
4788 | for changing the media while the machine is running.
|
---|
4789 |
|
---|
4790 | For the IDE bus, the @a controllerPort parameter can be either
|
---|
4791 | @c 0 or @c 1, to specify the primary or secondary IDE controller,
|
---|
4792 | respectively. For each of these, @a device can then be either @c 0 or @c 1,
|
---|
4793 | to specify the master or the slave device, respectively. (In the
|
---|
4794 | default configuration of virtual machines, the secondary master is
|
---|
4795 | used for a CD/DVD drive.)
|
---|
4796 |
|
---|
4797 | For an SATA controller, @a controllerPort must be a number ranging
|
---|
4798 | from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
|
---|
4799 | be a number ranging from @c 0 to @c 15.
|
---|
4800 |
|
---|
4801 | For both SCSI and SATA, the @a device parameter is unused and must
|
---|
4802 | be @c 0.
|
---|
4803 |
|
---|
4804 | For fixed media such as hard disks, the given medium identifier cannot
|
---|
4805 | be a zero UUID. It may be a zero UUID for removable media such as DVDs
|
---|
4806 | and floppies.
|
---|
4807 |
|
---|
4808 | After calling this returns successfully, a new instance of
|
---|
4809 | <link to="IMediumAttachment"/> will appear in the machine's list of medium
|
---|
4810 | attachments (<link to="IMachine::mediumAttachments"/>).
|
---|
4811 |
|
---|
4812 | The specified device slot must not have a device attached to it,
|
---|
4813 | or this method will fail.
|
---|
4814 |
|
---|
4815 | See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
|
---|
4816 | information about attaching media.
|
---|
4817 |
|
---|
4818 | <note>
|
---|
4819 | You cannot attach a device to a running machine. Also, you cannot
|
---|
4820 | attach a device to a newly created machine until this machine's
|
---|
4821 | settings are saved to disk using <link to="#saveSettings"/>.
|
---|
4822 | </note>
|
---|
4823 | <note>
|
---|
4824 | If the medium is being attached indirectly, a new differencing medium
|
---|
4825 | will implicitly be created for it and attached instead. If the
|
---|
4826 | changes made to the machine settings (including this indirect
|
---|
4827 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4828 | this implicitly created differencing medium will implicitly
|
---|
4829 | be deleted.
|
---|
4830 | </note>
|
---|
4831 |
|
---|
4832 | <result name="E_INVALIDARG">
|
---|
4833 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4834 | </result>
|
---|
4835 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4836 | Attempt to attach medium to an unregistered virtual machine.
|
---|
4837 | </result>
|
---|
4838 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4839 | Invalid machine state.
|
---|
4840 | </result>
|
---|
4841 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4842 | Hard disk already attached to this or another virtual machine.
|
---|
4843 | </result>
|
---|
4844 |
|
---|
4845 | </desc>
|
---|
4846 | <param name="name" type="wstring" dir="in">
|
---|
4847 | <desc>Name of the storage controller to attach the device to.</desc>
|
---|
4848 | </param>
|
---|
4849 | <param name="controllerPort" type="long" dir="in">
|
---|
4850 | <desc>Port to attach the device to.</desc>
|
---|
4851 | </param>
|
---|
4852 | <param name="device" type="long" dir="in">
|
---|
4853 | <desc>Device slot in the given port to attach the device to.</desc>
|
---|
4854 | </param>
|
---|
4855 | <param name="type" type="DeviceType" dir="in">
|
---|
4856 | <desc>Device type of the attached device.</desc>
|
---|
4857 | </param>
|
---|
4858 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
4859 | <desc>UUID of the medium to mount. Zero UUID means do not mount any
|
---|
4860 | medium.</desc>
|
---|
4861 | </param>
|
---|
4862 | </method>
|
---|
4863 |
|
---|
4864 | <method name="detachDevice">
|
---|
4865 | <desc>
|
---|
4866 | Detaches the device attached to a device slot of the specified bus.
|
---|
4867 |
|
---|
4868 | Detaching the device from the virtual machine is deferred. This means
|
---|
4869 | that the medium remains associated with the machine when this method
|
---|
4870 | returns and gets actually de-associated only after a successful
|
---|
4871 | <link to="#saveSettings"/> call. See <link to="IMedium"/>
|
---|
4872 | for more detailed information about attaching media.
|
---|
4873 |
|
---|
4874 | <note>
|
---|
4875 | You cannot detach a device from a running machine.
|
---|
4876 | </note>
|
---|
4877 | <note>
|
---|
4878 | Detaching differencing media implicitly created by <link
|
---|
4879 | to="#attachDevice"/> for the indirect attachment using this
|
---|
4880 | method will <b>not</b> implicitly delete them. The
|
---|
4881 | <link to="IMedium::deleteStorage"/> operation should be
|
---|
4882 | explicitly performed by the caller after the medium is successfully
|
---|
4883 | detached and the settings are saved with
|
---|
4884 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4885 | </note>
|
---|
4886 |
|
---|
4887 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4888 | Attempt to detach medium from a running virtual machine.
|
---|
4889 | </result>
|
---|
4890 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4891 | No medium attached to given slot/bus.
|
---|
4892 | </result>
|
---|
4893 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4894 | Medium format does not support storage deletion.
|
---|
4895 | </result>
|
---|
4896 |
|
---|
4897 | </desc>
|
---|
4898 | <param name="name" type="wstring" dir="in">
|
---|
4899 | <desc>Name of the storage controller to detach the medium from.</desc>
|
---|
4900 | </param>
|
---|
4901 | <param name="controllerPort" type="long" dir="in">
|
---|
4902 | <desc>Port number to detach the medium from.</desc>
|
---|
4903 | </param>
|
---|
4904 | <param name="device" type="long" dir="in">
|
---|
4905 | <desc>Device slot number to detach the medium from.</desc>
|
---|
4906 | </param>
|
---|
4907 | </method>
|
---|
4908 |
|
---|
4909 | <method name="passthroughDevice">
|
---|
4910 | <desc>
|
---|
4911 | Sets the passthrough mode of an existing DVD device. Changing the
|
---|
4912 | setting while the VM is running is forbidden. The setting is only used
|
---|
4913 | if at VM start the device is configured as a host DVD drive, in all
|
---|
4914 | other cases it is ignored. The device must already exist; see
|
---|
4915 | <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4916 |
|
---|
4917 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4918 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4919 |
|
---|
4920 | <result name="E_INVALIDARG">
|
---|
4921 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4922 | </result>
|
---|
4923 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4924 | Attempt to modify an unregistered virtual machine.
|
---|
4925 | </result>
|
---|
4926 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4927 | Invalid machine state.
|
---|
4928 | </result>
|
---|
4929 |
|
---|
4930 | </desc>
|
---|
4931 | <param name="name" type="wstring" dir="in">
|
---|
4932 | <desc>Name of the storage controller.</desc>
|
---|
4933 | </param>
|
---|
4934 | <param name="controllerPort" type="long" dir="in">
|
---|
4935 | <desc>Storage controller port.</desc>
|
---|
4936 | </param>
|
---|
4937 | <param name="device" type="long" dir="in">
|
---|
4938 | <desc>Device slot in the given port.</desc>
|
---|
4939 | </param>
|
---|
4940 | <param name="passthrough" type="boolean" dir="in">
|
---|
4941 | <desc>New value for the passthrough setting.</desc>
|
---|
4942 | </param>
|
---|
4943 | </method>
|
---|
4944 |
|
---|
4945 | <method name="mountMedium">
|
---|
4946 | <desc>
|
---|
4947 | Mounts a medium (<link to="IMedium" />, identified
|
---|
4948 | by the given UUID @a id) to the given storage controller
|
---|
4949 | (<link to="IStorageController" />, identified by @a name),
|
---|
4950 | at the indicated port and device. The device must already exist;
|
---|
4951 | see <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4952 |
|
---|
4953 | This method is intended only for managing removable media, where the
|
---|
4954 | device is fixed but media is changeable at runtime (such as DVDs
|
---|
4955 | and floppies). It cannot be used for fixed media such as hard disks.
|
---|
4956 |
|
---|
4957 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4958 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4959 |
|
---|
4960 | The specified device slot can have a medium mounted, which will be
|
---|
4961 | unmounted first. Specifying a zero UUID (or an empty string) for
|
---|
4962 | @a medium does just an unmount.
|
---|
4963 |
|
---|
4964 | See <link to="IMedium"/> for more detailed information about
|
---|
4965 | attaching media.
|
---|
4966 |
|
---|
4967 | <result name="E_INVALIDARG">
|
---|
4968 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4969 | </result>
|
---|
4970 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4971 | Attempt to attach medium to an unregistered virtual machine.
|
---|
4972 | </result>
|
---|
4973 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4974 | Invalid machine state.
|
---|
4975 | </result>
|
---|
4976 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4977 | Medium already attached to this or another virtual machine.
|
---|
4978 | </result>
|
---|
4979 |
|
---|
4980 | </desc>
|
---|
4981 | <param name="name" type="wstring" dir="in">
|
---|
4982 | <desc>Name of the storage controller to attach the medium to.</desc>
|
---|
4983 | </param>
|
---|
4984 | <param name="controllerPort" type="long" dir="in">
|
---|
4985 | <desc>Port to attach the medium to.</desc>
|
---|
4986 | </param>
|
---|
4987 | <param name="device" type="long" dir="in">
|
---|
4988 | <desc>Device slot in the given port to attach the medium to.</desc>
|
---|
4989 | </param>
|
---|
4990 | <param name="medium" type="uuid" mod="string" dir="in">
|
---|
4991 | <desc>UUID of the medium to attach. A zero UUID means unmount the
|
---|
4992 | currently mounted medium.</desc>
|
---|
4993 | </param>
|
---|
4994 | <param name="force" type="boolean" dir="in">
|
---|
4995 | <desc>Allows to force unmount/mount of a medium which is locked by
|
---|
4996 | theDevice slot in the given port to attach the medium to.</desc>
|
---|
4997 | </param>
|
---|
4998 | </method>
|
---|
4999 |
|
---|
5000 | <method name="getMedium" const="yes">
|
---|
5001 | <desc>
|
---|
5002 | Returns the virtual medium attached to a device slot of the specified
|
---|
5003 | bus.
|
---|
5004 |
|
---|
5005 | Note that if the medium was indirectly attached by
|
---|
5006 | <link to="#mountMedium"/> to the given device slot then this
|
---|
5007 | method will return not the same object as passed to the
|
---|
5008 | <link to="#mountMedium"/> call. See <link to="IMedium"/> for
|
---|
5009 | more detailed information about mounting a medium.
|
---|
5010 |
|
---|
5011 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5012 | No medium attached to given slot/bus.
|
---|
5013 | </result>
|
---|
5014 |
|
---|
5015 | </desc>
|
---|
5016 | <param name="name" type="wstring" dir="in">
|
---|
5017 | <desc>Name of the storage controller the medium is attached to.</desc>
|
---|
5018 | </param>
|
---|
5019 | <param name="controllerPort" type="long" dir="in">
|
---|
5020 | <desc>Port to query.</desc>
|
---|
5021 | </param>
|
---|
5022 | <param name="device" type="long" dir="in">
|
---|
5023 | <desc>Device slot in the given port to query.</desc>
|
---|
5024 | </param>
|
---|
5025 | <param name="medium" type="IMedium" dir="return">
|
---|
5026 | <desc>Attached medium object.</desc>
|
---|
5027 | </param>
|
---|
5028 | </method>
|
---|
5029 |
|
---|
5030 | <method name="getMediumAttachmentsOfController" const="yes">
|
---|
5031 | <desc>
|
---|
5032 | Returns an array of medium attachments which are attached to the
|
---|
5033 | the controller with the given name.
|
---|
5034 |
|
---|
5035 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5036 | A storage controller with given name doesn't exist.
|
---|
5037 | </result>
|
---|
5038 | </desc>
|
---|
5039 | <param name="name" type="wstring" dir="in"/>
|
---|
5040 | <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
|
---|
5041 | </method>
|
---|
5042 |
|
---|
5043 | <method name="getMediumAttachment" const="yes">
|
---|
5044 | <desc>
|
---|
5045 | Returns a medium attachment which corresponds to the controller with
|
---|
5046 | the given name, on the given port and device slot.
|
---|
5047 |
|
---|
5048 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5049 | No attachment exists for the given controller/port/device combination.
|
---|
5050 | </result>
|
---|
5051 | </desc>
|
---|
5052 | <param name="name" type="wstring" dir="in"/>
|
---|
5053 | <param name="controllerPort" type="long" dir="in"/>
|
---|
5054 | <param name="device" type="long" dir="in"/>
|
---|
5055 | <param name="attachment" type="IMediumAttachment" dir="return"/>
|
---|
5056 | </method>
|
---|
5057 |
|
---|
5058 | <method name="getNetworkAdapter" const="yes">
|
---|
5059 | <desc>
|
---|
5060 | Returns the network adapter associated with the given slot.
|
---|
5061 | Slots are numbered sequentially, starting with zero. The total
|
---|
5062 | number of adapters per machine is defined by the
|
---|
5063 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
5064 | so the maximum slot number is one less than that property's value.
|
---|
5065 |
|
---|
5066 | <result name="E_INVALIDARG">
|
---|
5067 | Invalid @a slot number.
|
---|
5068 | </result>
|
---|
5069 |
|
---|
5070 | </desc>
|
---|
5071 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5072 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
5073 | </method>
|
---|
5074 |
|
---|
5075 | <method name="addStorageController">
|
---|
5076 | <desc>
|
---|
5077 | Adds a new storage controller (SCSI or SATA controller) to the
|
---|
5078 | machine and returns it as an instance of
|
---|
5079 | <link to="IStorageController" />.
|
---|
5080 |
|
---|
5081 | @a name identifies the controller for subsequent calls such as
|
---|
5082 | <link to="#getStorageControllerByName" />,
|
---|
5083 | <link to="#getStorageControllerByInstance" />,
|
---|
5084 | <link to="#removeStorageController" />,
|
---|
5085 | <link to="#attachDevice" /> or <link to="#mountMedium" />.
|
---|
5086 |
|
---|
5087 | After the controller has been added, you can set its exact
|
---|
5088 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
5089 |
|
---|
5090 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5091 | A storage controller with given name exists already.
|
---|
5092 | </result>
|
---|
5093 | <result name="E_INVALIDARG">
|
---|
5094 | Invalid @a controllerType.
|
---|
5095 | </result>
|
---|
5096 | </desc>
|
---|
5097 | <param name="name" type="wstring" dir="in"/>
|
---|
5098 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
5099 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
5100 | </method>
|
---|
5101 |
|
---|
5102 | <method name="getStorageControllerByName" const="yes">
|
---|
5103 | <desc>
|
---|
5104 | Returns a storage controller with the given name.
|
---|
5105 |
|
---|
5106 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5107 | A storage controller with given name doesn't exist.
|
---|
5108 | </result>
|
---|
5109 | </desc>
|
---|
5110 | <param name="name" type="wstring" dir="in"/>
|
---|
5111 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
5112 | </method>
|
---|
5113 |
|
---|
5114 | <method name="getStorageControllerByInstance" const="yes">
|
---|
5115 | <desc>
|
---|
5116 | Returns a storage controller with the given instance number.
|
---|
5117 |
|
---|
5118 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5119 | A storage controller with given instance number doesn't exist.
|
---|
5120 | </result>
|
---|
5121 | </desc>
|
---|
5122 | <param name="instance" type="unsigned long" dir="in"/>
|
---|
5123 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
5124 | </method>
|
---|
5125 |
|
---|
5126 | <method name="removeStorageController">
|
---|
5127 | <desc>
|
---|
5128 | Removes a storage controller from the machine.
|
---|
5129 |
|
---|
5130 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5131 | A storage controller with given name doesn't exist.
|
---|
5132 | </result>
|
---|
5133 | </desc>
|
---|
5134 | <param name="name" type="wstring" dir="in"/>
|
---|
5135 | </method>
|
---|
5136 |
|
---|
5137 | <method name="getSerialPort" const="yes">
|
---|
5138 | <desc>
|
---|
5139 | Returns the serial port associated with the given slot.
|
---|
5140 | Slots are numbered sequentially, starting with zero. The total
|
---|
5141 | number of serial ports per machine is defined by the
|
---|
5142 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
5143 | so the maximum slot number is one less than that property's value.
|
---|
5144 |
|
---|
5145 | <result name="E_INVALIDARG">
|
---|
5146 | Invalid @a slot number.
|
---|
5147 | </result>
|
---|
5148 |
|
---|
5149 | </desc>
|
---|
5150 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5151 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
5152 | </method>
|
---|
5153 |
|
---|
5154 | <method name="getParallelPort" const="yes">
|
---|
5155 | <desc>
|
---|
5156 | Returns the parallel port associated with the given slot.
|
---|
5157 | Slots are numbered sequentially, starting with zero. The total
|
---|
5158 | number of parallel ports per machine is defined by the
|
---|
5159 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
5160 | so the maximum slot number is one less than that property's value.
|
---|
5161 |
|
---|
5162 | <result name="E_INVALIDARG">
|
---|
5163 | Invalid @a slot number.
|
---|
5164 | </result>
|
---|
5165 |
|
---|
5166 | </desc>
|
---|
5167 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5168 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
5169 | </method>
|
---|
5170 |
|
---|
5171 | <method name="getExtraDataKeys">
|
---|
5172 | <desc>
|
---|
5173 | Returns an array representing the machine-specific extra data keys
|
---|
5174 | which currently have values defined.
|
---|
5175 | </desc>
|
---|
5176 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
5177 | <desc>Array of extra data keys.</desc>
|
---|
5178 | </param>
|
---|
5179 | </method>
|
---|
5180 |
|
---|
5181 | <method name="getExtraData">
|
---|
5182 | <desc>
|
---|
5183 | Returns associated machine-specific extra data.
|
---|
5184 |
|
---|
5185 | If the requested data @a key does not exist, this function will
|
---|
5186 | succeed and return an empty string in the @a value argument.
|
---|
5187 |
|
---|
5188 | <result name="VBOX_E_FILE_ERROR">
|
---|
5189 | Settings file not accessible.
|
---|
5190 | </result>
|
---|
5191 | <result name="VBOX_E_XML_ERROR">
|
---|
5192 | Could not parse the settings file.
|
---|
5193 | </result>
|
---|
5194 |
|
---|
5195 | </desc>
|
---|
5196 | <param name="key" type="wstring" dir="in">
|
---|
5197 | <desc>Name of the data key to get.</desc>
|
---|
5198 | </param>
|
---|
5199 | <param name="value" type="wstring" dir="return">
|
---|
5200 | <desc>Value of the requested data key.</desc>
|
---|
5201 | </param>
|
---|
5202 | </method>
|
---|
5203 |
|
---|
5204 | <method name="setExtraData">
|
---|
5205 | <desc>
|
---|
5206 | Sets associated machine-specific extra data.
|
---|
5207 |
|
---|
5208 | If you pass @c null or an empty string as a key @a value, the given
|
---|
5209 | @a key will be deleted.
|
---|
5210 |
|
---|
5211 | <note>
|
---|
5212 | Before performing the actual data change, this method will ask all
|
---|
5213 | registered callbacks using the
|
---|
5214 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
5215 | notification for a permission. If one of the callbacks refuses the
|
---|
5216 | new value, the change will not be performed.
|
---|
5217 | </note>
|
---|
5218 | <note>
|
---|
5219 | On success, the
|
---|
5220 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
5221 | is called to inform all registered callbacks about a successful data
|
---|
5222 | change.
|
---|
5223 | </note>
|
---|
5224 | <note>
|
---|
5225 | This method can be called outside the machine session and therefore
|
---|
5226 | it's a caller's responsibility to handle possible race conditions
|
---|
5227 | when several clients change the same key at the same time.
|
---|
5228 | </note>
|
---|
5229 |
|
---|
5230 | <result name="VBOX_E_FILE_ERROR">
|
---|
5231 | Settings file not accessible.
|
---|
5232 | </result>
|
---|
5233 | <result name="VBOX_E_XML_ERROR">
|
---|
5234 | Could not parse the settings file.
|
---|
5235 | </result>
|
---|
5236 |
|
---|
5237 | </desc>
|
---|
5238 | <param name="key" type="wstring" dir="in">
|
---|
5239 | <desc>Name of the data key to set.</desc>
|
---|
5240 | </param>
|
---|
5241 | <param name="value" type="wstring" dir="in">
|
---|
5242 | <desc>Value to assign to the key.</desc>
|
---|
5243 | </param>
|
---|
5244 | </method>
|
---|
5245 |
|
---|
5246 | <method name="getCPUProperty" const="yes">
|
---|
5247 | <desc>
|
---|
5248 | Returns the virtual CPU boolean value of the specified property.
|
---|
5249 |
|
---|
5250 | <result name="E_INVALIDARG">
|
---|
5251 | Invalid property.
|
---|
5252 | </result>
|
---|
5253 |
|
---|
5254 | </desc>
|
---|
5255 | <param name="property" type="CPUPropertyType" dir="in">
|
---|
5256 | <desc>
|
---|
5257 | Property type to query.
|
---|
5258 | </desc>
|
---|
5259 | </param>
|
---|
5260 | <param name="value" type="boolean" dir="return">
|
---|
5261 | <desc>
|
---|
5262 | Property value.
|
---|
5263 | </desc>
|
---|
5264 | </param>
|
---|
5265 | </method>
|
---|
5266 |
|
---|
5267 | <method name="setCPUProperty">
|
---|
5268 | <desc>
|
---|
5269 | Sets the virtual CPU boolean value of the specified property.
|
---|
5270 |
|
---|
5271 | <result name="E_INVALIDARG">
|
---|
5272 | Invalid property.
|
---|
5273 | </result>
|
---|
5274 |
|
---|
5275 | </desc>
|
---|
5276 | <param name="property" type="CPUPropertyType" dir="in">
|
---|
5277 | <desc>
|
---|
5278 | Property type to query.
|
---|
5279 | </desc>
|
---|
5280 | </param>
|
---|
5281 | <param name="value" type="boolean" dir="in">
|
---|
5282 | <desc>
|
---|
5283 | Property value.
|
---|
5284 | </desc>
|
---|
5285 | </param>
|
---|
5286 | </method>
|
---|
5287 |
|
---|
5288 | <method name="getCPUIDLeaf" const="yes">
|
---|
5289 | <desc>
|
---|
5290 | Returns the virtual CPU cpuid information for the specified leaf.
|
---|
5291 |
|
---|
5292 | Currently supported index values for cpuid:
|
---|
5293 | Standard CPUID leafs: 0 - 0xA
|
---|
5294 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5295 |
|
---|
5296 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5297 | about the cpuid instruction and its leafs.
|
---|
5298 | <result name="E_INVALIDARG">
|
---|
5299 | Invalid id.
|
---|
5300 | </result>
|
---|
5301 |
|
---|
5302 | </desc>
|
---|
5303 | <param name="id" type="unsigned long" dir="in">
|
---|
5304 | <desc>
|
---|
5305 | CPUID leaf index.
|
---|
5306 | </desc>
|
---|
5307 | </param>
|
---|
5308 | <param name="valEax" type="unsigned long" dir="out">
|
---|
5309 | <desc>
|
---|
5310 | CPUID leaf value for register eax.
|
---|
5311 | </desc>
|
---|
5312 | </param>
|
---|
5313 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
5314 | <desc>
|
---|
5315 | CPUID leaf value for register ebx.
|
---|
5316 | </desc>
|
---|
5317 | </param>
|
---|
5318 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
5319 | <desc>
|
---|
5320 | CPUID leaf value for register ecx.
|
---|
5321 | </desc>
|
---|
5322 | </param>
|
---|
5323 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
5324 | <desc>
|
---|
5325 | CPUID leaf value for register edx.
|
---|
5326 | </desc>
|
---|
5327 | </param>
|
---|
5328 | </method>
|
---|
5329 |
|
---|
5330 | <method name="setCPUIDLeaf" const="yes">
|
---|
5331 | <desc>
|
---|
5332 | Sets the virtual CPU cpuid information for the specified leaf. Note that these values
|
---|
5333 | are not passed unmodified. VirtualBox clears features that it doesn't support.
|
---|
5334 |
|
---|
5335 | Currently supported index values for cpuid:
|
---|
5336 | Standard CPUID leafs: 0 - 0xA
|
---|
5337 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5338 |
|
---|
5339 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5340 | about the cpuid instruction and its leafs.
|
---|
5341 |
|
---|
5342 | Do not use this method unless you know exactly what you're doing. Misuse can lead to
|
---|
5343 | random crashes inside VMs.
|
---|
5344 | <result name="E_INVALIDARG">
|
---|
5345 | Invalid id.
|
---|
5346 | </result>
|
---|
5347 |
|
---|
5348 | </desc>
|
---|
5349 | <param name="id" type="unsigned long" dir="in">
|
---|
5350 | <desc>
|
---|
5351 | CPUID leaf index.
|
---|
5352 | </desc>
|
---|
5353 | </param>
|
---|
5354 | <param name="valEax" type="unsigned long" dir="in">
|
---|
5355 | <desc>
|
---|
5356 | CPUID leaf value for register eax.
|
---|
5357 | </desc>
|
---|
5358 | </param>
|
---|
5359 | <param name="valEbx" type="unsigned long" dir="in">
|
---|
5360 | <desc>
|
---|
5361 | CPUID leaf value for register ebx.
|
---|
5362 | </desc>
|
---|
5363 | </param>
|
---|
5364 | <param name="valEcx" type="unsigned long" dir="in">
|
---|
5365 | <desc>
|
---|
5366 | CPUID leaf value for register ecx.
|
---|
5367 | </desc>
|
---|
5368 | </param>
|
---|
5369 | <param name="valEdx" type="unsigned long" dir="in">
|
---|
5370 | <desc>
|
---|
5371 | CPUID leaf value for register edx.
|
---|
5372 | </desc>
|
---|
5373 | </param>
|
---|
5374 | </method>
|
---|
5375 |
|
---|
5376 | <method name="removeCPUIDLeaf" const="yes">
|
---|
5377 | <desc>
|
---|
5378 | Removes the virtual CPU cpuid leaf for the specified index
|
---|
5379 |
|
---|
5380 | <result name="E_INVALIDARG">
|
---|
5381 | Invalid id.
|
---|
5382 | </result>
|
---|
5383 |
|
---|
5384 | </desc>
|
---|
5385 | <param name="id" type="unsigned long" dir="in">
|
---|
5386 | <desc>
|
---|
5387 | CPUID leaf index.
|
---|
5388 | </desc>
|
---|
5389 | </param>
|
---|
5390 | </method>
|
---|
5391 |
|
---|
5392 | <method name="removeAllCPUIDLeaves" const="yes">
|
---|
5393 | <desc>
|
---|
5394 | Removes all the virtual CPU cpuid leaves
|
---|
5395 | </desc>
|
---|
5396 | </method>
|
---|
5397 |
|
---|
5398 | <method name="getHWVirtExProperty" const="yes">
|
---|
5399 | <desc>
|
---|
5400 | Returns the value of the specified hardware virtualization boolean property.
|
---|
5401 |
|
---|
5402 | <result name="E_INVALIDARG">
|
---|
5403 | Invalid property.
|
---|
5404 | </result>
|
---|
5405 |
|
---|
5406 | </desc>
|
---|
5407 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5408 | <desc>
|
---|
5409 | Property type to query.
|
---|
5410 | </desc>
|
---|
5411 | </param>
|
---|
5412 | <param name="value" type="boolean" dir="return">
|
---|
5413 | <desc>
|
---|
5414 | Property value.
|
---|
5415 | </desc>
|
---|
5416 | </param>
|
---|
5417 | </method>
|
---|
5418 |
|
---|
5419 | <method name="setHWVirtExProperty">
|
---|
5420 | <desc>
|
---|
5421 | Sets a new value for the specified hardware virtualization boolean property.
|
---|
5422 |
|
---|
5423 | <result name="E_INVALIDARG">
|
---|
5424 | Invalid property.
|
---|
5425 | </result>
|
---|
5426 |
|
---|
5427 | </desc>
|
---|
5428 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5429 | <desc>
|
---|
5430 | Property type to set.
|
---|
5431 | </desc>
|
---|
5432 | </param>
|
---|
5433 | <param name="value" type="boolean" dir="in">
|
---|
5434 | <desc>
|
---|
5435 | New property value.
|
---|
5436 | </desc>
|
---|
5437 | </param>
|
---|
5438 | </method>
|
---|
5439 |
|
---|
5440 | <method name="saveSettings">
|
---|
5441 | <desc>
|
---|
5442 | Saves any changes to machine settings made since the session
|
---|
5443 | has been opened or a new machine has been created, or since the
|
---|
5444 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
5445 | For registered machines, new settings become visible to all
|
---|
5446 | other VirtualBox clients after successful invocation of this
|
---|
5447 | method.
|
---|
5448 | <note>
|
---|
5449 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
5450 | notification event after the configuration has been successfully
|
---|
5451 | saved (only for registered machines).
|
---|
5452 | </note>
|
---|
5453 | <note>
|
---|
5454 | Calling this method is only valid on instances returned
|
---|
5455 | by <link to="ISession::machine"/> and on new machines
|
---|
5456 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
5457 | yet registered, or on unregistered machines after calling
|
---|
5458 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5459 | </note>
|
---|
5460 |
|
---|
5461 | <result name="VBOX_E_FILE_ERROR">
|
---|
5462 | Settings file not accessible.
|
---|
5463 | </result>
|
---|
5464 | <result name="VBOX_E_XML_ERROR">
|
---|
5465 | Could not parse the settings file.
|
---|
5466 | </result>
|
---|
5467 | <result name="E_ACCESSDENIED">
|
---|
5468 | Modification request refused.
|
---|
5469 | </result>
|
---|
5470 |
|
---|
5471 | </desc>
|
---|
5472 | </method>
|
---|
5473 |
|
---|
5474 | <method name="discardSettings">
|
---|
5475 | <desc>
|
---|
5476 | Discards any changes to the machine settings made since the session
|
---|
5477 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
5478 | or <link to="#discardSettings"/>.
|
---|
5479 | <note>
|
---|
5480 | Calling this method is only valid on instances returned
|
---|
5481 | by <link to="ISession::machine"/> and on new machines
|
---|
5482 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5483 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5484 | yet registered, or on unregistered machines after calling
|
---|
5485 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5486 | </note>
|
---|
5487 |
|
---|
5488 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5489 | Virtual machine is not mutable.
|
---|
5490 | </result>
|
---|
5491 |
|
---|
5492 | </desc>
|
---|
5493 | </method>
|
---|
5494 |
|
---|
5495 | <method name="deleteSettings">
|
---|
5496 | <desc>
|
---|
5497 | Deletes the settings file of this machine from disk.
|
---|
5498 | The machine must not be registered in order for this operation
|
---|
5499 | to succeed.
|
---|
5500 | <note>
|
---|
5501 | <link to="#settingsModified"/> will return @c true after this
|
---|
5502 | method successfully returns.
|
---|
5503 | </note>
|
---|
5504 | <note>
|
---|
5505 | Calling this method is only valid on instances returned
|
---|
5506 | by <link to="ISession::machine"/> and on new machines
|
---|
5507 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5508 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5509 | yet registered, or on unregistered machines after calling
|
---|
5510 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5511 | </note>
|
---|
5512 | <note>
|
---|
5513 | The deleted machine settings file can be restored (saved again)
|
---|
5514 | by calling <link to="#saveSettings"/>.
|
---|
5515 | </note>
|
---|
5516 |
|
---|
5517 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5518 | Cannot delete settings of a registered machine or
|
---|
5519 | machine not mutable.
|
---|
5520 | </result>
|
---|
5521 | <result name="VBOX_E_IPRT_ERROR">
|
---|
5522 | Could not delete the settings file.
|
---|
5523 | </result>
|
---|
5524 |
|
---|
5525 | </desc>
|
---|
5526 | </method>
|
---|
5527 |
|
---|
5528 | <method name="export">
|
---|
5529 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
5530 | steps required to export VirtualBox machines to OVF.
|
---|
5531 | </desc>
|
---|
5532 |
|
---|
5533 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
5534 | <desc>Appliance to export this machine to.</desc>
|
---|
5535 | </param>
|
---|
5536 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
5537 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
5538 | </param>
|
---|
5539 | </method >
|
---|
5540 |
|
---|
5541 | <method name="getSnapshot">
|
---|
5542 | <desc>
|
---|
5543 | Returns a snapshot of this machine with the given UUID.
|
---|
5544 | A @c null UUID can be used to obtain the first snapshot
|
---|
5545 | taken on this machine. This is useful if you want to traverse
|
---|
5546 | the whole tree of snapshots starting from the root.
|
---|
5547 |
|
---|
5548 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5549 | Virtual machine has no snapshots or snapshot not found.
|
---|
5550 | </result>
|
---|
5551 |
|
---|
5552 | </desc>
|
---|
5553 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
5554 | <desc>UUID of the snapshot to get</desc>
|
---|
5555 | </param>
|
---|
5556 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5557 | <desc>Snapshot object with the given UUID.</desc>
|
---|
5558 | </param>
|
---|
5559 | </method>
|
---|
5560 |
|
---|
5561 | <method name="findSnapshot">
|
---|
5562 | <desc>
|
---|
5563 | Returns a snapshot of this machine with the given name.
|
---|
5564 |
|
---|
5565 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5566 | Virtual machine has no snapshots or snapshot not found.
|
---|
5567 | </result>
|
---|
5568 |
|
---|
5569 | </desc>
|
---|
5570 | <param name="name" type="wstring" dir="in">
|
---|
5571 | <desc>Name of the snapshot to find</desc>
|
---|
5572 | </param>
|
---|
5573 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5574 | <desc>Snapshot object with the given name.</desc>
|
---|
5575 | </param>
|
---|
5576 | </method>
|
---|
5577 |
|
---|
5578 | <method name="setCurrentSnapshot">
|
---|
5579 | <desc>
|
---|
5580 | Sets the current snapshot of this machine.
|
---|
5581 | <note>
|
---|
5582 | In the current implementation, this operation is not
|
---|
5583 | implemented.
|
---|
5584 | </note>
|
---|
5585 | </desc>
|
---|
5586 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
5587 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
5588 | </param>
|
---|
5589 | </method>
|
---|
5590 |
|
---|
5591 | <method name="createSharedFolder">
|
---|
5592 | <desc>
|
---|
5593 | Creates a new permanent shared folder by associating the given logical
|
---|
5594 | name with the given host path, adds it to the collection of shared
|
---|
5595 | folders and starts sharing it. Refer to the description of
|
---|
5596 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5597 |
|
---|
5598 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5599 | Shared folder already exists.
|
---|
5600 | </result>
|
---|
5601 | <result name="VBOX_E_FILE_ERROR">
|
---|
5602 | Shared folder @a hostPath not accessible.
|
---|
5603 | </result>
|
---|
5604 |
|
---|
5605 | </desc>
|
---|
5606 | <param name="name" type="wstring" dir="in">
|
---|
5607 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5608 | </param>
|
---|
5609 | <param name="hostPath" type="wstring" dir="in">
|
---|
5610 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5611 | </param>
|
---|
5612 | <param name="writable" type="boolean" dir="in">
|
---|
5613 | <desc>Whether the share is writable or readonly</desc>
|
---|
5614 | </param>
|
---|
5615 | </method>
|
---|
5616 |
|
---|
5617 | <method name="removeSharedFolder">
|
---|
5618 | <desc>
|
---|
5619 | Removes the permanent shared folder with the given name previously
|
---|
5620 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5621 | shared folders and stops sharing it.
|
---|
5622 |
|
---|
5623 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5624 | Virtual machine is not mutable.
|
---|
5625 | </result>
|
---|
5626 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5627 | Shared folder @a name does not exist.
|
---|
5628 | </result>
|
---|
5629 |
|
---|
5630 | </desc>
|
---|
5631 | <param name="name" type="wstring" dir="in">
|
---|
5632 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5633 | </param>
|
---|
5634 | </method>
|
---|
5635 |
|
---|
5636 | <method name="canShowConsoleWindow">
|
---|
5637 | <desc>
|
---|
5638 | Returns @c true if the VM console process can activate the
|
---|
5639 | console window and bring it to foreground on the desktop of
|
---|
5640 | the host PC.
|
---|
5641 | <note>
|
---|
5642 | This method will fail if a session for this machine is not
|
---|
5643 | currently open.
|
---|
5644 | </note>
|
---|
5645 |
|
---|
5646 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5647 | Machine session is not open.
|
---|
5648 | </result>
|
---|
5649 |
|
---|
5650 | </desc>
|
---|
5651 | <param name="canShow" type="boolean" dir="return">
|
---|
5652 | <desc>
|
---|
5653 | @c true if the console window can be shown and @c false otherwise.
|
---|
5654 | </desc>
|
---|
5655 | </param>
|
---|
5656 | </method>
|
---|
5657 |
|
---|
5658 | <method name="showConsoleWindow">
|
---|
5659 | <desc>
|
---|
5660 | Activates the console window and brings it to foreground on
|
---|
5661 | the desktop of the host PC. Many modern window managers on
|
---|
5662 | many platforms implement some sort of focus stealing
|
---|
5663 | prevention logic, so that it may be impossible to activate
|
---|
5664 | a window without the help of the currently active
|
---|
5665 | application. In this case, this method will return a non-zero
|
---|
5666 | identifier that represents the top-level window of the VM
|
---|
5667 | console process. The caller, if it represents a currently
|
---|
5668 | active process, is responsible to use this identifier (in a
|
---|
5669 | platform-dependent manner) to perform actual window
|
---|
5670 | activation.
|
---|
5671 | <note>
|
---|
5672 | This method will fail if a session for this machine is not
|
---|
5673 | currently open.
|
---|
5674 | </note>
|
---|
5675 |
|
---|
5676 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5677 | Machine session is not open.
|
---|
5678 | </result>
|
---|
5679 |
|
---|
5680 | </desc>
|
---|
5681 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5682 | <desc>
|
---|
5683 | Platform-dependent identifier of the top-level VM console
|
---|
5684 | window, or zero if this method has performed all actions
|
---|
5685 | necessary to implement the <i>show window</i> semantics for
|
---|
5686 | the given platform and/or VirtualBox front-end.
|
---|
5687 | </desc>
|
---|
5688 | </param>
|
---|
5689 | </method>
|
---|
5690 |
|
---|
5691 | <method name="getGuestProperty">
|
---|
5692 | <desc>
|
---|
5693 | Reads an entry from the machine's guest property store.
|
---|
5694 |
|
---|
5695 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5696 | Machine session is not open.
|
---|
5697 | </result>
|
---|
5698 |
|
---|
5699 | </desc>
|
---|
5700 | <param name="name" type="wstring" dir="in">
|
---|
5701 | <desc>
|
---|
5702 | The name of the property to read.
|
---|
5703 | </desc>
|
---|
5704 | </param>
|
---|
5705 | <param name="value" type="wstring" dir="out">
|
---|
5706 | <desc>
|
---|
5707 | The value of the property. If the property does not exist then this
|
---|
5708 | will be empty.
|
---|
5709 | </desc>
|
---|
5710 | </param>
|
---|
5711 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
5712 | <desc>
|
---|
5713 | The time at which the property was last modified, as seen by the
|
---|
5714 | server process.
|
---|
5715 | </desc>
|
---|
5716 | </param>
|
---|
5717 | <param name="flags" type="wstring" dir="out">
|
---|
5718 | <desc>
|
---|
5719 | Additional property parameters, passed as a comma-separated list of
|
---|
5720 | "name=value" type entries.
|
---|
5721 | </desc>
|
---|
5722 | </param>
|
---|
5723 | </method>
|
---|
5724 |
|
---|
5725 | <method name="getGuestPropertyValue">
|
---|
5726 | <desc>
|
---|
5727 | Reads a value from the machine's guest property store.
|
---|
5728 |
|
---|
5729 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5730 | Machine session is not open.
|
---|
5731 | </result>
|
---|
5732 |
|
---|
5733 | </desc>
|
---|
5734 | <param name="property" type="wstring" dir="in">
|
---|
5735 | <desc>
|
---|
5736 | The name of the property to read.
|
---|
5737 | </desc>
|
---|
5738 | </param>
|
---|
5739 | <param name="value" type="wstring" dir="return">
|
---|
5740 | <desc>
|
---|
5741 | The value of the property. If the property does not exist then this
|
---|
5742 | will be empty.
|
---|
5743 | </desc>
|
---|
5744 | </param>
|
---|
5745 | </method>
|
---|
5746 |
|
---|
5747 | <method name="getGuestPropertyTimestamp">
|
---|
5748 | <desc>
|
---|
5749 | Reads a property timestamp from the machine's guest property store.
|
---|
5750 |
|
---|
5751 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5752 | Machine session is not open.
|
---|
5753 | </result>
|
---|
5754 |
|
---|
5755 | </desc>
|
---|
5756 | <param name="property" type="wstring" dir="in">
|
---|
5757 | <desc>
|
---|
5758 | The name of the property to read.
|
---|
5759 | </desc>
|
---|
5760 | </param>
|
---|
5761 | <param name="value" type="unsigned long long" dir="return">
|
---|
5762 | <desc>
|
---|
5763 | The timestamp. If the property does not exist then this will be
|
---|
5764 | empty.
|
---|
5765 | </desc>
|
---|
5766 | </param>
|
---|
5767 | </method>
|
---|
5768 |
|
---|
5769 | <method name="setGuestProperty">
|
---|
5770 | <desc>
|
---|
5771 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5772 | store.
|
---|
5773 |
|
---|
5774 | <result name="E_ACCESSDENIED">
|
---|
5775 | Property cannot be changed.
|
---|
5776 | </result>
|
---|
5777 | <result name="E_INVALIDARG">
|
---|
5778 | Invalid @a flags.
|
---|
5779 | </result>
|
---|
5780 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5781 | Virtual machine is not mutable or session not open.
|
---|
5782 | </result>
|
---|
5783 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5784 | Cannot set transient property when machine not running.
|
---|
5785 | </result>
|
---|
5786 |
|
---|
5787 | </desc>
|
---|
5788 | <param name="property" type="wstring" dir="in">
|
---|
5789 | <desc>
|
---|
5790 | The name of the property to set, change or delete.
|
---|
5791 | </desc>
|
---|
5792 | </param>
|
---|
5793 | <param name="value" type="wstring" dir="in">
|
---|
5794 | <desc>
|
---|
5795 | The new value of the property to set, change or delete. If the
|
---|
5796 | property does not yet exist and value is non-empty, it will be
|
---|
5797 | created. If the value is @c null or empty, the property will be
|
---|
5798 | deleted if it exists.
|
---|
5799 | </desc>
|
---|
5800 | </param>
|
---|
5801 | <param name="flags" type="wstring" dir="in">
|
---|
5802 | <desc>
|
---|
5803 | Additional property parameters, passed as a comma-separated list of
|
---|
5804 | "name=value" type entries.
|
---|
5805 | </desc>
|
---|
5806 | </param>
|
---|
5807 | </method>
|
---|
5808 |
|
---|
5809 | <method name="setGuestPropertyValue">
|
---|
5810 | <desc>
|
---|
5811 | Sets, changes or deletes a value in the machine's guest property
|
---|
5812 | store. The flags field will be left unchanged or created empty for a
|
---|
5813 | new property.
|
---|
5814 |
|
---|
5815 | <result name="E_ACCESSDENIED">
|
---|
5816 | Property cannot be changed.
|
---|
5817 | </result>
|
---|
5818 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5819 | Virtual machine is not mutable or session not open.
|
---|
5820 | </result>
|
---|
5821 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5822 | Cannot set transient property when machine not running.
|
---|
5823 | </result>
|
---|
5824 | </desc>
|
---|
5825 |
|
---|
5826 | <param name="property" type="wstring" dir="in">
|
---|
5827 | <desc>
|
---|
5828 | The name of the property to set, change or delete.
|
---|
5829 | </desc>
|
---|
5830 | </param>
|
---|
5831 | <param name="value" type="wstring" dir="in">
|
---|
5832 | <desc>
|
---|
5833 | The new value of the property to set, change or delete. If the
|
---|
5834 | property does not yet exist and value is non-empty, it will be
|
---|
5835 | created. If the value is @c null or empty, the property will be
|
---|
5836 | deleted if it exists.
|
---|
5837 | </desc>
|
---|
5838 | </param>
|
---|
5839 | </method>
|
---|
5840 |
|
---|
5841 | <method name="enumerateGuestProperties">
|
---|
5842 | <desc>
|
---|
5843 | Return a list of the guest properties matching a set of patterns along
|
---|
5844 | with their values, time stamps and flags.
|
---|
5845 | </desc>
|
---|
5846 | <param name="patterns" type="wstring" dir="in">
|
---|
5847 | <desc>
|
---|
5848 | The patterns to match the properties against, separated by '|'
|
---|
5849 | characters. If this is empty or @c null, all properties will match.
|
---|
5850 | </desc>
|
---|
5851 | </param>
|
---|
5852 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5853 | <desc>
|
---|
5854 | The names of the properties returned.
|
---|
5855 | </desc>
|
---|
5856 | </param>
|
---|
5857 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5858 | <desc>
|
---|
5859 | The values of the properties returned. The array entries match the
|
---|
5860 | corresponding entries in the @a name array.
|
---|
5861 | </desc>
|
---|
5862 | </param>
|
---|
5863 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
5864 | <desc>
|
---|
5865 | The time stamps of the properties returned. The array entries match
|
---|
5866 | the corresponding entries in the @a name array.
|
---|
5867 | </desc>
|
---|
5868 | </param>
|
---|
5869 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5870 | <desc>
|
---|
5871 | The flags of the properties returned. The array entries match the
|
---|
5872 | corresponding entries in the @a name array.
|
---|
5873 | </desc>
|
---|
5874 | </param>
|
---|
5875 | </method>
|
---|
5876 |
|
---|
5877 | <method name="querySavedThumbnailSize">
|
---|
5878 | <desc>
|
---|
5879 | Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
|
---|
5880 | </desc>
|
---|
5881 | <param name="size" type="unsigned long" dir="out">
|
---|
5882 | <desc>
|
---|
5883 | Size of buffer required to store the bitmap.
|
---|
5884 | </desc>
|
---|
5885 | </param>
|
---|
5886 | <param name="width" type="unsigned long" dir="out">
|
---|
5887 | <desc>
|
---|
5888 | Bitmap width.
|
---|
5889 | </desc>
|
---|
5890 | </param>
|
---|
5891 | <param name="height" type="unsigned long" dir="out">
|
---|
5892 | <desc>
|
---|
5893 | Bitmap height.
|
---|
5894 | </desc>
|
---|
5895 | </param>
|
---|
5896 | </method>
|
---|
5897 |
|
---|
5898 | <method name="readSavedThumbnailToArray">
|
---|
5899 | <desc>
|
---|
5900 | Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
|
---|
5901 | </desc>
|
---|
5902 | <param name="BGR" type="boolean" dir="in">
|
---|
5903 | <desc>
|
---|
5904 | How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
|
---|
5905 | bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
|
---|
5906 | </desc>
|
---|
5907 | </param>
|
---|
5908 | <param name="width" type="unsigned long" dir="out">
|
---|
5909 | <desc>
|
---|
5910 | Bitmap width.
|
---|
5911 | </desc>
|
---|
5912 | </param>
|
---|
5913 | <param name="height" type="unsigned long" dir="out">
|
---|
5914 | <desc>
|
---|
5915 | Bitmap height.
|
---|
5916 | </desc>
|
---|
5917 | </param>
|
---|
5918 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5919 | <desc>
|
---|
5920 | Array with resulting bitmap data.
|
---|
5921 | </desc>
|
---|
5922 | </param>
|
---|
5923 | </method>
|
---|
5924 |
|
---|
5925 | <method name="querySavedScreenshotPNGSize">
|
---|
5926 | <desc>
|
---|
5927 | Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
|
---|
5928 | </desc>
|
---|
5929 | <param name="size" type="unsigned long" dir="out">
|
---|
5930 | <desc>
|
---|
5931 | Size of buffer required to store the PNG binary data.
|
---|
5932 | </desc>
|
---|
5933 | </param>
|
---|
5934 | <param name="width" type="unsigned long" dir="out">
|
---|
5935 | <desc>
|
---|
5936 | Image width.
|
---|
5937 | </desc>
|
---|
5938 | </param>
|
---|
5939 | <param name="height" type="unsigned long" dir="out">
|
---|
5940 | <desc>
|
---|
5941 | Image height.
|
---|
5942 | </desc>
|
---|
5943 | </param>
|
---|
5944 | </method>
|
---|
5945 |
|
---|
5946 | <method name="readSavedScreenshotPNGToArray">
|
---|
5947 | <desc>
|
---|
5948 | Screenshot in PNG format is retrieved to an array of bytes.
|
---|
5949 | </desc>
|
---|
5950 | <param name="width" type="unsigned long" dir="out">
|
---|
5951 | <desc>
|
---|
5952 | Image width.
|
---|
5953 | </desc>
|
---|
5954 | </param>
|
---|
5955 | <param name="height" type="unsigned long" dir="out">
|
---|
5956 | <desc>
|
---|
5957 | Image height.
|
---|
5958 | </desc>
|
---|
5959 | </param>
|
---|
5960 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5961 | <desc>
|
---|
5962 | Array with resulting PNG data.
|
---|
5963 | </desc>
|
---|
5964 | </param>
|
---|
5965 | </method>
|
---|
5966 |
|
---|
5967 | <method name="hotPlugCPU">
|
---|
5968 | <desc>
|
---|
5969 | Plugs a CPU into the machine.
|
---|
5970 | </desc>
|
---|
5971 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5972 | <desc>
|
---|
5973 | The CPU id to insert.
|
---|
5974 | </desc>
|
---|
5975 | </param>
|
---|
5976 | </method>
|
---|
5977 |
|
---|
5978 | <method name="hotUnplugCPU">
|
---|
5979 | <desc>
|
---|
5980 | Removes a CPU from the machine.
|
---|
5981 | </desc>
|
---|
5982 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5983 | <desc>
|
---|
5984 | The CPU id to remove.
|
---|
5985 | </desc>
|
---|
5986 | </param>
|
---|
5987 | </method>
|
---|
5988 |
|
---|
5989 | <method name="getCPUStatus">
|
---|
5990 | <desc>
|
---|
5991 | Returns the current status of the given CPU.
|
---|
5992 | </desc>
|
---|
5993 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5994 | <desc>
|
---|
5995 | The CPU id to check for.
|
---|
5996 | </desc>
|
---|
5997 | </param>
|
---|
5998 | <param name="attached" type="boolean" dir="return">
|
---|
5999 | <desc>
|
---|
6000 | Status of the CPU.
|
---|
6001 | </desc>
|
---|
6002 | </param>
|
---|
6003 | </method>
|
---|
6004 |
|
---|
6005 | <method name="queryLogFilename">
|
---|
6006 | <desc>
|
---|
6007 | Queries for the VM log file name of an given index. Returns an empty
|
---|
6008 | string if a log file with that index doesn't exists.
|
---|
6009 | </desc>
|
---|
6010 | <param name="idx" type="unsigned long" dir="in">
|
---|
6011 | <desc>
|
---|
6012 | Which log file name to query. 0=current log file.
|
---|
6013 | </desc>
|
---|
6014 | </param>
|
---|
6015 | <param name="filename" type="wstring" dir="return">
|
---|
6016 | <desc>
|
---|
6017 | On return the full path to the log file or an empty string on error.
|
---|
6018 | </desc>
|
---|
6019 | </param>
|
---|
6020 | </method>
|
---|
6021 |
|
---|
6022 | <method name="readLog">
|
---|
6023 | <desc>
|
---|
6024 | Reads the VM log file. The chunk size is limited, so even if you
|
---|
6025 | ask for a big piece there might be less data returned.
|
---|
6026 | </desc>
|
---|
6027 | <param name="idx" type="unsigned long" dir="in">
|
---|
6028 | <desc>
|
---|
6029 | Which log file to read. 0=current log file.
|
---|
6030 | </desc>
|
---|
6031 | </param>
|
---|
6032 | <param name="offset" type="unsigned long long" dir="in">
|
---|
6033 | <desc>
|
---|
6034 | Offset in the log file.
|
---|
6035 | </desc>
|
---|
6036 | </param>
|
---|
6037 | <param name="size" type="unsigned long long" dir="in">
|
---|
6038 | <desc>
|
---|
6039 | Chunk size to read in the log file.
|
---|
6040 | </desc>
|
---|
6041 | </param>
|
---|
6042 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
6043 | <desc>
|
---|
6044 | Data read from the log file. A data size of 0 means end of file
|
---|
6045 | if the requested chunk size was not 0. This is the unprocessed
|
---|
6046 | file data, i.e. the line ending style depends on the platform of
|
---|
6047 | the system the server is running on.
|
---|
6048 | </desc>
|
---|
6049 | </param>
|
---|
6050 | </method>
|
---|
6051 | </interface>
|
---|
6052 |
|
---|
6053 | <!--
|
---|
6054 | // IConsole
|
---|
6055 | /////////////////////////////////////////////////////////////////////////
|
---|
6056 | -->
|
---|
6057 |
|
---|
6058 | <interface
|
---|
6059 | name="IConsoleCallback" extends="$unknown"
|
---|
6060 | uuid="60703f8d-81e4-4b45-a147-dcfd07692b19"
|
---|
6061 | wsmap="suppress"
|
---|
6062 | >
|
---|
6063 |
|
---|
6064 | <desc>
|
---|
6065 | This interface is used by a client of the Main API that need to
|
---|
6066 | be notified of events. For example, a graphical user interface
|
---|
6067 | can use this to learn about machine state changes so they can
|
---|
6068 | update the list of virtual machines without having to rely
|
---|
6069 | on polling.
|
---|
6070 |
|
---|
6071 | Whenever relevant events occur in VirtualBox, the callbacks in
|
---|
6072 | objects of this interface are called. In order for this to be
|
---|
6073 | useful, a client needs to create its own subclass that implements
|
---|
6074 | this interface in which the methods for the relevant callbacks
|
---|
6075 | are overridden. An instance of this subclass interface can then
|
---|
6076 | be passed to <link to="IConsole::registerCallback" />.
|
---|
6077 | </desc>
|
---|
6078 |
|
---|
6079 | <method name="onMousePointerShapeChange">
|
---|
6080 | <desc>
|
---|
6081 | Notification when the guest mouse pointer shape has
|
---|
6082 | changed. The new shape data is given.
|
---|
6083 | </desc>
|
---|
6084 | <param name="visible" type="boolean" dir="in">
|
---|
6085 | <desc>
|
---|
6086 | Flag whether the pointer is visible.
|
---|
6087 | </desc>
|
---|
6088 | </param>
|
---|
6089 | <param name="alpha" type="boolean" dir="in">
|
---|
6090 | <desc>
|
---|
6091 | Flag whether the pointer has an alpha channel.
|
---|
6092 | </desc>
|
---|
6093 | </param>
|
---|
6094 | <param name="xHot" type="unsigned long" dir="in">
|
---|
6095 | <desc>
|
---|
6096 | The pointer hot spot x coordinate.
|
---|
6097 | </desc>
|
---|
6098 | </param>
|
---|
6099 | <param name="yHot" type="unsigned long" dir="in">
|
---|
6100 | <desc>
|
---|
6101 | The pointer hot spot y coordinate.
|
---|
6102 | </desc>
|
---|
6103 | </param>
|
---|
6104 | <param name="width" type="unsigned long" dir="in">
|
---|
6105 | <desc>
|
---|
6106 | Width of the pointer shape in pixels.
|
---|
6107 | </desc>
|
---|
6108 | </param>
|
---|
6109 | <param name="height" type="unsigned long" dir="in">
|
---|
6110 | <desc>
|
---|
6111 | Height of the pointer shape in pixels.
|
---|
6112 | </desc>
|
---|
6113 | </param>
|
---|
6114 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
6115 | <desc>
|
---|
6116 | Address of the shape buffer.
|
---|
6117 |
|
---|
6118 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
6119 | followed by a 32-bpp XOR (color) mask.
|
---|
6120 |
|
---|
6121 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
6122 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
6123 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
6124 |
|
---|
6125 | An AND mask is used for pointers with alpha channel, so if the
|
---|
6126 | callback does not support alpha, the pointer could be
|
---|
6127 | displayed as a normal color pointer.
|
---|
6128 |
|
---|
6129 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
6130 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
6131 | height</tt>. The padding bits at the end of each scanline are
|
---|
6132 | undefined.
|
---|
6133 |
|
---|
6134 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
6135 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
6136 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
6137 | The XOR mask scanlines have no gap between them and the size of
|
---|
6138 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
6139 |
|
---|
6140 | <note>
|
---|
6141 | If @a shape is 0, only the pointer visibility is changed.
|
---|
6142 | </note>
|
---|
6143 | </desc>
|
---|
6144 | </param>
|
---|
6145 | </method>
|
---|
6146 |
|
---|
6147 | <method name="onMouseCapabilityChange">
|
---|
6148 | <desc>
|
---|
6149 | Notification when the mouse capabilities reported by the
|
---|
6150 | guest have changed. The new capabilities are passed.
|
---|
6151 | </desc>
|
---|
6152 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
6153 | <param name="supportsRelative" type="boolean" dir="in"/>
|
---|
6154 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
6155 | </method>
|
---|
6156 |
|
---|
6157 | <method name="onKeyboardLedsChange">
|
---|
6158 | <desc>
|
---|
6159 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
6160 | to alter the state of the keyboard LEDs.
|
---|
6161 | </desc>
|
---|
6162 | <param name="numLock" type="boolean" dir="in"/>
|
---|
6163 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
6164 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
6165 | </method>
|
---|
6166 |
|
---|
6167 | <method name="onStateChange">
|
---|
6168 | <desc>
|
---|
6169 | Notification when the execution state of the machine has changed.
|
---|
6170 | The new state will be given.
|
---|
6171 | </desc>
|
---|
6172 | <param name="state" type="MachineState" dir="in"/>
|
---|
6173 | </method>
|
---|
6174 |
|
---|
6175 | <method name="onAdditionsStateChange">
|
---|
6176 | <desc>
|
---|
6177 | Notification when a Guest Additions property changes.
|
---|
6178 | Interested callees should query IGuest attributes to
|
---|
6179 | find out what has changed.
|
---|
6180 | </desc>
|
---|
6181 | </method>
|
---|
6182 |
|
---|
6183 | <method name="onNetworkAdapterChange">
|
---|
6184 | <desc>
|
---|
6185 | Notification when a property of one of the
|
---|
6186 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
6187 | changes. Interested callees should use INetworkAdapter methods and
|
---|
6188 | attributes to find out what has changed.
|
---|
6189 | </desc>
|
---|
6190 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
6191 | <desc>Network adapter that is subject to change.</desc>
|
---|
6192 | </param>
|
---|
6193 | </method>
|
---|
6194 |
|
---|
6195 | <method name="onSerialPortChange">
|
---|
6196 | <desc>
|
---|
6197 | Notification when a property of one of the
|
---|
6198 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
6199 | Interested callees should use ISerialPort methods and attributes
|
---|
6200 | to find out what has changed.
|
---|
6201 | </desc>
|
---|
6202 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
6203 | <desc>Serial port that is subject to change.</desc>
|
---|
6204 | </param>
|
---|
6205 | </method>
|
---|
6206 |
|
---|
6207 | <method name="onParallelPortChange">
|
---|
6208 | <desc>
|
---|
6209 | Notification when a property of one of the
|
---|
6210 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
6211 | changes. Interested callees should use ISerialPort methods and
|
---|
6212 | attributes to find out what has changed.
|
---|
6213 | </desc>
|
---|
6214 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
6215 | <desc>Parallel port that is subject to change.</desc>
|
---|
6216 | </param>
|
---|
6217 | </method>
|
---|
6218 |
|
---|
6219 | <method name="onStorageControllerChange">
|
---|
6220 | <desc>
|
---|
6221 | Notification when a property of one of the
|
---|
6222 | virtual <link to="IMachine::storageControllers">storage controllers</link>
|
---|
6223 | changes. Interested callees should query the corresponding collections
|
---|
6224 | to find out what has changed.
|
---|
6225 | </desc>
|
---|
6226 | </method>
|
---|
6227 |
|
---|
6228 | <method name="onMediumChange">
|
---|
6229 | <desc>
|
---|
6230 | Notification when a
|
---|
6231 | <link to="IMachine::mediumAttachments">medium attachment</link>
|
---|
6232 | changes.
|
---|
6233 | </desc>
|
---|
6234 | <param name="mediumAttachment" type="IMediumAttachment" dir="in">
|
---|
6235 | <desc>Medium attachment that is subject to change.</desc>
|
---|
6236 | </param>
|
---|
6237 | </method>
|
---|
6238 |
|
---|
6239 | <method name="onCPUChange">
|
---|
6240 | <desc>
|
---|
6241 | Notification when a CPU changes.
|
---|
6242 | </desc>
|
---|
6243 | <param name="cpu" type="unsigned long" dir="in">
|
---|
6244 | <desc>The CPU which changed</desc>
|
---|
6245 | </param>
|
---|
6246 | <param name="add" type="boolean" dir="in">
|
---|
6247 | <desc>Flag whether the CPU was added or removed</desc>
|
---|
6248 | </param>
|
---|
6249 | </method>
|
---|
6250 |
|
---|
6251 | <method name="onVRDPServerChange">
|
---|
6252 | <desc>
|
---|
6253 | Notification when a property of the
|
---|
6254 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
6255 | Interested callees should use IVRDPServer methods and attributes to
|
---|
6256 | find out what has changed.
|
---|
6257 | </desc>
|
---|
6258 | </method>
|
---|
6259 |
|
---|
6260 | <method name="onRemoteDisplayInfoChange">
|
---|
6261 | <desc>
|
---|
6262 | Notification when the status of the VRDP server changes. Interested callees
|
---|
6263 | should use <link to="IConsole::RemoteDisplayInfo">IRemoteDisplayInfo</link>
|
---|
6264 | attributes to find out what is the current status.
|
---|
6265 | </desc>
|
---|
6266 | </method>
|
---|
6267 |
|
---|
6268 | <method name="onUSBControllerChange">
|
---|
6269 | <desc>
|
---|
6270 | Notification when a property of the virtual
|
---|
6271 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
6272 | Interested callees should use IUSBController methods and attributes to
|
---|
6273 | find out what has changed.
|
---|
6274 | </desc>
|
---|
6275 | </method>
|
---|
6276 |
|
---|
6277 | <method name="onUSBDeviceStateChange">
|
---|
6278 | <desc>
|
---|
6279 | Notification when a USB device is attached to or detached from
|
---|
6280 | the virtual USB controller.
|
---|
6281 |
|
---|
6282 | This notification is sent as a result of the indirect
|
---|
6283 | request to attach the device because it matches one of the
|
---|
6284 | machine USB filters, or as a result of the direct request
|
---|
6285 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
6286 | <link to="IConsole::detachUSBDevice"/>.
|
---|
6287 |
|
---|
6288 | This notification is sent in case of both a succeeded and a
|
---|
6289 | failed request completion. When the request succeeds, the
|
---|
6290 | @a error parameter is @c null, and the given device has been
|
---|
6291 | already added to (when @a attached is @c true) or removed from
|
---|
6292 | (when @a attached is @c false) the collection represented by
|
---|
6293 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
6294 | doesn't change and the @a error parameter represents the error
|
---|
6295 | message describing the failure.
|
---|
6296 |
|
---|
6297 | </desc>
|
---|
6298 | <param name="device" type="IUSBDevice" dir="in">
|
---|
6299 | <desc>Device that is subject to state change.</desc>
|
---|
6300 | </param>
|
---|
6301 | <param name="attached" type="boolean" dir="in">
|
---|
6302 | <desc>
|
---|
6303 | @c true if the device was attached and @c false otherwise.
|
---|
6304 | </desc>
|
---|
6305 | </param>
|
---|
6306 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
6307 | <desc>
|
---|
6308 | @c null on success or an error message object on failure.
|
---|
6309 | </desc>
|
---|
6310 | </param>
|
---|
6311 | </method>
|
---|
6312 |
|
---|
6313 | <method name="onSharedFolderChange">
|
---|
6314 | <desc>
|
---|
6315 | Notification when a shared folder is added or removed.
|
---|
6316 | The @a scope argument defines one of three scopes:
|
---|
6317 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
6318 | (<link to="Scope_Global">Global</link>),
|
---|
6319 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
6320 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
6321 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
6322 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
6323 | should use query the corresponding collections to find out what has
|
---|
6324 | changed.
|
---|
6325 | </desc>
|
---|
6326 | <param name="scope" type="Scope" dir="in">
|
---|
6327 | <desc>Scope of the notification.</desc>
|
---|
6328 | </param>
|
---|
6329 | </method>
|
---|
6330 |
|
---|
6331 | <method name="onRuntimeError">
|
---|
6332 | <desc>
|
---|
6333 | Notification when an error happens during the virtual
|
---|
6334 | machine execution.
|
---|
6335 |
|
---|
6336 | There are three kinds of runtime errors:
|
---|
6337 | <ul>
|
---|
6338 | <li><i>fatal</i></li>
|
---|
6339 | <li><i>non-fatal with retry</i></li>
|
---|
6340 | <li><i>non-fatal warnings</i></li>
|
---|
6341 | </ul>
|
---|
6342 |
|
---|
6343 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
6344 | to @c true. In case of fatal errors, the virtual machine
|
---|
6345 | execution is always paused before calling this notification, and
|
---|
6346 | the notification handler is supposed either to immediately save
|
---|
6347 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
6348 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
6349 | Resuming the execution can lead to unpredictable results.
|
---|
6350 |
|
---|
6351 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
6352 | @a fatal parameter set to @c false. If the virtual machine
|
---|
6353 | is in the Paused state by the time the error notification is
|
---|
6354 | received, it means that the user can <i>try to resume</i> the machine
|
---|
6355 | execution after attempting to solve the problem that caused the
|
---|
6356 | error. In this case, the notification handler is supposed
|
---|
6357 | to show an appropriate message to the user (depending on the
|
---|
6358 | value of the @a id parameter) that offers several actions such
|
---|
6359 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
6360 | wants to retry, the notification handler should continue
|
---|
6361 | the machine execution using the <link to="IConsole::resume"/>
|
---|
6362 | call. If the machine execution is not Paused during this
|
---|
6363 | notification, then it means this notification is a <i>warning</i>
|
---|
6364 | (for example, about a fatal condition that can happen very soon);
|
---|
6365 | no immediate action is required from the user, the machine
|
---|
6366 | continues its normal execution.
|
---|
6367 |
|
---|
6368 | Note that in either case the notification handler
|
---|
6369 | <b>must not</b> perform any action directly on a thread
|
---|
6370 | where this notification is called. Everything it is allowed to
|
---|
6371 | do is to post a message to another thread that will then talk
|
---|
6372 | to the user and take the corresponding action.
|
---|
6373 |
|
---|
6374 | Currently, the following error identifiers are known:
|
---|
6375 | <ul>
|
---|
6376 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
6377 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
6378 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
6379 | <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
|
---|
6380 | </ul>
|
---|
6381 |
|
---|
6382 | <note>
|
---|
6383 | This notification is not designed to be implemented by
|
---|
6384 | more than one callback at a time. If you have multiple
|
---|
6385 | IConsoleCallback instances registered on the given
|
---|
6386 | IConsole object, make sure you simply do nothing but
|
---|
6387 | return @c S_OK from all but one of them that does actual
|
---|
6388 | user notification and performs necessary actions.
|
---|
6389 | </note>
|
---|
6390 |
|
---|
6391 | </desc>
|
---|
6392 | <param name="fatal" type="boolean" dir="in">
|
---|
6393 | <desc>Whether the error is fatal or not</desc>
|
---|
6394 | </param>
|
---|
6395 | <param name="id" type="wstring" dir="in">
|
---|
6396 | <desc>Error identifier</desc>
|
---|
6397 | </param>
|
---|
6398 | <param name="message" type="wstring" dir="in">
|
---|
6399 | <desc>Optional error message</desc>
|
---|
6400 | </param>
|
---|
6401 | </method>
|
---|
6402 |
|
---|
6403 | <method name="onCanShowWindow">
|
---|
6404 | <desc>
|
---|
6405 | Notification when a call to
|
---|
6406 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
6407 | front-end to check if a subsequent call to
|
---|
6408 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
6409 |
|
---|
6410 | The callee should give an answer appropriate to the current
|
---|
6411 | machine state in the @a canShow argument. This answer must
|
---|
6412 | remain valid at least until the next
|
---|
6413 | <link to="IConsole::state">machine state</link> change.
|
---|
6414 |
|
---|
6415 | <note>
|
---|
6416 | This notification is not designed to be implemented by
|
---|
6417 | more than one callback at a time. If you have multiple
|
---|
6418 | IConsoleCallback instances registered on the given
|
---|
6419 | IConsole object, make sure you simply do nothing but
|
---|
6420 | return @c true and @c S_OK from all but one of them that
|
---|
6421 | actually manages console window activation.
|
---|
6422 | </note>
|
---|
6423 | </desc>
|
---|
6424 | <param name="canShow" type="boolean" dir="return">
|
---|
6425 | <desc>
|
---|
6426 | @c true if the console window can be shown and @c false otherwise.
|
---|
6427 | </desc>
|
---|
6428 | </param>
|
---|
6429 | </method>
|
---|
6430 |
|
---|
6431 | <method name="onShowWindow">
|
---|
6432 | <desc>
|
---|
6433 | Notification when a call to
|
---|
6434 | <link to="IMachine::showConsoleWindow"/>
|
---|
6435 | requests the console window to be activated and brought to
|
---|
6436 | foreground on the desktop of the host PC.
|
---|
6437 |
|
---|
6438 | This notification should cause the VM console process to
|
---|
6439 | perform the requested action as described above. If it is
|
---|
6440 | impossible to do it at a time of this notification, this
|
---|
6441 | method should return a failure.
|
---|
6442 |
|
---|
6443 | Note that many modern window managers on many platforms
|
---|
6444 | implement some sort of focus stealing prevention logic, so
|
---|
6445 | that it may be impossible to activate a window without the
|
---|
6446 | help of the currently active application (which is supposedly
|
---|
6447 | an initiator of this notification). In this case, this method
|
---|
6448 | must return a non-zero identifier that represents the
|
---|
6449 | top-level window of the VM console process. The caller, if it
|
---|
6450 | represents a currently active process, is responsible to use
|
---|
6451 | this identifier (in a platform-dependent manner) to perform
|
---|
6452 | actual window activation.
|
---|
6453 |
|
---|
6454 | This method must set @a winId to zero if it has performed all
|
---|
6455 | actions necessary to complete the request and the console
|
---|
6456 | window is now active and in foreground, to indicate that no
|
---|
6457 | further action is required on the caller's side.
|
---|
6458 |
|
---|
6459 | <note>
|
---|
6460 | This notification is not designed to be implemented by
|
---|
6461 | more than one callback at a time. If you have multiple
|
---|
6462 | IConsoleCallback instances registered on the given
|
---|
6463 | IConsole object, make sure you simply do nothing but
|
---|
6464 | return @c S_OK from all but one of them that actually
|
---|
6465 | manages console window activation.
|
---|
6466 | </note>
|
---|
6467 | </desc>
|
---|
6468 | <param name="winId" type="unsigned long long" dir="return">
|
---|
6469 | <desc>
|
---|
6470 | Platform-dependent identifier of the top-level VM console
|
---|
6471 | window, or zero if this method has performed all actions
|
---|
6472 | necessary to implement the <i>show window</i> semantics for
|
---|
6473 | the given platform and/or this VirtualBox front-end.
|
---|
6474 | </desc>
|
---|
6475 | </param>
|
---|
6476 | </method>
|
---|
6477 |
|
---|
6478 | </interface>
|
---|
6479 |
|
---|
6480 | <interface
|
---|
6481 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
6482 | uuid="b3741084-806f-4c3b-8c42-ebad1a81e45a"
|
---|
6483 | wsmap="struct"
|
---|
6484 | >
|
---|
6485 | <desc>
|
---|
6486 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
6487 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
6488 | </desc>
|
---|
6489 |
|
---|
6490 | <attribute name="active" type="boolean" readonly="yes">
|
---|
6491 | <desc>
|
---|
6492 | Whether the remote display connection is active.
|
---|
6493 | </desc>
|
---|
6494 | </attribute>
|
---|
6495 |
|
---|
6496 | <attribute name="port" type="long" readonly="yes">
|
---|
6497 | <desc>
|
---|
6498 | VRDP server port number. If this property is equal to <tt>0</tt>, then
|
---|
6499 | the VRDP server failed to start, usually because there are no free TCP
|
---|
6500 | ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDP
|
---|
6501 | server has not yet been started.
|
---|
6502 | </desc>
|
---|
6503 | </attribute>
|
---|
6504 |
|
---|
6505 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
6506 | <desc>
|
---|
6507 | How many times a client connected.
|
---|
6508 | </desc>
|
---|
6509 | </attribute>
|
---|
6510 |
|
---|
6511 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
6512 | <desc>
|
---|
6513 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
6514 | </desc>
|
---|
6515 | </attribute>
|
---|
6516 |
|
---|
6517 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
6518 | <desc>
|
---|
6519 | When the last connection was terminated or the current time, if
|
---|
6520 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
6521 | </desc>
|
---|
6522 | </attribute>
|
---|
6523 |
|
---|
6524 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
6525 | <desc>
|
---|
6526 | How many bytes were sent in last or current, if still active, connection.
|
---|
6527 | </desc>
|
---|
6528 | </attribute>
|
---|
6529 |
|
---|
6530 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
6531 | <desc>
|
---|
6532 | How many bytes were sent in all connections.
|
---|
6533 | </desc>
|
---|
6534 | </attribute>
|
---|
6535 |
|
---|
6536 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
6537 | <desc>
|
---|
6538 | How many bytes were received in last or current, if still active, connection.
|
---|
6539 | </desc>
|
---|
6540 | </attribute>
|
---|
6541 |
|
---|
6542 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
6543 | <desc>
|
---|
6544 | How many bytes were received in all connections.
|
---|
6545 | </desc>
|
---|
6546 | </attribute>
|
---|
6547 |
|
---|
6548 | <attribute name="user" type="wstring" readonly="yes">
|
---|
6549 | <desc>
|
---|
6550 | Login user name supplied by the client.
|
---|
6551 | </desc>
|
---|
6552 | </attribute>
|
---|
6553 |
|
---|
6554 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
6555 | <desc>
|
---|
6556 | Login domain name supplied by the client.
|
---|
6557 | </desc>
|
---|
6558 | </attribute>
|
---|
6559 |
|
---|
6560 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
6561 | <desc>
|
---|
6562 | The client name supplied by the client.
|
---|
6563 | </desc>
|
---|
6564 | </attribute>
|
---|
6565 |
|
---|
6566 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
6567 | <desc>
|
---|
6568 | The IP address of the client.
|
---|
6569 | </desc>
|
---|
6570 | </attribute>
|
---|
6571 |
|
---|
6572 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
6573 | <desc>
|
---|
6574 | The client software version number.
|
---|
6575 | </desc>
|
---|
6576 | </attribute>
|
---|
6577 |
|
---|
6578 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
6579 | <desc>
|
---|
6580 | Public key exchange method used when connection was established.
|
---|
6581 | Values: 0 - RDP4 public key exchange scheme.
|
---|
6582 | 1 - X509 certificates were sent to client.
|
---|
6583 | </desc>
|
---|
6584 | </attribute>
|
---|
6585 |
|
---|
6586 | </interface>
|
---|
6587 |
|
---|
6588 | <interface
|
---|
6589 | name="IConsole" extends="$unknown"
|
---|
6590 | uuid="6375231a-c17c-464b-92cb-ae9e128d71c3"
|
---|
6591 | wsmap="managed"
|
---|
6592 | >
|
---|
6593 | <desc>
|
---|
6594 | The IConsole interface represents an interface to control virtual
|
---|
6595 | machine execution.
|
---|
6596 |
|
---|
6597 | The console object that implements the IConsole interface is obtained
|
---|
6598 | from a session object after the session for the given machine has been
|
---|
6599 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
6600 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
6601 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
6602 |
|
---|
6603 | Methods of the IConsole interface allow the caller to query the current
|
---|
6604 | virtual machine execution state, pause the machine or power it down, save
|
---|
6605 | the machine state or take a snapshot, attach and detach removable media
|
---|
6606 | and so on.
|
---|
6607 |
|
---|
6608 | <see>ISession</see>
|
---|
6609 | </desc>
|
---|
6610 |
|
---|
6611 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
6612 | <desc>
|
---|
6613 | Machine object this console is sessioned with.
|
---|
6614 | <note>
|
---|
6615 | This is a convenience property, it has the same value as
|
---|
6616 | <link to="ISession::machine"/> of the corresponding session
|
---|
6617 | object.
|
---|
6618 | </note>
|
---|
6619 | </desc>
|
---|
6620 | </attribute>
|
---|
6621 |
|
---|
6622 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
6623 | <desc>
|
---|
6624 | Current execution state of the machine.
|
---|
6625 | <note>
|
---|
6626 | This property always returns the same value as the corresponding
|
---|
6627 | property of the IMachine object this console is sessioned with.
|
---|
6628 | For the process that owns (executes) the VM, this is the
|
---|
6629 | preferable way of querying the VM state, because no IPC
|
---|
6630 | calls are made.
|
---|
6631 | </note>
|
---|
6632 | </desc>
|
---|
6633 | </attribute>
|
---|
6634 |
|
---|
6635 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
6636 | <desc>Guest object.</desc>
|
---|
6637 | </attribute>
|
---|
6638 |
|
---|
6639 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
6640 | <desc>
|
---|
6641 | Virtual keyboard object.
|
---|
6642 | <note>
|
---|
6643 | If the machine is not running, any attempt to use
|
---|
6644 | the returned object will result in an error.
|
---|
6645 | </note>
|
---|
6646 | </desc>
|
---|
6647 | </attribute>
|
---|
6648 |
|
---|
6649 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
6650 | <desc>
|
---|
6651 | Virtual mouse object.
|
---|
6652 | <note>
|
---|
6653 | If the machine is not running, any attempt to use
|
---|
6654 | the returned object will result in an error.
|
---|
6655 | </note>
|
---|
6656 | </desc>
|
---|
6657 | </attribute>
|
---|
6658 |
|
---|
6659 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
6660 | <desc>Virtual display object.
|
---|
6661 | <note>
|
---|
6662 | If the machine is not running, any attempt to use
|
---|
6663 | the returned object will result in an error.
|
---|
6664 | </note>
|
---|
6665 | </desc>
|
---|
6666 | </attribute>
|
---|
6667 |
|
---|
6668 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
6669 | <desc>Debugging interface.</desc>
|
---|
6670 | </attribute>
|
---|
6671 |
|
---|
6672 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
6673 | <desc>
|
---|
6674 | Collection of USB devices currently attached to the virtual
|
---|
6675 | USB controller.
|
---|
6676 | <note>
|
---|
6677 | The collection is empty if the machine is not running.
|
---|
6678 | </note>
|
---|
6679 | </desc>
|
---|
6680 | </attribute>
|
---|
6681 |
|
---|
6682 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6683 | <desc>
|
---|
6684 | List of USB devices currently attached to the remote VRDP client.
|
---|
6685 | Once a new device is physically attached to the remote host computer,
|
---|
6686 | it appears in this list and remains there until detached.
|
---|
6687 | </desc>
|
---|
6688 | </attribute>
|
---|
6689 |
|
---|
6690 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
6691 | <desc>
|
---|
6692 | Collection of shared folders for the current session. These folders
|
---|
6693 | are called transient shared folders because they are available to the
|
---|
6694 | guest OS running inside the associated virtual machine only for the
|
---|
6695 | duration of the session (as opposed to
|
---|
6696 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
6697 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
6698 | these folders are automatically discarded.
|
---|
6699 |
|
---|
6700 | New shared folders are added to the collection using
|
---|
6701 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
6702 | removed using <link to="#removeSharedFolder"/>.
|
---|
6703 | </desc>
|
---|
6704 | </attribute>
|
---|
6705 |
|
---|
6706 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
6707 | <desc>
|
---|
6708 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
6709 | </desc>
|
---|
6710 | </attribute>
|
---|
6711 |
|
---|
6712 | <method name="powerUp">
|
---|
6713 | <desc>
|
---|
6714 | Starts the virtual machine execution using the current machine
|
---|
6715 | state (that is, its current execution state, current settings and
|
---|
6716 | current storage devices).
|
---|
6717 |
|
---|
6718 | If the machine is powered off or aborted, the execution will
|
---|
6719 | start from the beginning (as if the real hardware were just
|
---|
6720 | powered on).
|
---|
6721 |
|
---|
6722 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
6723 | it will continue its execution the point where the state has
|
---|
6724 | been saved.
|
---|
6725 |
|
---|
6726 | <note>
|
---|
6727 | Unless you are trying to write a new VirtualBox front-end that
|
---|
6728 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
6729 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
6730 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
6731 | session only to change virtual machine settings. If you simply want to
|
---|
6732 | start virtual machine execution using one of the existing front-ends
|
---|
6733 | (for example the VirtualBox GUI or headless server), simply use
|
---|
6734 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
6735 | power up the machine automatically for you.
|
---|
6736 | </note>
|
---|
6737 |
|
---|
6738 | <see>#saveState</see>
|
---|
6739 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6740 | Virtual machine already running.
|
---|
6741 | </result>
|
---|
6742 | <result name="VBOX_E_HOST_ERROR">
|
---|
6743 | Host interface does not exist or name not set.
|
---|
6744 | </result>
|
---|
6745 | <result name="VBOX_E_FILE_ERROR">
|
---|
6746 | Invalid saved state file.
|
---|
6747 | </result>
|
---|
6748 | </desc>
|
---|
6749 | <param name="progress" type="IProgress" dir="return">
|
---|
6750 | <desc>Progress object to track the operation completion.</desc>
|
---|
6751 | </param>
|
---|
6752 | </method>
|
---|
6753 |
|
---|
6754 | <method name="powerUpPaused">
|
---|
6755 | <desc>
|
---|
6756 | Identical to powerUp except that the VM will enter the
|
---|
6757 | <link to="MachineState_Paused"/> state, instead of
|
---|
6758 | <link to="MachineState_Running"/>.
|
---|
6759 |
|
---|
6760 | <see>#powerUp</see>
|
---|
6761 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6762 | Virtual machine already running.
|
---|
6763 | </result>
|
---|
6764 | <result name="VBOX_E_HOST_ERROR">
|
---|
6765 | Host interface does not exist or name not set.
|
---|
6766 | </result>
|
---|
6767 | <result name="VBOX_E_FILE_ERROR">
|
---|
6768 | Invalid saved state file.
|
---|
6769 | </result>
|
---|
6770 | </desc>
|
---|
6771 | <param name="progress" type="IProgress" dir="return">
|
---|
6772 | <desc>Progress object to track the operation completion.</desc>
|
---|
6773 | </param>
|
---|
6774 | </method>
|
---|
6775 |
|
---|
6776 | <method name="powerDown">
|
---|
6777 | <desc>
|
---|
6778 | Initiates the power down procedure to stop the virtual machine
|
---|
6779 | execution.
|
---|
6780 |
|
---|
6781 | The completion of the power down procedure is tracked using the returned
|
---|
6782 | IProgress object. After the operation is complete, the machine will go
|
---|
6783 | to the PoweredOff state.
|
---|
6784 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6785 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6786 | </result>
|
---|
6787 | </desc>
|
---|
6788 | <param name="progress" type="IProgress" dir="return">
|
---|
6789 | <desc>Progress object to track the operation completion.</desc>
|
---|
6790 | </param>
|
---|
6791 | </method>
|
---|
6792 |
|
---|
6793 | <method name="reset">
|
---|
6794 | <desc>Resets the virtual machine.
|
---|
6795 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6796 | Virtual machine not in Running state.
|
---|
6797 | </result>
|
---|
6798 | <result name="VBOX_E_VM_ERROR">
|
---|
6799 | Virtual machine error in reset operation.
|
---|
6800 | </result>
|
---|
6801 | </desc>
|
---|
6802 | </method>
|
---|
6803 |
|
---|
6804 | <method name="pause">
|
---|
6805 | <desc>Pauses the virtual machine execution.
|
---|
6806 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6807 | Virtual machine not in Running state.
|
---|
6808 | </result>
|
---|
6809 | <result name="VBOX_E_VM_ERROR">
|
---|
6810 | Virtual machine error in suspend operation.
|
---|
6811 | </result>
|
---|
6812 | </desc>
|
---|
6813 | </method>
|
---|
6814 |
|
---|
6815 | <method name="resume">
|
---|
6816 | <desc>Resumes the virtual machine execution.
|
---|
6817 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6818 | Virtual machine not in Paused state.
|
---|
6819 | </result>
|
---|
6820 | <result name="VBOX_E_VM_ERROR">
|
---|
6821 | Virtual machine error in resume operation.
|
---|
6822 | </result>
|
---|
6823 | </desc>
|
---|
6824 | </method>
|
---|
6825 |
|
---|
6826 | <method name="powerButton">
|
---|
6827 | <desc>Sends the ACPI power button event to the guest.
|
---|
6828 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6829 | Virtual machine not in Running state.
|
---|
6830 | </result>
|
---|
6831 | <result name="VBOX_E_PDM_ERROR">
|
---|
6832 | Controlled power off failed.
|
---|
6833 | </result>
|
---|
6834 | </desc>
|
---|
6835 | </method>
|
---|
6836 |
|
---|
6837 | <method name="sleepButton">
|
---|
6838 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6839 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6840 | Virtual machine not in Running state.
|
---|
6841 | </result>
|
---|
6842 | <result name="VBOX_E_PDM_ERROR">
|
---|
6843 | Sending sleep button event failed.
|
---|
6844 | </result>
|
---|
6845 | </desc>
|
---|
6846 | </method>
|
---|
6847 |
|
---|
6848 | <method name="getPowerButtonHandled">
|
---|
6849 | <desc>Checks if the last power button event was handled by guest.
|
---|
6850 | <result name="VBOX_E_PDM_ERROR">
|
---|
6851 | Checking if the event was handled by the guest OS failed.
|
---|
6852 | </result>
|
---|
6853 | </desc>
|
---|
6854 | <param name="handled" type="boolean" dir="return"/>
|
---|
6855 | </method>
|
---|
6856 |
|
---|
6857 | <method name="getGuestEnteredACPIMode">
|
---|
6858 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6859 | G1 (sleeping). If this method returns @c false, the guest will
|
---|
6860 | most likely not respond to external ACPI events.
|
---|
6861 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6862 | Virtual machine not in Running state.
|
---|
6863 | </result>
|
---|
6864 | </desc>
|
---|
6865 | <param name="entered" type="boolean" dir="return"/>
|
---|
6866 | </method>
|
---|
6867 |
|
---|
6868 | <method name="saveState">
|
---|
6869 | <desc>
|
---|
6870 | Saves the current execution state of a running virtual machine
|
---|
6871 | and stops its execution.
|
---|
6872 |
|
---|
6873 | After this operation completes, the machine will go to the
|
---|
6874 | Saved state. Next time it is powered up, this state will
|
---|
6875 | be restored and the machine will continue its execution from
|
---|
6876 | the place where it was saved.
|
---|
6877 |
|
---|
6878 | This operation differs from taking a snapshot to the effect
|
---|
6879 | that it doesn't create new differencing media. Also, once
|
---|
6880 | the machine is powered up from the state saved using this method,
|
---|
6881 | the saved state is deleted, so it will be impossible to return
|
---|
6882 | to this state later.
|
---|
6883 |
|
---|
6884 | <note>
|
---|
6885 | On success, this method implicitly calls
|
---|
6886 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6887 | settings (including runtime changes to the DVD medium, etc.).
|
---|
6888 | Together with the impossibility to change any VM settings when it is
|
---|
6889 | in the Saved state, this guarantees adequate hardware
|
---|
6890 | configuration of the machine when it is restored from the saved
|
---|
6891 | state file.
|
---|
6892 | </note>
|
---|
6893 |
|
---|
6894 | <note>
|
---|
6895 | The machine must be in the Running or Paused state, otherwise
|
---|
6896 | the operation will fail.
|
---|
6897 | </note>
|
---|
6898 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6899 | Virtual machine state neither Running nor Paused.
|
---|
6900 | </result>
|
---|
6901 | <result name="VBOX_E_FILE_ERROR">
|
---|
6902 | Failed to create directory for saved state file.
|
---|
6903 | </result>
|
---|
6904 |
|
---|
6905 | <see><link to="#takeSnapshot"/></see>
|
---|
6906 | </desc>
|
---|
6907 | <param name="progress" type="IProgress" dir="return">
|
---|
6908 | <desc>Progress object to track the operation completion.</desc>
|
---|
6909 | </param>
|
---|
6910 | </method>
|
---|
6911 |
|
---|
6912 | <method name="adoptSavedState">
|
---|
6913 | <desc>
|
---|
6914 | Associates the given saved state file to the virtual machine.
|
---|
6915 |
|
---|
6916 | On success, the machine will go to the Saved state. Next time it is
|
---|
6917 | powered up, it will be restored from the adopted saved state and
|
---|
6918 | continue execution from the place where the saved state file was
|
---|
6919 | created.
|
---|
6920 |
|
---|
6921 | The specified saved state file path may be absolute or relative to the
|
---|
6922 | folder the VM normally saves the state to (usually,
|
---|
6923 | <link to="IMachine::snapshotFolder"/>).
|
---|
6924 |
|
---|
6925 | <note>
|
---|
6926 | It's a caller's responsibility to make sure the given saved state
|
---|
6927 | file is compatible with the settings of this virtual machine that
|
---|
6928 | represent its virtual hardware (memory size, storage disk configuration
|
---|
6929 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6930 | is undefined.
|
---|
6931 | </note>
|
---|
6932 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6933 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6934 | </result>
|
---|
6935 | </desc>
|
---|
6936 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6937 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6938 | </param>
|
---|
6939 | </method>
|
---|
6940 |
|
---|
6941 | <method name="forgetSavedState">
|
---|
6942 | <desc>
|
---|
6943 | Forgets the saved state of the virtual machine previously created
|
---|
6944 | by <link to="#saveState"/>. Next time the machine is powered up, a
|
---|
6945 | clean boot will occur. If @a remove is @c true the saved state file
|
---|
6946 | is deleted.
|
---|
6947 | <note>
|
---|
6948 | This operation is equivalent to resetting or powering off
|
---|
6949 | the machine without doing a proper shutdown in the guest OS.
|
---|
6950 | </note>
|
---|
6951 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6952 | Virtual machine not in state Saved.
|
---|
6953 | </result>
|
---|
6954 | </desc>
|
---|
6955 | <param name="remove" type="boolean" dir="in">
|
---|
6956 | <desc>If @c true remove the saved state file.</desc>
|
---|
6957 | </param>
|
---|
6958 | </method>
|
---|
6959 |
|
---|
6960 | <method name="getDeviceActivity">
|
---|
6961 | <desc>
|
---|
6962 | Gets the current activity type of a given device or device group.
|
---|
6963 | <result name="E_INVALIDARG">
|
---|
6964 | Invalid device type.
|
---|
6965 | </result>
|
---|
6966 | </desc>
|
---|
6967 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6968 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6969 | </method>
|
---|
6970 |
|
---|
6971 | <method name="attachUSBDevice">
|
---|
6972 | <desc>
|
---|
6973 | Attaches a host USB device with the given UUID to the
|
---|
6974 | USB controller of the virtual machine.
|
---|
6975 |
|
---|
6976 | The device needs to be in one of the following states:
|
---|
6977 | <link to="USBDeviceState_Busy"/>,
|
---|
6978 | <link to="USBDeviceState_Available"/> or
|
---|
6979 | <link to="USBDeviceState_Held"/>,
|
---|
6980 | otherwise an error is immediately returned.
|
---|
6981 |
|
---|
6982 | When the device state is
|
---|
6983 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6984 | be returned if the host computer refuses to release it for some reason.
|
---|
6985 |
|
---|
6986 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6987 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6988 | Virtual machine state neither Running nor Paused.
|
---|
6989 | </result>
|
---|
6990 | <result name="VBOX_E_PDM_ERROR">
|
---|
6991 | Virtual machine does not have a USB controller.
|
---|
6992 | </result>
|
---|
6993 | </desc>
|
---|
6994 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6995 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6996 | </param>
|
---|
6997 | </method>
|
---|
6998 |
|
---|
6999 | <method name="detachUSBDevice">
|
---|
7000 | <desc>
|
---|
7001 | Detaches an USB device with the given UUID from the USB controller
|
---|
7002 | of the virtual machine.
|
---|
7003 |
|
---|
7004 | After this method succeeds, the VirtualBox server re-initiates
|
---|
7005 | all USB filters as if the device were just physically attached
|
---|
7006 | to the host, but filters of this machine are ignored to avoid
|
---|
7007 | a possible automatic re-attachment.
|
---|
7008 |
|
---|
7009 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
7010 |
|
---|
7011 | <result name="VBOX_E_PDM_ERROR">
|
---|
7012 | Virtual machine does not have a USB controller.
|
---|
7013 | </result>
|
---|
7014 | <result name="E_INVALIDARG">
|
---|
7015 | USB device not attached to this virtual machine.
|
---|
7016 | </result>
|
---|
7017 | </desc>
|
---|
7018 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7019 | <desc>UUID of the USB device to detach.</desc>
|
---|
7020 | </param>
|
---|
7021 | <param name="device" type="IUSBDevice" dir="return">
|
---|
7022 | <desc>Detached USB device.</desc>
|
---|
7023 | </param>
|
---|
7024 | </method>
|
---|
7025 |
|
---|
7026 | <method name="findUSBDeviceByAddress">
|
---|
7027 | <desc>
|
---|
7028 | Searches for a USB device with the given host address.
|
---|
7029 |
|
---|
7030 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7031 | Given @c name does not correspond to any USB device.
|
---|
7032 | </result>
|
---|
7033 |
|
---|
7034 | <see>IUSBDevice::address</see>
|
---|
7035 | </desc>
|
---|
7036 | <param name="name" type="wstring" dir="in">
|
---|
7037 | <desc>
|
---|
7038 | Address of the USB device (as assigned by the host) to
|
---|
7039 | search for.
|
---|
7040 | </desc>
|
---|
7041 | </param>
|
---|
7042 | <param name="device" type="IUSBDevice" dir="return">
|
---|
7043 | <desc>Found USB device object.</desc>
|
---|
7044 | </param>
|
---|
7045 | </method>
|
---|
7046 |
|
---|
7047 | <method name="findUSBDeviceById">
|
---|
7048 | <desc>
|
---|
7049 | Searches for a USB device with the given UUID.
|
---|
7050 |
|
---|
7051 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7052 | Given @c id does not correspond to any USB device.
|
---|
7053 | </result>
|
---|
7054 |
|
---|
7055 | <see>IUSBDevice::id</see>
|
---|
7056 | </desc>
|
---|
7057 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7058 | <desc>UUID of the USB device to search for.</desc>
|
---|
7059 | </param>
|
---|
7060 | <param name="device" type="IUSBDevice" dir="return">
|
---|
7061 | <desc>Found USB device object.</desc>
|
---|
7062 | </param>
|
---|
7063 | </method>
|
---|
7064 |
|
---|
7065 | <method name="createSharedFolder">
|
---|
7066 | <desc>
|
---|
7067 | Creates a transient new shared folder by associating the given logical
|
---|
7068 | name with the given host path, adds it to the collection of shared
|
---|
7069 | folders and starts sharing it. Refer to the description of
|
---|
7070 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
7071 |
|
---|
7072 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7073 | Virtual machine in Saved state or currently changing state.
|
---|
7074 | </result>
|
---|
7075 | <result name="VBOX_E_FILE_ERROR">
|
---|
7076 | Shared folder already exists or not accessible.
|
---|
7077 | </result>
|
---|
7078 | </desc>
|
---|
7079 | <param name="name" type="wstring" dir="in">
|
---|
7080 | <desc>Unique logical name of the shared folder.</desc>
|
---|
7081 | </param>
|
---|
7082 | <param name="hostPath" type="wstring" dir="in">
|
---|
7083 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
7084 | </param>
|
---|
7085 | <param name="writable" type="boolean" dir="in">
|
---|
7086 | <desc>Whether the share is writable or readonly</desc>
|
---|
7087 | </param>
|
---|
7088 | </method>
|
---|
7089 |
|
---|
7090 | <method name="removeSharedFolder">
|
---|
7091 | <desc>
|
---|
7092 | Removes a transient shared folder with the given name previously
|
---|
7093 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
7094 | shared folders and stops sharing it.
|
---|
7095 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7096 | Virtual machine in Saved state or currently changing state.
|
---|
7097 | </result>
|
---|
7098 | <result name="VBOX_E_FILE_ERROR">
|
---|
7099 | Shared folder does not exists.
|
---|
7100 | </result>
|
---|
7101 | </desc>
|
---|
7102 | <param name="name" type="wstring" dir="in">
|
---|
7103 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
7104 | </param>
|
---|
7105 | </method>
|
---|
7106 |
|
---|
7107 | <method name="takeSnapshot">
|
---|
7108 | <desc>
|
---|
7109 | Saves the current execution state
|
---|
7110 | and all settings of the machine and creates differencing images
|
---|
7111 | for all normal (non-independent) media.
|
---|
7112 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
7113 |
|
---|
7114 | This method can be called for a PoweredOff, Saved (see
|
---|
7115 | <link to="#saveState"/>), Running or
|
---|
7116 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
7117 | offline snapshot is created. When the machine is Running a live
|
---|
7118 | snapshot is created, and an online snapshot is is created when Paused.
|
---|
7119 |
|
---|
7120 | The taken snapshot is always based on the
|
---|
7121 | <link to="IMachine::currentSnapshot">current snapshot</link>
|
---|
7122 | of the associated virtual machine and becomes a new current snapshot.
|
---|
7123 |
|
---|
7124 | <note>
|
---|
7125 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
7126 | save all current machine settings before taking an offline snapshot.
|
---|
7127 | </note>
|
---|
7128 |
|
---|
7129 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7130 | Virtual machine currently changing state.
|
---|
7131 | </result>
|
---|
7132 | </desc>
|
---|
7133 | <param name="name" type="wstring" dir="in">
|
---|
7134 | <desc>Short name for the snapshot.</desc>
|
---|
7135 | </param>
|
---|
7136 | <param name="description" type="wstring" dir="in">
|
---|
7137 | <desc>Optional description of the snapshot.</desc>
|
---|
7138 | </param>
|
---|
7139 | <param name="progress" type="IProgress" dir="return">
|
---|
7140 | <desc>Progress object to track the operation completion.</desc>
|
---|
7141 | </param>
|
---|
7142 | </method>
|
---|
7143 |
|
---|
7144 | <method name="deleteSnapshot">
|
---|
7145 | <desc>
|
---|
7146 | Starts deleting the specified snapshot asynchronously.
|
---|
7147 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
7148 |
|
---|
7149 | The execution state and settings of the associated machine stored in
|
---|
7150 | the snapshot will be deleted. The contents of all differencing media of
|
---|
7151 | this snapshot will be merged with the contents of their dependent child
|
---|
7152 | media to keep the medium chain valid (in other words, all changes
|
---|
7153 | represented by media being deleted will be propagated to their child
|
---|
7154 | medium). After that, this snapshot's differencing medium will be
|
---|
7155 | deleted. The parent of this snapshot will become a new parent for all
|
---|
7156 | its child snapshots.
|
---|
7157 |
|
---|
7158 | If the deleted snapshot is the current one, its parent snapshot will
|
---|
7159 | become a new current snapshot. The current machine state is not directly
|
---|
7160 | affected in this case, except that currently attached differencing
|
---|
7161 | media based on media of the deleted snapshot will be also merged as
|
---|
7162 | described above.
|
---|
7163 |
|
---|
7164 | If the deleted snapshot is the first or current snapshot, then the
|
---|
7165 | respective IMachine attributes will be adjusted. Deleting the current
|
---|
7166 | snapshot will also implicitly call <link to="IMachine::saveSettings"/>
|
---|
7167 | to make all current machine settings permanent.
|
---|
7168 |
|
---|
7169 | Deleting a snapshot has the following preconditions:
|
---|
7170 |
|
---|
7171 | <ul>
|
---|
7172 | <li>Child media of all normal media of the deleted snapshot
|
---|
7173 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
7174 | operation to succeed. In particular, this means that all virtual
|
---|
7175 | machines, whose media are directly or indirectly based on the
|
---|
7176 | media of deleted snapshot, must be powered off.</li>
|
---|
7177 |
|
---|
7178 | <li>You cannot delete the snapshot if a medium attached to it has
|
---|
7179 | more than once child medium (differencing images) because otherwise
|
---|
7180 | merging would be impossible. This might be the case if there is
|
---|
7181 | more than one child snapshot or differencing images were created
|
---|
7182 | for other reason (e.g. implicitly because of multiple machine
|
---|
7183 | attachments).</li>
|
---|
7184 | </ul>
|
---|
7185 |
|
---|
7186 |
|
---|
7187 | The virtual machine's <link to="IMachine::state">state</link> is changed to "DeletingSnapshot"
|
---|
7188 | while this operation is in progress.
|
---|
7189 |
|
---|
7190 | <note>
|
---|
7191 | Merging medium contents can be very time and disk space
|
---|
7192 | consuming, if these media are big in size and have many
|
---|
7193 | children. However, if the snapshot being deleted is the last
|
---|
7194 | (head) snapshot on the branch, the operation will be rather
|
---|
7195 | quick.
|
---|
7196 | </note>
|
---|
7197 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7198 | Virtual machine is running.
|
---|
7199 | </result>
|
---|
7200 | </desc>
|
---|
7201 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7202 | <desc>UUID of the snapshot to delete.</desc>
|
---|
7203 | </param>
|
---|
7204 | <param name="progress" type="IProgress" dir="return">
|
---|
7205 | <desc>Progress object to track the operation completion.</desc>
|
---|
7206 | </param>
|
---|
7207 | </method>
|
---|
7208 |
|
---|
7209 | <method name="restoreSnapshot">
|
---|
7210 | <desc>
|
---|
7211 | Starts resetting the machine's current state to the state contained
|
---|
7212 | in the given snapshot, asynchronously. All current settings of the
|
---|
7213 | machine will be reset and changes stored in differencing media
|
---|
7214 | will be lost.
|
---|
7215 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
7216 |
|
---|
7217 | After this operation is successfully completed, new empty differencing
|
---|
7218 | media are created for all normal media of the machine.
|
---|
7219 |
|
---|
7220 | If the given snapshot is an online snapshot, the machine will go to
|
---|
7221 | the <link to="MachineState_Saved"> saved state</link>, so that the
|
---|
7222 | next time it is powered on, the execution state will be restored
|
---|
7223 | from the state of the snapshot.
|
---|
7224 |
|
---|
7225 | <note>
|
---|
7226 | The machine must not be running, otherwise the operation will fail.
|
---|
7227 | </note>
|
---|
7228 |
|
---|
7229 | <note>
|
---|
7230 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
7231 | prior to this operation, the saved state file will be implicitly
|
---|
7232 | deleted (as if <link to="IConsole::forgetSavedState"/> were
|
---|
7233 | called).
|
---|
7234 | </note>
|
---|
7235 |
|
---|
7236 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7237 | Virtual machine is running.
|
---|
7238 | </result>
|
---|
7239 | </desc>
|
---|
7240 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
7241 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
7242 | </param>
|
---|
7243 | <param name="progress" type="IProgress" dir="return">
|
---|
7244 | <desc>Progress object to track the operation completion.</desc>
|
---|
7245 | </param>
|
---|
7246 | </method>
|
---|
7247 |
|
---|
7248 | <method name="teleport">
|
---|
7249 | <desc>
|
---|
7250 | Teleport the VM to a different host machine or process.
|
---|
7251 |
|
---|
7252 | TODO explain the details.
|
---|
7253 |
|
---|
7254 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7255 | Virtual machine not running or paused.
|
---|
7256 | </result>
|
---|
7257 | </desc>
|
---|
7258 | <param name="hostname" type="wstring" dir="in">
|
---|
7259 | <desc>The name or IP of the host to teleport to.</desc>
|
---|
7260 | </param>
|
---|
7261 | <param name="tcpport" type="unsigned long" dir="in">
|
---|
7262 | <desc>The TCP port to connect to (1..65535).</desc>
|
---|
7263 | </param>
|
---|
7264 | <param name="password" type="wstring" dir="in">
|
---|
7265 | <desc>The password.</desc>
|
---|
7266 | </param>
|
---|
7267 | <param name="maxDowntime" type="unsigned long" dir="in">
|
---|
7268 | <desc>
|
---|
7269 | The maximum allowed downtime given as milliseconds. 0 is not a valid
|
---|
7270 | value. Recommended value: 250 ms.
|
---|
7271 |
|
---|
7272 | The higher the value is, the greater the chance for a successful
|
---|
7273 | teleportation. A small value may easily result in the teleportation
|
---|
7274 | process taking hours and eventually fail.
|
---|
7275 |
|
---|
7276 | <note>
|
---|
7277 | The current implementation treats this a guideline, not as an
|
---|
7278 | absolute rule.
|
---|
7279 | </note>
|
---|
7280 | </desc>
|
---|
7281 | </param>
|
---|
7282 | <param name="progress" type="IProgress" dir="return">
|
---|
7283 | <desc>Progress object to track the operation completion.</desc>
|
---|
7284 | </param>
|
---|
7285 | </method>
|
---|
7286 |
|
---|
7287 | <method name="registerCallback">
|
---|
7288 | <desc>
|
---|
7289 | Registers a new console callback on this instance. The methods of the
|
---|
7290 | callback interface will be called by this instance when the appropriate
|
---|
7291 | event occurs.
|
---|
7292 | </desc>
|
---|
7293 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
7294 | </method>
|
---|
7295 |
|
---|
7296 | <method name="unregisterCallback">
|
---|
7297 | <desc>
|
---|
7298 | Unregisters the console callback previously registered using
|
---|
7299 | <link to="#registerCallback"/>.
|
---|
7300 | <result name="E_INVALIDARG">
|
---|
7301 | Given @a callback handler is not registered.
|
---|
7302 | </result>
|
---|
7303 | </desc>
|
---|
7304 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
7305 | </method>
|
---|
7306 | </interface>
|
---|
7307 |
|
---|
7308 | <!--
|
---|
7309 | // IHost
|
---|
7310 | /////////////////////////////////////////////////////////////////////////
|
---|
7311 | -->
|
---|
7312 |
|
---|
7313 | <enum
|
---|
7314 | name="HostNetworkInterfaceMediumType"
|
---|
7315 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
7316 | >
|
---|
7317 | <desc>
|
---|
7318 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
7319 | wireless Ethernet connections.
|
---|
7320 | <see>IHostNetworkInterface</see>
|
---|
7321 | </desc>
|
---|
7322 |
|
---|
7323 | <const name="Unknown" value="0">
|
---|
7324 | <desc>
|
---|
7325 | The type of interface cannot be determined.
|
---|
7326 | </desc>
|
---|
7327 | </const>
|
---|
7328 | <const name="Ethernet" value="1">
|
---|
7329 | <desc>
|
---|
7330 | Ethernet frame encapsulation.
|
---|
7331 | </desc>
|
---|
7332 | </const>
|
---|
7333 | <const name="PPP" value="2">
|
---|
7334 | <desc>
|
---|
7335 | Point-to-point protocol encapsulation.
|
---|
7336 | </desc>
|
---|
7337 | </const>
|
---|
7338 | <const name="SLIP" value="3">
|
---|
7339 | <desc>
|
---|
7340 | Serial line IP encapsulation.
|
---|
7341 | </desc>
|
---|
7342 | </const>
|
---|
7343 | </enum>
|
---|
7344 |
|
---|
7345 | <enum
|
---|
7346 | name="HostNetworkInterfaceStatus"
|
---|
7347 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
7348 | >
|
---|
7349 | <desc>
|
---|
7350 | Current status of the interface.
|
---|
7351 | <see>IHostNetworkInterface</see>
|
---|
7352 | </desc>
|
---|
7353 |
|
---|
7354 | <const name="Unknown" value="0">
|
---|
7355 | <desc>
|
---|
7356 | The state of interface cannot be determined.
|
---|
7357 | </desc>
|
---|
7358 | </const>
|
---|
7359 | <const name="Up" value="1">
|
---|
7360 | <desc>
|
---|
7361 | The interface is fully operational.
|
---|
7362 | </desc>
|
---|
7363 | </const>
|
---|
7364 | <const name="Down" value="2">
|
---|
7365 | <desc>
|
---|
7366 | The interface is not functioning.
|
---|
7367 | </desc>
|
---|
7368 | </const>
|
---|
7369 | </enum>
|
---|
7370 |
|
---|
7371 | <enum
|
---|
7372 | name="HostNetworkInterfaceType"
|
---|
7373 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
7374 | >
|
---|
7375 | <desc>
|
---|
7376 | Network interface type.
|
---|
7377 | </desc>
|
---|
7378 | <const name="Bridged" value="1"/>
|
---|
7379 | <const name="HostOnly" value="2"/>
|
---|
7380 | </enum>
|
---|
7381 |
|
---|
7382 | <interface
|
---|
7383 | name="IHostNetworkInterface" extends="$unknown"
|
---|
7384 | uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
|
---|
7385 | wsmap="managed"
|
---|
7386 | >
|
---|
7387 | <desc>
|
---|
7388 | Represents one of host's network interfaces. IP V6 address and network
|
---|
7389 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
7390 | separated by colons.
|
---|
7391 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
7392 | </desc>
|
---|
7393 | <attribute name="name" type="wstring" readonly="yes">
|
---|
7394 | <desc>Returns the host network interface name.</desc>
|
---|
7395 | </attribute>
|
---|
7396 |
|
---|
7397 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
7398 | <desc>Returns the interface UUID.</desc>
|
---|
7399 | </attribute>
|
---|
7400 |
|
---|
7401 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
7402 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
7403 | </attribute>
|
---|
7404 |
|
---|
7405 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
7406 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
7407 | </attribute>
|
---|
7408 |
|
---|
7409 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
7410 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
7411 | </attribute>
|
---|
7412 |
|
---|
7413 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
7414 | <desc>Returns the network mask of the interface.</desc>
|
---|
7415 | </attribute>
|
---|
7416 |
|
---|
7417 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
7418 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
7419 | </attribute>
|
---|
7420 |
|
---|
7421 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
7422 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
7423 | </attribute>
|
---|
7424 |
|
---|
7425 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
7426 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
7427 | </attribute>
|
---|
7428 |
|
---|
7429 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
7430 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
7431 | </attribute>
|
---|
7432 |
|
---|
7433 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
7434 | <desc>Type of protocol encapsulation used.</desc>
|
---|
7435 | </attribute>
|
---|
7436 |
|
---|
7437 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
7438 | <desc>Status of the interface.</desc>
|
---|
7439 | </attribute>
|
---|
7440 |
|
---|
7441 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
7442 | <desc>specifies the host interface type.</desc>
|
---|
7443 | </attribute>
|
---|
7444 |
|
---|
7445 | <method name="enableStaticIpConfig">
|
---|
7446 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
7447 | <param name="IPAddress" type="wstring" dir="in">
|
---|
7448 | <desc>
|
---|
7449 | IP address.
|
---|
7450 | </desc>
|
---|
7451 | </param>
|
---|
7452 | <param name="networkMask" type="wstring" dir="in">
|
---|
7453 | <desc>
|
---|
7454 | network mask.
|
---|
7455 | </desc>
|
---|
7456 | </param>
|
---|
7457 | </method>
|
---|
7458 |
|
---|
7459 | <method name="enableStaticIpConfigV6">
|
---|
7460 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
7461 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
7462 | <desc>
|
---|
7463 | IP address.
|
---|
7464 | </desc>
|
---|
7465 | </param>
|
---|
7466 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
7467 | <desc>
|
---|
7468 | network mask.
|
---|
7469 | </desc>
|
---|
7470 | </param>
|
---|
7471 | </method>
|
---|
7472 |
|
---|
7473 | <method name="enableDynamicIpConfig">
|
---|
7474 | <desc>enables the dynamic IP configuration.</desc>
|
---|
7475 | </method>
|
---|
7476 |
|
---|
7477 | <method name="dhcpRediscover">
|
---|
7478 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
7479 | </method>
|
---|
7480 |
|
---|
7481 | </interface>
|
---|
7482 |
|
---|
7483 | <interface
|
---|
7484 | name="IHost" extends="$unknown"
|
---|
7485 | uuid="e380cbfc-ae65-4fa6-899e-45ded6b3132a"
|
---|
7486 | wsmap="managed"
|
---|
7487 | >
|
---|
7488 | <desc>
|
---|
7489 | The IHost interface represents the physical machine that this VirtualBox
|
---|
7490 | installation runs on.
|
---|
7491 |
|
---|
7492 | An object implementing this interface is returned by the
|
---|
7493 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
7494 | read-only information about the host's physical hardware (such as what
|
---|
7495 | processors and disks are available, what the host operating system is,
|
---|
7496 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
7497 | such as global USB device filters and host interface networking.
|
---|
7498 |
|
---|
7499 | </desc>
|
---|
7500 | <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
7501 | <desc>List of DVD drives available on the host.</desc>
|
---|
7502 | </attribute>
|
---|
7503 |
|
---|
7504 | <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
7505 | <desc>List of floppy drives available on the host.</desc>
|
---|
7506 | </attribute>
|
---|
7507 |
|
---|
7508 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
7509 | <desc>
|
---|
7510 | List of USB devices currently attached to the host.
|
---|
7511 | Once a new device is physically attached to the host computer,
|
---|
7512 | it appears in this list and remains there until detached.
|
---|
7513 |
|
---|
7514 | <note>
|
---|
7515 | If USB functionality is not available in the given edition of
|
---|
7516 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7517 | </note>
|
---|
7518 | </desc>
|
---|
7519 | </attribute>
|
---|
7520 |
|
---|
7521 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
7522 | <desc>
|
---|
7523 | List of USB device filters in action.
|
---|
7524 | When a new device is physically attached to the host computer,
|
---|
7525 | filters from this list are applied to it (in order they are stored
|
---|
7526 | in the list). The first matched filter will determine the
|
---|
7527 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
7528 | performed on the device.
|
---|
7529 |
|
---|
7530 | Unless the device is ignored by these filters, filters of all
|
---|
7531 | currently running virtual machines
|
---|
7532 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
7533 |
|
---|
7534 | <note>
|
---|
7535 | If USB functionality is not available in the given edition of
|
---|
7536 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7537 | </note>
|
---|
7538 |
|
---|
7539 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7540 | </desc>
|
---|
7541 | </attribute>
|
---|
7542 |
|
---|
7543 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
7544 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
7545 | </attribute>
|
---|
7546 |
|
---|
7547 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
7548 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
7549 | </attribute>
|
---|
7550 |
|
---|
7551 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
7552 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
7553 | </attribute>
|
---|
7554 |
|
---|
7555 | <method name="getProcessorSpeed">
|
---|
7556 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
7557 | Megahertz.
|
---|
7558 | </desc>
|
---|
7559 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7560 | <desc>
|
---|
7561 | Identifier of the CPU.
|
---|
7562 | </desc>
|
---|
7563 | </param>
|
---|
7564 | <param name="speed" type="unsigned long" dir="return">
|
---|
7565 | <desc>
|
---|
7566 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
7567 | invalid.
|
---|
7568 | </desc>
|
---|
7569 | </param>
|
---|
7570 | </method>
|
---|
7571 |
|
---|
7572 | <method name="getProcessorFeature">
|
---|
7573 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
7574 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
7575 | <desc>
|
---|
7576 | CPU Feature identifier.
|
---|
7577 | </desc>
|
---|
7578 | </param>
|
---|
7579 | <param name="supported" type="boolean" dir="return">
|
---|
7580 | <desc>
|
---|
7581 | Feature is supported or not.
|
---|
7582 | </desc>
|
---|
7583 | </param>
|
---|
7584 | </method>
|
---|
7585 |
|
---|
7586 | <method name="getProcessorDescription">
|
---|
7587 | <desc>Query the model string of a specified host CPU.
|
---|
7588 | </desc>
|
---|
7589 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7590 | <desc>
|
---|
7591 | Identifier of the CPU.
|
---|
7592 | <note>
|
---|
7593 | The current implementation might not necessarily return the
|
---|
7594 | description for this exact CPU.
|
---|
7595 | </note>
|
---|
7596 | </desc>
|
---|
7597 | </param>
|
---|
7598 | <param name="description" type="wstring" dir="return">
|
---|
7599 | <desc>
|
---|
7600 | Model string. An empty string is returned if value is not known or
|
---|
7601 | @a cpuId is invalid.
|
---|
7602 | </desc>
|
---|
7603 | </param>
|
---|
7604 | </method>
|
---|
7605 |
|
---|
7606 | <method name="getProcessorCPUIDLeaf">
|
---|
7607 | <desc>
|
---|
7608 | Returns the CPU cpuid information for the specified leaf.
|
---|
7609 | </desc>
|
---|
7610 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7611 | <desc>
|
---|
7612 | Identifier of the CPU. The CPU most be online.
|
---|
7613 | <note>
|
---|
7614 | The current implementation might not necessarily return the
|
---|
7615 | description for this exact CPU.
|
---|
7616 | </note>
|
---|
7617 | </desc>
|
---|
7618 | </param>
|
---|
7619 | <param name="leaf" type="unsigned long" dir="in">
|
---|
7620 | <desc>
|
---|
7621 | CPUID leaf index (eax).
|
---|
7622 | </desc>
|
---|
7623 | </param>
|
---|
7624 | <param name="subLeaf" type="unsigned long" dir="in">
|
---|
7625 | <desc>
|
---|
7626 | CPUID leaf sub index (ecx). This currently only applies to cache
|
---|
7627 | information on Intel CPUs. Use 0 if retriving values for
|
---|
7628 | <link to="IMachine::setCPUIDLeaf"/>.
|
---|
7629 | </desc>
|
---|
7630 | </param>
|
---|
7631 | <param name="valEax" type="unsigned long" dir="out">
|
---|
7632 | <desc>
|
---|
7633 | CPUID leaf value for register eax.
|
---|
7634 | </desc>
|
---|
7635 | </param>
|
---|
7636 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
7637 | <desc>
|
---|
7638 | CPUID leaf value for register ebx.
|
---|
7639 | </desc>
|
---|
7640 | </param>
|
---|
7641 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
7642 | <desc>
|
---|
7643 | CPUID leaf value for register ecx.
|
---|
7644 | </desc>
|
---|
7645 | </param>
|
---|
7646 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
7647 | <desc>
|
---|
7648 | CPUID leaf value for register edx.
|
---|
7649 | </desc>
|
---|
7650 | </param>
|
---|
7651 | </method>
|
---|
7652 |
|
---|
7653 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
7654 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
7655 | </attribute>
|
---|
7656 |
|
---|
7657 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
7658 | <desc>Available system memory in the host system.</desc>
|
---|
7659 | </attribute>
|
---|
7660 |
|
---|
7661 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
7662 | <desc>Name of the host system's operating system.</desc>
|
---|
7663 | </attribute>
|
---|
7664 |
|
---|
7665 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
7666 | <desc>Host operating system's version string.</desc>
|
---|
7667 | </attribute>
|
---|
7668 |
|
---|
7669 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
7670 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
7671 | </attribute>
|
---|
7672 |
|
---|
7673 | <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
|
---|
7674 | <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
|
---|
7675 | </attribute>
|
---|
7676 |
|
---|
7677 | <method name="createHostOnlyNetworkInterface">
|
---|
7678 | <desc>
|
---|
7679 | Creates a new adapter for Host Only Networking.
|
---|
7680 | <result name="E_INVALIDARG">
|
---|
7681 | Host network interface @a name already exists.
|
---|
7682 | </result>
|
---|
7683 | </desc>
|
---|
7684 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7685 | <desc>
|
---|
7686 | Created host interface object.
|
---|
7687 | </desc>
|
---|
7688 | </param>
|
---|
7689 | <param name="progress" type="IProgress" dir="return">
|
---|
7690 | <desc>
|
---|
7691 | Progress object to track the operation completion.
|
---|
7692 | </desc>
|
---|
7693 | </param>
|
---|
7694 | </method>
|
---|
7695 |
|
---|
7696 | <method name="removeHostOnlyNetworkInterface">
|
---|
7697 | <desc>
|
---|
7698 | Removes the given Host Only Networking interface.
|
---|
7699 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7700 | No host network interface matching @a id found.
|
---|
7701 | </result>
|
---|
7702 | </desc>
|
---|
7703 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7704 | <desc>
|
---|
7705 | Adapter GUID.
|
---|
7706 | </desc>
|
---|
7707 | </param>
|
---|
7708 | <param name="progress" type="IProgress" dir="return">
|
---|
7709 | <desc>
|
---|
7710 | Progress object to track the operation completion.
|
---|
7711 | </desc>
|
---|
7712 | </param>
|
---|
7713 | </method>
|
---|
7714 |
|
---|
7715 | <method name="createUSBDeviceFilter">
|
---|
7716 | <desc>
|
---|
7717 | Creates a new USB device filter. All attributes except
|
---|
7718 | the filter name are set to empty (any match),
|
---|
7719 | <i>active</i> is @c false (the filter is not active).
|
---|
7720 |
|
---|
7721 | The created filter can be added to the list of filters using
|
---|
7722 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7723 |
|
---|
7724 | <see>#USBDeviceFilters</see>
|
---|
7725 | </desc>
|
---|
7726 | <param name="name" type="wstring" dir="in">
|
---|
7727 | <desc>
|
---|
7728 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
7729 | for more info.
|
---|
7730 | </desc>
|
---|
7731 | </param>
|
---|
7732 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7733 | <desc>Created filter object.</desc>
|
---|
7734 | </param>
|
---|
7735 | </method>
|
---|
7736 |
|
---|
7737 | <method name="insertUSBDeviceFilter">
|
---|
7738 | <desc>
|
---|
7739 | Inserts the given USB device to the specified position
|
---|
7740 | in the list of filters.
|
---|
7741 |
|
---|
7742 | Positions are numbered starting from @c 0. If the specified
|
---|
7743 | position is equal to or greater than the number of elements in
|
---|
7744 | the list, the filter is added at the end of the collection.
|
---|
7745 |
|
---|
7746 | <note>
|
---|
7747 | Duplicates are not allowed, so an attempt to insert a
|
---|
7748 | filter already in the list is an error.
|
---|
7749 | </note>
|
---|
7750 | <note>
|
---|
7751 | If USB functionality is not available in the given edition of
|
---|
7752 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7753 | </note>
|
---|
7754 |
|
---|
7755 | <see>#USBDeviceFilters</see>
|
---|
7756 |
|
---|
7757 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7758 | USB device filter is not created within this VirtualBox instance.
|
---|
7759 | </result>
|
---|
7760 | <result name="E_INVALIDARG">
|
---|
7761 | USB device filter already in list.
|
---|
7762 | </result>
|
---|
7763 |
|
---|
7764 | </desc>
|
---|
7765 | <param name="position" type="unsigned long" dir="in">
|
---|
7766 | <desc>Position to insert the filter to.</desc>
|
---|
7767 | </param>
|
---|
7768 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7769 | <desc>USB device filter to insert.</desc>
|
---|
7770 | </param>
|
---|
7771 | </method>
|
---|
7772 |
|
---|
7773 | <method name="removeUSBDeviceFilter">
|
---|
7774 | <desc>
|
---|
7775 | Removes a USB device filter from the specified position in the
|
---|
7776 | list of filters.
|
---|
7777 |
|
---|
7778 | Positions are numbered starting from @c 0. Specifying a
|
---|
7779 | position equal to or greater than the number of elements in
|
---|
7780 | the list will produce an error.
|
---|
7781 |
|
---|
7782 | <note>
|
---|
7783 | If USB functionality is not available in the given edition of
|
---|
7784 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7785 | </note>
|
---|
7786 |
|
---|
7787 | <see>#USBDeviceFilters</see>
|
---|
7788 |
|
---|
7789 | <result name="E_INVALIDARG">
|
---|
7790 | USB device filter list empty or invalid @a position.
|
---|
7791 | </result>
|
---|
7792 |
|
---|
7793 | </desc>
|
---|
7794 | <param name="position" type="unsigned long" dir="in">
|
---|
7795 | <desc>Position to remove the filter from.</desc>
|
---|
7796 | </param>
|
---|
7797 | </method>
|
---|
7798 |
|
---|
7799 | <method name="findHostDVDDrive">
|
---|
7800 | <desc>
|
---|
7801 | Searches for a host DVD drive with the given @c name.
|
---|
7802 |
|
---|
7803 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7804 | Given @c name does not correspond to any host drive.
|
---|
7805 | </result>
|
---|
7806 |
|
---|
7807 | </desc>
|
---|
7808 | <param name="name" type="wstring" dir="in">
|
---|
7809 | <desc>Name of the host drive to search for</desc>
|
---|
7810 | </param>
|
---|
7811 | <param name="drive" type="IMedium" dir="return">
|
---|
7812 | <desc>Found host drive object</desc>
|
---|
7813 | </param>
|
---|
7814 | </method>
|
---|
7815 |
|
---|
7816 | <method name="findHostFloppyDrive">
|
---|
7817 | <desc>
|
---|
7818 | Searches for a host floppy drive with the given @c name.
|
---|
7819 |
|
---|
7820 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7821 | Given @c name does not correspond to any host floppy drive.
|
---|
7822 | </result>
|
---|
7823 |
|
---|
7824 | </desc>
|
---|
7825 | <param name="name" type="wstring" dir="in">
|
---|
7826 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7827 | </param>
|
---|
7828 | <param name="drive" type="IMedium" dir="return">
|
---|
7829 | <desc>Found host floppy drive object</desc>
|
---|
7830 | </param>
|
---|
7831 | </method>
|
---|
7832 |
|
---|
7833 | <method name="findHostNetworkInterfaceByName">
|
---|
7834 | <desc>
|
---|
7835 | Searches through all host network interfaces for an interface with
|
---|
7836 | the given @c name.
|
---|
7837 | <note>
|
---|
7838 | The method returns an error if the given @c name does not
|
---|
7839 | correspond to any host network interface.
|
---|
7840 | </note>
|
---|
7841 | </desc>
|
---|
7842 | <param name="name" type="wstring" dir="in">
|
---|
7843 | <desc>Name of the host network interface to search for.</desc>
|
---|
7844 | </param>
|
---|
7845 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7846 | <desc>Found host network interface object.</desc>
|
---|
7847 | </param>
|
---|
7848 | </method>
|
---|
7849 | <method name="findHostNetworkInterfaceById">
|
---|
7850 | <desc>
|
---|
7851 | Searches through all host network interfaces for an interface with
|
---|
7852 | the given GUID.
|
---|
7853 | <note>
|
---|
7854 | The method returns an error if the given GUID does not
|
---|
7855 | correspond to any host network interface.
|
---|
7856 | </note>
|
---|
7857 | </desc>
|
---|
7858 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7859 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7860 | </param>
|
---|
7861 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7862 | <desc>Found host network interface object.</desc>
|
---|
7863 | </param>
|
---|
7864 | </method>
|
---|
7865 | <method name="findHostNetworkInterfacesOfType">
|
---|
7866 | <desc>
|
---|
7867 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7868 | </desc>
|
---|
7869 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7870 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7871 | </param>
|
---|
7872 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7873 | <desc>Found host network interface objects.</desc>
|
---|
7874 | </param>
|
---|
7875 | </method>
|
---|
7876 |
|
---|
7877 | <method name="findUSBDeviceById">
|
---|
7878 | <desc>
|
---|
7879 | Searches for a USB device with the given UUID.
|
---|
7880 |
|
---|
7881 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7882 | Given @c id does not correspond to any USB device.
|
---|
7883 | </result>
|
---|
7884 |
|
---|
7885 | <see>IHostUSBDevice::id</see>
|
---|
7886 | </desc>
|
---|
7887 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7888 | <desc>UUID of the USB device to search for.</desc>
|
---|
7889 | </param>
|
---|
7890 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7891 | <desc>Found USB device object.</desc>
|
---|
7892 | </param>
|
---|
7893 | </method>
|
---|
7894 |
|
---|
7895 | <method name="findUSBDeviceByAddress">
|
---|
7896 | <desc>
|
---|
7897 | Searches for a USB device with the given host address.
|
---|
7898 |
|
---|
7899 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7900 | Given @c name does not correspond to any USB device.
|
---|
7901 | </result>
|
---|
7902 |
|
---|
7903 | <see>IHostUSBDevice::address</see>
|
---|
7904 | </desc>
|
---|
7905 | <param name="name" type="wstring" dir="in">
|
---|
7906 | <desc>
|
---|
7907 | Address of the USB device (as assigned by the host) to
|
---|
7908 | search for.
|
---|
7909 | </desc>
|
---|
7910 | </param>
|
---|
7911 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7912 | <desc>Found USB device object.</desc>
|
---|
7913 | </param>
|
---|
7914 | </method>
|
---|
7915 |
|
---|
7916 | </interface>
|
---|
7917 |
|
---|
7918 | <!--
|
---|
7919 | // ISystemProperties
|
---|
7920 | /////////////////////////////////////////////////////////////////////////
|
---|
7921 | -->
|
---|
7922 |
|
---|
7923 | <interface
|
---|
7924 | name="ISystemProperties"
|
---|
7925 | extends="$unknown"
|
---|
7926 | uuid="07c3ffd8-8f59-49cc-b608-53a332e85cc3"
|
---|
7927 | wsmap="managed"
|
---|
7928 | >
|
---|
7929 | <desc>
|
---|
7930 | The ISystemProperties interface represents global properties of the given
|
---|
7931 | VirtualBox installation.
|
---|
7932 |
|
---|
7933 | These properties define limits and default values for various attributes
|
---|
7934 | and parameters. Most of the properties are read-only, but some can be
|
---|
7935 | changed by a user.
|
---|
7936 | </desc>
|
---|
7937 |
|
---|
7938 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7939 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7940 | </attribute>
|
---|
7941 |
|
---|
7942 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7943 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7944 | </attribute>
|
---|
7945 |
|
---|
7946 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7947 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7948 | </attribute>
|
---|
7949 |
|
---|
7950 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7951 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7952 | </attribute>
|
---|
7953 |
|
---|
7954 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7955 | <desc>Minimum CPU count.</desc>
|
---|
7956 | </attribute>
|
---|
7957 |
|
---|
7958 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7959 | <desc>Maximum CPU count.</desc>
|
---|
7960 | </attribute>
|
---|
7961 |
|
---|
7962 | <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
|
---|
7963 | <desc>Maximum of monitors which could be connected.</desc>
|
---|
7964 | </attribute>
|
---|
7965 |
|
---|
7966 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
7967 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
7968 | </attribute>
|
---|
7969 |
|
---|
7970 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
7971 | <desc>
|
---|
7972 | Number of network adapters associated with every
|
---|
7973 | <link to="IMachine"/> instance.
|
---|
7974 | </desc>
|
---|
7975 | </attribute>
|
---|
7976 |
|
---|
7977 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7978 | <desc>
|
---|
7979 | Number of serial ports associated with every
|
---|
7980 | <link to="IMachine"/> instance.
|
---|
7981 | </desc>
|
---|
7982 | </attribute>
|
---|
7983 |
|
---|
7984 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7985 | <desc>
|
---|
7986 | Number of parallel ports associated with every
|
---|
7987 | <link to="IMachine"/> instance.
|
---|
7988 | </desc>
|
---|
7989 | </attribute>
|
---|
7990 |
|
---|
7991 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7992 | <desc>
|
---|
7993 | Maximum device position in the boot order. This value corresponds
|
---|
7994 | to the total number of devices a machine can boot from, to make it
|
---|
7995 | possible to include all possible devices to the boot list.
|
---|
7996 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7997 | </desc>
|
---|
7998 | </attribute>
|
---|
7999 |
|
---|
8000 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
8001 | <desc>
|
---|
8002 | Full path to the default directory used to create new or open
|
---|
8003 | existing machines when a settings file name contains no
|
---|
8004 | path.
|
---|
8005 |
|
---|
8006 | The initial value of this property is
|
---|
8007 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
8008 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
8009 |
|
---|
8010 | <note>
|
---|
8011 | Setting this property to @c null or an empty string will restore the
|
---|
8012 | initial value.
|
---|
8013 | </note>
|
---|
8014 | <note>
|
---|
8015 | When settings this property, the specified path can be
|
---|
8016 | absolute (full path) or relative
|
---|
8017 | to the <link to="IVirtualBox::homeFolder">
|
---|
8018 | VirtualBox home directory</link>.
|
---|
8019 | When reading this property, a full path is
|
---|
8020 | always returned.
|
---|
8021 | </note>
|
---|
8022 | <note>
|
---|
8023 | The specified path may not exist, it will be created
|
---|
8024 | when necessary.
|
---|
8025 | </note>
|
---|
8026 |
|
---|
8027 | <see>
|
---|
8028 | <link to="IVirtualBox::createMachine"/>,
|
---|
8029 | <link to="IVirtualBox::openMachine"/>
|
---|
8030 | </see>
|
---|
8031 | </desc>
|
---|
8032 | </attribute>
|
---|
8033 |
|
---|
8034 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
8035 | <desc>
|
---|
8036 | Full path to the default directory used to create new or open existing
|
---|
8037 | virtual disks.
|
---|
8038 |
|
---|
8039 | This path is used when the storage unit of a hard disk is a regular file
|
---|
8040 | in the host's file system and only a file name that contains no path is
|
---|
8041 | given.
|
---|
8042 |
|
---|
8043 | The initial value of this property is
|
---|
8044 | <tt><</tt>
|
---|
8045 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
8046 | <tt>>/HardDisks</tt>.
|
---|
8047 |
|
---|
8048 | <note>
|
---|
8049 | Setting this property to @c null or empty string will restore the
|
---|
8050 | initial value.
|
---|
8051 | </note>
|
---|
8052 | <note>
|
---|
8053 | When settings this property, the specified path can be relative
|
---|
8054 | to the
|
---|
8055 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
8056 | absolute. When reading this property, a full path is
|
---|
8057 | always returned.
|
---|
8058 | </note>
|
---|
8059 | <note>
|
---|
8060 | The specified path may not exist, it will be created
|
---|
8061 | when necessary.
|
---|
8062 | </note>
|
---|
8063 |
|
---|
8064 | <see>
|
---|
8065 | IMedium,
|
---|
8066 | <link to="IVirtualBox::createHardDisk"/>,
|
---|
8067 | <link to="IVirtualBox::openHardDisk"/>,
|
---|
8068 | <link to="IMedium::location"/>
|
---|
8069 | </see>
|
---|
8070 | </desc>
|
---|
8071 | </attribute>
|
---|
8072 |
|
---|
8073 | <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
|
---|
8074 | <desc>
|
---|
8075 | List of all medium storage formats supported by this VirtualBox
|
---|
8076 | installation.
|
---|
8077 |
|
---|
8078 | Keep in mind that the medium format identifier
|
---|
8079 | (<link to="IMediumFormat::id"/>) used in other API calls like
|
---|
8080 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
8081 | medium format is a case-insensitive string. This means that, for
|
---|
8082 | example, all of the following strings:
|
---|
8083 | <pre>
|
---|
8084 | "VDI"
|
---|
8085 | "vdi"
|
---|
8086 | "VdI"</pre>
|
---|
8087 | refer to the same medium format.
|
---|
8088 |
|
---|
8089 | Note that the virtual medium framework is backend-based, therefore
|
---|
8090 | the list of supported formats depends on what backends are currently
|
---|
8091 | installed.
|
---|
8092 |
|
---|
8093 | <see>
|
---|
8094 | <link to="IMediumFormat"/>,
|
---|
8095 | </see>
|
---|
8096 | </desc>
|
---|
8097 | </attribute>
|
---|
8098 |
|
---|
8099 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
8100 | <desc>
|
---|
8101 | Identifier of the default medium format used by VirtualBox.
|
---|
8102 |
|
---|
8103 | The medium format set by this attribute is used by VirtualBox
|
---|
8104 | when the medium format was not specified explicitly. One example is
|
---|
8105 | <link to="IVirtualBox::createHardDisk"/> with the empty
|
---|
8106 | format argument. A more complex example is implicit creation of
|
---|
8107 | differencing media when taking a snapshot of a virtual machine:
|
---|
8108 | this operation will try to use a format of the parent medium first
|
---|
8109 | and if this format does not support differencing media the default
|
---|
8110 | format specified by this argument will be used.
|
---|
8111 |
|
---|
8112 | The list of supported medium formats may be obtained by the
|
---|
8113 | <link to="#mediaFormats"/> call. Note that the default medium
|
---|
8114 | format must have a capability to create differencing media;
|
---|
8115 | otherwise operations that create media implicitly may fail
|
---|
8116 | unexpectedly.
|
---|
8117 |
|
---|
8118 | The initial value of this property is <tt>"VDI"</tt> in the current
|
---|
8119 | version of the VirtualBox product, but may change in the future.
|
---|
8120 |
|
---|
8121 | <note>
|
---|
8122 | Setting this property to @c null or empty string will restore the
|
---|
8123 | initial value.
|
---|
8124 | </note>
|
---|
8125 |
|
---|
8126 | <see>
|
---|
8127 | <link to="#mediaFormats"/>,
|
---|
8128 | <link to="IMediumFormat::id"/>,
|
---|
8129 | <link to="IVirtualBox::createHardDisk"/>
|
---|
8130 | </see>
|
---|
8131 | </desc>
|
---|
8132 | </attribute>
|
---|
8133 |
|
---|
8134 | <attribute name="freeDiskSpaceWarning" type="unsigned long long">
|
---|
8135 | <desc>Issue a warning if the free disk space is below (or in some disk
|
---|
8136 | intensive operation is expected to go below) the given size in
|
---|
8137 | Megabytes.</desc>
|
---|
8138 | </attribute>
|
---|
8139 |
|
---|
8140 | <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
|
---|
8141 | <desc>Issue a warning if the free disk space is below (or in some disk
|
---|
8142 | intensive operation is expected to go below) the given percentage.</desc>
|
---|
8143 | </attribute>
|
---|
8144 |
|
---|
8145 | <attribute name="freeDiskSpaceError" type="unsigned long long">
|
---|
8146 | <desc>Issue an error if the free disk space is below (or in some disk
|
---|
8147 | intensive operation is expected to go below) the given size in
|
---|
8148 | Megabytes.</desc>
|
---|
8149 | </attribute>
|
---|
8150 |
|
---|
8151 | <attribute name="freeDiskSpacePercentError" type="unsigned long">
|
---|
8152 | <desc>Issue an error if the free disk space is below (or in some disk
|
---|
8153 | intensive operation is expected to go below) the given percentage.</desc>
|
---|
8154 | </attribute>
|
---|
8155 |
|
---|
8156 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
8157 | <desc>
|
---|
8158 | Library that provides authentication for VRDP clients. The library
|
---|
8159 | is used if a virtual machine's authentication type is set to "external"
|
---|
8160 | in the VM RemoteDisplay configuration.
|
---|
8161 |
|
---|
8162 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
8163 | A full path can be specified; if not, then the library must reside on the
|
---|
8164 | system's default library path.
|
---|
8165 |
|
---|
8166 | The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
|
---|
8167 | of that name in one of the default VirtualBox library directories.
|
---|
8168 |
|
---|
8169 | For details about VirtualBox authentication libraries and how to implement
|
---|
8170 | them, please refer to the VirtualBox manual.
|
---|
8171 |
|
---|
8172 | <note>
|
---|
8173 | Setting this property to @c null or empty string will restore the
|
---|
8174 | initial value.
|
---|
8175 | </note>
|
---|
8176 | </desc>
|
---|
8177 | </attribute>
|
---|
8178 |
|
---|
8179 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
8180 | <desc>
|
---|
8181 | Library that provides authentication for webservice clients. The library
|
---|
8182 | is used if a virtual machine's authentication type is set to "external"
|
---|
8183 | in the VM RemoteDisplay configuration and will be called from
|
---|
8184 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
8185 |
|
---|
8186 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
8187 | there is no per-VM setting for this, as the webservice is a global
|
---|
8188 | resource (if it is running). Only for this setting (for the webservice),
|
---|
8189 | setting this value to a literal <tt>"null"</tt> string disables authentication,
|
---|
8190 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
8191 | no matter what user name and password are supplied.
|
---|
8192 |
|
---|
8193 | The initial value of this property is <tt>"VRDPAuth"</tt>,
|
---|
8194 | meaning that the webservice will use the same authentication
|
---|
8195 | library that is used by default for VBoxVRDP (again, see
|
---|
8196 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
8197 | The format and calling convention of authentication libraries
|
---|
8198 | is the same for the webservice as it is for VBoxVRDP.
|
---|
8199 |
|
---|
8200 | <note>
|
---|
8201 | Setting this property to @c null or empty string will restore the
|
---|
8202 | initial value.
|
---|
8203 | </note>
|
---|
8204 | </desc>
|
---|
8205 | </attribute>
|
---|
8206 |
|
---|
8207 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
8208 | <desc>
|
---|
8209 | This value specifies how many old release log files are kept.
|
---|
8210 | </desc>
|
---|
8211 | </attribute>
|
---|
8212 |
|
---|
8213 | <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
|
---|
8214 | <desc>This value hold the default audio driver for the current
|
---|
8215 | system.</desc>
|
---|
8216 | </attribute>
|
---|
8217 |
|
---|
8218 | <method name="getMaxDevicesPerPortForStorageBus">
|
---|
8219 | <desc>Returns the maximum number of devices which can be attached to a port
|
---|
8220 | for the given storage bus.</desc>
|
---|
8221 |
|
---|
8222 | <param name="bus" type="StorageBus" dir="in">
|
---|
8223 | <desc>The storage bus type to get the value for.</desc>
|
---|
8224 | </param>
|
---|
8225 |
|
---|
8226 | <param name="maxDevicesPerPort" type="unsigned long" dir="return">
|
---|
8227 | <desc>The maximum number of devices which can eb attached to the port for the given
|
---|
8228 | storage bus.</desc>
|
---|
8229 | </param>
|
---|
8230 | </method>
|
---|
8231 |
|
---|
8232 | <method name="getMinPortCountForStorageBus">
|
---|
8233 | <desc>Returns the minimum number of ports the given storage bus supports.</desc>
|
---|
8234 |
|
---|
8235 | <param name="bus" type="StorageBus" dir="in">
|
---|
8236 | <desc>The storage bus type to get the value for.</desc>
|
---|
8237 | </param>
|
---|
8238 |
|
---|
8239 | <param name="minPortCount" type="unsigned long" dir="return">
|
---|
8240 | <desc>The minimum number of ports for the given storage bus.</desc>
|
---|
8241 | </param>
|
---|
8242 | </method>
|
---|
8243 |
|
---|
8244 | <method name="getMaxPortCountForStorageBus">
|
---|
8245 | <desc>Returns the maximum number of ports the given storage bus supports.</desc>
|
---|
8246 |
|
---|
8247 | <param name="bus" type="StorageBus" dir="in">
|
---|
8248 | <desc>The storage bus type to get the value for.</desc>
|
---|
8249 | </param>
|
---|
8250 |
|
---|
8251 | <param name="maxPortCount" type="unsigned long" dir="return">
|
---|
8252 | <desc>The maximum number of ports for the given storage bus.</desc>
|
---|
8253 | </param>
|
---|
8254 | </method>
|
---|
8255 |
|
---|
8256 | <method name="getMaxInstancesOfStorageBus">
|
---|
8257 | <desc>Returns the maximum number of storage bus instances which
|
---|
8258 | can be configured for each VM. This corresponds to the number of
|
---|
8259 | storage controllers one can have.</desc>
|
---|
8260 |
|
---|
8261 | <param name="bus" type="StorageBus" dir="in">
|
---|
8262 | <desc>The storage bus type to get the value for.</desc>
|
---|
8263 | </param>
|
---|
8264 |
|
---|
8265 | <param name="maxInstances" type="unsigned long" dir="return">
|
---|
8266 | <desc>The maximum number of instances for the given storage bus.</desc>
|
---|
8267 | </param>
|
---|
8268 | </method>
|
---|
8269 |
|
---|
8270 | <method name="getDeviceTypesForStorageBus">
|
---|
8271 | <desc>Returns list of all the supported device types
|
---|
8272 | (<link to="DeviceType"/>) for the given type of storage
|
---|
8273 | bus.</desc>
|
---|
8274 |
|
---|
8275 | <param name="bus" type="StorageBus" dir="in">
|
---|
8276 | <desc>The storage bus type to get the value for.</desc>
|
---|
8277 | </param>
|
---|
8278 |
|
---|
8279 | <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
|
---|
8280 | <desc>The list of all supported device types for the given storage bus.</desc>
|
---|
8281 | </param>
|
---|
8282 | </method>
|
---|
8283 | </interface>
|
---|
8284 |
|
---|
8285 | <!--
|
---|
8286 | // IGuest
|
---|
8287 | /////////////////////////////////////////////////////////////////////////
|
---|
8288 | -->
|
---|
8289 |
|
---|
8290 | <interface
|
---|
8291 | name="IGuestOSType" extends="$unknown"
|
---|
8292 | uuid="3fcf2078-3c69-45ca-bd5c-79c3e3c15362"
|
---|
8293 | wsmap="struct"
|
---|
8294 | >
|
---|
8295 | <desc>
|
---|
8296 | </desc>
|
---|
8297 |
|
---|
8298 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
8299 | <desc>Guest OS family identifier string.</desc>
|
---|
8300 | </attribute>
|
---|
8301 |
|
---|
8302 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
8303 | <desc>Human readable description of the guest OS family.</desc>
|
---|
8304 | </attribute>
|
---|
8305 |
|
---|
8306 | <attribute name="id" type="wstring" readonly="yes">
|
---|
8307 | <desc>Guest OS identifier string.</desc>
|
---|
8308 | </attribute>
|
---|
8309 |
|
---|
8310 | <attribute name="description" type="wstring" readonly="yes">
|
---|
8311 | <desc>Human readable description of the guest OS.</desc>
|
---|
8312 | </attribute>
|
---|
8313 |
|
---|
8314 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
8315 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
8316 | </attribute>
|
---|
8317 |
|
---|
8318 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
8319 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
8320 | </attribute>
|
---|
8321 |
|
---|
8322 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
8323 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
8324 | </attribute>
|
---|
8325 |
|
---|
8326 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
8327 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
8328 | </attribute>
|
---|
8329 |
|
---|
8330 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
8331 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
8332 | </attribute>
|
---|
8333 |
|
---|
8334 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
8335 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
8336 | </attribute>
|
---|
8337 |
|
---|
8338 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
8339 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
8340 | </attribute>
|
---|
8341 |
|
---|
8342 | <attribute name="recommendedPae" type="boolean" readonly="yes">
|
---|
8343 | <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
|
---|
8344 | </attribute>
|
---|
8345 |
|
---|
8346 | <attribute name="recommendedStorageController" type="StorageControllerType" readonly="yes">
|
---|
8347 | <desc>Recommended storage controller type.</desc>
|
---|
8348 | </attribute>
|
---|
8349 |
|
---|
8350 | <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
|
---|
8351 | <desc>Recommended firmware type.</desc>
|
---|
8352 | </attribute>
|
---|
8353 |
|
---|
8354 | <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
|
---|
8355 | <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
|
---|
8356 | </attribute>
|
---|
8357 |
|
---|
8358 | <attribute name="recommendedHpet" type="boolean" readonly="yes">
|
---|
8359 | <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
|
---|
8360 | </attribute>
|
---|
8361 |
|
---|
8362 | <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
|
---|
8363 | <desc>Returns @c true if using a USB Tablet is recommended.</desc>
|
---|
8364 | </attribute>
|
---|
8365 |
|
---|
8366 | <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
|
---|
8367 | <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
|
---|
8368 | </attribute>
|
---|
8369 |
|
---|
8370 | </interface>
|
---|
8371 |
|
---|
8372 | <interface
|
---|
8373 | name="IGuest" extends="$unknown"
|
---|
8374 | uuid="419cb190-a2f1-4beb-af8d-fadc75c6ecf7"
|
---|
8375 | wsmap="managed"
|
---|
8376 | >
|
---|
8377 | <desc>
|
---|
8378 | The IGuest interface represents information about the operating system
|
---|
8379 | running inside the virtual machine. Used in
|
---|
8380 | <link to="IConsole::guest"/>.
|
---|
8381 |
|
---|
8382 | IGuest provides information about the guest operating system, whether
|
---|
8383 | Guest Additions are installed and other OS-specific virtual machine
|
---|
8384 | properties.
|
---|
8385 | </desc>
|
---|
8386 |
|
---|
8387 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
8388 | <desc>
|
---|
8389 | Identifier of the Guest OS type as reported by the Guest
|
---|
8390 | Additions.
|
---|
8391 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
8392 | an IGuestOSType object representing details about the given
|
---|
8393 | Guest OS type.
|
---|
8394 | <note>
|
---|
8395 | If Guest Additions are not installed, this value will be
|
---|
8396 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
8397 | </note>
|
---|
8398 | </desc>
|
---|
8399 | </attribute>
|
---|
8400 |
|
---|
8401 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
8402 | <desc>
|
---|
8403 | Flag whether the Guest Additions are installed and active
|
---|
8404 | in which case their version will be returned by the
|
---|
8405 | <link to="#additionsVersion"/> property.
|
---|
8406 | </desc>
|
---|
8407 | </attribute>
|
---|
8408 |
|
---|
8409 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
8410 | <desc>
|
---|
8411 | Version of the Guest Additions (3 decimal numbers separated
|
---|
8412 | by dots) or empty when the Additions are not installed. The
|
---|
8413 | Additions may also report a version but yet not be active as
|
---|
8414 | the version might be refused by VirtualBox (incompatible) or
|
---|
8415 | other failures occurred.
|
---|
8416 | </desc>
|
---|
8417 | </attribute>
|
---|
8418 |
|
---|
8419 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
8420 | <desc>
|
---|
8421 | Flag whether seamless guest display rendering (seamless desktop
|
---|
8422 | integration) is supported.
|
---|
8423 | </desc>
|
---|
8424 | </attribute>
|
---|
8425 |
|
---|
8426 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
8427 | <desc>
|
---|
8428 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
8429 | seamless rendering will not work, resize hints are not immediately
|
---|
8430 | acted on and guest display resizes are probably not initiated by
|
---|
8431 | the guest additions.
|
---|
8432 | </desc>
|
---|
8433 | </attribute>
|
---|
8434 |
|
---|
8435 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
8436 | <desc>Guest system memory balloon size in megabytes (transient property).</desc>
|
---|
8437 | </attribute>
|
---|
8438 |
|
---|
8439 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
8440 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
8441 | </attribute>
|
---|
8442 |
|
---|
8443 | <method name="internalGetStatistics">
|
---|
8444 | <desc>
|
---|
8445 | Internal method; do not use as it might change at any time
|
---|
8446 | </desc>
|
---|
8447 | <param name="cpuUser" type="unsigned long" dir="out">
|
---|
8448 | <desc>Percentage of processor time spent in user mode as seen by the guest</desc>
|
---|
8449 | </param>
|
---|
8450 | <param name="cpuKernel" type="unsigned long" dir="out">
|
---|
8451 | <desc>Percentage of processor time spent in kernel mode as seen by the guest</desc>
|
---|
8452 | </param>
|
---|
8453 | <param name="cpuIdle" type="unsigned long" dir="out">
|
---|
8454 | <desc>Percentage of processor time spent idling as seen by the guest</desc>
|
---|
8455 | </param>
|
---|
8456 | <param name="memTotal" type="unsigned long" dir="out">
|
---|
8457 | <desc>Total amount of physical guest RAM</desc>
|
---|
8458 | </param>
|
---|
8459 | <param name="memFree" type="unsigned long" dir="out">
|
---|
8460 | <desc>Free amount of physical guest RAM</desc>
|
---|
8461 | </param>
|
---|
8462 | <param name="memBalloon" type="unsigned long" dir="out">
|
---|
8463 | <desc>Amount of ballooned physical guest RAM</desc>
|
---|
8464 | </param>
|
---|
8465 | <param name="memCache" type="unsigned long" dir="out">
|
---|
8466 | <desc>Total amount of guest (disk) cache memory</desc>
|
---|
8467 | </param>
|
---|
8468 | <param name="pagedTotal" type="unsigned long" dir="out">
|
---|
8469 | <desc>Total amount of space in the page file</desc>
|
---|
8470 | </param>
|
---|
8471 | <param name="memAllocTotal" type="unsigned long" dir="out">
|
---|
8472 | <desc>Total amount of memory allocated by the hypervisor</desc>
|
---|
8473 | </param>
|
---|
8474 | <param name="memFreeTotal" type="unsigned long" dir="out">
|
---|
8475 | <desc>Total amount of free memory available in the hypervisor</desc>
|
---|
8476 | </param>
|
---|
8477 | <param name="memBalloonTotal" type="unsigned long" dir="out">
|
---|
8478 | <desc>Total amount of memory ballooned by the hypervisor</desc>
|
---|
8479 | </param>
|
---|
8480 | </method>
|
---|
8481 |
|
---|
8482 | <method name="setCredentials">
|
---|
8483 | <desc>
|
---|
8484 | Store login credentials that can be queried by guest operating
|
---|
8485 | systems with Additions installed. The credentials are transient
|
---|
8486 | to the session and the guest may also choose to erase them. Note
|
---|
8487 | that the caller cannot determine whether the guest operating system
|
---|
8488 | has queried or made use of the credentials.
|
---|
8489 |
|
---|
8490 | <result name="VBOX_E_VM_ERROR">
|
---|
8491 | VMM device is not available.
|
---|
8492 | </result>
|
---|
8493 |
|
---|
8494 | </desc>
|
---|
8495 | <param name="userName" type="wstring" dir="in">
|
---|
8496 | <desc>User name string, can be empty</desc>
|
---|
8497 | </param>
|
---|
8498 | <param name="password" type="wstring" dir="in">
|
---|
8499 | <desc>Password string, can be empty</desc>
|
---|
8500 | </param>
|
---|
8501 | <param name="domain" type="wstring" dir="in">
|
---|
8502 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
8503 | </param>
|
---|
8504 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
8505 | <desc>
|
---|
8506 | Flag whether the guest should alternatively allow the user to
|
---|
8507 | interactively specify different credentials. This flag might
|
---|
8508 | not be supported by all versions of the Additions.
|
---|
8509 | </desc>
|
---|
8510 | </param>
|
---|
8511 | </method>
|
---|
8512 |
|
---|
8513 | <method name="executeProcess">
|
---|
8514 | <desc>
|
---|
8515 | Executes an existing program inside the guest VM.
|
---|
8516 |
|
---|
8517 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8518 | Could not execute process.
|
---|
8519 | </result>
|
---|
8520 |
|
---|
8521 | </desc>
|
---|
8522 | <param name="execName" type="wstring" dir="in">
|
---|
8523 | <desc>
|
---|
8524 | Full path name of the command to execute on the guest; the
|
---|
8525 | commands has to exists in the guest VM in order to be executed.
|
---|
8526 | </desc>
|
---|
8527 | </param>
|
---|
8528 | <param name="flags" type="unsigned long" dir="in">
|
---|
8529 | <desc>
|
---|
8530 | Execution flags - currently not supported and therefore
|
---|
8531 | has to be set to 0.
|
---|
8532 | </desc>
|
---|
8533 | </param>
|
---|
8534 | <param name="arguments" type="wstring" safearray="yes" dir="in">
|
---|
8535 | <desc>
|
---|
8536 | Array of arguments passed to the execution command.
|
---|
8537 | </desc>
|
---|
8538 | </param>
|
---|
8539 | <param name="environment" type="wstring" safearray="yes" dir="in">
|
---|
8540 | <desc>
|
---|
8541 | Environment variables that can be set while the command is being
|
---|
8542 | executed, in form of "NAME=VALUE"; one pair per entry. To unset a
|
---|
8543 | variable just set its name ("NAME") without a value.
|
---|
8544 | </desc>
|
---|
8545 | </param>
|
---|
8546 | <param name="stdIn" type="wstring" dir="in">
|
---|
8547 | <desc>
|
---|
8548 | What to do with the standard input (stdin) of the command being
|
---|
8549 | executed. Currently not used and has to be set to an empty value.
|
---|
8550 | </desc>
|
---|
8551 | </param>
|
---|
8552 | <param name="stdOut" type="wstring" dir="in">
|
---|
8553 | <desc>
|
---|
8554 | What to do with the standard output (stdout) of the command being
|
---|
8555 | executed. Currently not used and has to be set to an empty value.
|
---|
8556 | </desc>
|
---|
8557 | </param>
|
---|
8558 | <param name="stdErr" type="wstring" dir="in">
|
---|
8559 | <desc>
|
---|
8560 | What to do with the standard error (stderr) of the command being
|
---|
8561 | executed. Currently not used and has to be set to an empty value.
|
---|
8562 | </desc>
|
---|
8563 | </param>
|
---|
8564 | <param name="userName" type="wstring" dir="in">
|
---|
8565 | <desc>
|
---|
8566 | User name under which the command will be executed; has to exist
|
---|
8567 | and have the appropriate rights to execute programs in the VM.
|
---|
8568 | </desc>
|
---|
8569 | </param>
|
---|
8570 | <param name="password" type="wstring" dir="in">
|
---|
8571 | <desc>
|
---|
8572 | Password of the user account specified.
|
---|
8573 | </desc>
|
---|
8574 | </param>
|
---|
8575 | <param name="timeoutMS" type="unsigned long" dir="in">
|
---|
8576 | <desc>
|
---|
8577 | The maximum timeout value (in msec) to wait for finished program
|
---|
8578 | execution. Pass 0 for an infinite timeout.
|
---|
8579 | </desc>
|
---|
8580 | </param>
|
---|
8581 | <param name="pid" type="unsigned long" dir="out">
|
---|
8582 | <desc>
|
---|
8583 | The PID (process ID) of the started command for later reference.
|
---|
8584 | </desc>
|
---|
8585 | </param>
|
---|
8586 | <param name="progress" type="IProgress" dir="return">
|
---|
8587 | <desc>Progress object to track the operation completion.</desc>
|
---|
8588 | </param>
|
---|
8589 | </method>
|
---|
8590 |
|
---|
8591 | <method name="getProcessOutput">
|
---|
8592 | <desc>
|
---|
8593 | Retrieves output of a formerly started process.
|
---|
8594 |
|
---|
8595 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8596 | Could not retrieve output.
|
---|
8597 | </result>
|
---|
8598 |
|
---|
8599 | </desc>
|
---|
8600 | <param name="pid" type="unsigned long" dir="in">
|
---|
8601 | <desc>
|
---|
8602 | Buffer for retrieving the actual output.
|
---|
8603 | </desc>
|
---|
8604 | </param>
|
---|
8605 | <param name="flags" type="unsigned long" dir="in">
|
---|
8606 | <desc>
|
---|
8607 | Flags describing which output to retrieve.
|
---|
8608 | </desc>
|
---|
8609 | </param>
|
---|
8610 | <param name="size" type="unsigned long long" dir="in">
|
---|
8611 | <desc>
|
---|
8612 | Size in bytes to read in the buffer.
|
---|
8613 | </desc>
|
---|
8614 | </param>
|
---|
8615 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
8616 | <desc>
|
---|
8617 | Buffer for retrieving the actual output. A data size of 0 means end of file
|
---|
8618 | if the requested size was not 0. This is the unprocessed
|
---|
8619 | output data, i.e. the line ending style depends on the platform of
|
---|
8620 | the system the server is running on.
|
---|
8621 | </desc>
|
---|
8622 | </param>
|
---|
8623 | </method>
|
---|
8624 |
|
---|
8625 | </interface>
|
---|
8626 |
|
---|
8627 |
|
---|
8628 | <!--
|
---|
8629 | // IProgress
|
---|
8630 | /////////////////////////////////////////////////////////////////////////
|
---|
8631 | -->
|
---|
8632 |
|
---|
8633 | <interface
|
---|
8634 | name="IProgress" extends="$unknown"
|
---|
8635 | uuid="856aa038-853f-42e2-acf7-6e7b02dbe294"
|
---|
8636 | wsmap="managed"
|
---|
8637 | >
|
---|
8638 | <desc>
|
---|
8639 | The IProgress interface is used to track and control
|
---|
8640 | asynchronous tasks within VirtualBox.
|
---|
8641 |
|
---|
8642 | An instance of this is returned every time VirtualBox starts
|
---|
8643 | an asynchronous task (in other words, a separate thread) which
|
---|
8644 | continues to run after a method call returns. For example,
|
---|
8645 | <link to="IConsole::saveState" />, which saves the state of
|
---|
8646 | a running virtual machine, can take a long time to complete.
|
---|
8647 | To be able to display a progress bar, a user interface such as
|
---|
8648 | the VirtualBox graphical user interface can use the IProgress
|
---|
8649 | object returned by that method.
|
---|
8650 |
|
---|
8651 | Note that IProgress is a "read-only" interface in the sense
|
---|
8652 | that only the VirtualBox internals behind the Main API can
|
---|
8653 | create and manipulate progress objects, whereas client code
|
---|
8654 | can only use the IProgress object to monitor a task's
|
---|
8655 | progress and, if <link to="#cancelable" /> is @c true,
|
---|
8656 | cancel the task by calling <link to="#cancel" />.
|
---|
8657 |
|
---|
8658 | A task represented by IProgress consists of either one or
|
---|
8659 | several sub-operations that run sequentially, one by one (see
|
---|
8660 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
8661 | Every operation is identified by a number (starting from 0)
|
---|
8662 | and has a separate description.
|
---|
8663 |
|
---|
8664 | You can find the individual percentage of completion of the current
|
---|
8665 | operation in <link to="#operationPercent" /> and the
|
---|
8666 | percentage of completion of the task as a whole
|
---|
8667 | in <link to="#percent" />.
|
---|
8668 |
|
---|
8669 | Similarly, you can wait for the completion of a particular
|
---|
8670 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
8671 | for the completion of the whole task via
|
---|
8672 | <link to="#waitForCompletion" />.
|
---|
8673 | </desc>
|
---|
8674 |
|
---|
8675 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8676 | <desc>ID of the task.</desc>
|
---|
8677 | </attribute>
|
---|
8678 |
|
---|
8679 | <attribute name="description" type="wstring" readonly="yes">
|
---|
8680 | <desc>Description of the task.</desc>
|
---|
8681 | </attribute>
|
---|
8682 |
|
---|
8683 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
8684 | <desc>Initiator of the task.</desc>
|
---|
8685 | </attribute>
|
---|
8686 |
|
---|
8687 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
8688 | <desc>Whether the task can be interrupted.</desc>
|
---|
8689 | </attribute>
|
---|
8690 |
|
---|
8691 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
8692 | <desc>
|
---|
8693 | Current progress value of the task as a whole, in percent.
|
---|
8694 | This value depends on how many operations are already complete.
|
---|
8695 | Returns 100 if <link to="#completed" /> is @c true.
|
---|
8696 | </desc>
|
---|
8697 | </attribute>
|
---|
8698 |
|
---|
8699 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
8700 | <desc>
|
---|
8701 | Estimated remaining time until the task completes, in
|
---|
8702 | seconds. Returns 0 once the task has completed; returns -1
|
---|
8703 | if the remaining time cannot be computed, in particular if
|
---|
8704 | the current progress is 0.
|
---|
8705 |
|
---|
8706 | Even if a value is returned, the estimate will be unreliable
|
---|
8707 | for low progress values. It will become more reliable as the
|
---|
8708 | task progresses; it is not recommended to display an ETA
|
---|
8709 | before at least 20% of a task have completed.
|
---|
8710 | </desc>
|
---|
8711 | </attribute>
|
---|
8712 |
|
---|
8713 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
8714 | <desc>Whether the task has been completed.</desc>
|
---|
8715 | </attribute>
|
---|
8716 |
|
---|
8717 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
8718 | <desc>Whether the task has been canceled.</desc>
|
---|
8719 | </attribute>
|
---|
8720 |
|
---|
8721 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
8722 | <desc>
|
---|
8723 | Result code of the progress task.
|
---|
8724 | Valid only if <link to="#completed"/> is @c true.
|
---|
8725 | </desc>
|
---|
8726 | </attribute>
|
---|
8727 |
|
---|
8728 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
8729 | <desc>
|
---|
8730 | Extended information about the unsuccessful result of the
|
---|
8731 | progress operation. May be @c null if no extended information
|
---|
8732 | is available.
|
---|
8733 | Valid only if <link to="#completed"/> is @c true and
|
---|
8734 | <link to="#resultCode"/> indicates a failure.
|
---|
8735 | </desc>
|
---|
8736 | </attribute>
|
---|
8737 |
|
---|
8738 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
8739 | <desc>
|
---|
8740 | Number of sub-operations this task is divided into.
|
---|
8741 | Every task consists of at least one suboperation.
|
---|
8742 | </desc>
|
---|
8743 | </attribute>
|
---|
8744 |
|
---|
8745 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
8746 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
8747 | </attribute>
|
---|
8748 |
|
---|
8749 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
8750 | <desc>
|
---|
8751 | Description of the sub-operation being currently executed.
|
---|
8752 | </desc>
|
---|
8753 | </attribute>
|
---|
8754 |
|
---|
8755 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
8756 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
8757 | </attribute>
|
---|
8758 |
|
---|
8759 | <attribute name="timeout" type="unsigned long">
|
---|
8760 | <desc>
|
---|
8761 | When non-zero, this specifies the number of milliseconds after which
|
---|
8762 | the operation will automatically be canceled. This can only be set on
|
---|
8763 | cancelable objects.
|
---|
8764 | </desc>
|
---|
8765 | </attribute>
|
---|
8766 |
|
---|
8767 | <method name="setCurrentOperationProgress">
|
---|
8768 | <desc>Internal method, not to be called externally.</desc>
|
---|
8769 | <param name="percent" type="unsigned long" dir="in" />
|
---|
8770 | </method>
|
---|
8771 | <method name="setNextOperation">
|
---|
8772 | <desc>Internal method, not to be called externally.</desc>
|
---|
8773 | <param name="nextOperationDescription" type="wstring" dir="in" />
|
---|
8774 | <param name="nextOperationsWeight" type="unsigned long" dir="in" />
|
---|
8775 | </method>
|
---|
8776 |
|
---|
8777 | <method name="waitForCompletion">
|
---|
8778 | <desc>
|
---|
8779 | Waits until the task is done (including all sub-operations)
|
---|
8780 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
8781 |
|
---|
8782 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8783 | Failed to wait for task completion.
|
---|
8784 | </result>
|
---|
8785 | </desc>
|
---|
8786 |
|
---|
8787 | <param name="timeout" type="long" dir="in">
|
---|
8788 | <desc>
|
---|
8789 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8790 | </desc>
|
---|
8791 | </param>
|
---|
8792 | </method>
|
---|
8793 |
|
---|
8794 | <method name="waitForOperationCompletion">
|
---|
8795 | <desc>
|
---|
8796 | Waits until the given operation is done with a given timeout in
|
---|
8797 | milliseconds; specify -1 for an indefinite wait.
|
---|
8798 |
|
---|
8799 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8800 | Failed to wait for operation completion.
|
---|
8801 | </result>
|
---|
8802 |
|
---|
8803 | </desc>
|
---|
8804 | <param name="operation" type="unsigned long" dir="in">
|
---|
8805 | <desc>
|
---|
8806 | Number of the operation to wait for.
|
---|
8807 | Must be less than <link to="#operationCount"/>.
|
---|
8808 | </desc>
|
---|
8809 | </param>
|
---|
8810 | <param name="timeout" type="long" dir="in">
|
---|
8811 | <desc>
|
---|
8812 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8813 | </desc>
|
---|
8814 | </param>
|
---|
8815 | </method>
|
---|
8816 |
|
---|
8817 | <method name="cancel">
|
---|
8818 | <desc>
|
---|
8819 | Cancels the task.
|
---|
8820 | <note>
|
---|
8821 | If <link to="#cancelable"/> is @c false, then this method will fail.
|
---|
8822 | </note>
|
---|
8823 |
|
---|
8824 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8825 | Operation cannot be canceled.
|
---|
8826 | </result>
|
---|
8827 |
|
---|
8828 | </desc>
|
---|
8829 | </method>
|
---|
8830 |
|
---|
8831 | </interface>
|
---|
8832 |
|
---|
8833 |
|
---|
8834 | <!--
|
---|
8835 | // ISnapshot
|
---|
8836 | /////////////////////////////////////////////////////////////////////////
|
---|
8837 | -->
|
---|
8838 |
|
---|
8839 | <interface
|
---|
8840 | name="ISnapshot" extends="$unknown"
|
---|
8841 | uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
|
---|
8842 | wsmap="managed"
|
---|
8843 | >
|
---|
8844 | <desc>
|
---|
8845 | The ISnapshot interface represents a snapshot of the virtual
|
---|
8846 | machine.
|
---|
8847 |
|
---|
8848 | Together with the differencing media that are created
|
---|
8849 | when a snapshot is taken, a machine can be brought back to
|
---|
8850 | the exact state it was in when the snapshot was taken.
|
---|
8851 |
|
---|
8852 | The ISnapshot interface has no methods, only attributes; snapshots
|
---|
8853 | are controlled through methods of the <link to="IConsole" /> interface
|
---|
8854 | which also manage the media associated with the snapshot.
|
---|
8855 | The following operations exist:
|
---|
8856 |
|
---|
8857 | <ul>
|
---|
8858 | <li><link to="IConsole::takeSnapshot"/>: creates a new snapshot
|
---|
8859 | by creating new, empty differencing images for the machine's
|
---|
8860 | media and saving the VM settings and (if the VM is running)
|
---|
8861 | the current VM state in the snapshot.
|
---|
8862 |
|
---|
8863 | The differencing images will then receive all data written to
|
---|
8864 | the machine's media, while their parent (base) images
|
---|
8865 | remain unmodified after the snapshot has been taken (see
|
---|
8866 | <link to="IMedium" /> for details about differencing images).
|
---|
8867 | This simplifies restoring a machine to the state of a snapshot:
|
---|
8868 | only the differencing images need to be deleted.
|
---|
8869 |
|
---|
8870 | The current machine state is not changed by taking a snapshot.
|
---|
8871 | If the machine is running, it will resume execution after the
|
---|
8872 | snapshot has been taken.
|
---|
8873 | </li>
|
---|
8874 |
|
---|
8875 | <li><link to="IConsole::restoreSnapshot"/>: this goes back to
|
---|
8876 | a previous snapshot. This resets the machine's state to that of
|
---|
8877 | the previous snapshot by deleting the differencing image of each
|
---|
8878 | of the machine's media and setting the machine's settings
|
---|
8879 | and state to the state that was saved in the snapshot (if any).
|
---|
8880 |
|
---|
8881 | This destroys the machine's current state.
|
---|
8882 | </li>
|
---|
8883 |
|
---|
8884 | <li><link to="IConsole::deleteSnapshot"/>: deletes a snapshot
|
---|
8885 | without affecting the current machine state.
|
---|
8886 |
|
---|
8887 | This does not change the machine, but instead frees the resources
|
---|
8888 | allocated when the snapshot was taken: the settings and machine state
|
---|
8889 | is deleted (if any), and the snapshot's differencing image for each
|
---|
8890 | of the machine's media gets merged with its parent image.
|
---|
8891 |
|
---|
8892 | Neither the current machine state nor other snapshots are affected
|
---|
8893 | by this operation, except that parent media will be modified
|
---|
8894 | to contain the disk data associated with the snapshot being deleted.
|
---|
8895 | </li>
|
---|
8896 | </ul>
|
---|
8897 |
|
---|
8898 | Each snapshot contains the settings of the virtual machine (hardware
|
---|
8899 | configuration etc.). In addition, if the machine was running when the
|
---|
8900 | snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
|
---|
8901 | the current VM state is saved in the snapshot (similarly to what happens
|
---|
8902 | when a VM's state is saved). The snapshot is then said to
|
---|
8903 | be <i>online</i> because when restoring it, the VM will be running.
|
---|
8904 |
|
---|
8905 | If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
|
---|
8906 | receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
|
---|
8907 |
|
---|
8908 | Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
|
---|
8909 | or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
|
---|
8910 | it then contains a so-called "zero execution state", representing a
|
---|
8911 | machine that is powered off.
|
---|
8912 |
|
---|
8913 | <h3>Snapshot branches and the "current" snapshot</h3>
|
---|
8914 |
|
---|
8915 | Snapshots can be chained, whereby every next snapshot is based on the
|
---|
8916 | previous one. This chaining is related to medium branching
|
---|
8917 | (see the <link to="IMedium"/> description) in that every time
|
---|
8918 | a new snapshot is created, a new differencing medium is implicitly
|
---|
8919 | created for all normal media attached to the machine.
|
---|
8920 |
|
---|
8921 | Each virtual machine has a "current snapshot", identified by
|
---|
8922 | <link to="IMachine::currentSnapshot"/>. Presently, this is always set
|
---|
8923 | to the last snapshot in the chain. In a future version of VirtualBox,
|
---|
8924 | it will be possible to reset a machine's current state to that of an
|
---|
8925 | earlier snapshot without deleting the current state so that it will be
|
---|
8926 | possible to create alternative snapshot paths in a snapshot tree.
|
---|
8927 |
|
---|
8928 | In the current implementation, multiple snapshot branches within one
|
---|
8929 | virtual machine are not allowed. Every machine has a single branch,
|
---|
8930 | and <link to="IConsole::takeSnapshot"/> operation adds a new
|
---|
8931 | snapshot to the top of that branch.
|
---|
8932 | </desc>
|
---|
8933 |
|
---|
8934 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8935 | <desc>UUID of the snapshot.</desc>
|
---|
8936 | </attribute>
|
---|
8937 |
|
---|
8938 | <attribute name="name" type="wstring">
|
---|
8939 | <desc>Short name of the snapshot.</desc>
|
---|
8940 | </attribute>
|
---|
8941 |
|
---|
8942 | <attribute name="description" type="wstring">
|
---|
8943 | <desc>Optional description of the snapshot.</desc>
|
---|
8944 | </attribute>
|
---|
8945 |
|
---|
8946 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
8947 | <desc>
|
---|
8948 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
8949 | </desc>
|
---|
8950 | </attribute>
|
---|
8951 |
|
---|
8952 | <attribute name="online" type="boolean" readonly="yes">
|
---|
8953 | <desc>
|
---|
8954 | @c true if this snapshot is an online snapshot and @c false otherwise.
|
---|
8955 |
|
---|
8956 | When this attribute is @c true, the
|
---|
8957 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8958 | <link to="#machine"/> object associated with this snapshot
|
---|
8959 | will point to the saved state file. Otherwise, it will be
|
---|
8960 | an empty string.
|
---|
8961 | </desc>
|
---|
8962 | </attribute>
|
---|
8963 |
|
---|
8964 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8965 | <desc>
|
---|
8966 | Virtual machine this snapshot is taken on. This object
|
---|
8967 | stores all settings the machine had when taking this snapshot.
|
---|
8968 | <note>
|
---|
8969 | The returned machine object is immutable, i.e. no
|
---|
8970 | any settings can be changed.
|
---|
8971 | </note>
|
---|
8972 | </desc>
|
---|
8973 | </attribute>
|
---|
8974 |
|
---|
8975 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8976 | <desc>
|
---|
8977 | Parent snapshot (a snapshot this one is based on), or
|
---|
8978 | @c null if the snapshot has no parent (i.e. is the first snapshot).
|
---|
8979 | </desc>
|
---|
8980 | </attribute>
|
---|
8981 |
|
---|
8982 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8983 | <desc>
|
---|
8984 | Child snapshots (all snapshots having this one as a parent).
|
---|
8985 | </desc>
|
---|
8986 | </attribute>
|
---|
8987 |
|
---|
8988 | </interface>
|
---|
8989 |
|
---|
8990 |
|
---|
8991 | <!--
|
---|
8992 | // IMedium
|
---|
8993 | /////////////////////////////////////////////////////////////////////////
|
---|
8994 | -->
|
---|
8995 |
|
---|
8996 | <enum
|
---|
8997 | name="MediumState"
|
---|
8998 | uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
|
---|
8999 | >
|
---|
9000 | <desc>
|
---|
9001 | Virtual medium state.
|
---|
9002 | <see>IMedium</see>
|
---|
9003 | </desc>
|
---|
9004 |
|
---|
9005 | <const name="NotCreated" value="0">
|
---|
9006 | <desc>
|
---|
9007 | Associated medium storage does not exist (either was not created yet or
|
---|
9008 | was deleted).
|
---|
9009 | </desc>
|
---|
9010 | </const>
|
---|
9011 | <const name="Created" value="1">
|
---|
9012 | <desc>
|
---|
9013 | Associated storage exists and accessible; this gets set if the
|
---|
9014 | accessibility check performed by <link to="IMedium::refreshState" />
|
---|
9015 | was successful.
|
---|
9016 | </desc>
|
---|
9017 | </const>
|
---|
9018 | <const name="LockedRead" value="2">
|
---|
9019 | <desc>
|
---|
9020 | Medium is locked for reading (see <link to="IMedium::lockRead"/>),
|
---|
9021 | no data modification is possible.
|
---|
9022 | </desc>
|
---|
9023 | </const>
|
---|
9024 | <const name="LockedWrite" value="3">
|
---|
9025 | <desc>
|
---|
9026 | Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
|
---|
9027 | no concurrent data reading or modification is possible.
|
---|
9028 | </desc>
|
---|
9029 | </const>
|
---|
9030 | <const name="Inaccessible" value="4">
|
---|
9031 | <desc>
|
---|
9032 | Medium accessiblity check (see <link to="IMedium::refreshState" />) has
|
---|
9033 | not yet been performed, or else, associated medium storage is not
|
---|
9034 | accessible. In the first case, <link to="IMedium::lastAccessError"/>
|
---|
9035 | is empty, in the second case, it describes the error that occured.
|
---|
9036 | </desc>
|
---|
9037 | </const>
|
---|
9038 | <const name="Creating" value="5">
|
---|
9039 | <desc>
|
---|
9040 | Associated medium storage is being created.
|
---|
9041 | </desc>
|
---|
9042 | </const>
|
---|
9043 | <const name="Deleting" value="6">
|
---|
9044 | <desc>
|
---|
9045 | Associated medium storage is being deleted.
|
---|
9046 | </desc>
|
---|
9047 | </const>
|
---|
9048 | </enum>
|
---|
9049 |
|
---|
9050 | <enum
|
---|
9051 | name="MediumType"
|
---|
9052 | uuid="11f6f7a5-0327-409a-9d42-7db6a0cec578"
|
---|
9053 | >
|
---|
9054 | <desc>
|
---|
9055 | Virtual medium type.
|
---|
9056 | <see>IMedium</see>
|
---|
9057 | </desc>
|
---|
9058 |
|
---|
9059 | <const name="Normal" value="0">
|
---|
9060 | <desc>
|
---|
9061 | Normal medium (attached directly or indirectly, preserved
|
---|
9062 | when taking snapshots).
|
---|
9063 | </desc>
|
---|
9064 | </const>
|
---|
9065 | <const name="Immutable" value="1">
|
---|
9066 | <desc>
|
---|
9067 | Immutable medium (attached indirectly, changes are wiped out
|
---|
9068 | the next time the virtual machine is started).
|
---|
9069 | </desc>
|
---|
9070 | </const>
|
---|
9071 | <const name="Writethrough" value="2">
|
---|
9072 | <desc>
|
---|
9073 | Write through medium (attached directly, ignored when
|
---|
9074 | taking snapshots).
|
---|
9075 | </desc>
|
---|
9076 | </const>
|
---|
9077 | </enum>
|
---|
9078 |
|
---|
9079 | <enum
|
---|
9080 | name="MediumVariant"
|
---|
9081 | uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
|
---|
9082 | >
|
---|
9083 | <desc>
|
---|
9084 | Virtual medium image variant. More than one flag may be set.
|
---|
9085 | <see>IMedium</see>
|
---|
9086 | </desc>
|
---|
9087 |
|
---|
9088 | <const name="Standard" value="0">
|
---|
9089 | <desc>
|
---|
9090 | No particular variant requested, results in using the backend default.
|
---|
9091 | </desc>
|
---|
9092 | </const>
|
---|
9093 | <const name="VmdkSplit2G" value="0x01">
|
---|
9094 | <desc>
|
---|
9095 | VMDK image split in chunks of less than 2GByte.
|
---|
9096 | </desc>
|
---|
9097 | </const>
|
---|
9098 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
9099 | <desc>
|
---|
9100 | VMDK streamOptimized image. Special import/export format which is
|
---|
9101 | read-only/append-only.
|
---|
9102 | </desc>
|
---|
9103 | </const>
|
---|
9104 | <const name="VmdkESX" value="0x08">
|
---|
9105 | <desc>
|
---|
9106 | VMDK format variant used on ESX products.
|
---|
9107 | </desc>
|
---|
9108 | </const>
|
---|
9109 | <const name="Fixed" value="0x10000">
|
---|
9110 | <desc>
|
---|
9111 | Fixed image. Only allowed for base images.
|
---|
9112 | </desc>
|
---|
9113 | </const>
|
---|
9114 | <const name="Diff" value="0x20000">
|
---|
9115 | <desc>
|
---|
9116 | Fixed image. Only allowed for base images.
|
---|
9117 | </desc>
|
---|
9118 | </const>
|
---|
9119 | </enum>
|
---|
9120 |
|
---|
9121 | <interface
|
---|
9122 | name="IMediumAttachment" extends="$unknown"
|
---|
9123 | uuid="e58eb3eb-8627-428b-bdf8-34487c848de5"
|
---|
9124 | wsmap="struct"
|
---|
9125 | >
|
---|
9126 | <desc>
|
---|
9127 | The IMediumAttachment interface represents the attachment
|
---|
9128 | of a storage medium to a virtual machine. Each machine contains
|
---|
9129 | an array of its medium attachments in <link to="IMachine::mediumAttachments"/>.
|
---|
9130 |
|
---|
9131 | Each medium attachment specifies a storage controller as well as a port
|
---|
9132 | and device number. Fixed media (hard disks) will always also specify
|
---|
9133 | an instance of IMedium in <link to="#medium" />, referring to the hard disk
|
---|
9134 | medium. For removeable media, the IMedia instance is optional; it can be
|
---|
9135 | @c null if no media is mounted (see <link to="IMachine::mountMedium" />).
|
---|
9136 | </desc>
|
---|
9137 |
|
---|
9138 | <attribute name="medium" type="IMedium" readonly="yes">
|
---|
9139 | <desc>Medium object associated with this attachment; it
|
---|
9140 | can be @c null for removable devices.</desc>
|
---|
9141 | </attribute>
|
---|
9142 |
|
---|
9143 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
9144 | <desc>Name of the storage controller of this attachment; this
|
---|
9145 | refers to one of the controllers in <link to="IMachine::storageControllers" />
|
---|
9146 | by name.</desc>
|
---|
9147 | </attribute>
|
---|
9148 |
|
---|
9149 | <attribute name="port" type="long" readonly="yes">
|
---|
9150 | <desc>Port number of this attachment.</desc>
|
---|
9151 | </attribute>
|
---|
9152 |
|
---|
9153 | <attribute name="device" type="long" readonly="yes">
|
---|
9154 | <desc>Device slot number of this attachment.</desc>
|
---|
9155 | </attribute>
|
---|
9156 |
|
---|
9157 | <attribute name="type" type="DeviceType" readonly="yes">
|
---|
9158 | <desc>Device type of this attachment.</desc>
|
---|
9159 | </attribute>
|
---|
9160 |
|
---|
9161 | <attribute name="passthrough" type="boolean" readonly="yes">
|
---|
9162 | <desc>Pass I/O requests through to a device on the host.</desc>
|
---|
9163 | </attribute>
|
---|
9164 |
|
---|
9165 | </interface>
|
---|
9166 |
|
---|
9167 | <interface
|
---|
9168 | name="IMedium" extends="$unknown"
|
---|
9169 | uuid="d709160c-303f-4ead-b7ef-53ffa26aa861"
|
---|
9170 | wsmap="managed"
|
---|
9171 | >
|
---|
9172 | <desc>
|
---|
9173 | The IMedium interface represents virtual storage for a machine's
|
---|
9174 | hard disks, CD/DVD or floppy drives. It will typically represent
|
---|
9175 | a disk image on the host, for example a VDI or VMDK file representing
|
---|
9176 | a virtual hard disk, or an ISO or RAW file representing virtual
|
---|
9177 | removable media, but can also point to a network location (e.g.
|
---|
9178 | for iSCSI targets).
|
---|
9179 |
|
---|
9180 | Instances of IMedium are connected to virtual machines by way of
|
---|
9181 | medium attachments (see <link to="IMediumAttachment" />), which link
|
---|
9182 | the storage medium to a particular device slot of a storage controller
|
---|
9183 | of the virtual machine.
|
---|
9184 | In the VirtualBox API, virtual storage is therefore always represented
|
---|
9185 | by the following chain of object links:
|
---|
9186 |
|
---|
9187 | <ul>
|
---|
9188 | <li><link to="IMachine::storageControllers"/> contains an array of
|
---|
9189 | storage controllers (IDE, SATA, SCSI or a floppy controller;
|
---|
9190 | these are instances of <link to="IStorageController"/>).</li>
|
---|
9191 | <li><link to="IMachine::mediumAttachments"/> contains an array of
|
---|
9192 | medium attachments (instances of <link to="IMediumAttachment"/>),
|
---|
9193 | each containing a storage controller from the above array, a
|
---|
9194 | port/device specification, and an instance of IMedium representing
|
---|
9195 | the medium storage (image file).
|
---|
9196 |
|
---|
9197 | For removable media, the storage medium is optional; a medium
|
---|
9198 | attachment with no medium represents a CD/DVD or floppy drive
|
---|
9199 | with no medium inserted. By contrast, hard disk attachments
|
---|
9200 | will always have an IMedium object attached.</li>
|
---|
9201 | <li>Each IMedium in turn points to a storage unit (such as a file
|
---|
9202 | on the host computer or a network resource) that holds actual
|
---|
9203 | data. This location is represented by the <link to="#location"/>
|
---|
9204 | attribute.</li>
|
---|
9205 | </ul>
|
---|
9206 |
|
---|
9207 | Existing media are opened using the following methods, depending on the
|
---|
9208 | media type:
|
---|
9209 | <ul>
|
---|
9210 | <li><link to="IVirtualBox::openHardDisk"/></li>
|
---|
9211 | <li><link to="IVirtualBox::openDVDImage"/></li>
|
---|
9212 | <li><link to="IVirtualBox::openFloppyImage"/></li>
|
---|
9213 | </ul>
|
---|
9214 |
|
---|
9215 | New hard disk media can be created with the VirtualBox API using the
|
---|
9216 | <link to="IVirtualBox::createHardDisk"/> method.
|
---|
9217 |
|
---|
9218 | CD/DVD and floppy images (ISO and RAW files) are usually created outside
|
---|
9219 | VirtualBox, e.g. by storing a copy of the real medium of the corresponding
|
---|
9220 | type in a regular file.
|
---|
9221 |
|
---|
9222 | Only for CD/DVDs and floppies, an IMedium instance can also represent a host
|
---|
9223 | drive; in that case the <link to="#id" /> attribute contains the UUID of
|
---|
9224 | one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
|
---|
9225 |
|
---|
9226 | <h3>Known media</h3>
|
---|
9227 |
|
---|
9228 | When an existing medium is opened for the first time, it is automatically
|
---|
9229 | remembered by the given VirtualBox installation or, in other words, becomes
|
---|
9230 | a <i>known medium</i>. Known media are stored in the media
|
---|
9231 | registry transparently maintained by VirtualBox and stored in settings
|
---|
9232 | files so that this registry is preserved when VirtualBox is not running.
|
---|
9233 |
|
---|
9234 | Newly created virtual media are remembered only when the associated
|
---|
9235 | storage unit is actually created.
|
---|
9236 |
|
---|
9237 | All known media can be enumerated using
|
---|
9238 | <link to="IVirtualBox::hardDisks"/>,
|
---|
9239 | <link to="IVirtualBox::DVDImages"/> and
|
---|
9240 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
9241 | quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
|
---|
9242 | and similar methods or by location using
|
---|
9243 | <link to="IVirtualBox::findHardDisk"/> and similar methods.
|
---|
9244 |
|
---|
9245 | Only known media can be attached to virtual machines.
|
---|
9246 |
|
---|
9247 | Removing known media from the media registry is performed when the given
|
---|
9248 | medium is closed using the <link to="#close"/> method or when its
|
---|
9249 | associated storage unit is deleted.
|
---|
9250 |
|
---|
9251 | <h3>Accessibility checks</h3>
|
---|
9252 |
|
---|
9253 | VirtualBox defers media accessibility checks until the <link to="#refreshState" />
|
---|
9254 | method is called explicitly on a medium. This is done to make the VirtualBox object
|
---|
9255 | ready for serving requests as fast as possible and let the end-user
|
---|
9256 | application decide if it needs to check media accessibility right away or not.
|
---|
9257 |
|
---|
9258 | As a result, when VirtualBox starts up (e.g. the VirtualBox
|
---|
9259 | object gets created for the first time), all known media are in the
|
---|
9260 | "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
|
---|
9261 | attribute is an empty string because no actual accessibility check has
|
---|
9262 | been made yet.
|
---|
9263 |
|
---|
9264 | After calling <link to="#refreshState" />, a medium is considered
|
---|
9265 | <i>accessible</i> if its storage unit can be read. In that case, the
|
---|
9266 | <link to="#state"/> attribute has a value of "Created". If the storage
|
---|
9267 | unit cannot be read (for example, because it is located on a disconnected
|
---|
9268 | network resource, or was accidentally deleted outside VirtualBox),
|
---|
9269 | the medium is considered <i>inaccessible</i>, which is indicated by the
|
---|
9270 | "Inaccessible" state. The exact reason why the medium is inaccessible can be
|
---|
9271 | obtained by reading the <link to="#lastAccessError"/> attribute.
|
---|
9272 |
|
---|
9273 | <h3>Medium types</h3>
|
---|
9274 |
|
---|
9275 | There are three types of medium behavior (see <link to="MediumType" />):
|
---|
9276 | "normal", "immutable" and "writethrough", represented by the
|
---|
9277 | <link to="#type"/> attribute. The type of the medium defines how the
|
---|
9278 | medium is attached to a virtual machine and what happens when a
|
---|
9279 | <link to="ISnapshot">snapshot</link> of the virtual machine with the
|
---|
9280 | attached medium is taken. At the moment DVD and floppy media are always
|
---|
9281 | of type "writethrough".
|
---|
9282 |
|
---|
9283 | All media can be also divided in two groups: <i>base</i> media and
|
---|
9284 | <i>differencing</i> media. A base medium contains all sectors of the
|
---|
9285 | medium data in its own storage and therefore can be used independently.
|
---|
9286 | In contrast, a differencing mediun is a "delta" to some other medium and
|
---|
9287 | contains only those sectors which differ from that other medium, which is
|
---|
9288 | then called a <i>parent</i>. The differencing medium is said to be
|
---|
9289 | <i>linked to</i> that parent. The parent may be itself a differencing
|
---|
9290 | medium, thus forming a chain of linked media. The last element in that
|
---|
9291 | chain must always be a base medium. Note that several differencing
|
---|
9292 | media may be linked to the same parent medium.
|
---|
9293 |
|
---|
9294 | Differencing media can be distinguished from base media by querying the
|
---|
9295 | <link to="#parent"/> attribute: base media do not have parents they would
|
---|
9296 | depend on, so the value of this attribute is always @c null for them.
|
---|
9297 | Using this attribute, it is possible to walk up the medium tree (from the
|
---|
9298 | child medium to its parent). It is also possible to walk down the tree
|
---|
9299 | using the <link to="#children"/> attribute.
|
---|
9300 |
|
---|
9301 | Note that the type of all differencing media is "Normal"; all other
|
---|
9302 | values are meaningless for them. Base media may be of any type.
|
---|
9303 |
|
---|
9304 | <h3>Creating hard disks</h3>
|
---|
9305 |
|
---|
9306 | New base hard disks are created using
|
---|
9307 | <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
|
---|
9308 | opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
|
---|
9309 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
9310 | also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
9311 |
|
---|
9312 | After the hard disk is successfully created (including the storage unit)
|
---|
9313 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
9314 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
9315 | through <link to="IVirtualBox::getHardDisk"/> and
|
---|
9316 | <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
|
---|
9317 | <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
|
---|
9318 |
|
---|
9319 | The following methods, besides <link to="IMedium::close"/>,
|
---|
9320 | automatically remove the hard disk from the media registry:
|
---|
9321 | <ul>
|
---|
9322 | <li><link to="#deleteStorage"/></li>
|
---|
9323 | <li><link to="#mergeTo"/></li>
|
---|
9324 | </ul>
|
---|
9325 |
|
---|
9326 | If the storage unit of the hard disk is a regular file in the host's
|
---|
9327 | file system then the rules stated in the description of the
|
---|
9328 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
9329 | addition, a plain file name without any path may be given, in which case
|
---|
9330 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
9331 | folder</link> will be prepended to it.
|
---|
9332 |
|
---|
9333 | <h4>Automatic composition of the file name part</h4>
|
---|
9334 |
|
---|
9335 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
9336 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
9337 | the file name part of the location using the UUID of the hard disk. This
|
---|
9338 | applies only to hard disks in <link to="MediumState_NotCreated"/> state,
|
---|
9339 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
9340 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
9341 | specification which only contains the path specification but not the file
|
---|
9342 | name part and ends with either a forward slash or a backslash character.
|
---|
9343 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
9344 | compose the file name using the following pattern:
|
---|
9345 | <pre>
|
---|
9346 | <path>/{<uuid>}.<ext>
|
---|
9347 | </pre>
|
---|
9348 | where <tt><path></tt> is the supplied path specification,
|
---|
9349 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
9350 | is the default extension for the storage format of this hard disk. After
|
---|
9351 | that, you may call any of the methods that create a new hard disk storage
|
---|
9352 | unit and they will use the generated UUID and file name.
|
---|
9353 |
|
---|
9354 | <h3>Attaching Hard Disks</h3>
|
---|
9355 |
|
---|
9356 | Hard disks are attached to virtual machines using the
|
---|
9357 | <link to="IMachine::attachDevice"/> method and detached using the
|
---|
9358 | <link to="IMachine::detachDevice"/> method. Depending on their
|
---|
9359 | <link to="#type"/>, hard disks are attached either
|
---|
9360 | <i>directly</i> or <i>indirectly</i>.
|
---|
9361 |
|
---|
9362 | When a hard disk is being attached directly, it is associated with the
|
---|
9363 | virtual machine and used for hard disk operations when the machine is
|
---|
9364 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
9365 | hard disk linked to it is implicitly created and this differencing hard
|
---|
9366 | disk is associated with the machine and used for hard disk operations.
|
---|
9367 | This also means that if <link to="IMachine::attachDevice"/> performs
|
---|
9368 | a direct attachment then the same hard disk will be returned in response
|
---|
9369 | to the subsequent <link to="IMachine::getMedium"/> call; however if
|
---|
9370 | an indirect attachment is performed then
|
---|
9371 | <link to="IMachine::getMedium"/> will return the implicitly created
|
---|
9372 | differencing hard disk, not the original one passed to <link
|
---|
9373 | to="IMachine::attachDevice"/>. In detail:
|
---|
9374 |
|
---|
9375 | <ul>
|
---|
9376 | <li><b>Normal base</b> hard disks that do not have children (i.e.
|
---|
9377 | differencing hard disks linked to them) and that are not already
|
---|
9378 | attached to virtual machines in snapshots are attached <b>directly</b>.
|
---|
9379 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
9380 | dependent children or being part of the snapshot makes it impossible
|
---|
9381 | to modify hard disk contents without breaking the integrity of the
|
---|
9382 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
9383 | quickly determine the kind of the attachment for the given hard
|
---|
9384 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
9385 | attached to a virtual machine with snapshots then a special
|
---|
9386 | procedure called <i>smart attachment</i> is performed (see below).</li>
|
---|
9387 | <li><b>Normal differencing</b> hard disks are like normal base hard disks:
|
---|
9388 | they are attached <b>directly</b> if they do not have children and are
|
---|
9389 | not attached to virtual machines in snapshots, and <b>indirectly</b>
|
---|
9390 | otherwise. Note that the smart attachment procedure is never performed
|
---|
9391 | for differencing hard disks.</li>
|
---|
9392 | <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
|
---|
9393 | they are designed to be non-writable. If an immutable hard disk is
|
---|
9394 | attached to a virtual machine with snapshots then a special
|
---|
9395 | procedure called smart attachment is performed (see below).</li>
|
---|
9396 | <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
|
---|
9397 | also as designed. This also means that writethrough hard disks cannot
|
---|
9398 | have other hard disks linked to them at all.</li>
|
---|
9399 | </ul>
|
---|
9400 |
|
---|
9401 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
9402 | more than one virtual machine at a time. In this case, the machine that is
|
---|
9403 | started first gains exclusive access to the hard disk and attempts to
|
---|
9404 | start other machines having this hard disk attached will fail until the
|
---|
9405 | first machine is powered down.
|
---|
9406 |
|
---|
9407 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
9408 | that the given hard disk remains associated with the given machine after a
|
---|
9409 | successful <link to="IMachine::detachDevice"/> call until
|
---|
9410 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
9411 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
9412 | the hard disk configuration may be restored at any time by a call to
|
---|
9413 | <link to="IMachine::discardSettings"/> before the settings
|
---|
9414 | are saved (committed).
|
---|
9415 |
|
---|
9416 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
9417 | indirectly attaching some hard disks to the machine but before a call to
|
---|
9418 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
9419 | all differencing hard disks implicitly created by
|
---|
9420 | <link to="IMachine::attachDevice"/> for these indirect attachments.
|
---|
9421 | Such implicitly created hard disks will also be immediately deleted when
|
---|
9422 | detached explicitly using the <link to="IMachine::detachDevice"/>
|
---|
9423 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
9424 | implicit deletion is safe because newly created differencing hard
|
---|
9425 | disks do not contain any user data.
|
---|
9426 |
|
---|
9427 | However, keep in mind that detaching differencing hard disks that were
|
---|
9428 | implicitly created by <link to="IMachine::attachDevice"/>
|
---|
9429 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
9430 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
9431 | (for example, as a result of virtual machine execution). If these hard
|
---|
9432 | disks are no more necessary, the caller can always delete them explicitly
|
---|
9433 | using <link to="#deleteStorage"/> after they are actually de-associated
|
---|
9434 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
9435 |
|
---|
9436 | <h3>Smart Attachment</h3>
|
---|
9437 |
|
---|
9438 | When normal base or immutable hard disks are indirectly attached to a
|
---|
9439 | virtual machine then some additional steps are performed to make sure the
|
---|
9440 | virtual machine will have the most recent "view" of the hard disk being
|
---|
9441 | attached. These steps include walking through the machine's snapshots
|
---|
9442 | starting from the current one and going through ancestors up to the first
|
---|
9443 | snapshot. Hard disks attached to the virtual machine in all
|
---|
9444 | of the encountered snapshots are checked whether they are descendants of
|
---|
9445 | the given normal base or immutable hard disk. The first found child (which
|
---|
9446 | is the differencing hard disk) will be used instead of the normal base or
|
---|
9447 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
9448 | that will be actually attached to the machine. And only if no descendants
|
---|
9449 | are found or if the virtual machine does not have any snapshots then the
|
---|
9450 | normal base or immutable hard disk will be used itself as a parent for
|
---|
9451 | this differencing hard disk.
|
---|
9452 |
|
---|
9453 | It is easier to explain what smart attachment does using the
|
---|
9454 | following example:
|
---|
9455 | <pre>
|
---|
9456 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
9457 |
|
---|
9458 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
9459 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
9460 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
9461 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
9462 | CurState (none) CurState (D3->D2.vdi)
|
---|
9463 |
|
---|
9464 | NOT
|
---|
9465 | ...
|
---|
9466 | CurState (D3->B.vdi)
|
---|
9467 | </pre>
|
---|
9468 | The first column is the virtual machine configuration before the base hard
|
---|
9469 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
9470 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
9471 | mean that the hard disk that is actually attached to the machine is a
|
---|
9472 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
9473 | another hard disk, <tt>B.vdi</tt>.
|
---|
9474 |
|
---|
9475 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
9476 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
9477 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
9478 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
9479 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
9480 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
9481 | attachment procedure, the new differencing hard disk
|
---|
9482 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
9483 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
9484 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
9485 | machine.
|
---|
9486 |
|
---|
9487 | Note that if there is more than one descendant hard disk of the given base
|
---|
9488 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
9489 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
9490 | descendant will be picked up.
|
---|
9491 |
|
---|
9492 | There is one more important aspect of the smart attachment procedure which
|
---|
9493 | is not related to snapshots at all. Before walking through the snapshots
|
---|
9494 | as described above, the backup copy of the current list of hard disk
|
---|
9495 | attachment is searched for descendants. This backup copy is created when
|
---|
9496 | the hard disk configuration is changed for the first time after the last
|
---|
9497 | <link to="IMachine::saveSettings"/> call and used by
|
---|
9498 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
9499 | changes. When such a descendant is found in this backup copy, it will be
|
---|
9500 | simply re-attached back, without creating a new differencing hard disk for
|
---|
9501 | it. This optimization is necessary to make it possible to re-attach the
|
---|
9502 | base or immutable hard disk to a different bus, channel or device slot
|
---|
9503 | without losing the contents of the differencing hard disk actually
|
---|
9504 | attached to the machine in place of it.
|
---|
9505 | </desc>
|
---|
9506 |
|
---|
9507 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
9508 | <desc>
|
---|
9509 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
9510 | generated UUID.
|
---|
9511 |
|
---|
9512 | <note>
|
---|
9513 | For media in one of MediumState_NotCreated, MediumState_Creating or
|
---|
9514 | MediumState_Deleting states, the value of this property is undefined
|
---|
9515 | and will most likely be an empty UUID.
|
---|
9516 | </note>
|
---|
9517 | </desc>
|
---|
9518 | </attribute>
|
---|
9519 |
|
---|
9520 | <attribute name="description" type="wstring">
|
---|
9521 | <desc>
|
---|
9522 | Optional description of the medium. For a newly created medium the value
|
---|
9523 | of this attribute is an empty string.
|
---|
9524 |
|
---|
9525 | Medium types that don't support this attribute will return E_NOTIMPL in
|
---|
9526 | attempt to get or set this attribute's value.
|
---|
9527 |
|
---|
9528 | <note>
|
---|
9529 | For some storage types, reading this attribute may return an outdated
|
---|
9530 | (last known) value when <link to="#state"/> is <link
|
---|
9531 | to="MediumState_Inaccessible"/> or <link
|
---|
9532 | to="MediumState_LockedWrite"/> because the value of this attribute is
|
---|
9533 | stored within the storage unit itself. Also note that changing the
|
---|
9534 | attribute value is not possible in such case, as well as when the
|
---|
9535 | medium is the <link to="MediumState_LockedRead"/> state.
|
---|
9536 | </note>
|
---|
9537 | </desc>
|
---|
9538 | </attribute>
|
---|
9539 |
|
---|
9540 | <attribute name="state" type="MediumState" readonly="yes">
|
---|
9541 | <desc>
|
---|
9542 | Returns the current medium state, which is the last state set by
|
---|
9543 | the accessibility check performed by <link to="#refreshState"/>.
|
---|
9544 | If that method has not yet been called on the medium, the state
|
---|
9545 | is "Inaccessible"; as opposed to truly inaccessible media, the
|
---|
9546 | value of <link to="#lastAccessError"/> will be an empty string in
|
---|
9547 | that case.
|
---|
9548 |
|
---|
9549 | <note>As of version 3.1, this no longer performs an accessibility check
|
---|
9550 | automatically; call <link to="#refreshState"/> for that.
|
---|
9551 | </note>
|
---|
9552 | </desc>
|
---|
9553 | </attribute>
|
---|
9554 |
|
---|
9555 | <attribute name="location" type="wstring">
|
---|
9556 | <desc>
|
---|
9557 | Location of the storage unit holding medium data.
|
---|
9558 |
|
---|
9559 | The format of the location string is medium type specific. For medium
|
---|
9560 | types using regular files in a host's file system, the location
|
---|
9561 | string is the full file name.
|
---|
9562 |
|
---|
9563 | Some medium types may support changing the storage unit location by
|
---|
9564 | simply changing the value of this property. If this operation is not
|
---|
9565 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
9566 | this attribute's value.
|
---|
9567 |
|
---|
9568 | When setting a value of the location attribute which is a regular file
|
---|
9569 | in the host's file system, the given file name may be either relative to
|
---|
9570 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
9571 | absolute. Note that if the given location specification does not contain
|
---|
9572 | the file extension part then a proper default extension will be
|
---|
9573 | automatically appended by the implementation depending on the medium type.
|
---|
9574 | </desc>
|
---|
9575 | </attribute>
|
---|
9576 |
|
---|
9577 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9578 | <desc>
|
---|
9579 | Name of the storage unit holding medium data.
|
---|
9580 |
|
---|
9581 | The returned string is a short version of the <link to="#location"/>
|
---|
9582 | attribute that is suitable for representing the medium in situations
|
---|
9583 | where the full location specification is too long (such as lists
|
---|
9584 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
9585 | to sort the media list alphabetically when needed.
|
---|
9586 |
|
---|
9587 | For example, for locations that are regular files in the host's file
|
---|
9588 | system, the value of this attribute is just the file name (+ extension),
|
---|
9589 | without the path specification.
|
---|
9590 |
|
---|
9591 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
9592 | attribute will not necessary be unique for a list of media of the
|
---|
9593 | given type and format.
|
---|
9594 | </desc>
|
---|
9595 | </attribute>
|
---|
9596 |
|
---|
9597 | <attribute name="deviceType" type="DeviceType" readonly="yes">
|
---|
9598 | <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
|
---|
9599 | medium.</desc>
|
---|
9600 | </attribute>
|
---|
9601 |
|
---|
9602 | <attribute name="hostDrive" type="boolean" readonly="yes">
|
---|
9603 | <desc>True if this corresponds to a drive on the host.</desc>
|
---|
9604 | </attribute>
|
---|
9605 |
|
---|
9606 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
9607 | <desc>
|
---|
9608 | Physical size of the storage unit used to hold medium data (in bytes).
|
---|
9609 |
|
---|
9610 | <note>
|
---|
9611 | For media whose <link to="#state"/> is <link
|
---|
9612 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9613 | last known size. For <link to="MediumState_NotCreated"/> media,
|
---|
9614 | the returned value is zero.
|
---|
9615 | </note>
|
---|
9616 | </desc>
|
---|
9617 | </attribute>
|
---|
9618 |
|
---|
9619 | <attribute name="format" type="wstring" readonly="yes">
|
---|
9620 | <desc>
|
---|
9621 | Storage format of this medium.
|
---|
9622 |
|
---|
9623 | The value of this attribute is a string that specifies a backend used
|
---|
9624 | to store medium data. The storage format is defined when you create a
|
---|
9625 | new medium or automatically detected when you open an existing medium,
|
---|
9626 | and cannot be changed later.
|
---|
9627 |
|
---|
9628 | The list of all storage formats supported by this VirtualBox
|
---|
9629 | installation can be obtained using
|
---|
9630 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
9631 | </desc>
|
---|
9632 | </attribute>
|
---|
9633 |
|
---|
9634 | <attribute name="type" type="MediumType">
|
---|
9635 | <desc>
|
---|
9636 | Type (role) of this medium.
|
---|
9637 |
|
---|
9638 | The following constraints apply when changing the value of this
|
---|
9639 | attribute:
|
---|
9640 | <ul>
|
---|
9641 | <li>If a medium is attached to a virtual machine (either in the
|
---|
9642 | current state or in one of the snapshots), its type cannot be
|
---|
9643 | changed.
|
---|
9644 | </li>
|
---|
9645 | <li>As long as the medium has children, its type cannot be set
|
---|
9646 | to <link to="MediumType_Writethrough"/>.
|
---|
9647 | </li>
|
---|
9648 | <li>The type of all differencing media is
|
---|
9649 | <link to="MediumType_Normal"/> and cannot be changed.
|
---|
9650 | </li>
|
---|
9651 | </ul>
|
---|
9652 |
|
---|
9653 | The type of a newly created or opened medium is set to
|
---|
9654 | <link to="MediumType_Normal"/>, except for DVD and floppy media,
|
---|
9655 | which have a type of <link to="MediumType_Writethrough"/>.
|
---|
9656 | </desc>
|
---|
9657 | </attribute>
|
---|
9658 |
|
---|
9659 | <attribute name="parent" type="IMedium" readonly="yes">
|
---|
9660 | <desc>
|
---|
9661 | Parent of this medium (the medium this medium is directly based
|
---|
9662 | on).
|
---|
9663 |
|
---|
9664 | Only differencing media have parents. For base (non-differencing)
|
---|
9665 | media, @c null is returned.
|
---|
9666 | </desc>
|
---|
9667 | </attribute>
|
---|
9668 |
|
---|
9669 | <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
|
---|
9670 | <desc>
|
---|
9671 | Children of this medium (all differencing media directly based
|
---|
9672 | on this medium). A @c null array is returned if this medium
|
---|
9673 | does not have any children.
|
---|
9674 | </desc>
|
---|
9675 | </attribute>
|
---|
9676 |
|
---|
9677 | <attribute name="base" type="IMedium" readonly="yes">
|
---|
9678 | <desc>
|
---|
9679 | Base medium of this medium.
|
---|
9680 |
|
---|
9681 | If this is a differencing medium, its base medium is the medium
|
---|
9682 | the given medium branch starts from. For all other types of media, this
|
---|
9683 | property returns the medium object itself (i.e. the same object this
|
---|
9684 | property is read on).
|
---|
9685 | </desc>
|
---|
9686 | </attribute>
|
---|
9687 |
|
---|
9688 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
9689 | <desc>
|
---|
9690 | Returns @c true if this medium is read-only and @c false otherwise.
|
---|
9691 |
|
---|
9692 | A medium is considered to be read-only when its contents cannot be
|
---|
9693 | modified without breaking the integrity of other parties that depend on
|
---|
9694 | this medium such as its child media or snapshots of virtual machines
|
---|
9695 | where this medium is attached to these machines. If there are no
|
---|
9696 | children and no such snapshots then there is no dependency and the
|
---|
9697 | medium is not read-only.
|
---|
9698 |
|
---|
9699 | The value of this attribute can be used to determine the kind of the
|
---|
9700 | attachment that will take place when attaching this medium to a
|
---|
9701 | virtual machine. If the value is @c false then the medium will
|
---|
9702 | be attached directly. If the value is @c true then the medium
|
---|
9703 | will be attached indirectly by creating a new differencing child
|
---|
9704 | medium for that. See the interface description for more information.
|
---|
9705 |
|
---|
9706 | Note that all <link to="MediumType_Immutable">Immutable</link> media
|
---|
9707 | are always read-only while all
|
---|
9708 | <link to="MediumType_Writethrough">Writethrough</link> media are
|
---|
9709 | always not.
|
---|
9710 |
|
---|
9711 | <note>
|
---|
9712 | The read-only condition represented by this attribute is related to
|
---|
9713 | the medium type and usage, not to the current
|
---|
9714 | <link to="IMedium::state">medium state</link> and not to the read-only
|
---|
9715 | state of the storage unit.
|
---|
9716 | </note>
|
---|
9717 | </desc>
|
---|
9718 | </attribute>
|
---|
9719 |
|
---|
9720 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
9721 | <desc>
|
---|
9722 | Logical size of this medium (in megabytes), as reported to the
|
---|
9723 | guest OS running inside the virtual machine this medium is
|
---|
9724 | attached to. The logical size is defined when the medium is created
|
---|
9725 | and cannot be changed later.
|
---|
9726 |
|
---|
9727 | <note>
|
---|
9728 | Reading this property on a differencing medium will return the size
|
---|
9729 | of its <link to="#base"/> medium.
|
---|
9730 | </note>
|
---|
9731 | <note>
|
---|
9732 | For media whose state is <link to="#state"/> is <link
|
---|
9733 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9734 | last known logical size. For <link to="MediumaState_NotCreated"/>
|
---|
9735 | media, the returned value is zero.
|
---|
9736 | </note>
|
---|
9737 | </desc>
|
---|
9738 | </attribute>
|
---|
9739 |
|
---|
9740 | <attribute name="autoReset" type="boolean">
|
---|
9741 | <desc>
|
---|
9742 | Whether this differencing medium will be automatically reset each
|
---|
9743 | time a virtual machine it is attached to is powered up. This
|
---|
9744 | attribute is automatically set to @c true for the last
|
---|
9745 | differencing image of an "immutable" medium (see
|
---|
9746 | <link to="MediumType" />).
|
---|
9747 |
|
---|
9748 | See <link to="#reset"/> for more information about resetting
|
---|
9749 | differencing media.
|
---|
9750 |
|
---|
9751 | <note>
|
---|
9752 | Reading this property on a base (non-differencing) medium will
|
---|
9753 | always @c false. Changing the value of this property in this
|
---|
9754 | case is not supported.
|
---|
9755 | </note>
|
---|
9756 |
|
---|
9757 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9758 | This is not a differencing medium (when changing the attribute
|
---|
9759 | value).
|
---|
9760 | </result>
|
---|
9761 | </desc>
|
---|
9762 | </attribute>
|
---|
9763 |
|
---|
9764 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
9765 | <desc>
|
---|
9766 | Text message that represents the result of the last accessibility
|
---|
9767 | check performed by <link to="#refreshState"/>.
|
---|
9768 |
|
---|
9769 | An empty string is returned if the last accessibility check
|
---|
9770 | was successful or has not yet been called. As a result, if
|
---|
9771 | <link to="#state" /> is "Inaccessible" and this attribute is empty,
|
---|
9772 | then <link to="#refreshState"/> has yet to be called; this is the
|
---|
9773 | default value of media after VirtualBox initialization.
|
---|
9774 | A non-empty string indicates a failure and should normally describe
|
---|
9775 | a reason of the failure (for example, a file read error).
|
---|
9776 | </desc>
|
---|
9777 | </attribute>
|
---|
9778 |
|
---|
9779 | <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
|
---|
9780 | <desc>
|
---|
9781 | Array of UUIDs of all machines this medium is attached to.
|
---|
9782 |
|
---|
9783 | A @c null array is returned if this medium is not attached to any
|
---|
9784 | machine or to any machine's snapshot.
|
---|
9785 |
|
---|
9786 | <note>
|
---|
9787 | The returned array will include a machine even if this medium is not
|
---|
9788 | attached to that machine in the current state but attached to it in
|
---|
9789 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
9790 | details.
|
---|
9791 | </note>
|
---|
9792 | </desc>
|
---|
9793 | </attribute>
|
---|
9794 |
|
---|
9795 | <method name="refreshState">
|
---|
9796 | <desc>
|
---|
9797 | If the current medium state (see <link to="MediumState"/>) is one of
|
---|
9798 | "Created", "Inaccessible" or "LockedRead", then this performs an
|
---|
9799 | accessibility check on the medium and sets the value of the <link to="#state"/>
|
---|
9800 | attribute accordingly; that value is also returned for convenience.
|
---|
9801 |
|
---|
9802 | For all other state values, this does not perform a refresh but returns
|
---|
9803 | the state only.
|
---|
9804 |
|
---|
9805 | The refresh, if performed, may take a long time (several seconds or even
|
---|
9806 | minutes, depending on the storage unit location and format) because it performs an
|
---|
9807 | accessibility check of the storage unit. This check may cause a significant
|
---|
9808 | delay if the storage unit of the given medium is, for example, a file located
|
---|
9809 | on a network share which is not currently accessible due to connectivity
|
---|
9810 | problems. In that case, the call will not return until a timeout
|
---|
9811 | interval defined by the host OS for this operation expires. For this reason,
|
---|
9812 | it is recommended to never read this attribute on the main UI thread to avoid
|
---|
9813 | making the UI unresponsive.
|
---|
9814 |
|
---|
9815 | If the last known state of the medium is "Created" and the accessibility
|
---|
9816 | check fails, then the state would be set to "Inaccessible", and
|
---|
9817 | <link to="#lastAccessError"/> may be used to get more details about the
|
---|
9818 | failure. If the state of the medium is "LockedRead", then it remains the
|
---|
9819 | same, and a non-empty value of <link to="#lastAccessError"/> will
|
---|
9820 | indicate a failed accessibility check in this case.
|
---|
9821 |
|
---|
9822 | Note that not all medium states are applicable to all medium types.
|
---|
9823 | </desc>
|
---|
9824 | <param name="state" type="MediumState" dir="return">
|
---|
9825 | <desc>
|
---|
9826 | New medium state.
|
---|
9827 | </desc>
|
---|
9828 | </param>
|
---|
9829 | </method>
|
---|
9830 |
|
---|
9831 | <method name="getSnapshotIds">
|
---|
9832 | <desc>
|
---|
9833 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
9834 | this medium is attached to.
|
---|
9835 |
|
---|
9836 | If the medium is attached to the machine in the current state, then the
|
---|
9837 | first element in the array will always be the ID of the queried machine
|
---|
9838 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
9839 | snapshot IDs (if any).
|
---|
9840 |
|
---|
9841 | If the medium is not attached to the machine in the current state, then
|
---|
9842 | the array will contain only snapshot IDs.
|
---|
9843 |
|
---|
9844 | The returned array may be @c null if this medium is not attached
|
---|
9845 | to the given machine at all, neither in the current state nor in one of
|
---|
9846 | the snapshots.
|
---|
9847 | </desc>
|
---|
9848 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
9849 | <desc>
|
---|
9850 | UUID of the machine to query.
|
---|
9851 | </desc>
|
---|
9852 | </param>
|
---|
9853 | <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
|
---|
9854 | <desc>
|
---|
9855 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
9856 | </desc>
|
---|
9857 | </param>
|
---|
9858 | </method>
|
---|
9859 |
|
---|
9860 | <method name="lockRead">
|
---|
9861 | <desc>
|
---|
9862 | Locks this medium for reading.
|
---|
9863 |
|
---|
9864 | A read lock is shared: many clients can simultaneously lock the
|
---|
9865 | same medium for reading unless it is already locked for writing (see
|
---|
9866 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
9867 |
|
---|
9868 | When the medium is locked for reading, it cannot be modified
|
---|
9869 | from within VirtualBox. This means that any method that changes
|
---|
9870 | the properties of this medium or contents of the storage unit
|
---|
9871 | will return an error (unless explicitly stated otherwise). That
|
---|
9872 | includes an attempt to start a virtual machine that wants to
|
---|
9873 | write to the the medium.
|
---|
9874 |
|
---|
9875 | When the virtual machine is started up, it locks for reading all
|
---|
9876 | media it uses in read-only mode. If some medium cannot be locked
|
---|
9877 | for reading, the startup procedure will fail.
|
---|
9878 | A medium is typically locked for reading while it is used by a running
|
---|
9879 | virtual machine but has a depending differencing image that receives
|
---|
9880 | the actual write operations. This way one base medium can have
|
---|
9881 | multiple child differencing images which can be written to
|
---|
9882 | simultaneously. Read-only media such as DVD and floppy images are
|
---|
9883 | also locked for reading only (so they can be in use by multiple
|
---|
9884 | machines simultaneously).
|
---|
9885 |
|
---|
9886 | A medium is also locked for reading when it is the source of a
|
---|
9887 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9888 |
|
---|
9889 | The medium locked for reading must be unlocked using the <link
|
---|
9890 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
9891 | can be nested and must be followed by the same number of paired
|
---|
9892 | <link to="#unlockRead"/> calls.
|
---|
9893 |
|
---|
9894 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9895 | "LockedRead" on success. The medium's previous state must be
|
---|
9896 | one of "Created", "Inaccessible" or "LockedRead".
|
---|
9897 |
|
---|
9898 | Locking an inaccessible medium is not an error; this method performs
|
---|
9899 | a logical lock that prevents modifications of this medium through
|
---|
9900 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9901 | storage unit.
|
---|
9902 |
|
---|
9903 | This method returns the current state of the medium
|
---|
9904 | <i>before</i> the operation.
|
---|
9905 |
|
---|
9906 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9907 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9908 | creating, deleting).
|
---|
9909 | </result>
|
---|
9910 |
|
---|
9911 | </desc>
|
---|
9912 | <param name="state" type="MediumState" dir="return">
|
---|
9913 | <desc>
|
---|
9914 | State of the medium after the operation.
|
---|
9915 | </desc>
|
---|
9916 | </param>
|
---|
9917 | </method>
|
---|
9918 |
|
---|
9919 | <method name="unlockRead">
|
---|
9920 | <desc>
|
---|
9921 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
9922 |
|
---|
9923 | For both success and failure, this method returns the current state
|
---|
9924 | of the medium <i>after</i> the operation.
|
---|
9925 |
|
---|
9926 | See <link to="#lockRead"/> for more details.
|
---|
9927 |
|
---|
9928 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9929 | Medium not locked for reading.
|
---|
9930 | </result>
|
---|
9931 |
|
---|
9932 | </desc>
|
---|
9933 | <param name="state" type="MediumState" dir="return">
|
---|
9934 | <desc>
|
---|
9935 | State of the medium after the operation.
|
---|
9936 | </desc>
|
---|
9937 | </param>
|
---|
9938 | </method>
|
---|
9939 |
|
---|
9940 | <method name="lockWrite">
|
---|
9941 | <desc>
|
---|
9942 | Locks this medium for writing.
|
---|
9943 |
|
---|
9944 | A write lock, as opposed to <link to="#lockRead"/>, is
|
---|
9945 | exclusive: there may be only one client holding a write lock,
|
---|
9946 | and there may be no read locks while the write lock is held.
|
---|
9947 | As a result, read-locking fails if a write lock is held, and
|
---|
9948 | write-locking fails if either a read or another write lock is held.
|
---|
9949 |
|
---|
9950 | When a medium is locked for writing, it cannot be modified
|
---|
9951 | from within VirtualBox, and it is not guaranteed that the values
|
---|
9952 | of its properties are up-to-date. Any method that changes the
|
---|
9953 | properties of this medium or contents of the storage unit will
|
---|
9954 | return an error (unless explicitly stated otherwise).
|
---|
9955 |
|
---|
9956 | When a virtual machine is started up, it locks for writing all
|
---|
9957 | media it uses to write data to. If any medium could not be locked
|
---|
9958 | for writing, the startup procedure will fail. If a medium has
|
---|
9959 | differencing images, then while the machine is running, only
|
---|
9960 | the last ("leaf") differencing image is locked for writing,
|
---|
9961 | whereas its parents are locked for reading only.
|
---|
9962 |
|
---|
9963 | A medium is also locked for writing when it is the target of a
|
---|
9964 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9965 |
|
---|
9966 | The medium locked for writing must be unlocked using the <link
|
---|
9967 | to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
|
---|
9968 |
|
---|
9969 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9970 | "LockedWrite" on success. The medium's previous state must be
|
---|
9971 | either "Created" or "Inaccessible".
|
---|
9972 |
|
---|
9973 | Locking an inaccessible medium is not an error; this method performs
|
---|
9974 | a logical lock that prevents modifications of this medium through
|
---|
9975 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9976 | storage unit.
|
---|
9977 |
|
---|
9978 | For both, success and failure, this method returns the current
|
---|
9979 | state of the medium <i>before</i> the operation.
|
---|
9980 |
|
---|
9981 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9982 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9983 | creating, deleting).
|
---|
9984 | </result>
|
---|
9985 |
|
---|
9986 | </desc>
|
---|
9987 | <param name="state" type="MediumState" dir="return">
|
---|
9988 | <desc>
|
---|
9989 | State of the medium after the operation.
|
---|
9990 | </desc>
|
---|
9991 | </param>
|
---|
9992 | </method>
|
---|
9993 |
|
---|
9994 | <method name="unlockWrite">
|
---|
9995 | <desc>
|
---|
9996 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
9997 |
|
---|
9998 | For both success and failure, this method returns the current
|
---|
9999 | state of the medium <i>after</i> the operation.
|
---|
10000 |
|
---|
10001 | See <link to="#lockWrite"/> for more details.
|
---|
10002 |
|
---|
10003 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10004 | Medium not locked for writing.
|
---|
10005 | </result>
|
---|
10006 |
|
---|
10007 | </desc>
|
---|
10008 | <param name="state" type="MediumState" dir="return">
|
---|
10009 | <desc>
|
---|
10010 | State of the medium after the operation.
|
---|
10011 | </desc>
|
---|
10012 | </param>
|
---|
10013 | </method>
|
---|
10014 |
|
---|
10015 | <method name="close">
|
---|
10016 | <desc>
|
---|
10017 | Closes this medium.
|
---|
10018 |
|
---|
10019 | The medium must not be attached to any known virtual machine
|
---|
10020 | and must not have any known child media, otherwise the
|
---|
10021 | operation will fail.
|
---|
10022 |
|
---|
10023 | When the medium is successfully closed, it gets removed from
|
---|
10024 | the list of remembered media, but its storage unit is not
|
---|
10025 | deleted. In particular, this means that this medium can be
|
---|
10026 | later opened again using the <link
|
---|
10027 | to="IVirtualBox::openHardDisk"/> call.
|
---|
10028 |
|
---|
10029 | Note that after this method successfully returns, the given medium
|
---|
10030 | object becomes uninitialized. This means that any attempt
|
---|
10031 | to call any of its methods or attributes will fail with the
|
---|
10032 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
10033 |
|
---|
10034 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10035 | Invalid medium state (other than not created, created or
|
---|
10036 | inaccessible).
|
---|
10037 | </result>
|
---|
10038 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10039 | Medium attached to virtual machine.
|
---|
10040 | </result>
|
---|
10041 | <result name="VBOX_E_FILE_ERROR">
|
---|
10042 | Settings file not accessible.
|
---|
10043 | </result>
|
---|
10044 | <result name="VBOX_E_XML_ERROR">
|
---|
10045 | Could not parse the settings file.
|
---|
10046 | </result>
|
---|
10047 |
|
---|
10048 | </desc>
|
---|
10049 | </method>
|
---|
10050 |
|
---|
10051 | <!-- storage methods -->
|
---|
10052 |
|
---|
10053 | <method name="getProperty">
|
---|
10054 | <desc>
|
---|
10055 | Returns the value of the custom medium property with the given name.
|
---|
10056 |
|
---|
10057 | The list of all properties supported by the given medium format can
|
---|
10058 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10059 |
|
---|
10060 | Note that if this method returns an empty string in @a value, the
|
---|
10061 | requested property is supported but currently not assigned any value.
|
---|
10062 |
|
---|
10063 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
10064 | Requested property does not exist (not supported by the format).
|
---|
10065 | </result>
|
---|
10066 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
10067 | </desc>
|
---|
10068 | <param name="name" type="wstring" dir="in">
|
---|
10069 | <desc>Name of the property to get.</desc>
|
---|
10070 | </param>
|
---|
10071 | <param name="value" type="wstring" dir="return">
|
---|
10072 | <desc>Current property value.</desc>
|
---|
10073 | </param>
|
---|
10074 | </method>
|
---|
10075 |
|
---|
10076 | <method name="setProperty">
|
---|
10077 | <desc>
|
---|
10078 | Sets the value of the custom medium property with the given name.
|
---|
10079 |
|
---|
10080 | The list of all properties supported by the given medium format can
|
---|
10081 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10082 |
|
---|
10083 | Note that setting the property value to @c null or an empty string is
|
---|
10084 | equivalent to deleting the existing value. A default value (if it is
|
---|
10085 | defined for this property) will be used by the format backend in this
|
---|
10086 | case.
|
---|
10087 |
|
---|
10088 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
10089 | Requested property does not exist (not supported by the format).
|
---|
10090 | </result>
|
---|
10091 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
10092 | </desc>
|
---|
10093 | <param name="name" type="wstring" dir="in">
|
---|
10094 | <desc>Name of the property to set.</desc>
|
---|
10095 | </param>
|
---|
10096 | <param name="value" type="wstring" dir="in">
|
---|
10097 | <desc>Property value to set.</desc>
|
---|
10098 | </param>
|
---|
10099 | </method>
|
---|
10100 |
|
---|
10101 | <method name="getProperties">
|
---|
10102 | <desc>
|
---|
10103 | Returns values for a group of properties in one call.
|
---|
10104 |
|
---|
10105 | The names of the properties to get are specified using the @a names
|
---|
10106 | argument which is a list of comma-separated property names or
|
---|
10107 | an empty string if all properties are to be returned. Note that currently
|
---|
10108 | the value of this argument is ignored and the method always returns all
|
---|
10109 | existing properties.
|
---|
10110 |
|
---|
10111 | The list of all properties supported by the given medium format can
|
---|
10112 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10113 |
|
---|
10114 | The method returns two arrays, the array of property names corresponding
|
---|
10115 | to the @a names argument and the current values of these properties.
|
---|
10116 | Both arrays have the same number of elements with each elemend at the
|
---|
10117 | given index in the first array corresponds to an element at the same
|
---|
10118 | index in the second array.
|
---|
10119 |
|
---|
10120 | Note that for properties that do not have assigned values,
|
---|
10121 | an empty string is returned at the appropriate index in the
|
---|
10122 | @a returnValues array.
|
---|
10123 |
|
---|
10124 | </desc>
|
---|
10125 | <param name="names" type="wstring" dir="in">
|
---|
10126 | <desc>
|
---|
10127 | Names of properties to get.
|
---|
10128 | </desc>
|
---|
10129 | </param>
|
---|
10130 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
10131 | <desc>Names of returned properties.</desc>
|
---|
10132 | </param>
|
---|
10133 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
10134 | <desc>Values of returned properties.</desc>
|
---|
10135 | </param>
|
---|
10136 | </method>
|
---|
10137 |
|
---|
10138 | <method name="setProperties">
|
---|
10139 | <desc>
|
---|
10140 | Sets values for a group of properties in one call.
|
---|
10141 |
|
---|
10142 | The names of the properties to set are passed in the @a names
|
---|
10143 | array along with the new values for them in the @a values array. Both
|
---|
10144 | arrays have the same number of elements with each elemend at the given
|
---|
10145 | index in the first array corresponding to an element at the same index
|
---|
10146 | in the second array.
|
---|
10147 |
|
---|
10148 | If there is at least one property name in @a names that is not valid,
|
---|
10149 | the method will fail before changing the values of any other properties
|
---|
10150 | from the @a names array.
|
---|
10151 |
|
---|
10152 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
10153 | need to set several properties at once since it will result into less
|
---|
10154 | IPC calls.
|
---|
10155 |
|
---|
10156 | The list of all properties supported by the given medium format can
|
---|
10157 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10158 |
|
---|
10159 | Note that setting the property value to @c null or an empty string is
|
---|
10160 | equivalent to deleting the existing value. A default value (if it is
|
---|
10161 | defined for this property) will be used by the format backend in this
|
---|
10162 | case.
|
---|
10163 | </desc>
|
---|
10164 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
10165 | <desc>Names of properties to set.</desc>
|
---|
10166 | </param>
|
---|
10167 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
10168 | <desc>Values of properties to set.</desc>
|
---|
10169 | </param>
|
---|
10170 | </method>
|
---|
10171 |
|
---|
10172 | <!-- storage methods -->
|
---|
10173 |
|
---|
10174 | <method name="createBaseStorage">
|
---|
10175 | <desc>
|
---|
10176 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
10177 | to the variant flags) in in the background. The previous storage unit
|
---|
10178 | created for this object, if any, must first be deleted using
|
---|
10179 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
10180 |
|
---|
10181 | Before the operation starts, the medium is placed in
|
---|
10182 | <link to="MediumState_Creating"/> state. If the create operation
|
---|
10183 | fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
|
---|
10184 | state.
|
---|
10185 |
|
---|
10186 | After the returned progress object reports that the operation has
|
---|
10187 | successfully completed, the medium state will be set to <link
|
---|
10188 | to="MediumState_Created"/>, the medium will be remembered by this
|
---|
10189 | VirtualBox installation and may be attached to virtual machines.
|
---|
10190 |
|
---|
10191 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10192 | The variant of storage creation operation is not supported. See <link
|
---|
10193 | to="IMediumFormat::capabilities"/>.
|
---|
10194 | </result>
|
---|
10195 | </desc>
|
---|
10196 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
10197 | <desc>Maximum logical size of the medium in megabytes.</desc>
|
---|
10198 | </param>
|
---|
10199 | <param name="variant" type="MediumVariant" dir="in">
|
---|
10200 | <desc>Exact image variant which should be created.</desc>
|
---|
10201 | </param>
|
---|
10202 | <param name="progress" type="IProgress" dir="return">
|
---|
10203 | <desc>Progress object to track the operation completion.</desc>
|
---|
10204 | </param>
|
---|
10205 | </method>
|
---|
10206 |
|
---|
10207 | <method name="deleteStorage">
|
---|
10208 | <desc>
|
---|
10209 | Starts deleting the storage unit of this medium.
|
---|
10210 |
|
---|
10211 | The medium must not be attached to any known virtual machine and must
|
---|
10212 | not have any known child media, otherwise the operation will fail.
|
---|
10213 | It will also fail if there is no storage unit to delete or if deletion
|
---|
10214 | is already in progress, or if the medium is being in use (locked for
|
---|
10215 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
10216 | this operation to succeed is <link to="MediumState_Created"/>.
|
---|
10217 |
|
---|
10218 | Before the operation starts, the medium is placed in
|
---|
10219 | <link to="MediumState_Deleting"/> state and gets removed from the list
|
---|
10220 | of remembered hard disks (media registry). If the delete operation
|
---|
10221 | fails, the medium will be remembered again and placed back to
|
---|
10222 | <link to="MediumState_Created"/> state.
|
---|
10223 |
|
---|
10224 | After the returned progress object reports that the operation is
|
---|
10225 | complete, the medium state will be set to
|
---|
10226 | <link to="MediumState_NotCreated"/> and you will be able to use one of
|
---|
10227 | the storage creation methods to create it again.
|
---|
10228 |
|
---|
10229 | <see>#close()</see>
|
---|
10230 |
|
---|
10231 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10232 | Medium is attached to a virtual machine.
|
---|
10233 | </result>
|
---|
10234 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10235 | Storage deletion is not allowed because neither of storage creation
|
---|
10236 | operations are supported. See
|
---|
10237 | <link to="IMediumFormat::capabilities"/>.
|
---|
10238 | </result>
|
---|
10239 |
|
---|
10240 | <note>
|
---|
10241 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
10242 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
10243 | to answer this question.
|
---|
10244 | </note>
|
---|
10245 | </desc>
|
---|
10246 | <param name="progress" type="IProgress" dir="return">
|
---|
10247 | <desc>Progress object to track the operation completion.</desc>
|
---|
10248 | </param>
|
---|
10249 | </method>
|
---|
10250 |
|
---|
10251 | <!-- diff methods -->
|
---|
10252 |
|
---|
10253 | <method name="createDiffStorage">
|
---|
10254 | <desc>
|
---|
10255 | Starts creating an empty differencing storage unit based on this
|
---|
10256 | medium in the format and at the location defined by the @a target
|
---|
10257 | argument.
|
---|
10258 |
|
---|
10259 | The target medium must be in <link to="MediumState_NotCreated"/>
|
---|
10260 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
10261 | completion, this operation will set the type of the target medium to
|
---|
10262 | <link to="MediumType_Normal"/> and create a storage unit necessary to
|
---|
10263 | represent the differencing medium data in the given format (according
|
---|
10264 | to the storage format of the target object).
|
---|
10265 |
|
---|
10266 | After the returned progress object reports that the operation is
|
---|
10267 | successfully complete, the target medium gets remembered by this
|
---|
10268 | VirtualBox installation and may be attached to virtual machines.
|
---|
10269 |
|
---|
10270 | <note>
|
---|
10271 | The medium will be set to <link to="MediumState_LockedRead"/>
|
---|
10272 | state for the duration of this operation.
|
---|
10273 | </note>
|
---|
10274 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10275 | Medium not in @c NotCreated state.
|
---|
10276 | </result>
|
---|
10277 | </desc>
|
---|
10278 | <param name="target" type="IMedium" dir="in">
|
---|
10279 | <desc>Target medium.</desc>
|
---|
10280 | </param>
|
---|
10281 | <param name="variant" type="MediumVariant" dir="in">
|
---|
10282 | <desc>Exact image variant which should be created.</desc>
|
---|
10283 | </param>
|
---|
10284 | <param name="progress" type="IProgress" dir="return">
|
---|
10285 | <desc>Progress object to track the operation completion.</desc>
|
---|
10286 | </param>
|
---|
10287 | </method>
|
---|
10288 |
|
---|
10289 | <method name="mergeTo">
|
---|
10290 | <desc>
|
---|
10291 | Starts merging the contents of this medium and all intermediate
|
---|
10292 | differencing media in the chain to the given target medium.
|
---|
10293 |
|
---|
10294 | The target medium must be either a descendant of this medium or
|
---|
10295 | its ancestor (otherwise this method will immediately return a failure).
|
---|
10296 | It follows that there are two logical directions of the merge operation:
|
---|
10297 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
10298 | ancestor (<i>backward merge</i>). Let us consider the following medium
|
---|
10299 | chain:
|
---|
10300 |
|
---|
10301 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
10302 |
|
---|
10303 | Here, calling this method on the <tt>Base</tt> medium object with
|
---|
10304 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
10305 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
10306 | merge. Note that in both cases the contents of the resulting medium
|
---|
10307 | will be the same, the only difference is the medium object that takes
|
---|
10308 | the result of the merge operation. In case of the forward merge in the
|
---|
10309 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
10310 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
10311 | other words, the result of the operation is always stored in the target
|
---|
10312 | medium.
|
---|
10313 |
|
---|
10314 | Upon successful operation completion, the storage units of all media in
|
---|
10315 | the chain between this (source) medium and the target medium, including
|
---|
10316 | the source medium itself, will be automatically deleted and the
|
---|
10317 | relevant medium objects (including this medium) will become
|
---|
10318 | uninitialized. This means that any attempt to call any of
|
---|
10319 | their methods or attributes will fail with the
|
---|
10320 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
10321 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
10322 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
|
---|
10323 | Note that <tt>Diff_2</tt> in this case will become a base medium
|
---|
10324 | itself since it will no longer be based on any other medium.
|
---|
10325 |
|
---|
10326 | Considering the above, all of the following conditions must be met in
|
---|
10327 | order for the merge operation to succeed:
|
---|
10328 | <ul>
|
---|
10329 | <li>
|
---|
10330 | Neither this (source) medium nor any intermediate
|
---|
10331 | differencing medium in the chain between it and the target
|
---|
10332 | medium is attached to any virtual machine.
|
---|
10333 | </li>
|
---|
10334 | <li>
|
---|
10335 | Neither the source medium nor the target medium is an
|
---|
10336 | <link to="MediumType_Immutable"/> medium.
|
---|
10337 | </li>
|
---|
10338 | <li>
|
---|
10339 | The part of the medium tree from the source medium to the
|
---|
10340 | target medium is a linear chain, i.e. all medium in this
|
---|
10341 | chain have exactly one child which is the next medium in this
|
---|
10342 | chain. The only exception from this rule is the target medium in
|
---|
10343 | the forward merge operation; it is allowed to have any number of
|
---|
10344 | child media because the merge operation will not change its
|
---|
10345 | logical contents (as it is seen by the guest OS or by children).
|
---|
10346 | </li>
|
---|
10347 | <li>
|
---|
10348 | None of the involved media are in
|
---|
10349 | <link to="MediumState_LockedRead"/> or
|
---|
10350 | <link to="MediumState_LockedWrite"/> state.
|
---|
10351 | </li>
|
---|
10352 | </ul>
|
---|
10353 |
|
---|
10354 | <note>
|
---|
10355 | This (source) medium and all intermediates will be placed to <link
|
---|
10356 | to="MediumState_Deleting"/> state and the target medium will be
|
---|
10357 | placed to <link to="MediumState_LockedWrite"/> state and for the
|
---|
10358 | duration of this operation.
|
---|
10359 | </note>
|
---|
10360 | </desc>
|
---|
10361 | <param name="target" type="IMedium" dir="in">
|
---|
10362 | <desc>Target medium.</desc>
|
---|
10363 | </param>
|
---|
10364 | <param name="progress" type="IProgress" dir="return">
|
---|
10365 | <desc>Progress object to track the operation completion.</desc>
|
---|
10366 | </param>
|
---|
10367 | </method>
|
---|
10368 |
|
---|
10369 | <!-- clone method -->
|
---|
10370 |
|
---|
10371 | <method name="cloneTo">
|
---|
10372 | <desc>
|
---|
10373 | Starts creating a clone of this medium in the format and at the
|
---|
10374 | location defined by the @a target argument.
|
---|
10375 |
|
---|
10376 | The target medium must be either in <link to="MediumState_NotCreated"/>
|
---|
10377 | state (i.e. must not have an existing storage unit) or in
|
---|
10378 | <link to="MediumState_Created"/> state (i.e. created and not locked, and
|
---|
10379 | big enough to hold the data or else the copy will be partial). Upon
|
---|
10380 | successful completion, the cloned medium will contain exactly the
|
---|
10381 | same sector data as the medium being cloned, except that in the
|
---|
10382 | first case a new UUID for the clone will be randomly generated, and in
|
---|
10383 | the second case the UUID will remain unchanged.
|
---|
10384 |
|
---|
10385 | The @a parent argument defines which medium will be the parent
|
---|
10386 | of the clone. Passing a @c null reference indicates that the clone will
|
---|
10387 | be a base image, i.e. completely independent. It is possible to specify
|
---|
10388 | an arbitrary medium for this parameter, including the parent of the
|
---|
10389 | medium which is being cloned. Even cloning to a child of the source
|
---|
10390 | medium is possible. Note that when cloning to an existing image, the
|
---|
10391 | @a parent irgument is ignored.
|
---|
10392 |
|
---|
10393 | After the returned progress object reports that the operation is
|
---|
10394 | successfully complete, the target medium gets remembered by this
|
---|
10395 | VirtualBox installation and may be attached to virtual machines.
|
---|
10396 |
|
---|
10397 | <note>
|
---|
10398 | This medium will be placed to <link to="MediumState_LockedRead"/>
|
---|
10399 | state for the duration of this operation.
|
---|
10400 | </note>
|
---|
10401 | <result name="E_NOTIMPL">
|
---|
10402 | The specified cloning variant is not supported at the moment.
|
---|
10403 | </result>
|
---|
10404 | </desc>
|
---|
10405 | <param name="target" type="IMedium" dir="in">
|
---|
10406 | <desc>Target medium.</desc>
|
---|
10407 | </param>
|
---|
10408 | <param name="variant" type="MediumVariant" dir="in">
|
---|
10409 | <desc>Exact image variant which should be created.</desc>
|
---|
10410 | </param>
|
---|
10411 | <param name="parent" type="IMedium" dir="in">
|
---|
10412 | <desc>Parent of the cloned medium.</desc>
|
---|
10413 | </param>
|
---|
10414 | <param name="progress" type="IProgress" dir="return">
|
---|
10415 | <desc>Progress object to track the operation completion.</desc>
|
---|
10416 | </param>
|
---|
10417 | </method>
|
---|
10418 |
|
---|
10419 | <!-- other methods -->
|
---|
10420 |
|
---|
10421 | <method name="compact">
|
---|
10422 | <desc>
|
---|
10423 | Starts compacting of this medium. This means that the medium is
|
---|
10424 | transformed into a possibly more compact storage representation.
|
---|
10425 | This potentially creates temporary images, which can require a
|
---|
10426 | substantial amount of additional disk space.
|
---|
10427 |
|
---|
10428 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10429 | state and all its parent media (if any) will be placed to
|
---|
10430 | <link to="MediumState_LockedRead"/> state for the duration of this
|
---|
10431 | operation.
|
---|
10432 |
|
---|
10433 | Please note that the results can be either returned straight away,
|
---|
10434 | or later as the result of the background operation via the object
|
---|
10435 | returned via the @a progress parameter.
|
---|
10436 |
|
---|
10437 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10438 | Medium format does not support compacting (but potentially
|
---|
10439 | needs it).
|
---|
10440 | </result>
|
---|
10441 | </desc>
|
---|
10442 | <param name="progress" type="IProgress" dir="return">
|
---|
10443 | <desc>Progress object to track the operation completion.</desc>
|
---|
10444 | </param>
|
---|
10445 | </method>
|
---|
10446 |
|
---|
10447 | <method name="resize">
|
---|
10448 | <desc>
|
---|
10449 | Starts resizing this medium. This means that the nominal size of the
|
---|
10450 | medium is set to the new value. Both increasing and decreasing the
|
---|
10451 | size is possible, and there are no safety checks, since VirtualBox
|
---|
10452 | does not make any assumptions about the medium contents.
|
---|
10453 |
|
---|
10454 | Resizing usually needs additional disk space, and possibly also
|
---|
10455 | some temporary disk space. Note that resize does not create a full
|
---|
10456 | temporary copy of the medium, so the additional disk space requirement
|
---|
10457 | is usually much lower than using the clone operation.
|
---|
10458 |
|
---|
10459 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10460 | state for the duration of this operation.
|
---|
10461 |
|
---|
10462 | Please note that the results can be either returned straight away,
|
---|
10463 | or later as the result of the background operation via the object
|
---|
10464 | returned via the @a progress parameter.
|
---|
10465 |
|
---|
10466 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10467 | Medium format does not support resizing.
|
---|
10468 | </result>
|
---|
10469 | </desc>
|
---|
10470 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
10471 | <desc>New nominal capacity of the medium in megabytes.</desc>
|
---|
10472 | </param>
|
---|
10473 | <param name="progress" type="IProgress" dir="return">
|
---|
10474 | <desc>Progress object to track the operation completion.</desc>
|
---|
10475 | </param>
|
---|
10476 | </method>
|
---|
10477 |
|
---|
10478 | <method name="reset">
|
---|
10479 | <desc>
|
---|
10480 | Starts erasing the contents of this differencing medium.
|
---|
10481 |
|
---|
10482 | This operation will reset the differencing medium to its initial
|
---|
10483 | state when it does not contain any sector data and any read operation is
|
---|
10484 | redirected to its parent medium. This automatically gets called
|
---|
10485 | during VM power-up for every medium whose <link to="#autoReset" />
|
---|
10486 | attribute is @c true.
|
---|
10487 |
|
---|
10488 | The medium will be write-locked for the duration of this operation (see
|
---|
10489 | <link to="#lockWrite" />).
|
---|
10490 |
|
---|
10491 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10492 | This is not a differencing medium.
|
---|
10493 | </result>
|
---|
10494 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10495 | Medium is not in <link to="MediumState_Created"/> or
|
---|
10496 | <link to="MediumState_Inaccessible"/> state.
|
---|
10497 | </result>
|
---|
10498 | </desc>
|
---|
10499 | <param name="progress" type="IProgress" dir="return">
|
---|
10500 | <desc>Progress object to track the operation completion.</desc>
|
---|
10501 | </param>
|
---|
10502 | </method>
|
---|
10503 |
|
---|
10504 | </interface>
|
---|
10505 |
|
---|
10506 |
|
---|
10507 | <!--
|
---|
10508 | // IMediumFormat
|
---|
10509 | /////////////////////////////////////////////////////////////////////////
|
---|
10510 | -->
|
---|
10511 |
|
---|
10512 | <enum
|
---|
10513 | name="DataType"
|
---|
10514 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
10515 | >
|
---|
10516 | <const name="Int32" value="0"/>
|
---|
10517 | <const name="Int8" value="1"/>
|
---|
10518 | <const name="String" value="2"/>
|
---|
10519 | </enum>
|
---|
10520 |
|
---|
10521 | <enum
|
---|
10522 | name="DataFlags"
|
---|
10523 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
10524 | >
|
---|
10525 | <const name="None" value="0x00"/>
|
---|
10526 | <const name="Mandatory" value="0x01"/>
|
---|
10527 | <const name="Expert" value="0x02"/>
|
---|
10528 | <const name="Array" value="0x04"/>
|
---|
10529 | <const name="FlagMask" value="0x07"/>
|
---|
10530 | </enum>
|
---|
10531 |
|
---|
10532 | <enum
|
---|
10533 | name="MediumFormatCapabilities"
|
---|
10534 | uuid="70fcf810-99e8-4edc-aee4-7f51d489e657"
|
---|
10535 | >
|
---|
10536 | <desc>
|
---|
10537 | Medium format capability flags.
|
---|
10538 | </desc>
|
---|
10539 |
|
---|
10540 | <const name="Uuid" value="0x01">
|
---|
10541 | <desc>
|
---|
10542 | Supports UUIDs as expected by VirtualBox code.
|
---|
10543 | </desc>
|
---|
10544 | </const>
|
---|
10545 |
|
---|
10546 | <const name="CreateFixed" value="0x02">
|
---|
10547 | <desc>
|
---|
10548 | Supports creating fixed size images, allocating all space instantly.
|
---|
10549 | </desc>
|
---|
10550 | </const>
|
---|
10551 |
|
---|
10552 | <const name="CreateDynamic" value="0x04">
|
---|
10553 | <desc>
|
---|
10554 | Supports creating dynamically growing images, allocating space on
|
---|
10555 | demand.
|
---|
10556 | </desc>
|
---|
10557 | </const>
|
---|
10558 |
|
---|
10559 | <const name="CreateSplit2G" value="0x08">
|
---|
10560 | <desc>
|
---|
10561 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
10562 | </desc>
|
---|
10563 | </const>
|
---|
10564 |
|
---|
10565 | <const name="Differencing" value="0x10">
|
---|
10566 | <desc>
|
---|
10567 | Supports being used as a format for differencing media (see <link
|
---|
10568 | to="IMedium::createDiffStorage"/>).
|
---|
10569 | </desc>
|
---|
10570 | </const>
|
---|
10571 |
|
---|
10572 | <const name="Asynchronous" value="0x20">
|
---|
10573 | <desc>
|
---|
10574 | Supports asynchronous I/O operations for at least some configurations.
|
---|
10575 | </desc>
|
---|
10576 | </const>
|
---|
10577 |
|
---|
10578 | <const name="File" value="0x40">
|
---|
10579 | <desc>
|
---|
10580 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
10581 | attribute of the medium specifies a file used to store medium
|
---|
10582 | data; for a list of supported file extensions see
|
---|
10583 | <link to="IMediumFormat::fileExtensions"/>).
|
---|
10584 | </desc>
|
---|
10585 | </const>
|
---|
10586 |
|
---|
10587 | <const name="Properties" value="0x80">
|
---|
10588 | <desc>
|
---|
10589 | The format backend uses the property interface to configure the storage
|
---|
10590 | location and properties (the <link to="IMediumFormat::describeProperties"/>
|
---|
10591 | method is used to get access to properties supported by the given medium format).
|
---|
10592 | </desc>
|
---|
10593 | </const>
|
---|
10594 |
|
---|
10595 | <const name="CapabilityMask" value="0xFF"/>
|
---|
10596 | </enum>
|
---|
10597 |
|
---|
10598 | <interface
|
---|
10599 | name="IMediumFormat" extends="$unknown"
|
---|
10600 | uuid="89f52554-d469-4799-9fad-1705e86a08b1"
|
---|
10601 | wsmap="managed"
|
---|
10602 | >
|
---|
10603 | <desc>
|
---|
10604 | The IMediumFormat interface represents a medium format.
|
---|
10605 |
|
---|
10606 | Each medium format has an associated backend which is used to handle
|
---|
10607 | media stored in this format. This interface provides information
|
---|
10608 | about the properties of the associated backend.
|
---|
10609 |
|
---|
10610 | Each medium format is identified by a string represented by the
|
---|
10611 | <link to="#id"/> attribute. This string is used in calls like
|
---|
10612 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
10613 | format.
|
---|
10614 |
|
---|
10615 | The list of all supported medium formats can be obtained using
|
---|
10616 | <link to="ISystemProperties::mediaFormats"/>.
|
---|
10617 |
|
---|
10618 | <see>IMedium</see>
|
---|
10619 | </desc>
|
---|
10620 |
|
---|
10621 | <attribute name="id" type="wstring" readonly="yes">
|
---|
10622 | <desc>
|
---|
10623 | Identifier of this format.
|
---|
10624 |
|
---|
10625 | The format identifier is a non-@c null non-empty ASCII string. Note that
|
---|
10626 | this string is case-insensitive. This means that, for example, all of
|
---|
10627 | the following strings:
|
---|
10628 | <pre>
|
---|
10629 | "VDI"
|
---|
10630 | "vdi"
|
---|
10631 | "VdI"</pre>
|
---|
10632 | refer to the same medium format.
|
---|
10633 |
|
---|
10634 | This string is used in methods of other interfaces where it is necessary
|
---|
10635 | to specify a medium format, such as
|
---|
10636 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
10637 | </desc>
|
---|
10638 | </attribute>
|
---|
10639 |
|
---|
10640 | <attribute name="name" type="wstring" readonly="yes">
|
---|
10641 | <desc>
|
---|
10642 | Human readable description of this format.
|
---|
10643 |
|
---|
10644 | Mainly for use in file open dialogs.
|
---|
10645 | </desc>
|
---|
10646 | </attribute>
|
---|
10647 |
|
---|
10648 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
10649 | <desc>
|
---|
10650 | Array of strings containing the supported file extensions.
|
---|
10651 |
|
---|
10652 | The first extension in the array is the extension preferred by the
|
---|
10653 | backend. It is recommended to use this extension when specifying a
|
---|
10654 | location of the storage unit for a new medium.
|
---|
10655 |
|
---|
10656 | Note that some backends do not work on files, so this array may be
|
---|
10657 | empty.
|
---|
10658 |
|
---|
10659 | <see>IMediumFormat::capabilities</see>
|
---|
10660 | </desc>
|
---|
10661 | </attribute>
|
---|
10662 |
|
---|
10663 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
10664 | <desc>
|
---|
10665 | Capabilities of the format as a set of bit flags.
|
---|
10666 |
|
---|
10667 | For the meaning of individual capability flags see
|
---|
10668 | <link to="MediumFormatCapabilities"/>.
|
---|
10669 | </desc>
|
---|
10670 | </attribute>
|
---|
10671 |
|
---|
10672 | <method name="describeProperties">
|
---|
10673 | <desc>
|
---|
10674 | Returns several arrays describing the properties supported by this
|
---|
10675 | format.
|
---|
10676 |
|
---|
10677 | An element with the given index in each array describes one
|
---|
10678 | property. Thus, the number of elements in each returned array is the
|
---|
10679 | same and corresponds to the number of supported properties.
|
---|
10680 |
|
---|
10681 | The returned arrays are filled in only if the
|
---|
10682 | <link to="MediumFormatCapabilities_Properties"/> flag is set.
|
---|
10683 | All arguments must be non-@c null.
|
---|
10684 |
|
---|
10685 | <see>DataType</see>
|
---|
10686 | <see>DataFlags</see>
|
---|
10687 | </desc>
|
---|
10688 |
|
---|
10689 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
10690 | <desc>Array of property names.</desc>
|
---|
10691 | </param>
|
---|
10692 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
10693 | <desc>Array of property descriptions.</desc>
|
---|
10694 | </param>
|
---|
10695 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
10696 | <desc>Array of property types.</desc>
|
---|
10697 | </param>
|
---|
10698 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
10699 | <desc>Array of property flags.</desc>
|
---|
10700 | </param>
|
---|
10701 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
10702 | <desc>Array of default property values.</desc>
|
---|
10703 | </param>
|
---|
10704 | </method>
|
---|
10705 |
|
---|
10706 | </interface>
|
---|
10707 |
|
---|
10708 |
|
---|
10709 | <!--
|
---|
10710 | // IKeyboard
|
---|
10711 | /////////////////////////////////////////////////////////////////////////
|
---|
10712 | -->
|
---|
10713 |
|
---|
10714 | <interface
|
---|
10715 | name="IKeyboard" extends="$unknown"
|
---|
10716 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
10717 | wsmap="managed"
|
---|
10718 | >
|
---|
10719 | <desc>
|
---|
10720 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
10721 | in <link to="IConsole::keyboard"/>.
|
---|
10722 |
|
---|
10723 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
10724 | to the virtual machine.
|
---|
10725 |
|
---|
10726 | </desc>
|
---|
10727 | <method name="putScancode">
|
---|
10728 | <desc>Sends a scancode to the keyboard.
|
---|
10729 |
|
---|
10730 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10731 | Could not send scan code to virtual keyboard.
|
---|
10732 | </result>
|
---|
10733 |
|
---|
10734 | </desc>
|
---|
10735 | <param name="scancode" type="long" dir="in"/>
|
---|
10736 | </method>
|
---|
10737 |
|
---|
10738 | <method name="putScancodes">
|
---|
10739 | <desc>Sends an array of scancodes to the keyboard.
|
---|
10740 |
|
---|
10741 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10742 | Could not send all scan codes to virtual keyboard.
|
---|
10743 | </result>
|
---|
10744 |
|
---|
10745 | </desc>
|
---|
10746 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
10747 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
10748 | </method>
|
---|
10749 |
|
---|
10750 | <method name="putCAD">
|
---|
10751 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
10752 | function is nothing special, it is just a convenience function
|
---|
10753 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
10754 |
|
---|
10755 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10756 | Could not send all scan codes to virtual keyboard.
|
---|
10757 | </result>
|
---|
10758 |
|
---|
10759 | </desc>
|
---|
10760 | </method>
|
---|
10761 |
|
---|
10762 | </interface>
|
---|
10763 |
|
---|
10764 |
|
---|
10765 | <!--
|
---|
10766 | // IMouse
|
---|
10767 | /////////////////////////////////////////////////////////////////////////
|
---|
10768 | -->
|
---|
10769 |
|
---|
10770 | <enum
|
---|
10771 | name="MouseButtonState"
|
---|
10772 | uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
|
---|
10773 | >
|
---|
10774 | <desc>
|
---|
10775 | Mouse button state.
|
---|
10776 | </desc>
|
---|
10777 |
|
---|
10778 | <const name="LeftButton" value="0x01"/>
|
---|
10779 | <const name="RightButton" value="0x02"/>
|
---|
10780 | <const name="MiddleButton" value="0x04"/>
|
---|
10781 | <const name="WheelUp" value="0x08"/>
|
---|
10782 | <const name="WheelDown" value="0x10"/>
|
---|
10783 | <const name="XButton1" value="0x20"/>
|
---|
10784 | <const name="XButton2" value="0x40"/>
|
---|
10785 | <const name="MouseStateMask" value="0x7F"/>
|
---|
10786 | </enum>
|
---|
10787 |
|
---|
10788 | <interface
|
---|
10789 | name="IMouse" extends="$unknown"
|
---|
10790 | uuid="7c0f2eae-f92d-498c-b802-e1a3763774dc"
|
---|
10791 | wsmap="managed"
|
---|
10792 | >
|
---|
10793 | <desc>
|
---|
10794 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
10795 | <link to="IConsole::mouse"/>.
|
---|
10796 |
|
---|
10797 | Through this interface, the virtual machine's virtual mouse can be
|
---|
10798 | controlled.
|
---|
10799 | </desc>
|
---|
10800 |
|
---|
10801 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
10802 | <desc>
|
---|
10803 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
10804 | or not.
|
---|
10805 | <note>
|
---|
10806 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10807 | callback to be instantly informed about changes of this attribute
|
---|
10808 | during virtual machine execution.
|
---|
10809 | </note>
|
---|
10810 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
10811 | </desc>
|
---|
10812 | </attribute>
|
---|
10813 |
|
---|
10814 | <attribute name="relativeSupported" type="boolean" readonly="yes">
|
---|
10815 | <desc>
|
---|
10816 | Whether the guest OS supports relative mouse pointer positioning
|
---|
10817 | or not.
|
---|
10818 | <note>
|
---|
10819 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10820 | callback to be instantly informed about changes of this attribute
|
---|
10821 | during virtual machine execution.
|
---|
10822 | </note>
|
---|
10823 | <see><link to="#putMouseEvent"/></see>
|
---|
10824 | </desc>
|
---|
10825 | </attribute>
|
---|
10826 |
|
---|
10827 | <attribute name="needsHostCursor" type="boolean" readonly="yes">
|
---|
10828 | <desc>
|
---|
10829 | Whether the guest OS can currently switch to drawing it's own mouse
|
---|
10830 | cursor on demand.
|
---|
10831 | <note>
|
---|
10832 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10833 | callback to be instantly informed about changes of this attribute
|
---|
10834 | during virtual machine execution.
|
---|
10835 | </note>
|
---|
10836 | <see><link to="#putMouseEvent"/></see>
|
---|
10837 | </desc>
|
---|
10838 | </attribute>
|
---|
10839 |
|
---|
10840 | <method name="putMouseEvent">
|
---|
10841 | <desc>
|
---|
10842 | Initiates a mouse event using relative pointer movements
|
---|
10843 | along x and y axis.
|
---|
10844 |
|
---|
10845 | <result name="E_ACCESSDENIED">
|
---|
10846 | Console not powered up.
|
---|
10847 | </result>
|
---|
10848 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10849 | Could not send mouse event to virtual mouse.
|
---|
10850 | </result>
|
---|
10851 |
|
---|
10852 | </desc>
|
---|
10853 |
|
---|
10854 | <param name="dx" type="long" dir="in">
|
---|
10855 | <desc>
|
---|
10856 | Amount of pixels the mouse should move to the right.
|
---|
10857 | Negative values move the mouse to the left.
|
---|
10858 | </desc>
|
---|
10859 | </param>
|
---|
10860 | <param name="dy" type="long" dir="in">
|
---|
10861 | <desc>
|
---|
10862 | Amount of pixels the mouse should move downwards.
|
---|
10863 | Negative values move the mouse upwards.
|
---|
10864 | </desc>
|
---|
10865 | </param>
|
---|
10866 | <param name="dz" type="long" dir="in">
|
---|
10867 | <desc>
|
---|
10868 | Amount of mouse wheel moves.
|
---|
10869 | Positive values describe clockwise wheel rotations,
|
---|
10870 | negative values describe counterclockwise rotations.
|
---|
10871 | </desc>
|
---|
10872 | </param>
|
---|
10873 | <param name="dw" type="long" dir="in">
|
---|
10874 | <desc>
|
---|
10875 | Amount of horizontal mouse wheel moves.
|
---|
10876 | Positive values describe a movement to the left,
|
---|
10877 | negative values describe a movement to the right.
|
---|
10878 | </desc>
|
---|
10879 | </param>
|
---|
10880 | <param name="buttonState" type="long" dir="in">
|
---|
10881 | <desc>
|
---|
10882 | The current state of mouse buttons. Every bit represents
|
---|
10883 | a mouse button as follows:
|
---|
10884 | <table>
|
---|
10885 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10886 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10887 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10888 | </table>
|
---|
10889 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10890 | otherwise it is released.
|
---|
10891 | </desc>
|
---|
10892 | </param>
|
---|
10893 | </method>
|
---|
10894 |
|
---|
10895 | <method name="putMouseEventAbsolute">
|
---|
10896 | <desc>
|
---|
10897 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10898 | These coordinates are expressed in pixels and
|
---|
10899 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10900 | corner of the virtual display.
|
---|
10901 |
|
---|
10902 | <result name="E_ACCESSDENIED">
|
---|
10903 | Console not powered up.
|
---|
10904 | </result>
|
---|
10905 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10906 | Could not send mouse event to virtual mouse.
|
---|
10907 | </result>
|
---|
10908 |
|
---|
10909 | <note>
|
---|
10910 | This method will have effect only if absolute mouse
|
---|
10911 | positioning is supported by the guest OS.
|
---|
10912 | </note>
|
---|
10913 |
|
---|
10914 | <see><link to="#absoluteSupported"/></see>
|
---|
10915 | </desc>
|
---|
10916 |
|
---|
10917 | <param name="x" type="long" dir="in">
|
---|
10918 | <desc>
|
---|
10919 | X coordinate of the pointer in pixels, starting from @c 1.
|
---|
10920 | </desc>
|
---|
10921 | </param>
|
---|
10922 | <param name="y" type="long" dir="in">
|
---|
10923 | <desc>
|
---|
10924 | Y coordinate of the pointer in pixels, starting from @c 1.
|
---|
10925 | </desc>
|
---|
10926 | </param>
|
---|
10927 | <param name="dz" type="long" dir="in">
|
---|
10928 | <desc>
|
---|
10929 | Amount of mouse wheel moves.
|
---|
10930 | Positive values describe clockwise wheel rotations,
|
---|
10931 | negative values describe counterclockwise rotations.
|
---|
10932 | </desc>
|
---|
10933 | </param>
|
---|
10934 | <param name="dw" type="long" dir="in">
|
---|
10935 | <desc>
|
---|
10936 | Amount of horizontal mouse wheel moves.
|
---|
10937 | Positive values describe a movement to the left,
|
---|
10938 | negative values describe a movement to the right.
|
---|
10939 | </desc>
|
---|
10940 | </param>
|
---|
10941 | <param name="buttonState" type="long" dir="in">
|
---|
10942 | <desc>
|
---|
10943 | The current state of mouse buttons. Every bit represents
|
---|
10944 | a mouse button as follows:
|
---|
10945 | <table>
|
---|
10946 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10947 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10948 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10949 | </table>
|
---|
10950 | A value of @c 1 means the corresponding button is pressed.
|
---|
10951 | otherwise it is released.
|
---|
10952 | </desc>
|
---|
10953 | </param>
|
---|
10954 | </method>
|
---|
10955 |
|
---|
10956 | </interface>
|
---|
10957 |
|
---|
10958 | <!--
|
---|
10959 | // IDisplay
|
---|
10960 | /////////////////////////////////////////////////////////////////////////
|
---|
10961 | -->
|
---|
10962 |
|
---|
10963 | <enum
|
---|
10964 | name="FramebufferPixelFormat"
|
---|
10965 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10966 | >
|
---|
10967 | <desc>
|
---|
10968 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10969 | be used to test for particular values of <link
|
---|
10970 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10971 | to="IFramebuffer::requestResize"/>.
|
---|
10972 |
|
---|
10973 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10974 | </desc>
|
---|
10975 |
|
---|
10976 | <const name="Opaque" value="0">
|
---|
10977 | <desc>
|
---|
10978 | Unknown buffer format (the user may not assume any particular format of
|
---|
10979 | the buffer).
|
---|
10980 | </desc>
|
---|
10981 | </const>
|
---|
10982 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10983 | <desc>
|
---|
10984 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10985 | bit layout).
|
---|
10986 | </desc>
|
---|
10987 | </const>
|
---|
10988 | </enum>
|
---|
10989 |
|
---|
10990 | <interface
|
---|
10991 | name="IFramebuffer" extends="$unknown"
|
---|
10992 | uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
|
---|
10993 | wsmap="suppress"
|
---|
10994 | >
|
---|
10995 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
10996 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
10997 | </attribute>
|
---|
10998 |
|
---|
10999 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
11000 | <desc>Frame buffer width, in pixels.</desc>
|
---|
11001 | </attribute>
|
---|
11002 |
|
---|
11003 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
11004 | <desc>Frame buffer height, in pixels.</desc>
|
---|
11005 | </attribute>
|
---|
11006 |
|
---|
11007 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
11008 | <desc>
|
---|
11009 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
11010 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
11011 | are: 8, 15, 16, 24 and 32.
|
---|
11012 | </desc>
|
---|
11013 | </attribute>
|
---|
11014 |
|
---|
11015 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
11016 | <desc>
|
---|
11017 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
11018 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
11019 | size of the scan line must be aligned to 32 bits.
|
---|
11020 | </desc>
|
---|
11021 | </attribute>
|
---|
11022 |
|
---|
11023 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
11024 | <desc>
|
---|
11025 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
11026 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
11027 | <note>
|
---|
11028 | This attribute must never return <link
|
---|
11029 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
11030 | <link to="#address"/> points to must be always known.
|
---|
11031 | </note>
|
---|
11032 | </desc>
|
---|
11033 | </attribute>
|
---|
11034 |
|
---|
11035 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
11036 | <desc>
|
---|
11037 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
11038 | buffer (guest VRAM) directly or not. See <link
|
---|
11039 | to="IFramebuffer::requestResize"/> for more information.
|
---|
11040 | </desc>
|
---|
11041 | </attribute>
|
---|
11042 |
|
---|
11043 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
11044 | <desc>
|
---|
11045 | Hint from the frame buffer about how much of the standard
|
---|
11046 | screen height it wants to use for itself. This information is
|
---|
11047 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
11048 | so that it can use it for determining its video mode table. It
|
---|
11049 | is not guaranteed that the guest respects the value.
|
---|
11050 | </desc>
|
---|
11051 | </attribute>
|
---|
11052 |
|
---|
11053 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
11054 | <desc>
|
---|
11055 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
11056 | The initial purpose is to allow the display of icons providing
|
---|
11057 | information about the VM state, including disk activity, in front
|
---|
11058 | ends which do not have other means of doing that. The overlay is
|
---|
11059 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
11060 | of its own, and any changes made to it are not guaranteed to be
|
---|
11061 | visible until the affected portion of IFramebuffer is updated. The
|
---|
11062 | overlay can be created lazily the first time it is requested. This
|
---|
11063 | attribute can also return @c null to signal that the overlay is not
|
---|
11064 | implemented.
|
---|
11065 | </desc>
|
---|
11066 | </attribute>
|
---|
11067 |
|
---|
11068 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
11069 | <desc>
|
---|
11070 | Platform-dependent identifier of the window where context of this
|
---|
11071 | frame buffer is drawn, or zero if there's no such window.
|
---|
11072 | </desc>
|
---|
11073 | </attribute>
|
---|
11074 |
|
---|
11075 | <method name="lock">
|
---|
11076 | <desc>
|
---|
11077 | Locks the frame buffer.
|
---|
11078 | Gets called by the IDisplay object where this frame buffer is
|
---|
11079 | bound to.
|
---|
11080 | </desc>
|
---|
11081 | </method>
|
---|
11082 |
|
---|
11083 | <method name="unlock">
|
---|
11084 | <desc>
|
---|
11085 | Unlocks the frame buffer.
|
---|
11086 | Gets called by the IDisplay object where this frame buffer is
|
---|
11087 | bound to.
|
---|
11088 | </desc>
|
---|
11089 | </method>
|
---|
11090 |
|
---|
11091 | <method name="notifyUpdate">
|
---|
11092 | <desc>
|
---|
11093 | Informs about an update.
|
---|
11094 | Gets called by the display object where this buffer is
|
---|
11095 | registered.
|
---|
11096 | </desc>
|
---|
11097 | <param name="x" type="unsigned long" dir="in"/>
|
---|
11098 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11099 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11100 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11101 | </method>
|
---|
11102 |
|
---|
11103 | <method name="requestResize">
|
---|
11104 | <desc>
|
---|
11105 | Requests a size and pixel format change.
|
---|
11106 |
|
---|
11107 | There are two modes of working with the video buffer of the virtual
|
---|
11108 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
11109 | implementation allocates a memory buffer for the requested display mode
|
---|
11110 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
11111 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
11112 | by the virtual machine. This buffer represents the video memory of the
|
---|
11113 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
11114 | usually faster because the implementation gets a raw pointer to the
|
---|
11115 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
11116 | of the virtual display, as opposed to the indirect mode where the
|
---|
11117 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
11118 | the implementation every time a display update occurs.
|
---|
11119 |
|
---|
11120 | It is important to note that the direct mode is really fast only when
|
---|
11121 | the implementation uses the given guest VRAM buffer directly, for
|
---|
11122 | example, by blitting it to the window representing the virtual machine's
|
---|
11123 | display, which saves at least one copy operation comparing to the
|
---|
11124 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
11125 | always possible: the format and the color depth of this buffer may be
|
---|
11126 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
11127 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
11128 | the indirect mode (that is always available) should be used as a
|
---|
11129 | fallback: when the guest VRAM contents are copied to the
|
---|
11130 | implementation-provided memory buffer, color and format conversion is
|
---|
11131 | done automatically by the underlying code.
|
---|
11132 |
|
---|
11133 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
11134 | available or not. If @a pixelFormat is <link
|
---|
11135 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
11136 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
11137 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
11138 | the indirect mode (where it provides its own buffer in one of the
|
---|
11139 | supported formats). In all other cases, @a pixelFormat together with
|
---|
11140 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
11141 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
11142 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
11143 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
11144 | attribute must return @c true and <link to="#address"/> must
|
---|
11145 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
11146 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
11147 | chosen.
|
---|
11148 |
|
---|
11149 | The @a width and @a height parameters represent the size of the
|
---|
11150 | requested display mode in both modes. In case of indirect mode, the
|
---|
11151 | provided memory buffer should be big enough to store data of the given
|
---|
11152 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
11153 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
11154 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
11155 | to="#height"/> attributes must return exactly the same values as
|
---|
11156 | passed to this method after the resize is completed (see below).
|
---|
11157 |
|
---|
11158 | The @a finished output parameter determines if the implementation has
|
---|
11159 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
11160 | resize cannot be finished immediately during this call, @a finished
|
---|
11161 | must be set to @c false, and the implementation must call
|
---|
11162 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
11163 | this method as soon as possible. If @a finished is @c false, the
|
---|
11164 | machine will not call any frame buffer methods until
|
---|
11165 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
11166 |
|
---|
11167 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
11168 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
11169 | this frame buffer must return exactly the same values as specified in the
|
---|
11170 | parameters of this method, after the resize is completed. If the
|
---|
11171 | indirect mode is chosen, these attributes must return values describing
|
---|
11172 | the format of the implementation's own memory buffer <link
|
---|
11173 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
11174 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
11175 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
11176 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
11177 |
|
---|
11178 | <note>
|
---|
11179 | This method is called by the IDisplay object under the
|
---|
11180 | <link to="#lock"/> provided by this IFramebuffer
|
---|
11181 | implementation. If this method returns @c false in @a finished, then
|
---|
11182 | this lock is not released until
|
---|
11183 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
11184 | </note>
|
---|
11185 | </desc>
|
---|
11186 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11187 | <desc>
|
---|
11188 | Logical screen number. Must be used in the corresponding call to
|
---|
11189 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
11190 | </desc>
|
---|
11191 | </param>
|
---|
11192 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
11193 | <desc>
|
---|
11194 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
11195 | See also <link to="FramebufferPixelFormat"/>.
|
---|
11196 | </desc>
|
---|
11197 | </param>
|
---|
11198 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
11199 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
11200 | </param>
|
---|
11201 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
11202 | <desc>Color depth, bits per pixel.</desc>
|
---|
11203 | </param>
|
---|
11204 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
11205 | <desc>Size of one scan line, in bytes.</desc>
|
---|
11206 | </param>
|
---|
11207 | <param name="width" type="unsigned long" dir="in">
|
---|
11208 | <desc>Width of the guest display, in pixels.</desc>
|
---|
11209 | </param>
|
---|
11210 | <param name="height" type="unsigned long" dir="in">
|
---|
11211 | <desc>Height of the guest display, in pixels.</desc>
|
---|
11212 | </param>
|
---|
11213 | <param name="finished" type="boolean" dir="return">
|
---|
11214 | <desc>
|
---|
11215 | Can the VM start using the new frame buffer immediately
|
---|
11216 | after this method returns or it should wait for
|
---|
11217 | <link to="IDisplay::resizeCompleted"/>.
|
---|
11218 | </desc>
|
---|
11219 | </param>
|
---|
11220 | </method>
|
---|
11221 |
|
---|
11222 | <method name="videoModeSupported">
|
---|
11223 | <desc>
|
---|
11224 | Returns whether the frame buffer implementation is willing to
|
---|
11225 | support a given video mode. In case it is not able to render
|
---|
11226 | the video mode (or for some reason not willing), it should
|
---|
11227 | return @c false. Usually this method is called when the guest
|
---|
11228 | asks the VMM device whether a given video mode is supported
|
---|
11229 | so the information returned is directly exposed to the guest.
|
---|
11230 | It is important that this method returns very quickly.
|
---|
11231 | </desc>
|
---|
11232 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11233 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11234 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
11235 | <param name="supported" type="boolean" dir="return"/>
|
---|
11236 | </method>
|
---|
11237 |
|
---|
11238 | <method name="getVisibleRegion">
|
---|
11239 | <desc>
|
---|
11240 | Returns the visible region of this frame buffer.
|
---|
11241 |
|
---|
11242 | If the @a rectangles parameter is @c null then the value of the
|
---|
11243 | @a count parameter is ignored and the number of elements necessary to
|
---|
11244 | describe the current visible region is returned in @a countCopied.
|
---|
11245 |
|
---|
11246 | If @a rectangles is not @c null but @a count is less
|
---|
11247 | than the required number of elements to store region data, the method
|
---|
11248 | will report a failure. If @a count is equal or greater than the
|
---|
11249 | required number of elements, then the actual number of elements copied
|
---|
11250 | to the provided array will be returned in @a countCopied.
|
---|
11251 |
|
---|
11252 | <note>
|
---|
11253 | The address of the provided array must be in the process space of
|
---|
11254 | this IFramebuffer object.
|
---|
11255 | </note>
|
---|
11256 | <note>
|
---|
11257 | Method not yet implemented.
|
---|
11258 | </note>
|
---|
11259 | </desc>
|
---|
11260 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
11261 | <desc>Pointer to the @c RTRECT array to receive region data.</desc>
|
---|
11262 | </param>
|
---|
11263 | <param name="count" type="unsigned long" dir="in">
|
---|
11264 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
11265 | </param>
|
---|
11266 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
11267 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
11268 | </param>
|
---|
11269 | </method>
|
---|
11270 |
|
---|
11271 | <method name="setVisibleRegion">
|
---|
11272 | <desc>
|
---|
11273 | Suggests a new visible region to this frame buffer. This region
|
---|
11274 | represents the area of the VM display which is a union of regions of
|
---|
11275 | all top-level windows of the guest operating system running inside the
|
---|
11276 | VM (if the Guest Additions for this system support this
|
---|
11277 | functionality). This information may be used by the frontends to
|
---|
11278 | implement the seamless desktop integration feature.
|
---|
11279 |
|
---|
11280 | <note>
|
---|
11281 | The address of the provided array must be in the process space of
|
---|
11282 | this IFramebuffer object.
|
---|
11283 | </note>
|
---|
11284 | <note>
|
---|
11285 | The IFramebuffer implementation must make a copy of the provided
|
---|
11286 | array of rectangles.
|
---|
11287 | </note>
|
---|
11288 | <note>
|
---|
11289 | Method not yet implemented.
|
---|
11290 | </note>
|
---|
11291 | </desc>
|
---|
11292 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
11293 | <desc>Pointer to the @c RTRECT array.</desc>
|
---|
11294 | </param>
|
---|
11295 | <param name="count" type="unsigned long" dir="in">
|
---|
11296 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
11297 | </param>
|
---|
11298 | </method>
|
---|
11299 |
|
---|
11300 | <method name="processVHWACommand">
|
---|
11301 | <desc>
|
---|
11302 | Posts a Video HW Acceleration Command to the frame buffer for processing.
|
---|
11303 | The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
|
---|
11304 | are posted from quest to the host to be processed by the host hardware.
|
---|
11305 |
|
---|
11306 | <note>
|
---|
11307 | The address of the provided command must be in the process space of
|
---|
11308 | this IFramebuffer object.
|
---|
11309 | </note>
|
---|
11310 | </desc>
|
---|
11311 |
|
---|
11312 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
11313 | <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
|
---|
11314 | </param>
|
---|
11315 | </method>
|
---|
11316 |
|
---|
11317 | </interface>
|
---|
11318 |
|
---|
11319 | <interface
|
---|
11320 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
11321 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
11322 | wsmap="suppress"
|
---|
11323 | >
|
---|
11324 | <desc>
|
---|
11325 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
11326 | for displaying status icons above an IFramebuffer. It is always created
|
---|
11327 | not visible, so that it must be explicitly shown. It only covers a
|
---|
11328 | portion of the IFramebuffer, determined by its width, height and
|
---|
11329 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
11330 | that order) format, and may be written to directly. Do re-read the
|
---|
11331 | width though, after setting it, as it may be adjusted (increased) to
|
---|
11332 | make it more suitable for the front end.
|
---|
11333 | </desc>
|
---|
11334 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
11335 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
11336 | </attribute>
|
---|
11337 |
|
---|
11338 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
11339 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
11340 | </attribute>
|
---|
11341 |
|
---|
11342 | <attribute name="visible" type="boolean" readonly="no">
|
---|
11343 | <desc>
|
---|
11344 | Whether the overlay is currently visible.
|
---|
11345 | </desc>
|
---|
11346 | </attribute>
|
---|
11347 |
|
---|
11348 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
11349 | <desc>
|
---|
11350 | The global alpha value for the overlay. This may or may not be
|
---|
11351 | supported by a given front end.
|
---|
11352 | </desc>
|
---|
11353 | </attribute>
|
---|
11354 |
|
---|
11355 | <method name="move">
|
---|
11356 | <desc>
|
---|
11357 | Changes the overlay's position relative to the IFramebuffer.
|
---|
11358 | </desc>
|
---|
11359 | <param name="x" type="unsigned long" dir="in"/>
|
---|
11360 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11361 | </method>
|
---|
11362 |
|
---|
11363 | </interface>
|
---|
11364 |
|
---|
11365 | <interface
|
---|
11366 | name="IDisplay" extends="$unknown"
|
---|
11367 | uuid="1fa79e39-0cc9-4ab3-9df3-ed3e96b42496"
|
---|
11368 | wsmap="managed"
|
---|
11369 | >
|
---|
11370 | <desc>
|
---|
11371 | The IDisplay interface represents the virtual machine's display.
|
---|
11372 |
|
---|
11373 | The object implementing this interface is contained in each
|
---|
11374 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
11375 | output of the virtual machine.
|
---|
11376 |
|
---|
11377 | The virtual display supports pluggable output targets represented by the
|
---|
11378 | IFramebuffer interface. Examples of the output target are a window on
|
---|
11379 | the host computer or an RDP session's display on a remote computer.
|
---|
11380 | </desc>
|
---|
11381 | <method name="getScreenResolution">
|
---|
11382 | <desc>Queries display width, height and color depth for given screen.</desc>
|
---|
11383 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11384 | <param name="width" type="unsigned long" dir="out"/>
|
---|
11385 | <param name="height" type="unsigned long" dir="out"/>
|
---|
11386 | <param name="bitsPerPixel" type="unsigned long" dir="out"/>
|
---|
11387 | </method>
|
---|
11388 |
|
---|
11389 | <method name="setFramebuffer">
|
---|
11390 | <desc>
|
---|
11391 | Sets the framebuffer for given screen.
|
---|
11392 | </desc>
|
---|
11393 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11394 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
11395 | </method>
|
---|
11396 |
|
---|
11397 | <method name="getFramebuffer">
|
---|
11398 | <desc>
|
---|
11399 | Queries the framebuffer for given screen.
|
---|
11400 | </desc>
|
---|
11401 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11402 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
11403 | <param name="xOrigin" type="long" dir="out"/>
|
---|
11404 | <param name="yOrigin" type="long" dir="out"/>
|
---|
11405 | </method>
|
---|
11406 |
|
---|
11407 | <method name="setVideoModeHint">
|
---|
11408 | <desc>
|
---|
11409 | Asks VirtualBox to request the given video mode from
|
---|
11410 | the guest. This is just a hint and it cannot be guaranteed
|
---|
11411 | that the requested resolution will be used. Guest Additions
|
---|
11412 | are required for the request to be seen by guests. The caller
|
---|
11413 | should issue the request and wait for a resolution change and
|
---|
11414 | after a timeout retry.
|
---|
11415 |
|
---|
11416 | Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
|
---|
11417 | parameters means that the corresponding values should be taken from the
|
---|
11418 | current video mode (i.e. left unchanged).
|
---|
11419 |
|
---|
11420 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
11421 | parameter specifies the number of the guest display to send the hint to:
|
---|
11422 | @c 0 is the primary display, @c 1 is the first secondary and
|
---|
11423 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
11424 | must be @c 0.
|
---|
11425 |
|
---|
11426 | <result name="E_INVALIDARG">
|
---|
11427 | The @a display is not associated with any monitor.
|
---|
11428 | </result>
|
---|
11429 |
|
---|
11430 | </desc>
|
---|
11431 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11432 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11433 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
11434 | <param name="display" type="unsigned long" dir="in"/>
|
---|
11435 | </method>
|
---|
11436 |
|
---|
11437 | <method name="setSeamlessMode">
|
---|
11438 | <desc>
|
---|
11439 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
11440 | integration) mode.
|
---|
11441 | <note>
|
---|
11442 | Calling this method has no effect if <link
|
---|
11443 | to="IGuest::supportsSeamless"/> returns @c false.
|
---|
11444 | </note>
|
---|
11445 | </desc>
|
---|
11446 | <param name="enabled" type="boolean" dir="in"/>
|
---|
11447 | </method>
|
---|
11448 |
|
---|
11449 | <method name="takeScreenShot">
|
---|
11450 | <desc>
|
---|
11451 | Takes a screen shot of the requested size and copies it to the
|
---|
11452 | 32-bpp buffer allocated by the caller and pointed to by @a address.
|
---|
11453 | A pixel consists of 4 bytes in order: B, G, R, 0.
|
---|
11454 |
|
---|
11455 | <note>This API can be used only by the COM/XPCOM C++ API as it
|
---|
11456 | requires pointer support. Use <link to="#takeScreenShotToArray" />
|
---|
11457 | with other language bindings.
|
---|
11458 | </note>
|
---|
11459 |
|
---|
11460 | <result name="E_NOTIMPL">
|
---|
11461 | Feature not implemented.
|
---|
11462 | </result>
|
---|
11463 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11464 | Could not take a screenshot.
|
---|
11465 | </result>
|
---|
11466 |
|
---|
11467 | </desc>
|
---|
11468 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11469 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
11470 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11471 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11472 | </method>
|
---|
11473 |
|
---|
11474 | <method name="takeScreenShotToArray">
|
---|
11475 | <desc>
|
---|
11476 | Takes a guest screen shot of the requested size and returns it as
|
---|
11477 | an array of bytes in uncompressed 32-bit RGBA format.
|
---|
11478 | A pixel consists of 4 bytes in order: R, G, B, 0xFF.
|
---|
11479 |
|
---|
11480 | This API is slow, but could be the only option to get guest screenshot
|
---|
11481 | for scriptable languages not allowed to manipulate with addresses
|
---|
11482 | directly.
|
---|
11483 |
|
---|
11484 | <result name="E_NOTIMPL">
|
---|
11485 | Feature not implemented.
|
---|
11486 | </result>
|
---|
11487 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11488 | Could not take a screenshot.
|
---|
11489 | </result>
|
---|
11490 | </desc>
|
---|
11491 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11492 | <desc>
|
---|
11493 | Monitor to take screenshot from.
|
---|
11494 | </desc>
|
---|
11495 | </param>
|
---|
11496 | <param name="width" type="unsigned long" dir="in">
|
---|
11497 | <desc>
|
---|
11498 | Desired image width.
|
---|
11499 | </desc>
|
---|
11500 | </param>
|
---|
11501 | <param name="height" type="unsigned long" dir="in">
|
---|
11502 | <desc>
|
---|
11503 | Desired image height.
|
---|
11504 | </desc>
|
---|
11505 | </param>
|
---|
11506 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
11507 | <desc>
|
---|
11508 | Array with resulting screen data.
|
---|
11509 | </desc>
|
---|
11510 | </param>
|
---|
11511 | </method>
|
---|
11512 |
|
---|
11513 | <method name="drawToScreen">
|
---|
11514 | <desc>
|
---|
11515 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
11516 | to the given point on the VM display.
|
---|
11517 |
|
---|
11518 | <result name="E_NOTIMPL">
|
---|
11519 | Feature not implemented.
|
---|
11520 | </result>
|
---|
11521 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11522 | Could not draw to screen.
|
---|
11523 | </result>
|
---|
11524 |
|
---|
11525 | </desc>
|
---|
11526 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11527 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
11528 | <param name="x" type="unsigned long" dir="in">
|
---|
11529 | <desc>Relative to the screen top left corner.</desc>
|
---|
11530 | </param>
|
---|
11531 | <param name="y" type="unsigned long" dir="in">
|
---|
11532 | <desc>Relative to the screen top left corner.</desc>
|
---|
11533 | </param>
|
---|
11534 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11535 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11536 | </method>
|
---|
11537 |
|
---|
11538 | <method name="invalidateAndUpdate">
|
---|
11539 | <desc>
|
---|
11540 | Does a full invalidation of the VM display and instructs the VM
|
---|
11541 | to update it.
|
---|
11542 |
|
---|
11543 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11544 | Could not invalidate and update screen.
|
---|
11545 | </result>
|
---|
11546 |
|
---|
11547 | </desc>
|
---|
11548 | </method>
|
---|
11549 |
|
---|
11550 | <method name="resizeCompleted">
|
---|
11551 | <desc>
|
---|
11552 | Signals that a framebuffer has completed the resize operation.
|
---|
11553 |
|
---|
11554 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
11555 | Operation only valid for external frame buffers.
|
---|
11556 | </result>
|
---|
11557 |
|
---|
11558 | </desc>
|
---|
11559 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11560 | </method>
|
---|
11561 |
|
---|
11562 | <method name="completeVHWACommand">
|
---|
11563 | <desc>
|
---|
11564 | Signals that the Video HW Acceleration command has completed.
|
---|
11565 | </desc>
|
---|
11566 |
|
---|
11567 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
11568 | <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
|
---|
11569 | </param>
|
---|
11570 | </method>
|
---|
11571 |
|
---|
11572 | </interface>
|
---|
11573 |
|
---|
11574 | <!--
|
---|
11575 | // INetworkAdapter
|
---|
11576 | /////////////////////////////////////////////////////////////////////////
|
---|
11577 | -->
|
---|
11578 |
|
---|
11579 | <enum
|
---|
11580 | name="NetworkAttachmentType"
|
---|
11581 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
11582 | >
|
---|
11583 | <desc>
|
---|
11584 | Network attachment type.
|
---|
11585 | </desc>
|
---|
11586 |
|
---|
11587 | <const name="Null" value="0">
|
---|
11588 | <desc>Null value, also means "not attached".</desc>
|
---|
11589 | </const>
|
---|
11590 | <const name="NAT" value="1"/>
|
---|
11591 | <const name="Bridged" value="2"/>
|
---|
11592 | <const name="Internal" value="3"/>
|
---|
11593 | <const name="HostOnly" value="4"/>
|
---|
11594 | <const name="VDE" value="5"/>
|
---|
11595 | </enum>
|
---|
11596 |
|
---|
11597 | <enum
|
---|
11598 | name="NetworkAdapterType"
|
---|
11599 | uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
|
---|
11600 | >
|
---|
11601 | <desc>
|
---|
11602 | Network adapter type.
|
---|
11603 | </desc>
|
---|
11604 |
|
---|
11605 | <const name="Null" value="0">
|
---|
11606 | <desc>Null value (never used by the API).</desc>
|
---|
11607 | </const>
|
---|
11608 | <const name="Am79C970A" value="1">
|
---|
11609 | <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
|
---|
11610 | </const>
|
---|
11611 | <const name="Am79C973" value="2">
|
---|
11612 | <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
|
---|
11613 | </const>
|
---|
11614 | <const name="I82540EM" value="3">
|
---|
11615 | <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
|
---|
11616 | </const>
|
---|
11617 | <const name="I82543GC" value="4">
|
---|
11618 | <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
|
---|
11619 | </const>
|
---|
11620 | <const name="I82545EM" value="5">
|
---|
11621 | <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
|
---|
11622 | </const>
|
---|
11623 | <const name="Virtio" value="6">
|
---|
11624 | <desc>Virtio network device.</desc>
|
---|
11625 | </const>
|
---|
11626 | </enum>
|
---|
11627 |
|
---|
11628 | <interface
|
---|
11629 | name="INetworkAdapter" extends="$unknown"
|
---|
11630 | uuid="5bdb9df8-a5e1-4322-a139-b7a4a734c790"
|
---|
11631 | wsmap="managed"
|
---|
11632 | >
|
---|
11633 | <desc>
|
---|
11634 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
11635 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
11636 | instance of this attached to each of them. Call
|
---|
11637 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
11638 | is attached to a given slot in a given machine.
|
---|
11639 |
|
---|
11640 | Each network adapter can be in one of five attachment modes, which are
|
---|
11641 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
11642 | see the <link to="#attachmentType" /> attribute.
|
---|
11643 | </desc>
|
---|
11644 |
|
---|
11645 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
11646 | <desc>
|
---|
11647 | Type of the virtual network adapter. Depending on this value,
|
---|
11648 | VirtualBox will provide a different virtual network hardware
|
---|
11649 | to the guest.
|
---|
11650 | </desc>
|
---|
11651 | </attribute>
|
---|
11652 |
|
---|
11653 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11654 | <desc>
|
---|
11655 | Slot number this adapter is plugged into. Corresponds to
|
---|
11656 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
11657 | to obtain this instance.
|
---|
11658 | </desc>
|
---|
11659 | </attribute>
|
---|
11660 |
|
---|
11661 | <attribute name="enabled" type="boolean">
|
---|
11662 | <desc>
|
---|
11663 | Flag whether the network adapter is present in the
|
---|
11664 | guest system. If disabled, the virtual guest hardware will
|
---|
11665 | not contain this network adapter. Can only be changed when
|
---|
11666 | the VM is not running.
|
---|
11667 | </desc>
|
---|
11668 | </attribute>
|
---|
11669 |
|
---|
11670 | <attribute name="MACAddress" type="wstring">
|
---|
11671 | <desc>
|
---|
11672 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
11673 | it to @c null or an empty string, VirtualBox will generate a unique MAC address.
|
---|
11674 | </desc>
|
---|
11675 | </attribute>
|
---|
11676 |
|
---|
11677 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
11678 |
|
---|
11679 | <attribute name="hostInterface" type="wstring">
|
---|
11680 | <desc>
|
---|
11681 | Name of the host network interface the VM is attached to.
|
---|
11682 | </desc>
|
---|
11683 | </attribute>
|
---|
11684 |
|
---|
11685 | <attribute name="internalNetwork" type="wstring">
|
---|
11686 | <desc>
|
---|
11687 | Name of the internal network the VM is attached to.
|
---|
11688 | </desc>
|
---|
11689 | </attribute>
|
---|
11690 |
|
---|
11691 | <attribute name="NATNetwork" type="wstring">
|
---|
11692 | <desc>
|
---|
11693 | Name of the NAT network the VM is attached to.
|
---|
11694 | </desc>
|
---|
11695 | </attribute>
|
---|
11696 |
|
---|
11697 | <attribute name="VDENetwork" type="wstring">
|
---|
11698 | <desc>
|
---|
11699 | Name of the VDE switch the VM is attached to.
|
---|
11700 | </desc>
|
---|
11701 | </attribute>
|
---|
11702 |
|
---|
11703 | <attribute name="cableConnected" type="boolean">
|
---|
11704 | <desc>
|
---|
11705 | Flag whether the adapter reports the cable as connected or not.
|
---|
11706 | It can be used to report offline situations to a VM.
|
---|
11707 | </desc>
|
---|
11708 | </attribute>
|
---|
11709 |
|
---|
11710 | <attribute name="lineSpeed" type="unsigned long">
|
---|
11711 | <desc>
|
---|
11712 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
11713 | </desc>
|
---|
11714 | </attribute>
|
---|
11715 |
|
---|
11716 | <attribute name="traceEnabled" type="boolean">
|
---|
11717 | <desc>
|
---|
11718 | Flag whether network traffic from/to the network card should be traced.
|
---|
11719 | Can only be toggled when the VM is turned off.
|
---|
11720 | </desc>
|
---|
11721 | </attribute>
|
---|
11722 |
|
---|
11723 | <attribute name="traceFile" type="wstring">
|
---|
11724 | <desc>
|
---|
11725 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
11726 | will be used.
|
---|
11727 | </desc>
|
---|
11728 | </attribute>
|
---|
11729 |
|
---|
11730 | <attribute name="natDriver" type="INATEngine" readonly="yes">
|
---|
11731 | <desc>
|
---|
11732 | Points to the NAT engine which handles the network address translation
|
---|
11733 | for this interface. This is active only when the interface actually uses
|
---|
11734 | NAT (see <link to="#attachToNAT" />).
|
---|
11735 | </desc>
|
---|
11736 | </attribute>
|
---|
11737 |
|
---|
11738 | <attribute name="bootPriority" type="unsigned long">
|
---|
11739 | <desc>
|
---|
11740 | Network boot priority of the adapter. Priority 1 is highest. If not set,
|
---|
11741 | the priority is considered to be at the lowest possible setting.
|
---|
11742 | </desc>
|
---|
11743 | </attribute>
|
---|
11744 |
|
---|
11745 | <method name="attachToNAT">
|
---|
11746 | <desc>
|
---|
11747 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
11748 | </desc>
|
---|
11749 | </method>
|
---|
11750 |
|
---|
11751 | <method name="attachToBridgedInterface">
|
---|
11752 | <desc>
|
---|
11753 | Attach the network adapter to a bridged host interface.
|
---|
11754 | </desc>
|
---|
11755 | </method>
|
---|
11756 |
|
---|
11757 | <method name="attachToInternalNetwork">
|
---|
11758 | <desc>
|
---|
11759 | Attach the network adapter to an internal network.
|
---|
11760 | </desc>
|
---|
11761 | </method>
|
---|
11762 |
|
---|
11763 | <method name="attachToHostOnlyInterface">
|
---|
11764 | <desc>
|
---|
11765 | Attach the network adapter to the host-only network.
|
---|
11766 | </desc>
|
---|
11767 | </method>
|
---|
11768 |
|
---|
11769 | <method name="attachToVDE">
|
---|
11770 | <desc>
|
---|
11771 | Attach the network adapter to a VDE network.
|
---|
11772 | </desc>
|
---|
11773 | </method>
|
---|
11774 |
|
---|
11775 | <method name="detach">
|
---|
11776 | <desc>
|
---|
11777 | Detach the network adapter
|
---|
11778 | </desc>
|
---|
11779 | </method>
|
---|
11780 | </interface>
|
---|
11781 |
|
---|
11782 |
|
---|
11783 | <!--
|
---|
11784 | // ISerialPort
|
---|
11785 | /////////////////////////////////////////////////////////////////////////
|
---|
11786 | -->
|
---|
11787 |
|
---|
11788 | <enum
|
---|
11789 | name="PortMode"
|
---|
11790 | uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
|
---|
11791 | >
|
---|
11792 | <desc>
|
---|
11793 | The PortMode enumeration represents possible communication modes for
|
---|
11794 | the virtual serial port device.
|
---|
11795 | </desc>
|
---|
11796 |
|
---|
11797 | <const name="Disconnected" value="0">
|
---|
11798 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
11799 | </const>
|
---|
11800 | <const name="HostPipe" value="1">
|
---|
11801 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
11802 | </const>
|
---|
11803 | <const name="HostDevice" value="2">
|
---|
11804 | <desc>Virtual device is attached to a host device.</desc>
|
---|
11805 | </const>
|
---|
11806 | <const name="RawFile" value="3">
|
---|
11807 | <desc>Virtual device is attached to a raw file.</desc>
|
---|
11808 | </const>
|
---|
11809 | </enum>
|
---|
11810 |
|
---|
11811 | <interface
|
---|
11812 | name="ISerialPort" extends="$unknown"
|
---|
11813 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
11814 | wsmap="managed"
|
---|
11815 | >
|
---|
11816 |
|
---|
11817 | <desc>
|
---|
11818 | The ISerialPort interface represents the virtual serial port device.
|
---|
11819 |
|
---|
11820 | The virtual serial port device acts like an ordinary serial port
|
---|
11821 | inside the virtual machine. This device communicates to the real
|
---|
11822 | serial port hardware in one of two modes: host pipe or host device.
|
---|
11823 |
|
---|
11824 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
11825 | the host computer that represents a serial port. The #server attribute
|
---|
11826 | determines if this pipe is created by the virtual machine process at
|
---|
11827 | machine startup or it must already exist before starting machine
|
---|
11828 | execution.
|
---|
11829 |
|
---|
11830 | In host device mode, the #path attribute specifies the name of the
|
---|
11831 | serial port device on the host computer.
|
---|
11832 |
|
---|
11833 | There is also a third communication mode: the disconnected mode. In this
|
---|
11834 | mode, the guest OS running inside the virtual machine will be able to
|
---|
11835 | detect the serial port, but all port write operations will be discarded
|
---|
11836 | and all port read operations will return no data.
|
---|
11837 |
|
---|
11838 | <see>IMachine::getSerialPort</see>
|
---|
11839 | </desc>
|
---|
11840 |
|
---|
11841 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11842 | <desc>
|
---|
11843 | Slot number this serial port is plugged into. Corresponds to
|
---|
11844 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
11845 | to obtain this instance.
|
---|
11846 | </desc>
|
---|
11847 | </attribute>
|
---|
11848 |
|
---|
11849 | <attribute name="enabled" type="boolean">
|
---|
11850 | <desc>
|
---|
11851 | Flag whether the serial port is enabled. If disabled,
|
---|
11852 | the serial port will not be reported to the guest OS.
|
---|
11853 | </desc>
|
---|
11854 | </attribute>
|
---|
11855 |
|
---|
11856 | <attribute name="IOBase" type="unsigned long">
|
---|
11857 | <desc>Base I/O address of the serial port.</desc>
|
---|
11858 | </attribute>
|
---|
11859 |
|
---|
11860 | <attribute name="IRQ" type="unsigned long">
|
---|
11861 | <desc>IRQ number of the serial port.</desc>
|
---|
11862 | </attribute>
|
---|
11863 |
|
---|
11864 | <attribute name="hostMode" type="PortMode">
|
---|
11865 | <desc>
|
---|
11866 | How is this port connected to the host.
|
---|
11867 | <note>
|
---|
11868 | Changing this attribute may fail if the conditions for
|
---|
11869 | <link to="#path"/> are not met.
|
---|
11870 | </note>
|
---|
11871 | </desc>
|
---|
11872 | </attribute>
|
---|
11873 |
|
---|
11874 | <attribute name="server" type="boolean">
|
---|
11875 | <desc>
|
---|
11876 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
11877 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
11878 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
11879 | </desc>
|
---|
11880 | </attribute>
|
---|
11881 |
|
---|
11882 | <attribute name="path" type="wstring">
|
---|
11883 | <desc>
|
---|
11884 | Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
|
---|
11885 | PortMode_HostPipe, or the host serial device name when
|
---|
11886 | <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
|
---|
11887 | cases, setting a @c null or empty string as the attribute's value
|
---|
11888 | is an error. Otherwise, the value of this property is ignored.
|
---|
11889 | </desc>
|
---|
11890 | </attribute>
|
---|
11891 |
|
---|
11892 | </interface>
|
---|
11893 |
|
---|
11894 | <!--
|
---|
11895 | // IParallelPort
|
---|
11896 | /////////////////////////////////////////////////////////////////////////
|
---|
11897 | -->
|
---|
11898 |
|
---|
11899 | <interface
|
---|
11900 | name="IParallelPort" extends="$unknown"
|
---|
11901 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11902 | wsmap="managed"
|
---|
11903 | >
|
---|
11904 |
|
---|
11905 | <desc>
|
---|
11906 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11907 |
|
---|
11908 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11909 | inside the virtual machine. This device communicates to the real
|
---|
11910 | parallel port hardware using the name of the parallel device on the host
|
---|
11911 | computer specified in the #path attribute.
|
---|
11912 |
|
---|
11913 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11914 | IRQ number that will be reported to the guest operating system and used
|
---|
11915 | to operate the given parallel port from within the virtual machine.
|
---|
11916 |
|
---|
11917 | <see>IMachine::getParallelPort</see>
|
---|
11918 | </desc>
|
---|
11919 |
|
---|
11920 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11921 | <desc>
|
---|
11922 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11923 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11924 | to obtain this instance.
|
---|
11925 | </desc>
|
---|
11926 | </attribute>
|
---|
11927 |
|
---|
11928 | <attribute name="enabled" type="boolean">
|
---|
11929 | <desc>
|
---|
11930 | Flag whether the parallel port is enabled. If disabled,
|
---|
11931 | the parallel port will not be reported to the guest OS.
|
---|
11932 | </desc>
|
---|
11933 | </attribute>
|
---|
11934 |
|
---|
11935 | <attribute name="IOBase" type="unsigned long">
|
---|
11936 | <desc>Base I/O address of the parallel port.</desc>
|
---|
11937 | </attribute>
|
---|
11938 |
|
---|
11939 | <attribute name="IRQ" type="unsigned long">
|
---|
11940 | <desc>IRQ number of the parallel port.</desc>
|
---|
11941 | </attribute>
|
---|
11942 |
|
---|
11943 | <attribute name="path" type="wstring">
|
---|
11944 | <desc>
|
---|
11945 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
11946 | @c null or an empty string as this attribute's value will result into
|
---|
11947 | an error.
|
---|
11948 | </desc>
|
---|
11949 | </attribute>
|
---|
11950 |
|
---|
11951 | </interface>
|
---|
11952 |
|
---|
11953 |
|
---|
11954 | <!--
|
---|
11955 | // IMachineDebugger
|
---|
11956 | /////////////////////////////////////////////////////////////////////////
|
---|
11957 | -->
|
---|
11958 |
|
---|
11959 | <interface
|
---|
11960 | name="IMachineDebugger" extends="$unknown"
|
---|
11961 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
11962 | wsmap="suppress"
|
---|
11963 | >
|
---|
11964 | <method name="resetStats">
|
---|
11965 | <desc>
|
---|
11966 | Reset VM statistics.
|
---|
11967 | </desc>
|
---|
11968 | <param name="pattern" type="wstring" dir="in">
|
---|
11969 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11970 | </param>
|
---|
11971 | </method>
|
---|
11972 |
|
---|
11973 | <method name="dumpStats">
|
---|
11974 | <desc>
|
---|
11975 | Dumps VM statistics.
|
---|
11976 | </desc>
|
---|
11977 | <param name="pattern" type="wstring" dir="in">
|
---|
11978 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11979 | </param>
|
---|
11980 | </method>
|
---|
11981 |
|
---|
11982 | <method name="getStats">
|
---|
11983 | <desc>
|
---|
11984 | Get the VM statistics in a XMLish format.
|
---|
11985 | </desc>
|
---|
11986 | <param name="pattern" type="wstring" dir="in">
|
---|
11987 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11988 | </param>
|
---|
11989 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
11990 | <desc>Whether to include the descriptions.</desc>
|
---|
11991 | </param>
|
---|
11992 | <param name="stats" type="wstring" dir="out">
|
---|
11993 | <desc>The XML document containing the statistics.</desc>
|
---|
11994 | </param>
|
---|
11995 | </method>
|
---|
11996 |
|
---|
11997 | <method name="injectNMI">
|
---|
11998 | <desc>
|
---|
11999 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
12000 | </desc>
|
---|
12001 | </method>
|
---|
12002 |
|
---|
12003 | <attribute name="singlestep" type="boolean">
|
---|
12004 | <desc>Switch for enabling singlestepping.</desc>
|
---|
12005 | </attribute>
|
---|
12006 |
|
---|
12007 | <attribute name="recompileUser" type="boolean">
|
---|
12008 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
12009 | </attribute>
|
---|
12010 |
|
---|
12011 | <attribute name="recompileSupervisor" type="boolean">
|
---|
12012 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
12013 | </attribute>
|
---|
12014 |
|
---|
12015 | <attribute name="PATMEnabled" type="boolean">
|
---|
12016 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
12017 | </attribute>
|
---|
12018 |
|
---|
12019 | <attribute name="CSAMEnabled" type="boolean">
|
---|
12020 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
12021 | </attribute>
|
---|
12022 |
|
---|
12023 | <attribute name="logEnabled" type="boolean">
|
---|
12024 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
12025 | </attribute>
|
---|
12026 |
|
---|
12027 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
12028 | <desc>
|
---|
12029 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
12030 | virtualization extensions.
|
---|
12031 | </desc>
|
---|
12032 | </attribute>
|
---|
12033 |
|
---|
12034 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
12035 | <desc>
|
---|
12036 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
12037 | CPU hardware virtualization extension.
|
---|
12038 | </desc>
|
---|
12039 | </attribute>
|
---|
12040 |
|
---|
12041 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
12042 | <desc>
|
---|
12043 | Flag indicating whether the VM is currently making use of the VPID
|
---|
12044 | VT-x extension.
|
---|
12045 | </desc>
|
---|
12046 | </attribute>
|
---|
12047 |
|
---|
12048 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
12049 | <desc>
|
---|
12050 | Flag indicating whether the VM is currently making use of the Physical
|
---|
12051 | Address Extension CPU feature.
|
---|
12052 | </desc>
|
---|
12053 | </attribute>
|
---|
12054 |
|
---|
12055 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
12056 | <desc>
|
---|
12057 | The rate at which the virtual time runs expressed as a percentage.
|
---|
12058 | The accepted range is 2% to 20000%.
|
---|
12059 | </desc>
|
---|
12060 | </attribute>
|
---|
12061 |
|
---|
12062 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
12063 |
|
---|
12064 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
12065 | <desc>
|
---|
12066 | Gets the VM handle. This is only for internal use while
|
---|
12067 | we carve the details of this interface.
|
---|
12068 | </desc>
|
---|
12069 | </attribute>
|
---|
12070 |
|
---|
12071 | </interface>
|
---|
12072 |
|
---|
12073 | <!--
|
---|
12074 | // IUSBController
|
---|
12075 | /////////////////////////////////////////////////////////////////////////
|
---|
12076 | -->
|
---|
12077 |
|
---|
12078 | <interface
|
---|
12079 | name="IUSBController" extends="$unknown"
|
---|
12080 | uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
|
---|
12081 | wsmap="managed"
|
---|
12082 | >
|
---|
12083 | <attribute name="enabled" type="boolean">
|
---|
12084 | <desc>
|
---|
12085 | Flag whether the USB controller is present in the
|
---|
12086 | guest system. If disabled, the virtual guest hardware will
|
---|
12087 | not contain any USB controller. Can only be changed when
|
---|
12088 | the VM is powered off.
|
---|
12089 | </desc>
|
---|
12090 | </attribute>
|
---|
12091 |
|
---|
12092 | <attribute name="enabledEhci" type="boolean">
|
---|
12093 | <desc>
|
---|
12094 | Flag whether the USB EHCI controller is present in the
|
---|
12095 | guest system. If disabled, the virtual guest hardware will
|
---|
12096 | not contain a USB EHCI controller. Can only be changed when
|
---|
12097 | the VM is powered off.
|
---|
12098 | </desc>
|
---|
12099 | </attribute>
|
---|
12100 |
|
---|
12101 | <attribute name="proxyAvailable" type="boolean" readonly="yes">
|
---|
12102 | <desc>
|
---|
12103 | Flag whether there is an USB proxy available.
|
---|
12104 | </desc>
|
---|
12105 | </attribute>
|
---|
12106 |
|
---|
12107 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
12108 | <desc>
|
---|
12109 | USB standard version which the controller implements.
|
---|
12110 | This is a BCD which means that the major version is in the
|
---|
12111 | high byte and minor version is in the low byte.
|
---|
12112 | </desc>
|
---|
12113 | </attribute>
|
---|
12114 |
|
---|
12115 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
12116 | <desc>
|
---|
12117 | List of USB device filters associated with the machine.
|
---|
12118 |
|
---|
12119 | If the machine is currently running, these filters are activated
|
---|
12120 | every time a new (supported) USB device is attached to the host
|
---|
12121 | computer that was not ignored by global filters
|
---|
12122 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
12123 |
|
---|
12124 | These filters are also activated when the machine is powered up.
|
---|
12125 | They are run against a list of all currently available USB
|
---|
12126 | devices (in states
|
---|
12127 | <link to="USBDeviceState_Available"/>,
|
---|
12128 | <link to="USBDeviceState_Busy"/>,
|
---|
12129 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
12130 | ignored by global filters.
|
---|
12131 |
|
---|
12132 | If at least one filter matches the USB device in question, this
|
---|
12133 | device is automatically captured (attached to) the virtual USB
|
---|
12134 | controller of this machine.
|
---|
12135 |
|
---|
12136 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
12137 | </desc>
|
---|
12138 | </attribute>
|
---|
12139 |
|
---|
12140 | <method name="createDeviceFilter">
|
---|
12141 | <desc>
|
---|
12142 | Creates a new USB device filter. All attributes except
|
---|
12143 | the filter name are set to empty (any match),
|
---|
12144 | <i>active</i> is @c false (the filter is not active).
|
---|
12145 |
|
---|
12146 | The created filter can then be added to the list of filters using
|
---|
12147 | <link to="#insertDeviceFilter"/>.
|
---|
12148 |
|
---|
12149 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12150 | The virtual machine is not mutable.
|
---|
12151 | </result>
|
---|
12152 |
|
---|
12153 | <see>#deviceFilters</see>
|
---|
12154 | </desc>
|
---|
12155 | <param name="name" type="wstring" dir="in">
|
---|
12156 | <desc>
|
---|
12157 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
12158 | for more info.
|
---|
12159 | </desc>
|
---|
12160 | </param>
|
---|
12161 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
12162 | <desc>Created filter object.</desc>
|
---|
12163 | </param>
|
---|
12164 | </method>
|
---|
12165 |
|
---|
12166 | <method name="insertDeviceFilter">
|
---|
12167 | <desc>
|
---|
12168 | Inserts the given USB device to the specified position
|
---|
12169 | in the list of filters.
|
---|
12170 |
|
---|
12171 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
12172 | position is equal to or greater than the number of elements in
|
---|
12173 | the list, the filter is added to the end of the collection.
|
---|
12174 |
|
---|
12175 | <note>
|
---|
12176 | Duplicates are not allowed, so an attempt to insert a
|
---|
12177 | filter that is already in the collection, will return an
|
---|
12178 | error.
|
---|
12179 | </note>
|
---|
12180 |
|
---|
12181 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12182 | Virtual machine is not mutable.
|
---|
12183 | </result>
|
---|
12184 | <result name="E_INVALIDARG">
|
---|
12185 | USB device filter not created within this VirtualBox instance.
|
---|
12186 | </result>
|
---|
12187 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12188 | USB device filter already in list.
|
---|
12189 | </result>
|
---|
12190 |
|
---|
12191 | <see>#deviceFilters</see>
|
---|
12192 | </desc>
|
---|
12193 | <param name="position" type="unsigned long" dir="in">
|
---|
12194 | <desc>Position to insert the filter to.</desc>
|
---|
12195 | </param>
|
---|
12196 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
12197 | <desc>USB device filter to insert.</desc>
|
---|
12198 | </param>
|
---|
12199 | </method>
|
---|
12200 |
|
---|
12201 | <method name="removeDeviceFilter">
|
---|
12202 | <desc>
|
---|
12203 | Removes a USB device filter from the specified position in the
|
---|
12204 | list of filters.
|
---|
12205 |
|
---|
12206 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
12207 | position equal to or greater than the number of elements in
|
---|
12208 | the list will produce an error.
|
---|
12209 |
|
---|
12210 | <see>#deviceFilters</see>
|
---|
12211 |
|
---|
12212 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12213 | Virtual machine is not mutable.
|
---|
12214 | </result>
|
---|
12215 | <result name="E_INVALIDARG">
|
---|
12216 | USB device filter list empty or invalid @a position.
|
---|
12217 | </result>
|
---|
12218 |
|
---|
12219 | </desc>
|
---|
12220 | <param name="position" type="unsigned long" dir="in">
|
---|
12221 | <desc>Position to remove the filter from.</desc>
|
---|
12222 | </param>
|
---|
12223 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
12224 | <desc>Removed USB device filter.</desc>
|
---|
12225 | </param>
|
---|
12226 | </method>
|
---|
12227 |
|
---|
12228 | </interface>
|
---|
12229 |
|
---|
12230 |
|
---|
12231 | <!--
|
---|
12232 | // IUSBDevice
|
---|
12233 | /////////////////////////////////////////////////////////////////////////
|
---|
12234 | -->
|
---|
12235 |
|
---|
12236 | <interface
|
---|
12237 | name="IUSBDevice" extends="$unknown"
|
---|
12238 | uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
|
---|
12239 | wsmap="managed"
|
---|
12240 | >
|
---|
12241 | <desc>
|
---|
12242 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
12243 | virtual machine.
|
---|
12244 |
|
---|
12245 | A collection of objects implementing this interface is stored in the
|
---|
12246 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
12247 | attached to a running virtual machine's USB controller.
|
---|
12248 | </desc>
|
---|
12249 |
|
---|
12250 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
12251 | <desc>
|
---|
12252 | Unique USB device ID. This ID is built from #vendorId,
|
---|
12253 | #productId, #revision and #serialNumber.
|
---|
12254 | </desc>
|
---|
12255 | </attribute>
|
---|
12256 |
|
---|
12257 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
12258 | <desc>Vendor ID.</desc>
|
---|
12259 | </attribute>
|
---|
12260 |
|
---|
12261 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
12262 | <desc>Product ID.</desc>
|
---|
12263 | </attribute>
|
---|
12264 |
|
---|
12265 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
12266 | <desc>
|
---|
12267 | Product revision number. This is a packed BCD represented as
|
---|
12268 | unsigned short. The high byte is the integer part and the low
|
---|
12269 | byte is the decimal.
|
---|
12270 | </desc>
|
---|
12271 | </attribute>
|
---|
12272 |
|
---|
12273 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
12274 | <desc>Manufacturer string.</desc>
|
---|
12275 | </attribute>
|
---|
12276 |
|
---|
12277 | <attribute name="product" type="wstring" readonly="yes">
|
---|
12278 | <desc>Product string.</desc>
|
---|
12279 | </attribute>
|
---|
12280 |
|
---|
12281 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
12282 | <desc>Serial number string.</desc>
|
---|
12283 | </attribute>
|
---|
12284 |
|
---|
12285 | <attribute name="address" type="wstring" readonly="yes">
|
---|
12286 | <desc>Host specific address of the device.</desc>
|
---|
12287 | </attribute>
|
---|
12288 |
|
---|
12289 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
12290 | <desc>
|
---|
12291 | Host USB port number the device is physically
|
---|
12292 | connected to.
|
---|
12293 | </desc>
|
---|
12294 | </attribute>
|
---|
12295 |
|
---|
12296 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
12297 | <desc>
|
---|
12298 | The major USB version of the device - 1 or 2.
|
---|
12299 | </desc>
|
---|
12300 | </attribute>
|
---|
12301 |
|
---|
12302 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
12303 | <desc>
|
---|
12304 | The major USB version of the host USB port the device is
|
---|
12305 | physically connected to - 1 or 2. For devices not connected to
|
---|
12306 | anything this will have the same value as the version attribute.
|
---|
12307 | </desc>
|
---|
12308 | </attribute>
|
---|
12309 |
|
---|
12310 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
12311 | <desc>
|
---|
12312 | Whether the device is physically connected to a remote VRDP
|
---|
12313 | client or to a local host machine.
|
---|
12314 | </desc>
|
---|
12315 | </attribute>
|
---|
12316 |
|
---|
12317 | </interface>
|
---|
12318 |
|
---|
12319 |
|
---|
12320 | <!--
|
---|
12321 | // IUSBDeviceFilter
|
---|
12322 | /////////////////////////////////////////////////////////////////////////
|
---|
12323 | -->
|
---|
12324 |
|
---|
12325 | <interface
|
---|
12326 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
12327 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
12328 | wsmap="managed"
|
---|
12329 | >
|
---|
12330 | <desc>
|
---|
12331 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
12332 | to perform actions on a group of USB devices.
|
---|
12333 |
|
---|
12334 | This type of filters is used by running virtual machines to
|
---|
12335 | automatically capture selected USB devices once they are physically
|
---|
12336 | attached to the host computer.
|
---|
12337 |
|
---|
12338 | A USB device is matched to the given device filter if and only if all
|
---|
12339 | attributes of the device match the corresponding attributes of the
|
---|
12340 | filter (that is, attributes are joined together using the logical AND
|
---|
12341 | operation). On the other hand, all together, filters in the list of
|
---|
12342 | filters carry the semantics of the logical OR operation. So if it is
|
---|
12343 | desirable to create a match like "this vendor id OR this product id",
|
---|
12344 | one needs to create two filters and specify "any match" (see below)
|
---|
12345 | for unused attributes.
|
---|
12346 |
|
---|
12347 | All filter attributes used for matching are strings. Each string
|
---|
12348 | is an expression representing a set of values of the corresponding
|
---|
12349 | device attribute, that will match the given filter. Currently, the
|
---|
12350 | following filtering expressions are supported:
|
---|
12351 |
|
---|
12352 | <ul>
|
---|
12353 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
12354 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
12355 | The format of the string is:
|
---|
12356 |
|
---|
12357 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
12358 |
|
---|
12359 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
12360 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
12361 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
12362 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
12363 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
12364 | possible integer is assumed.
|
---|
12365 | </li>
|
---|
12366 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
12367 | boolean device attributes. The format of the string is:
|
---|
12368 |
|
---|
12369 | <tt>true|false|yes|no|0|1</tt>
|
---|
12370 |
|
---|
12371 | </li>
|
---|
12372 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
12373 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
12374 | represents the exact match. String device attributes are compared to
|
---|
12375 | this string including case of symbols. Integer attributes are first
|
---|
12376 | converted to a string (see individual filter attributes) and then
|
---|
12377 | compared ignoring case.
|
---|
12378 |
|
---|
12379 | </li>
|
---|
12380 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
12381 | will match the given filter. An empty or @c null string is
|
---|
12382 | used to construct this type of filtering expressions.
|
---|
12383 |
|
---|
12384 | </li>
|
---|
12385 | </ul>
|
---|
12386 |
|
---|
12387 | <note>
|
---|
12388 | On the Windows host platform, interval filters are not currently
|
---|
12389 | available. Also all string filter attributes
|
---|
12390 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
12391 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
12392 | <i>any match</i> no matter what string expression is specified.
|
---|
12393 | </note>
|
---|
12394 |
|
---|
12395 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
12396 | </desc>
|
---|
12397 |
|
---|
12398 | <attribute name="name" type="wstring">
|
---|
12399 | <desc>
|
---|
12400 | Visible name for this filter.
|
---|
12401 | This name is used to visually distinguish one filter from another,
|
---|
12402 | so it can neither be @c null nor an empty string.
|
---|
12403 | </desc>
|
---|
12404 | </attribute>
|
---|
12405 |
|
---|
12406 | <attribute name="active" type="boolean">
|
---|
12407 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
12408 | </attribute>
|
---|
12409 |
|
---|
12410 | <attribute name="vendorId" type="wstring">
|
---|
12411 | <desc>
|
---|
12412 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
12413 | The string representation for the <i>exact matching</i>
|
---|
12414 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12415 | (including leading zeroes).
|
---|
12416 | </desc>
|
---|
12417 | </attribute>
|
---|
12418 |
|
---|
12419 | <attribute name="productId" type="wstring">
|
---|
12420 | <desc>
|
---|
12421 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
12422 | The string representation for the <i>exact matching</i>
|
---|
12423 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12424 | (including leading zeroes).
|
---|
12425 | </desc>
|
---|
12426 | </attribute>
|
---|
12427 |
|
---|
12428 | <attribute name="revision" type="wstring">
|
---|
12429 | <desc>
|
---|
12430 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
12431 | filter. The string representation for the <i>exact matching</i>
|
---|
12432 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
12433 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
12434 | decimal digit of its fractional part (including leading and
|
---|
12435 | trailing zeros).
|
---|
12436 | Note that for interval filters, it's best to use the hexadecimal
|
---|
12437 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
12438 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
12439 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
12440 | </desc>
|
---|
12441 | </attribute>
|
---|
12442 |
|
---|
12443 | <attribute name="manufacturer" type="wstring">
|
---|
12444 | <desc>
|
---|
12445 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
12446 | </desc>
|
---|
12447 | </attribute>
|
---|
12448 |
|
---|
12449 | <attribute name="product" type="wstring">
|
---|
12450 | <desc>
|
---|
12451 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
12452 | </desc>
|
---|
12453 | </attribute>
|
---|
12454 |
|
---|
12455 | <attribute name="serialNumber" type="wstring">
|
---|
12456 | <desc>
|
---|
12457 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
12458 | </desc>
|
---|
12459 | </attribute>
|
---|
12460 |
|
---|
12461 | <attribute name="port" type="wstring">
|
---|
12462 | <desc>
|
---|
12463 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
12464 | </desc>
|
---|
12465 | </attribute>
|
---|
12466 |
|
---|
12467 | <attribute name="remote" type="wstring">
|
---|
12468 | <desc>
|
---|
12469 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
12470 | <note>
|
---|
12471 | This filter makes sense only for machine USB filters,
|
---|
12472 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
12473 | </note>
|
---|
12474 | </desc>
|
---|
12475 | </attribute>
|
---|
12476 |
|
---|
12477 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
12478 | <desc>
|
---|
12479 | This is an advanced option for hiding one or more USB interfaces
|
---|
12480 | from the guest. The value is a bit mask where the bits that are set
|
---|
12481 | means the corresponding USB interface should be hidden, masked off
|
---|
12482 | if you like.
|
---|
12483 | This feature only works on Linux hosts.
|
---|
12484 | </desc>
|
---|
12485 | </attribute>
|
---|
12486 |
|
---|
12487 | </interface>
|
---|
12488 |
|
---|
12489 |
|
---|
12490 | <!--
|
---|
12491 | // IHostUSBDevice
|
---|
12492 | /////////////////////////////////////////////////////////////////////////
|
---|
12493 | -->
|
---|
12494 |
|
---|
12495 | <enum
|
---|
12496 | name="USBDeviceState"
|
---|
12497 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
12498 | >
|
---|
12499 | <desc>
|
---|
12500 | USB device state. This enumeration represents all possible states
|
---|
12501 | of the USB device physically attached to the host computer regarding
|
---|
12502 | its state on the host computer and availability to guest computers
|
---|
12503 | (all currently running virtual machines).
|
---|
12504 |
|
---|
12505 | Once a supported USB device is attached to the host, global USB
|
---|
12506 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
12507 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
12508 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
12509 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
12510 | activated that can put it to USBDeviceState_Captured state.
|
---|
12511 |
|
---|
12512 | If the device was ignored by global filters, or didn't match
|
---|
12513 | any filters at all (including guest ones), it is handled by the host
|
---|
12514 | in a normal way. In this case, the device state is determined by
|
---|
12515 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
12516 | or USBDeviceState_Available, depending on the current device usage.
|
---|
12517 |
|
---|
12518 | Besides auto-capturing based on filters, the device can be manually
|
---|
12519 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
12520 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
12521 | USBDeviceState_Held.
|
---|
12522 |
|
---|
12523 | <note>
|
---|
12524 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
12525 | states USBDeviceState_Busy and USBDeviceState_vailable are applicable
|
---|
12526 | only to the Linux version of the product. This also means that (<link
|
---|
12527 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
12528 | device state is USBDeviceState_Held.
|
---|
12529 | </note>
|
---|
12530 |
|
---|
12531 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
12532 | </desc>
|
---|
12533 |
|
---|
12534 | <const name="NotSupported" value="0">
|
---|
12535 | <desc>
|
---|
12536 | Not supported by the VirtualBox server, not available to guests.
|
---|
12537 | </desc>
|
---|
12538 | </const>
|
---|
12539 | <const name="Unavailable" value="1">
|
---|
12540 | <desc>
|
---|
12541 | Being used by the host computer exclusively,
|
---|
12542 | not available to guests.
|
---|
12543 | </desc>
|
---|
12544 | </const>
|
---|
12545 | <const name="Busy" value="2">
|
---|
12546 | <desc>
|
---|
12547 | Being used by the host computer, potentially available to guests.
|
---|
12548 | </desc>
|
---|
12549 | </const>
|
---|
12550 | <const name="Available" value="3">
|
---|
12551 | <desc>
|
---|
12552 | Not used by the host computer, available to guests (the host computer
|
---|
12553 | can also start using the device at any time).
|
---|
12554 | </desc>
|
---|
12555 | </const>
|
---|
12556 | <const name="Held" value="4">
|
---|
12557 | <desc>
|
---|
12558 | Held by the VirtualBox server (ignored by the host computer),
|
---|
12559 | available to guests.
|
---|
12560 | </desc>
|
---|
12561 | </const>
|
---|
12562 | <const name="Captured" value="5">
|
---|
12563 | <desc>
|
---|
12564 | Captured by one of the guest computers, not available
|
---|
12565 | to anybody else.
|
---|
12566 | </desc>
|
---|
12567 | </const>
|
---|
12568 | </enum>
|
---|
12569 |
|
---|
12570 | <interface
|
---|
12571 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
12572 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
12573 | wsmap="managed"
|
---|
12574 | >
|
---|
12575 | <desc>
|
---|
12576 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
12577 | to the host computer.
|
---|
12578 |
|
---|
12579 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
12580 | <link to="#state"/> property that holds the current state of the USB
|
---|
12581 | device.
|
---|
12582 |
|
---|
12583 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
12584 | </desc>
|
---|
12585 |
|
---|
12586 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
12587 | <desc>
|
---|
12588 | Current state of the device.
|
---|
12589 | </desc>
|
---|
12590 | </attribute>
|
---|
12591 |
|
---|
12592 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
12593 |
|
---|
12594 | </interface>
|
---|
12595 |
|
---|
12596 |
|
---|
12597 | <!--
|
---|
12598 | // IHostUSBDeviceFilter
|
---|
12599 | /////////////////////////////////////////////////////////////////////////
|
---|
12600 | -->
|
---|
12601 |
|
---|
12602 | <enum
|
---|
12603 | name="USBDeviceFilterAction"
|
---|
12604 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
12605 | >
|
---|
12606 | <desc>
|
---|
12607 | Actions for host USB device filters.
|
---|
12608 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
12609 | </desc>
|
---|
12610 |
|
---|
12611 | <const name="Null" value="0">
|
---|
12612 | <desc>Null value (never used by the API).</desc>
|
---|
12613 | </const>
|
---|
12614 | <const name="Ignore" value="1">
|
---|
12615 | <desc>Ignore the matched USB device.</desc>
|
---|
12616 | </const>
|
---|
12617 | <const name="Hold" value="2">
|
---|
12618 | <desc>Hold the matched USB device.</desc>
|
---|
12619 | </const>
|
---|
12620 | </enum>
|
---|
12621 |
|
---|
12622 | <interface
|
---|
12623 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
12624 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
12625 | wsmap="managed"
|
---|
12626 | >
|
---|
12627 | <desc>
|
---|
12628 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
12629 | physical USB device used by the host computer. Used indirectly in
|
---|
12630 | <link to="IHost::USBDeviceFilters"/>.
|
---|
12631 |
|
---|
12632 | Using filters of this type, the host computer determines the initial
|
---|
12633 | state of the USB device after it is physically attached to the
|
---|
12634 | host's USB controller.
|
---|
12635 |
|
---|
12636 | <note>
|
---|
12637 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
12638 | filters, because it makes sense only for
|
---|
12639 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
12640 | </note>
|
---|
12641 |
|
---|
12642 | <see>IHost::USBDeviceFilters</see>
|
---|
12643 | </desc>
|
---|
12644 |
|
---|
12645 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
12646 | <desc>
|
---|
12647 | Action performed by the host when an attached USB device
|
---|
12648 | matches this filter.
|
---|
12649 | </desc>
|
---|
12650 | </attribute>
|
---|
12651 |
|
---|
12652 | </interface>
|
---|
12653 |
|
---|
12654 | <!--
|
---|
12655 | // IAudioAdapter
|
---|
12656 | /////////////////////////////////////////////////////////////////////////
|
---|
12657 | -->
|
---|
12658 |
|
---|
12659 | <enum
|
---|
12660 | name="AudioDriverType"
|
---|
12661 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
12662 | >
|
---|
12663 | <desc>
|
---|
12664 | Host audio driver type.
|
---|
12665 | </desc>
|
---|
12666 |
|
---|
12667 | <const name="Null" value="0">
|
---|
12668 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
12669 | </const>
|
---|
12670 | <const name="WinMM" value="1">
|
---|
12671 | <desc>Windows multimedia (Windows hosts only).</desc>
|
---|
12672 | </const>
|
---|
12673 | <const name="OSS" value="2">
|
---|
12674 | <desc>Open Sound System (Linux hosts only).</desc>
|
---|
12675 | </const>
|
---|
12676 | <const name="ALSA" value="3">
|
---|
12677 | <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
|
---|
12678 | </const>
|
---|
12679 | <const name="DirectSound" value="4">
|
---|
12680 | <desc>DirectSound (Windows hosts only).</desc>
|
---|
12681 | </const>
|
---|
12682 | <const name="CoreAudio" value="5">
|
---|
12683 | <desc>CoreAudio (Mac hosts only).</desc>
|
---|
12684 | </const>
|
---|
12685 | <const name="MMPM" value="6">
|
---|
12686 | <desc>Reserved for historical reasons.</desc>
|
---|
12687 | </const>
|
---|
12688 | <const name="Pulse" value="7">
|
---|
12689 | <desc>PulseAudio (Linux hosts only).</desc>
|
---|
12690 | </const>
|
---|
12691 | <const name="SolAudio" value="8">
|
---|
12692 | <desc>Solaris audio (Solaris hosts only).</desc>
|
---|
12693 | </const>
|
---|
12694 | </enum>
|
---|
12695 |
|
---|
12696 | <enum
|
---|
12697 | name="AudioControllerType"
|
---|
12698 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
12699 | >
|
---|
12700 | <desc>
|
---|
12701 | Virtual audio controller type.
|
---|
12702 | </desc>
|
---|
12703 |
|
---|
12704 | <const name="AC97" value="0"/>
|
---|
12705 | <const name="SB16" value="1"/>
|
---|
12706 | </enum>
|
---|
12707 |
|
---|
12708 | <interface
|
---|
12709 | name="IAudioAdapter" extends="$unknown"
|
---|
12710 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
12711 | wsmap="managed"
|
---|
12712 | >
|
---|
12713 | <desc>
|
---|
12714 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
12715 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
12716 | </desc>
|
---|
12717 | <attribute name="enabled" type="boolean">
|
---|
12718 | <desc>
|
---|
12719 | Flag whether the audio adapter is present in the
|
---|
12720 | guest system. If disabled, the virtual guest hardware will
|
---|
12721 | not contain any audio adapter. Can only be changed when
|
---|
12722 | the VM is not running.
|
---|
12723 | </desc>
|
---|
12724 | </attribute>
|
---|
12725 | <attribute name="audioController" type="AudioControllerType">
|
---|
12726 | <desc>
|
---|
12727 | The audio hardware we emulate.
|
---|
12728 | </desc>
|
---|
12729 | </attribute>
|
---|
12730 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
12731 | <desc>
|
---|
12732 | Audio driver the adapter is connected to. This setting
|
---|
12733 | can only be changed when the VM is not running.
|
---|
12734 | </desc>
|
---|
12735 | </attribute>
|
---|
12736 | </interface>
|
---|
12737 |
|
---|
12738 | <!--
|
---|
12739 | // IVRDPServer
|
---|
12740 | /////////////////////////////////////////////////////////////////////////
|
---|
12741 | -->
|
---|
12742 |
|
---|
12743 | <enum
|
---|
12744 | name="VRDPAuthType"
|
---|
12745 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
12746 | >
|
---|
12747 | <desc>
|
---|
12748 | VRDP authentication type.
|
---|
12749 | </desc>
|
---|
12750 |
|
---|
12751 | <const name="Null" value="0">
|
---|
12752 | <desc>Null value, also means "no authentication".</desc>
|
---|
12753 | </const>
|
---|
12754 | <const name="External" value="1"/>
|
---|
12755 | <const name="Guest" value="2"/>
|
---|
12756 | </enum>
|
---|
12757 |
|
---|
12758 | <interface
|
---|
12759 | name="IVRDPServer" extends="$unknown"
|
---|
12760 | uuid="72e671bc-1712-4052-ad6b-e45e76d9d3e4"
|
---|
12761 | wsmap="managed"
|
---|
12762 | >
|
---|
12763 | <attribute name="enabled" type="boolean">
|
---|
12764 | <desc>VRDP server status.</desc>
|
---|
12765 | </attribute>
|
---|
12766 |
|
---|
12767 | <attribute name="ports" type="wstring">
|
---|
12768 | <desc>
|
---|
12769 | VRDP server port numbers. The server will try to bind to one of free ports from the list.
|
---|
12770 | <note>
|
---|
12771 | This is a string of comma separated TCP port numbers or port number ranges.
|
---|
12772 | Example <tt>5000,5010-5012,5015</tt>
|
---|
12773 | </note>
|
---|
12774 | </desc>
|
---|
12775 | </attribute>
|
---|
12776 |
|
---|
12777 | <attribute name="netAddress" type="wstring">
|
---|
12778 | <desc>VRDP server address.</desc>
|
---|
12779 | </attribute>
|
---|
12780 |
|
---|
12781 | <attribute name="authType" type="VRDPAuthType">
|
---|
12782 | <desc>VRDP authentication method.</desc>
|
---|
12783 | </attribute>
|
---|
12784 |
|
---|
12785 | <attribute name="authTimeout" type="unsigned long">
|
---|
12786 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
12787 | </attribute>
|
---|
12788 |
|
---|
12789 | <attribute name="allowMultiConnection" type="boolean">
|
---|
12790 | <desc>
|
---|
12791 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
12792 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
12793 | </desc>
|
---|
12794 | </attribute>
|
---|
12795 |
|
---|
12796 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
12797 | <desc>
|
---|
12798 | Flag whether the existing connection must be dropped and a new connection
|
---|
12799 | must be established by the VRDP server, when a new client connects in single
|
---|
12800 | connection mode.
|
---|
12801 | </desc>
|
---|
12802 | </attribute>
|
---|
12803 |
|
---|
12804 | </interface>
|
---|
12805 |
|
---|
12806 |
|
---|
12807 | <!--
|
---|
12808 | // ISharedFolder
|
---|
12809 | /////////////////////////////////////////////////////////////////////////
|
---|
12810 | -->
|
---|
12811 |
|
---|
12812 | <interface
|
---|
12813 | name="ISharedFolder" extends="$unknown"
|
---|
12814 | uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
|
---|
12815 | wsmap="struct"
|
---|
12816 | >
|
---|
12817 | <desc>
|
---|
12818 | The ISharedFolder interface represents a folder in the host computer's
|
---|
12819 | file system accessible from the guest OS running inside a virtual
|
---|
12820 | machine using an associated logical name.
|
---|
12821 |
|
---|
12822 | There are three types of shared folders:
|
---|
12823 | <ul>
|
---|
12824 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
12825 | folders available to all virtual machines.</li>
|
---|
12826 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
12827 | VM-specific shared folders available to the given virtual machine at
|
---|
12828 | startup.</li>
|
---|
12829 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
12830 | VM-specific shared folders created in the session context (for
|
---|
12831 | example, when the virtual machine is running) and automatically
|
---|
12832 | discarded when the session is closed (the VM is powered off).</li>
|
---|
12833 | </ul>
|
---|
12834 |
|
---|
12835 | Logical names of shared folders must be unique within the given scope
|
---|
12836 | (global, permanent or transient). However, they do not need to be unique
|
---|
12837 | across scopes. In this case, the definition of the shared folder in a
|
---|
12838 | more specific scope takes precedence over definitions in all other
|
---|
12839 | scopes. The order of precedence is (more specific to more general):
|
---|
12840 | <ol>
|
---|
12841 | <li>Transient definitions</li>
|
---|
12842 | <li>Permanent definitions</li>
|
---|
12843 | <li>Global definitions</li>
|
---|
12844 | </ol>
|
---|
12845 |
|
---|
12846 | For example, if MyMachine has a shared folder named
|
---|
12847 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
12848 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
12849 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
12850 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
12851 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
12852 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
12853 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
12854 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
12855 | to <tt>C:\\</tt> if it still exists.
|
---|
12856 |
|
---|
12857 | Note that permanent and transient shared folders of different machines
|
---|
12858 | are in different name spaces, so they don't overlap and don't need to
|
---|
12859 | have unique logical names.
|
---|
12860 |
|
---|
12861 | <note>
|
---|
12862 | Global shared folders are not implemented in the current version of the
|
---|
12863 | product.
|
---|
12864 | </note>
|
---|
12865 | </desc>
|
---|
12866 |
|
---|
12867 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12868 | <desc>Logical name of the shared folder.</desc>
|
---|
12869 | </attribute>
|
---|
12870 |
|
---|
12871 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
12872 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
12873 | </attribute>
|
---|
12874 |
|
---|
12875 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
12876 | <desc>
|
---|
12877 | Whether the folder defined by the host path is currently
|
---|
12878 | accessible or not.
|
---|
12879 | For example, the folder can be unaccessible if it is placed
|
---|
12880 | on the network share that is not available by the time
|
---|
12881 | this property is read.
|
---|
12882 | </desc>
|
---|
12883 | </attribute>
|
---|
12884 |
|
---|
12885 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
12886 | <desc>
|
---|
12887 | Whether the folder defined by the host path is writable or
|
---|
12888 | not.
|
---|
12889 | </desc>
|
---|
12890 | </attribute>
|
---|
12891 |
|
---|
12892 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
12893 | <desc>
|
---|
12894 | Text message that represents the result of the last accessibility
|
---|
12895 | check.
|
---|
12896 |
|
---|
12897 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
12898 | attribute is read. An empty string is returned if the last
|
---|
12899 | accessibility check was successful. A non-empty string indicates a
|
---|
12900 | failure and should normally describe a reason of the failure (for
|
---|
12901 | example, a file read error).
|
---|
12902 | </desc>
|
---|
12903 | </attribute>
|
---|
12904 |
|
---|
12905 | </interface>
|
---|
12906 |
|
---|
12907 | <!--
|
---|
12908 | // ISession
|
---|
12909 | /////////////////////////////////////////////////////////////////////////
|
---|
12910 | -->
|
---|
12911 |
|
---|
12912 | <interface
|
---|
12913 | name="IInternalSessionControl" extends="$unknown"
|
---|
12914 | uuid="f9aac6d0-41b3-46b7-bea4-6370b4036de6"
|
---|
12915 | internal="yes"
|
---|
12916 | wsmap="suppress"
|
---|
12917 | >
|
---|
12918 | <method name="getPID">
|
---|
12919 | <desc>PID of the process that has created this Session object.
|
---|
12920 | </desc>
|
---|
12921 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
12922 | </method>
|
---|
12923 |
|
---|
12924 | <method name="getRemoteConsole">
|
---|
12925 | <desc>
|
---|
12926 | Returns the console object suitable for remote control.
|
---|
12927 |
|
---|
12928 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12929 | Session state prevents operation.
|
---|
12930 | </result>
|
---|
12931 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12932 | Session type prevents operation.
|
---|
12933 | </result>
|
---|
12934 |
|
---|
12935 | </desc>
|
---|
12936 | <param name="console" type="IConsole" dir="return"/>
|
---|
12937 | </method>
|
---|
12938 |
|
---|
12939 | <method name="assignMachine">
|
---|
12940 | <desc>
|
---|
12941 | Assigns the machine object associated with this direct-type
|
---|
12942 | session or informs the session that it will be a remote one
|
---|
12943 | (if @a machine == @c null).
|
---|
12944 |
|
---|
12945 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12946 | Session state prevents operation.
|
---|
12947 | </result>
|
---|
12948 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12949 | Session type prevents operation.
|
---|
12950 | </result>
|
---|
12951 |
|
---|
12952 | </desc>
|
---|
12953 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12954 | </method>
|
---|
12955 |
|
---|
12956 | <method name="assignRemoteMachine">
|
---|
12957 | <desc>
|
---|
12958 | Assigns the machine and the (remote) console object associated with
|
---|
12959 | this remote-type session.
|
---|
12960 |
|
---|
12961 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12962 | Session state prevents operation.
|
---|
12963 | </result>
|
---|
12964 |
|
---|
12965 | </desc>
|
---|
12966 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12967 | <param name="console" type="IConsole" dir="in"/>
|
---|
12968 | </method>
|
---|
12969 |
|
---|
12970 | <method name="updateMachineState">
|
---|
12971 | <desc>
|
---|
12972 | Updates the machine state in the VM process.
|
---|
12973 | Must be called only in certain cases
|
---|
12974 | (see the method implementation).
|
---|
12975 |
|
---|
12976 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12977 | Session state prevents operation.
|
---|
12978 | </result>
|
---|
12979 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12980 | Session type prevents operation.
|
---|
12981 | </result>
|
---|
12982 |
|
---|
12983 | </desc>
|
---|
12984 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
12985 | </method>
|
---|
12986 |
|
---|
12987 | <method name="uninitialize">
|
---|
12988 | <desc>
|
---|
12989 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
12990 | the corresponding remote session when the direct session dies
|
---|
12991 | or gets closed.
|
---|
12992 |
|
---|
12993 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12994 | Session state prevents operation.
|
---|
12995 | </result>
|
---|
12996 |
|
---|
12997 | </desc>
|
---|
12998 | </method>
|
---|
12999 |
|
---|
13000 | <method name="onNetworkAdapterChange">
|
---|
13001 | <desc>
|
---|
13002 | Triggered when settings of a network adapter of the
|
---|
13003 | associated virtual machine have changed.
|
---|
13004 |
|
---|
13005 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13006 | Session state prevents operation.
|
---|
13007 | </result>
|
---|
13008 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13009 | Session type prevents operation.
|
---|
13010 | </result>
|
---|
13011 |
|
---|
13012 | </desc>
|
---|
13013 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
13014 | <param name="changeAdapter" type="boolean" dir="in"/>
|
---|
13015 | </method>
|
---|
13016 |
|
---|
13017 | <method name="onSerialPortChange">
|
---|
13018 | <desc>
|
---|
13019 | Triggered when settings of a serial port of the
|
---|
13020 | associated virtual machine have changed.
|
---|
13021 |
|
---|
13022 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13023 | Session state prevents operation.
|
---|
13024 | </result>
|
---|
13025 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13026 | Session type prevents operation.
|
---|
13027 | </result>
|
---|
13028 |
|
---|
13029 | </desc>
|
---|
13030 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
13031 | </method>
|
---|
13032 |
|
---|
13033 | <method name="onParallelPortChange">
|
---|
13034 | <desc>
|
---|
13035 | Triggered when settings of a parallel port of the
|
---|
13036 | associated virtual machine have changed.
|
---|
13037 |
|
---|
13038 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13039 | Session state prevents operation.
|
---|
13040 | </result>
|
---|
13041 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13042 | Session type prevents operation.
|
---|
13043 | </result>
|
---|
13044 |
|
---|
13045 | </desc>
|
---|
13046 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
13047 | </method>
|
---|
13048 |
|
---|
13049 | <method name="onStorageControllerChange">
|
---|
13050 | <desc>
|
---|
13051 | Triggered when settings of a storage controller of the
|
---|
13052 | associated virtual machine have changed.
|
---|
13053 |
|
---|
13054 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13055 | Session state prevents operation.
|
---|
13056 | </result>
|
---|
13057 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13058 | Session type prevents operation.
|
---|
13059 | </result>
|
---|
13060 |
|
---|
13061 | </desc>
|
---|
13062 | </method>
|
---|
13063 |
|
---|
13064 | <method name="onMediumChange">
|
---|
13065 | <desc>
|
---|
13066 | Triggered when attached media of the
|
---|
13067 | associated virtual machine have changed.
|
---|
13068 |
|
---|
13069 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13070 | Session state prevents operation.
|
---|
13071 | </result>
|
---|
13072 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13073 | Session type prevents operation.
|
---|
13074 | </result>
|
---|
13075 |
|
---|
13076 | </desc>
|
---|
13077 |
|
---|
13078 | <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
|
---|
13079 | <param name="force" type="boolean" dir="in"/>
|
---|
13080 | </method>
|
---|
13081 |
|
---|
13082 | <method name="onCPUChange">
|
---|
13083 | <desc>
|
---|
13084 | Notification when a CPU changes.
|
---|
13085 | </desc>
|
---|
13086 | <param name="cpu" type="unsigned long" dir="in">
|
---|
13087 | <desc>The CPU which changed</desc>
|
---|
13088 | </param>
|
---|
13089 | <param name="add" type="boolean" dir="in">
|
---|
13090 | <desc>Flag whether the CPU was added or removed</desc>
|
---|
13091 | </param>
|
---|
13092 | </method>
|
---|
13093 |
|
---|
13094 | <method name="onVRDPServerChange">
|
---|
13095 | <desc>
|
---|
13096 | Triggered when settings of the VRDP server object of the
|
---|
13097 | associated virtual machine have changed.
|
---|
13098 |
|
---|
13099 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13100 | Session state prevents operation.
|
---|
13101 | </result>
|
---|
13102 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13103 | Session type prevents operation.
|
---|
13104 | </result>
|
---|
13105 |
|
---|
13106 | </desc>
|
---|
13107 | </method>
|
---|
13108 |
|
---|
13109 | <method name="onUSBControllerChange">
|
---|
13110 | <desc>
|
---|
13111 | Triggered when settings of the USB controller object of the
|
---|
13112 | associated virtual machine have changed.
|
---|
13113 |
|
---|
13114 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13115 | Session state prevents operation.
|
---|
13116 | </result>
|
---|
13117 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13118 | Session type prevents operation.
|
---|
13119 | </result>
|
---|
13120 |
|
---|
13121 | </desc>
|
---|
13122 | </method>
|
---|
13123 |
|
---|
13124 | <method name="onSharedFolderChange">
|
---|
13125 | <desc>
|
---|
13126 | Triggered when a permanent (global or machine) shared folder has been
|
---|
13127 | created or removed.
|
---|
13128 | <note>
|
---|
13129 | We don't pass shared folder parameters in this notification because
|
---|
13130 | the order in which parallel notifications are delivered is not defined,
|
---|
13131 | therefore it could happen that these parameters were outdated by the
|
---|
13132 | time of processing this notification.
|
---|
13133 | </note>
|
---|
13134 |
|
---|
13135 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13136 | Session state prevents operation.
|
---|
13137 | </result>
|
---|
13138 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13139 | Session type prevents operation.
|
---|
13140 | </result>
|
---|
13141 |
|
---|
13142 | </desc>
|
---|
13143 | <param name="global" type="boolean" dir="in"/>
|
---|
13144 | </method>
|
---|
13145 |
|
---|
13146 | <method name="onUSBDeviceAttach">
|
---|
13147 | <desc>
|
---|
13148 | Triggered when a request to capture a USB device (as a result
|
---|
13149 | of matched USB filters or direct call to
|
---|
13150 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
13151 | A @c null @a error object means success, otherwise it
|
---|
13152 | describes a failure.
|
---|
13153 |
|
---|
13154 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13155 | Session state prevents operation.
|
---|
13156 | </result>
|
---|
13157 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13158 | Session type prevents operation.
|
---|
13159 | </result>
|
---|
13160 |
|
---|
13161 | </desc>
|
---|
13162 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
13163 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
13164 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
13165 | </method>
|
---|
13166 |
|
---|
13167 | <method name="onUSBDeviceDetach">
|
---|
13168 | <desc>
|
---|
13169 | Triggered when a request to release the USB device (as a result
|
---|
13170 | of machine termination or direct call to
|
---|
13171 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
13172 | A @c null @a error object means success, otherwise it
|
---|
13173 | describes a failure.
|
---|
13174 |
|
---|
13175 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13176 | Session state prevents operation.
|
---|
13177 | </result>
|
---|
13178 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13179 | Session type prevents operation.
|
---|
13180 | </result>
|
---|
13181 |
|
---|
13182 | </desc>
|
---|
13183 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
13184 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
13185 | </method>
|
---|
13186 |
|
---|
13187 | <method name="onShowWindow">
|
---|
13188 | <desc>
|
---|
13189 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
13190 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
13191 | console callbacks
|
---|
13192 | <link to="IConsoleCallback::onCanShowWindow"/>
|
---|
13193 | and <link to="IConsoleCallback::onShowWindow"/>.
|
---|
13194 |
|
---|
13195 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13196 | Session type prevents operation.
|
---|
13197 | </result>
|
---|
13198 |
|
---|
13199 | </desc>
|
---|
13200 | <param name="check" type="boolean" dir="in"/>
|
---|
13201 | <param name="canShow" type="boolean" dir="out"/>
|
---|
13202 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
13203 | </method>
|
---|
13204 |
|
---|
13205 | <method name="accessGuestProperty">
|
---|
13206 | <desc>
|
---|
13207 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
13208 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
13209 | modify guest properties.
|
---|
13210 |
|
---|
13211 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13212 | Machine session is not open.
|
---|
13213 | </result>
|
---|
13214 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13215 | Session type is not direct.
|
---|
13216 | </result>
|
---|
13217 |
|
---|
13218 | </desc>
|
---|
13219 | <param name="name" type="wstring" dir="in"/>
|
---|
13220 | <param name="value" type="wstring" dir="in"/>
|
---|
13221 | <param name="flags" type="wstring" dir="in"/>
|
---|
13222 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
13223 | <param name="retValue" type="wstring" dir="out"/>
|
---|
13224 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
13225 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
13226 | </method>
|
---|
13227 |
|
---|
13228 | <method name="enumerateGuestProperties">
|
---|
13229 | <desc>
|
---|
13230 | Return a list of the guest properties matching a set of patterns along
|
---|
13231 | with their values, time stamps and flags.
|
---|
13232 |
|
---|
13233 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13234 | Machine session is not open.
|
---|
13235 | </result>
|
---|
13236 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13237 | Session type is not direct.
|
---|
13238 | </result>
|
---|
13239 |
|
---|
13240 | </desc>
|
---|
13241 | <param name="patterns" type="wstring" dir="in">
|
---|
13242 | <desc>
|
---|
13243 | The patterns to match the properties against as a comma-separated
|
---|
13244 | string. If this is empty, all properties currently set will be
|
---|
13245 | returned.
|
---|
13246 | </desc>
|
---|
13247 | </param>
|
---|
13248 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
13249 | <desc>
|
---|
13250 | The key names of the properties returned.
|
---|
13251 | </desc>
|
---|
13252 | </param>
|
---|
13253 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
13254 | <desc>
|
---|
13255 | The values of the properties returned. The array entries match the
|
---|
13256 | corresponding entries in the @a key array.
|
---|
13257 | </desc>
|
---|
13258 | </param>
|
---|
13259 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
13260 | <desc>
|
---|
13261 | The time stamps of the properties returned. The array entries match
|
---|
13262 | the corresponding entries in the @a key array.
|
---|
13263 | </desc>
|
---|
13264 | </param>
|
---|
13265 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
13266 | <desc>
|
---|
13267 | The flags of the properties returned. The array entries match the
|
---|
13268 | corresponding entries in the @a key array.
|
---|
13269 | </desc>
|
---|
13270 | </param>
|
---|
13271 | </method>
|
---|
13272 |
|
---|
13273 | </interface>
|
---|
13274 |
|
---|
13275 | <interface
|
---|
13276 | name="ISession" extends="$unknown"
|
---|
13277 | uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
|
---|
13278 | wsmap="managed"
|
---|
13279 | >
|
---|
13280 | <desc>
|
---|
13281 | The ISession interface represents a serialization primitive for virtual
|
---|
13282 | machines.
|
---|
13283 |
|
---|
13284 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
13285 | (e.g. change its settings or start execution), a session object is
|
---|
13286 | required. Such an object must be passed to one of the session methods
|
---|
13287 | that open the given session, which then initiates the machine manipulation.
|
---|
13288 |
|
---|
13289 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
13290 | code which process is currently working with the virtual machine, and it ensures
|
---|
13291 | that there are no incompatible requests from several processes for the
|
---|
13292 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
13293 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
13294 | several processes.
|
---|
13295 |
|
---|
13296 | How sessions objects are used depends on whether you use the Main API
|
---|
13297 | via COM or via the webservice:
|
---|
13298 |
|
---|
13299 | <ul>
|
---|
13300 | <li>When using the COM API directly, an object of the Session class from the
|
---|
13301 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
13302 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
13303 | This object will then act as a local session object in further calls to open
|
---|
13304 | a session.
|
---|
13305 | </li>
|
---|
13306 |
|
---|
13307 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
13308 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
13309 | is called. A managed object reference to that session object can be retrieved by
|
---|
13310 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
13311 | reference can then be used to open sessions.
|
---|
13312 | </li>
|
---|
13313 | </ul>
|
---|
13314 |
|
---|
13315 | Sessions are mainly used in two variations:
|
---|
13316 |
|
---|
13317 | <ul>
|
---|
13318 | <li>
|
---|
13319 | To start a virtual machine in a separate process, one would call
|
---|
13320 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
13321 | object as its first parameter. This session then identifies the caller
|
---|
13322 | and lets him control the started machine (for example, pause machine
|
---|
13323 | execution or power it down) as well as be notified about machine
|
---|
13324 | execution state changes.
|
---|
13325 | </li>
|
---|
13326 |
|
---|
13327 | <li>To alter machine settings, or to start machine execution within the
|
---|
13328 | current process, one needs to open a direct session for the machine first by
|
---|
13329 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
13330 | is open within one process, no any other process may open another direct
|
---|
13331 | session for the same machine. This prevents the machine from being changed
|
---|
13332 | by other processes while it is running or while the machine is being configured.
|
---|
13333 | </li>
|
---|
13334 | </ul>
|
---|
13335 |
|
---|
13336 | One also can attach to an existing direct session already opened by
|
---|
13337 | another process (for example, in order to send a control request to the
|
---|
13338 | virtual machine such as the pause or the reset request). This is done by
|
---|
13339 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
13340 |
|
---|
13341 | <note>
|
---|
13342 | Unless you are trying to write a new VirtualBox front-end that
|
---|
13343 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
13344 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
13345 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
13346 | session only to change virtual machine settings. If you simply want to
|
---|
13347 | start virtual machine execution using one of the existing front-ends
|
---|
13348 | (for example the VirtualBox GUI or headless server), simply use
|
---|
13349 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
13350 | will power up the machine automatically for you.
|
---|
13351 | </note>
|
---|
13352 | </desc>
|
---|
13353 |
|
---|
13354 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
13355 | <desc>Current state of this session.</desc>
|
---|
13356 | </attribute>
|
---|
13357 |
|
---|
13358 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
13359 | <desc>
|
---|
13360 | Type of this session. The value of this attribute is valid only
|
---|
13361 | if the session is currently open (i.e. its #state is
|
---|
13362 | SessionType_SessionOpen), otherwise an error will be returned.
|
---|
13363 | </desc>
|
---|
13364 | </attribute>
|
---|
13365 |
|
---|
13366 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
13367 | <desc>Machine object associated with this session.</desc>
|
---|
13368 | </attribute>
|
---|
13369 |
|
---|
13370 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
13371 | <desc>Console object associated with this session.</desc>
|
---|
13372 | </attribute>
|
---|
13373 |
|
---|
13374 | <method name="close">
|
---|
13375 | <desc>
|
---|
13376 | Closes a session that was previously opened.
|
---|
13377 |
|
---|
13378 | It is recommended that every time an "open session" method (such as
|
---|
13379 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
13380 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
13381 | manipulate a virtual machine, the caller invoke
|
---|
13382 | ISession::close() when it's done doing so. Since sessions are
|
---|
13383 | serialization primitives much like ordinary mutexes, they are
|
---|
13384 | best used the same way: for each "open" call, there should be
|
---|
13385 | a matching "close" call, even when errors occur.
|
---|
13386 |
|
---|
13387 | Otherwise, if a direct session for a machine opened with
|
---|
13388 | <link to="IVirtualBox::openSession"/> is not explicitly closed
|
---|
13389 | when the application terminates, the state of the machine will
|
---|
13390 | be set to <link to="MachineState_Aborted" /> on the server.
|
---|
13391 |
|
---|
13392 | Generally, it is recommended to close all open sessions explicitly
|
---|
13393 | before terminating the application (regardless of the reason for
|
---|
13394 | the termination).
|
---|
13395 |
|
---|
13396 | <note>
|
---|
13397 | Do not expect the session state (<link to="ISession::state" />
|
---|
13398 | to return to "Closed" immediately after you invoke
|
---|
13399 | ISession::close(), particularly if you have started a remote
|
---|
13400 | session to execute the VM in a new process. The session state will
|
---|
13401 | automatically return to "Closed" once the VM is no longer executing,
|
---|
13402 | which can of course take a very long time.
|
---|
13403 | </note>
|
---|
13404 |
|
---|
13405 | <result name="E_UNEXPECTED">
|
---|
13406 | Session is not open.
|
---|
13407 | </result>
|
---|
13408 |
|
---|
13409 | </desc>
|
---|
13410 | </method>
|
---|
13411 |
|
---|
13412 | </interface>
|
---|
13413 |
|
---|
13414 | <!--
|
---|
13415 | // IStorageController
|
---|
13416 | /////////////////////////////////////////////////////////////////////////
|
---|
13417 | -->
|
---|
13418 |
|
---|
13419 | <enum
|
---|
13420 | name="StorageBus"
|
---|
13421 | uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
|
---|
13422 | >
|
---|
13423 | <desc>
|
---|
13424 | The bus type of the storage controller (IDE, SATA, SCSI or Floppy);
|
---|
13425 | see <link to="IStorageController::bus" />.
|
---|
13426 | </desc>
|
---|
13427 | <const name="Null" value="0">
|
---|
13428 | <desc>@c null value. Never used by the API.</desc>
|
---|
13429 | </const>
|
---|
13430 | <const name="IDE" value="1"/>
|
---|
13431 | <const name="SATA" value="2"/>
|
---|
13432 | <const name="SCSI" value="3"/>
|
---|
13433 | <const name="Floppy" value="4"/>
|
---|
13434 | <const name="SAS" value="5"/>
|
---|
13435 | </enum>
|
---|
13436 |
|
---|
13437 | <enum
|
---|
13438 | name="StorageControllerType"
|
---|
13439 | uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
|
---|
13440 | >
|
---|
13441 | <desc>
|
---|
13442 | The exact variant of storage controller hardware presented
|
---|
13443 | to the guest; see <link to="IStorageController::controllerType" />.
|
---|
13444 | </desc>
|
---|
13445 |
|
---|
13446 | <const name="Null" value="0">
|
---|
13447 | <desc>@c null value. Never used by the API.</desc>
|
---|
13448 | </const>
|
---|
13449 | <const name="LsiLogic" value="1">
|
---|
13450 | <desc>A SCSI controller of the LsiLogic variant.</desc>
|
---|
13451 | </const>
|
---|
13452 | <const name="BusLogic" value="2">
|
---|
13453 | <desc>A SCSI controller of the BusLogic variant.</desc>
|
---|
13454 | </const>
|
---|
13455 | <const name="IntelAhci" value="3">
|
---|
13456 | <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
|
---|
13457 | </const>
|
---|
13458 | <const name="PIIX3" value="4">
|
---|
13459 | <desc>An IDE controller of the PIIX3 variant.</desc>
|
---|
13460 | </const>
|
---|
13461 | <const name="PIIX4" value="5">
|
---|
13462 | <desc>An IDE controller of the PIIX4 variant.</desc>
|
---|
13463 | </const>
|
---|
13464 | <const name="ICH6" value="6">
|
---|
13465 | <desc>An IDE controller of the ICH6 variant.</desc>
|
---|
13466 | </const>
|
---|
13467 | <const name="I82078" value="7">
|
---|
13468 | <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
|
---|
13469 | </const>
|
---|
13470 | <const name="LsiLogicSas" value="8">
|
---|
13471 | <desc>A variant of the LsiLogic controller using SAS.</desc>
|
---|
13472 | </const>
|
---|
13473 | </enum>
|
---|
13474 |
|
---|
13475 | <interface
|
---|
13476 | name="IStorageController" extends="$unknown"
|
---|
13477 | uuid="ce37b7a9-d895-4ee8-b9f8-9579bfc85813"
|
---|
13478 | wsmap="managed"
|
---|
13479 | >
|
---|
13480 | <desc>
|
---|
13481 | Represents a storage controller that is attached to a virtual machine
|
---|
13482 | (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
|
---|
13483 | attached to storage controllers in a real computer, virtual drives
|
---|
13484 | (represented by <link to="IMediumAttachment" />) are attached to virtual
|
---|
13485 | storage controllers, represented by this interface.
|
---|
13486 |
|
---|
13487 | As opposed to physical hardware, VirtualBox has a very generic concept
|
---|
13488 | of a storage controller, and for purposes of the Main API, all virtual
|
---|
13489 | storage is attached to virtual machines via instances of this interface.
|
---|
13490 | There are four types of such virtual storage controllers: IDE, SCSI, SATA
|
---|
13491 | and Floppy (see <link to="#bus" />). Depending on which of these four is
|
---|
13492 | used, certain sub-types may be available and can be selected in
|
---|
13493 | <link to="#controllerType" />.
|
---|
13494 |
|
---|
13495 | Depending on these settings, the guest operating system might see
|
---|
13496 | significantly different virtual hardware.
|
---|
13497 | </desc>
|
---|
13498 |
|
---|
13499 | <attribute name="name" type="wstring" readonly="yes">
|
---|
13500 | <desc>
|
---|
13501 | Name of the storage controller, as originally specified with
|
---|
13502 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
13503 | identifies this controller with other method calls such as
|
---|
13504 | <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
|
---|
13505 | </desc>
|
---|
13506 | </attribute>
|
---|
13507 |
|
---|
13508 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
13509 | <desc>
|
---|
13510 | Maximum number of devices which can be attached to one port.
|
---|
13511 | </desc>
|
---|
13512 | </attribute>
|
---|
13513 |
|
---|
13514 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
13515 | <desc>
|
---|
13516 | Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
13517 | </desc>
|
---|
13518 | </attribute>
|
---|
13519 |
|
---|
13520 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
13521 | <desc>
|
---|
13522 | Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
13523 | </desc>
|
---|
13524 | </attribute>
|
---|
13525 |
|
---|
13526 | <attribute name="instance" type="unsigned long">
|
---|
13527 | <desc>
|
---|
13528 | The instance number of the device in the running VM.
|
---|
13529 | </desc>
|
---|
13530 | </attribute>
|
---|
13531 |
|
---|
13532 | <attribute name="portCount" type="unsigned long">
|
---|
13533 | <desc>
|
---|
13534 | The number of currently usable ports on the controller.
|
---|
13535 | The minimum and maximum number of ports for one controller are
|
---|
13536 | stored in <link to="IStorageController::minPortCount"/>
|
---|
13537 | and <link to="IStorageController::maxPortCount"/>.
|
---|
13538 | </desc>
|
---|
13539 | </attribute>
|
---|
13540 |
|
---|
13541 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
13542 | <desc>
|
---|
13543 | The bus type of the storage controller (IDE, SATA, SCSI or Floppy).
|
---|
13544 | </desc>
|
---|
13545 | </attribute>
|
---|
13546 |
|
---|
13547 | <attribute name="controllerType" type="StorageControllerType">
|
---|
13548 | <desc>
|
---|
13549 | The exact variant of storage controller hardware presented
|
---|
13550 | to the guest.
|
---|
13551 | Depending on this value, VirtualBox will provide a different
|
---|
13552 | virtual storage controller hardware to the guest.
|
---|
13553 | For SATA and floppy controllers, only one variant is available,
|
---|
13554 | but for IDE and SCSI, there are several.
|
---|
13555 |
|
---|
13556 | For SCSI controllers, the default type is LsiLogic.
|
---|
13557 | </desc>
|
---|
13558 | </attribute>
|
---|
13559 |
|
---|
13560 | <method name="getIDEEmulationPort">
|
---|
13561 | <desc>
|
---|
13562 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
13563 | Works only with SATA controllers.
|
---|
13564 |
|
---|
13565 | <result name="E_INVALIDARG">
|
---|
13566 | The @a devicePosition is not in the range 0 to 3.
|
---|
13567 | </result>
|
---|
13568 | <result name="E_NOTIMPL">
|
---|
13569 | The storage controller type is not SATAIntelAhci.
|
---|
13570 | </result>
|
---|
13571 |
|
---|
13572 | </desc>
|
---|
13573 | <param name="devicePosition" type="long" dir="in"/>
|
---|
13574 | <param name="portNumber" type="long" dir="return"/>
|
---|
13575 | </method>
|
---|
13576 |
|
---|
13577 | <method name="setIDEEmulationPort">
|
---|
13578 | <desc>
|
---|
13579 | Sets the port number which is emulated as an IDE device.
|
---|
13580 | Works only with SATA controllers.
|
---|
13581 |
|
---|
13582 | <result name="E_INVALIDARG">
|
---|
13583 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
13584 | @a portNumber is not in the range 0 to 29.
|
---|
13585 | </result>
|
---|
13586 | <result name="E_NOTIMPL">
|
---|
13587 | The storage controller type is not SATAIntelAhci.
|
---|
13588 | </result>
|
---|
13589 |
|
---|
13590 | </desc>
|
---|
13591 | <param name="devicePosition" type="long" dir="in"/>
|
---|
13592 | <param name="portNumber" type="long" dir="in"/>
|
---|
13593 | </method>
|
---|
13594 |
|
---|
13595 | </interface>
|
---|
13596 |
|
---|
13597 | <if target="wsdl">
|
---|
13598 |
|
---|
13599 | <!--
|
---|
13600 | // IManagedObjectRef
|
---|
13601 | /////////////////////////////////////////////////////////////////////////
|
---|
13602 | -->
|
---|
13603 |
|
---|
13604 | <interface
|
---|
13605 | name="IManagedObjectRef" extends="$unknown"
|
---|
13606 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
13607 | internal="yes"
|
---|
13608 | wsmap="managed"
|
---|
13609 | wscpp="hardcoded"
|
---|
13610 | >
|
---|
13611 | <desc>
|
---|
13612 | Managed object reference.
|
---|
13613 |
|
---|
13614 | Only within the webservice, a managed object reference (which is really
|
---|
13615 | an opaque number) allows a webservice client to address an object
|
---|
13616 | that lives in the address space of the webservice server.
|
---|
13617 |
|
---|
13618 | Behind each managed object reference, there is a COM object that lives
|
---|
13619 | in the webservice server's address space. The COM object is not freed
|
---|
13620 | until the managed object reference is released, either by an explicit
|
---|
13621 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
13622 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
13623 | all objects created during the webservice session.
|
---|
13624 |
|
---|
13625 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
13626 | webservice representation of that method will instead return a
|
---|
13627 | managed object reference, which can then be used to invoke methods
|
---|
13628 | on that object.
|
---|
13629 | </desc>
|
---|
13630 |
|
---|
13631 | <method name="getInterfaceName">
|
---|
13632 | <desc>
|
---|
13633 | Returns the name of the interface that this managed object represents,
|
---|
13634 | for example, "IMachine", as a string.
|
---|
13635 | </desc>
|
---|
13636 | <param name="return" type="wstring" dir="return"/>
|
---|
13637 | </method>
|
---|
13638 |
|
---|
13639 | <method name="release">
|
---|
13640 | <desc>
|
---|
13641 | Releases this managed object reference and frees the resources that
|
---|
13642 | were allocated for it in the webservice server process. After calling
|
---|
13643 | this method, the identifier of the reference can no longer be used.
|
---|
13644 | </desc>
|
---|
13645 | </method>
|
---|
13646 |
|
---|
13647 | </interface>
|
---|
13648 |
|
---|
13649 | <!--
|
---|
13650 | // IWebsessionManager
|
---|
13651 | /////////////////////////////////////////////////////////////////////////
|
---|
13652 | -->
|
---|
13653 |
|
---|
13654 | <interface
|
---|
13655 | name="IWebsessionManager" extends="$unknown"
|
---|
13656 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
13657 | internal="yes"
|
---|
13658 | wsmap="global"
|
---|
13659 | wscpp="hardcoded"
|
---|
13660 | >
|
---|
13661 | <desc>
|
---|
13662 | Websession manager. This provides essential services
|
---|
13663 | to webservice clients.
|
---|
13664 | </desc>
|
---|
13665 | <method name="logon">
|
---|
13666 | <desc>
|
---|
13667 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
13668 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
13669 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
13670 | interface, in one way or the other.
|
---|
13671 | </desc>
|
---|
13672 | <param name="username" type="wstring" dir="in"/>
|
---|
13673 | <param name="password" type="wstring" dir="in"/>
|
---|
13674 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
13675 | </method>
|
---|
13676 |
|
---|
13677 | <method name="getSessionObject">
|
---|
13678 | <desc>
|
---|
13679 | Returns a managed object reference to the internal ISession object that was created
|
---|
13680 | for this web service session when the client logged on.
|
---|
13681 |
|
---|
13682 | <see>ISession</see>
|
---|
13683 | </desc>
|
---|
13684 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
13685 | <param name="return" type="ISession" dir="return"/>
|
---|
13686 | </method>
|
---|
13687 |
|
---|
13688 | <method name="logoff">
|
---|
13689 | <desc>
|
---|
13690 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
13691 | and destroys all resources associated with the session (most importantly, all
|
---|
13692 | managed objects created in the server while the session was active).
|
---|
13693 | </desc>
|
---|
13694 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
13695 | </method>
|
---|
13696 |
|
---|
13697 | </interface>
|
---|
13698 |
|
---|
13699 | </if>
|
---|
13700 |
|
---|
13701 | <!--
|
---|
13702 | // IPerformanceCollector & friends
|
---|
13703 | /////////////////////////////////////////////////////////////////////////
|
---|
13704 | -->
|
---|
13705 |
|
---|
13706 | <interface
|
---|
13707 | name="IPerformanceMetric" extends="$unknown"
|
---|
13708 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
13709 | >
|
---|
13710 | <desc>
|
---|
13711 | The IPerformanceMetric interface represents parameters of the given
|
---|
13712 | performance metric.
|
---|
13713 | </desc>
|
---|
13714 |
|
---|
13715 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
13716 | <desc>
|
---|
13717 | Name of the metric.
|
---|
13718 | </desc>
|
---|
13719 | </attribute>
|
---|
13720 |
|
---|
13721 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
13722 | <desc>
|
---|
13723 | Object this metric belongs to.
|
---|
13724 | </desc>
|
---|
13725 | </attribute>
|
---|
13726 |
|
---|
13727 | <attribute name="description" type="wstring" readonly="yes">
|
---|
13728 | <desc>
|
---|
13729 | Textual description of the metric.
|
---|
13730 | </desc>
|
---|
13731 | </attribute>
|
---|
13732 |
|
---|
13733 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
13734 | <desc>
|
---|
13735 | Time interval between samples, measured in seconds.
|
---|
13736 | </desc>
|
---|
13737 | </attribute>
|
---|
13738 |
|
---|
13739 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
13740 | <desc>
|
---|
13741 | Number of recent samples retained by the performance collector for this
|
---|
13742 | metric.
|
---|
13743 |
|
---|
13744 | When the collected sample count exceeds this number, older samples
|
---|
13745 | are discarded.
|
---|
13746 | </desc>
|
---|
13747 | </attribute>
|
---|
13748 |
|
---|
13749 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
13750 | <desc>
|
---|
13751 | Unit of measurement.
|
---|
13752 | </desc>
|
---|
13753 | </attribute>
|
---|
13754 |
|
---|
13755 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
13756 | <desc>
|
---|
13757 | Minimum possible value of this metric.
|
---|
13758 | </desc>
|
---|
13759 | </attribute>
|
---|
13760 |
|
---|
13761 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
13762 | <desc>
|
---|
13763 | Maximum possible value of this metric.
|
---|
13764 | </desc>
|
---|
13765 | </attribute>
|
---|
13766 | </interface>
|
---|
13767 |
|
---|
13768 | <interface
|
---|
13769 | name="IPerformanceCollector" extends="$unknown"
|
---|
13770 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
13771 | wsmap="managed"
|
---|
13772 | >
|
---|
13773 | <desc>
|
---|
13774 | The IPerformanceCollector interface represents a service that collects
|
---|
13775 | and stores performance metrics data.
|
---|
13776 |
|
---|
13777 | Performance metrics are associated with objects of interfaces like IHost
|
---|
13778 | and IMachine. Each object has a distinct set of performance metrics. The
|
---|
13779 | set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
13780 |
|
---|
13781 | Metric data is collected at the specified intervals and is retained
|
---|
13782 | internally. The interval and the number of retained samples can be set
|
---|
13783 | with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
|
---|
13784 | and collection settings are not persistent, they are discarded as soon as
|
---|
13785 | VBoxSVC process terminates. Moreover, metric settings and data associated
|
---|
13786 | with a particular VM only exist while VM is running. They disappear as
|
---|
13787 | soon as VM shuts down. It is not possible to set up metrics for machines
|
---|
13788 | that are powered off. One needs to start VM first, then set up metric
|
---|
13789 | collection parameters.
|
---|
13790 |
|
---|
13791 | Metrics are organized hierarchically, with each level separated by a
|
---|
13792 | slash (/) character. Generally, the scheme for metric names is like this:
|
---|
13793 |
|
---|
13794 | <tt>Category/Metric[/SubMetric][:aggregation]</tt>
|
---|
13795 |
|
---|
13796 | "Category/Metric" together form the base metric name. A base metric is
|
---|
13797 | the smallest unit for which a sampling interval and the number of
|
---|
13798 | retained samples can be set. Only base metrics can be enabled and
|
---|
13799 | disabled. All sub-metrics are collected when their base metric is
|
---|
13800 | collected. Collected values for any set of sub-metrics can be queried
|
---|
13801 | with <link to="IPerformanceCollector::queryMetricsData" />.
|
---|
13802 |
|
---|
13803 | For example "CPU/Load/User:avg" metric name stands for the "CPU"
|
---|
13804 | category, "Load" metric, "User" submetric, "average" aggregate. An
|
---|
13805 | aggregate function is computed over all retained data. Valid aggregate
|
---|
13806 | functions are:
|
---|
13807 |
|
---|
13808 | <ul>
|
---|
13809 | <li>avg -- average</li>
|
---|
13810 | <li>min -- minimum</li>
|
---|
13811 | <li>max -- maximum</li>
|
---|
13812 | </ul>
|
---|
13813 |
|
---|
13814 | When setting up metric parameters, querying metric data, enabling or
|
---|
13815 | disabling metrics wildcards can be used in metric names to specify a
|
---|
13816 | subset of metrics. For example, to select all CPU-related metrics
|
---|
13817 | use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
|
---|
13818 | so on. To query metric values without aggregates <tt>*:</tt> can be used.
|
---|
13819 |
|
---|
13820 | The valid names for base metrics are:
|
---|
13821 |
|
---|
13822 | <ul>
|
---|
13823 | <li>CPU/Load</li>
|
---|
13824 | <li>CPU/MHz</li>
|
---|
13825 | <li>RAM/Usage</li>
|
---|
13826 | </ul>
|
---|
13827 |
|
---|
13828 | The general sequence for collecting and retrieving the metrics is:
|
---|
13829 | <ul>
|
---|
13830 | <li>
|
---|
13831 | Obtain an instance of IPerformanceCollector with
|
---|
13832 | <link to="IVirtualBox::performanceCollector" />
|
---|
13833 | </li>
|
---|
13834 | <li>
|
---|
13835 | Allocate and populate an array with references to objects the metrics
|
---|
13836 | will be collected for. Use references to IHost and IMachine objects.
|
---|
13837 | </li>
|
---|
13838 | <li>
|
---|
13839 | Allocate and populate an array with base metric names the data will
|
---|
13840 | be collected for.
|
---|
13841 | </li>
|
---|
13842 | <li>
|
---|
13843 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on
|
---|
13844 | the metric data will be collected and stored.
|
---|
13845 | </li>
|
---|
13846 | <li>
|
---|
13847 | Wait for the data to get collected.
|
---|
13848 | </li>
|
---|
13849 | <li>
|
---|
13850 | Allocate and populate an array with references to objects the metric
|
---|
13851 | values will be queried for. You can re-use the object array used for
|
---|
13852 | setting base metrics.
|
---|
13853 | </li>
|
---|
13854 | <li>
|
---|
13855 | Allocate and populate an array with metric names the data will be
|
---|
13856 | collected for. Note that metric names differ from base metric names.
|
---|
13857 | </li>
|
---|
13858 | <li>
|
---|
13859 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data
|
---|
13860 | that have been collected so far are returned. Note that the values
|
---|
13861 | are still retained internally and data collection continues.
|
---|
13862 | </li>
|
---|
13863 | </ul>
|
---|
13864 |
|
---|
13865 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
13866 | <ul>
|
---|
13867 | <li>
|
---|
13868 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
13869 | </li>
|
---|
13870 | <li>
|
---|
13871 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
13872 | </li>
|
---|
13873 | </ul>
|
---|
13874 | </desc>
|
---|
13875 |
|
---|
13876 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
13877 | <desc>
|
---|
13878 | Array of unique names of metrics.
|
---|
13879 |
|
---|
13880 | This array represents all metrics supported by the performance
|
---|
13881 | collector. Individual objects do not necessarily support all of them.
|
---|
13882 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
13883 | list of supported metrics for a particular object.
|
---|
13884 | </desc>
|
---|
13885 | </attribute>
|
---|
13886 |
|
---|
13887 | <method name="getMetrics">
|
---|
13888 | <desc>
|
---|
13889 | Returns parameters of specified metrics for a set of objects.
|
---|
13890 | <note>
|
---|
13891 | @c Null metrics array means all metrics. @c Null object array means
|
---|
13892 | all existing objects.
|
---|
13893 | </note>
|
---|
13894 | </desc>
|
---|
13895 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13896 | <desc>
|
---|
13897 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
13898 | is supported.
|
---|
13899 | </desc>
|
---|
13900 | </param>
|
---|
13901 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13902 | <desc>
|
---|
13903 | Set of objects to return metric parameters for.
|
---|
13904 | </desc>
|
---|
13905 | </param>
|
---|
13906 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13907 | <desc>
|
---|
13908 | Array of returned metric parameters.
|
---|
13909 | </desc>
|
---|
13910 | </param>
|
---|
13911 | </method>
|
---|
13912 |
|
---|
13913 | <method name="setupMetrics">
|
---|
13914 | <desc>
|
---|
13915 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
13916 | an array of <link to="IPerformanceMetric" /> describing the metrics
|
---|
13917 | have been affected.
|
---|
13918 | <note>
|
---|
13919 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
13920 | empty object array means all existing objects. If metric name array
|
---|
13921 | contains a single element and object array contains many, the single
|
---|
13922 | metric name array element is applied to each object array element to
|
---|
13923 | form metric/object pairs.
|
---|
13924 | </note>
|
---|
13925 | </desc>
|
---|
13926 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13927 | <desc>
|
---|
13928 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13929 | support.
|
---|
13930 | </desc>
|
---|
13931 | </param>
|
---|
13932 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13933 | <desc>
|
---|
13934 | Set of objects to setup metric parameters for.
|
---|
13935 | </desc>
|
---|
13936 | </param>
|
---|
13937 | <param name="period" type="unsigned long" dir="in">
|
---|
13938 | <desc>
|
---|
13939 | Time interval in seconds between two consecutive samples of
|
---|
13940 | performance data.
|
---|
13941 | </desc>
|
---|
13942 | </param>
|
---|
13943 | <param name="count" type="unsigned long" dir="in">
|
---|
13944 | <desc>
|
---|
13945 | Number of samples to retain in performance data history. Older
|
---|
13946 | samples get discarded.
|
---|
13947 | </desc>
|
---|
13948 | </param>
|
---|
13949 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13950 | <desc>
|
---|
13951 | Array of metrics that have been modified by the call to this method.
|
---|
13952 | </desc>
|
---|
13953 | </param>
|
---|
13954 | </method>
|
---|
13955 |
|
---|
13956 | <method name="enableMetrics">
|
---|
13957 | <desc>
|
---|
13958 | Turns on collecting specified base metrics. Returns an array of
|
---|
13959 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13960 | affected.
|
---|
13961 | <note>
|
---|
13962 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
13963 | empty object array means all existing objects. If metric name array
|
---|
13964 | contains a single element and object array contains many, the single
|
---|
13965 | metric name array element is applied to each object array element to
|
---|
13966 | form metric/object pairs.
|
---|
13967 | </note>
|
---|
13968 | </desc>
|
---|
13969 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13970 | <desc>
|
---|
13971 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13972 | support.
|
---|
13973 | </desc>
|
---|
13974 | </param>
|
---|
13975 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13976 | <desc>
|
---|
13977 | Set of objects to enable metrics for.
|
---|
13978 | </desc>
|
---|
13979 | </param>
|
---|
13980 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13981 | <desc>
|
---|
13982 | Array of metrics that have been modified by the call to this method.
|
---|
13983 | </desc>
|
---|
13984 | </param>
|
---|
13985 | </method>
|
---|
13986 |
|
---|
13987 | <method name="disableMetrics">
|
---|
13988 | <desc>
|
---|
13989 | Turns off collecting specified base metrics. Returns an array of
|
---|
13990 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13991 | affected.
|
---|
13992 | <note>
|
---|
13993 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
13994 | empty object array means all existing objects. If metric name array
|
---|
13995 | contains a single element and object array contains many, the single
|
---|
13996 | metric name array element is applied to each object array element to
|
---|
13997 | form metric/object pairs.
|
---|
13998 | </note>
|
---|
13999 | </desc>
|
---|
14000 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14001 | <desc>
|
---|
14002 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14003 | support.
|
---|
14004 | </desc>
|
---|
14005 | </param>
|
---|
14006 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14007 | <desc>
|
---|
14008 | Set of objects to disable metrics for.
|
---|
14009 | </desc>
|
---|
14010 | </param>
|
---|
14011 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
14012 | <desc>
|
---|
14013 | Array of metrics that have been modified by the call to this method.
|
---|
14014 | </desc>
|
---|
14015 | </param>
|
---|
14016 | </method>
|
---|
14017 |
|
---|
14018 | <method name="queryMetricsData">
|
---|
14019 | <desc>
|
---|
14020 | Queries collected metrics data for a set of objects.
|
---|
14021 |
|
---|
14022 | The data itself and related metric information are returned in seven
|
---|
14023 | parallel and one flattened array of arrays. Elements of
|
---|
14024 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
14025 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
14026 | the same index describe one set of values corresponding to a single
|
---|
14027 | metric.
|
---|
14028 |
|
---|
14029 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
14030 | start and length of a sub-array is indicated by
|
---|
14031 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
14032 | value for metric <tt>metricNames[i]</tt> is at
|
---|
14033 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
14034 |
|
---|
14035 | <note>
|
---|
14036 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
14037 | empty object array means all existing objects. If metric name array
|
---|
14038 | contains a single element and object array contains many, the single
|
---|
14039 | metric name array element is applied to each object array element to
|
---|
14040 | form metric/object pairs.
|
---|
14041 | </note>
|
---|
14042 | <note>
|
---|
14043 | Data collection continues behind the scenes after call to @c
|
---|
14044 | queryMetricsData. The return data can be seen as the snapshot of the
|
---|
14045 | current state at the time of @c queryMetricsData call. The internally
|
---|
14046 | kept metric values are not cleared by the call. This makes possible
|
---|
14047 | querying different subsets of metrics or aggregates with subsequent
|
---|
14048 | calls. If periodic querying is needed it is highly suggested to query
|
---|
14049 | the values with @c interval*count period to avoid confusion. This way
|
---|
14050 | a completely new set of data values will be provided by each query.
|
---|
14051 | </note>
|
---|
14052 | </desc>
|
---|
14053 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14054 | <desc>
|
---|
14055 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14056 | support.
|
---|
14057 | </desc>
|
---|
14058 | </param>
|
---|
14059 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14060 | <desc>
|
---|
14061 | Set of objects to query metrics for.
|
---|
14062 | </desc>
|
---|
14063 | </param>
|
---|
14064 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
14065 | <desc>
|
---|
14066 | Names of metrics returned in @c returnData.
|
---|
14067 | </desc>
|
---|
14068 | </param>
|
---|
14069 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
14070 | <desc>
|
---|
14071 | Objects associated with metrics returned in @c returnData.
|
---|
14072 | </desc>
|
---|
14073 | </param>
|
---|
14074 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
14075 | <desc>
|
---|
14076 | Units of measurement for each returned metric.
|
---|
14077 | </desc>
|
---|
14078 | </param>
|
---|
14079 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
14080 | <desc>
|
---|
14081 | Divisor that should be applied to return values in order to get
|
---|
14082 | floating point values. For example:
|
---|
14083 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
14084 | will retrieve the floating point value of i-th sample of the first
|
---|
14085 | metric.
|
---|
14086 | </desc>
|
---|
14087 | </param>
|
---|
14088 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
14089 | <desc>
|
---|
14090 | Sequence numbers of the first elements of value sequences of
|
---|
14091 | particular metrics returned in @c returnData. For aggregate metrics
|
---|
14092 | it is the sequence number of the sample the aggregate started
|
---|
14093 | calculation from.
|
---|
14094 | </desc>
|
---|
14095 | </param>
|
---|
14096 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
14097 | <desc>
|
---|
14098 | Indices of the first elements of value sequences of particular
|
---|
14099 | metrics returned in @c returnData.
|
---|
14100 | </desc>
|
---|
14101 | </param>
|
---|
14102 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
14103 | <desc>
|
---|
14104 | Lengths of value sequences of particular metrics.
|
---|
14105 | </desc>
|
---|
14106 | </param>
|
---|
14107 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
14108 | <desc>
|
---|
14109 | Flattened array of all metric data containing sequences of values for
|
---|
14110 | each metric.
|
---|
14111 | </desc>
|
---|
14112 | </param>
|
---|
14113 | </method>
|
---|
14114 |
|
---|
14115 | </interface>
|
---|
14116 |
|
---|
14117 | <enum
|
---|
14118 | name="NATProtocol"
|
---|
14119 | uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
|
---|
14120 | >
|
---|
14121 | <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
|
---|
14122 | <const name="UDP" value="0">
|
---|
14123 | <desc>Port-forwarding uses UDP protocol.</desc>
|
---|
14124 | </const>
|
---|
14125 | <const name="TCP" value="1">
|
---|
14126 | <desc>Port-forwarding uses TCP protocol.</desc>
|
---|
14127 | </const>
|
---|
14128 | </enum>
|
---|
14129 |
|
---|
14130 | <interface
|
---|
14131 | name="INATEngine" extends="$unknown"
|
---|
14132 | uuid="4b286616-eb03-11de-b0fb-1701eca42246"
|
---|
14133 | wsmap="managed"
|
---|
14134 | >
|
---|
14135 | <desc>Interface for managing a NAT engine which is used with a virtual machine. This
|
---|
14136 | allows for changing NAT behavior such as port-forwarding rules. This interface is
|
---|
14137 | used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
|
---|
14138 | <attribute name="network" type="wstring">
|
---|
14139 | <desc>The network attribute of the NAT engine (the same value is used with built-in
|
---|
14140 | DHCP server to fill corresponding fields of DHCP leases).</desc>
|
---|
14141 | </attribute>
|
---|
14142 | <attribute name="hostIP" type="wstring">
|
---|
14143 | <desc>IP of host interface to bind all opened sockets to.
|
---|
14144 | <note>Changing this does not change binding of port forwarding.</note>
|
---|
14145 | </desc>
|
---|
14146 | </attribute>
|
---|
14147 | <attribute name="tftpPrefix" type="wstring">
|
---|
14148 | <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
|
---|
14149 | the corresponding fields of DHCP leases.</desc>
|
---|
14150 | </attribute>
|
---|
14151 | <attribute name="tftpBootFile" type="wstring">
|
---|
14152 | <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
|
---|
14153 | the corresponding fields of DHCP leases.</desc>
|
---|
14154 | </attribute>
|
---|
14155 | <attribute name="tftpNextServer" type="wstring">
|
---|
14156 | <desc>TFTP server attribute which is used with the built-in DHCP server to fill
|
---|
14157 | the corresponding fields of DHCP leases.
|
---|
14158 | <note>The preferred form is IPv4 addresses.</note>
|
---|
14159 | </desc>
|
---|
14160 | </attribute>
|
---|
14161 | <attribute name="dnsPassDomain" type="boolean">
|
---|
14162 | <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
|
---|
14163 | </attribute>
|
---|
14164 | <attribute name="dnsProxy" type="boolean">
|
---|
14165 | <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
|
---|
14166 | of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
|
---|
14167 | </attribute>
|
---|
14168 | <attribute name="dnsUseHostResolver" type="boolean">
|
---|
14169 | <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
|
---|
14170 | of the DNS proxy and process traffic using the host resolver mechanism.</desc>
|
---|
14171 | </attribute>
|
---|
14172 | <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
|
---|
14173 | <desc>Array of NAT port-forwarding rules in string representation, in the following
|
---|
14174 | format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
|
---|
14175 | </attribute>
|
---|
14176 | <method name="setNetworkSettings">
|
---|
14177 | <desc>Sets network configuration of the NAT engine.</desc>
|
---|
14178 | <param name="mtu" type="unsigned long" dir="in">
|
---|
14179 | <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
|
---|
14180 | </param>
|
---|
14181 | <param name="sockSnd" type="unsigned long" dir="in">
|
---|
14182 | <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
|
---|
14183 | </param>
|
---|
14184 | <param name="sockRcv" type="unsigned long" dir="in">
|
---|
14185 | <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
|
---|
14186 | </param>
|
---|
14187 | <param name="TcpWndSnd" type="unsigned long" dir="in">
|
---|
14188 | <desc>Initial size of the NAT engine's sending TCP window in bytes when
|
---|
14189 | establishing a new TCP connection.</desc>
|
---|
14190 | </param>
|
---|
14191 | <param name="TcpWndRcv" type="unsigned long" dir="in">
|
---|
14192 | <desc>Initial size of the NAT engine's receiving TCP window in bytes when
|
---|
14193 | establishing a new TCP connection.</desc>
|
---|
14194 | </param>
|
---|
14195 | </method>
|
---|
14196 | <method name="getNetworkSettings">
|
---|
14197 | <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
|
---|
14198 | for parameter descriptions.</desc>
|
---|
14199 | <param name="mtu" type="unsigned long" dir="out" />
|
---|
14200 | <param name="sockSnd" type="unsigned long" dir="out" />
|
---|
14201 | <param name="sockRcv" type="unsigned long" dir="out" />
|
---|
14202 | <param name="TcpWndSnd" type="unsigned long" dir="out" />
|
---|
14203 | <param name="TcpWndRcv" type="unsigned long" dir="out" />
|
---|
14204 | </method>
|
---|
14205 | <method name="addRedirect">
|
---|
14206 | <desc>Adds a new NAT port-forwarding rule.</desc>
|
---|
14207 | <param name="name" type="wstring" dir="in">
|
---|
14208 | <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
|
---|
14209 | auto-generates one using the other parameters.</desc>
|
---|
14210 | </param>
|
---|
14211 | <param name="proto" type="NATProtocol" dir="in">
|
---|
14212 | <desc>Protocol handled with the rule.</desc>
|
---|
14213 | </param>
|
---|
14214 | <param name="hostIp" type="wstring" dir="in">
|
---|
14215 | <desc>IP of the host interface to which the rule should apply. An empty ip address is
|
---|
14216 | acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
|
---|
14217 | </param>
|
---|
14218 | <param name="hostPort" type="unsigned short" dir="in">
|
---|
14219 | <desc>The port number to listen on.</desc>
|
---|
14220 | </param>
|
---|
14221 | <param name="guestIp" type="wstring" dir="in">
|
---|
14222 | <desc>The IP address of the guest which the NAT engine will forward matching packets
|
---|
14223 | to. An empty IP address is acceptable, in which case the NAT engine will forward
|
---|
14224 | packets to the first DHCP lease (x.x.x.15).</desc>
|
---|
14225 | </param>
|
---|
14226 | <param name="guestPort" type="unsigned short" dir="in">
|
---|
14227 | <desc>The port number to forward.</desc>
|
---|
14228 | </param>
|
---|
14229 | </method>
|
---|
14230 | <method name="removeRedirect">
|
---|
14231 | <desc>Removes a port-forwarding rule that was previously registered.</desc>
|
---|
14232 | <param name="name" type="wstring" dir="in">
|
---|
14233 | <desc>The name of the rule to delete.</desc>
|
---|
14234 | </param>
|
---|
14235 | </method>
|
---|
14236 | </interface>
|
---|
14237 |
|
---|
14238 | <module name="VBoxSVC" context="LocalServer">
|
---|
14239 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
14240 | namespace="virtualbox.org">
|
---|
14241 | <interface name="IVirtualBox" default="yes"/>
|
---|
14242 | </class>
|
---|
14243 | </module>
|
---|
14244 |
|
---|
14245 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
14246 | <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
|
---|
14247 | namespace="virtualbox.org">
|
---|
14248 | <interface name="ISession" default="yes"/>
|
---|
14249 | </class>
|
---|
14250 | <class name="CallbackWrapper" uuid="49EE8561-5563-4715-B18C-A4B1A490DAFE"
|
---|
14251 | namespace="virtualbox.org">
|
---|
14252 | <interface name="ILocalOwner" default="yes"/>
|
---|
14253 | <interface name="IVirtualBoxCallback"/>
|
---|
14254 | <interface name="IConsoleCallback"/>
|
---|
14255 | </class>
|
---|
14256 | </module>
|
---|
14257 |
|
---|
14258 | </library>
|
---|
14259 |
|
---|
14260 | </idl>
|
---|
14261 |
|
---|
14262 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|