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-2009 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="Future" value="12">
|
---|
457 | <desc>Settings version greater than "1.9", written by a future VirtualBox version.</desc>
|
---|
458 | </const>
|
---|
459 | </enum>
|
---|
460 |
|
---|
461 | <enum
|
---|
462 | name="AccessMode"
|
---|
463 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
464 | >
|
---|
465 | <desc>
|
---|
466 | Access mode for opening files.
|
---|
467 | </desc>
|
---|
468 |
|
---|
469 | <const name="ReadOnly" value="1"/>
|
---|
470 | <const name="ReadWrite" value="2"/>
|
---|
471 | </enum>
|
---|
472 |
|
---|
473 | <enum
|
---|
474 | name="MachineState"
|
---|
475 | uuid="36518cf6-cdf0-4d0d-ad2a-5ee9c60c7494"
|
---|
476 | >
|
---|
477 | <desc>
|
---|
478 | Virtual machine execution state.
|
---|
479 |
|
---|
480 | This enumeration represents possible values of the <link
|
---|
481 | to="IMachine::state"/> attribute.
|
---|
482 |
|
---|
483 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
484 | changes during virtual machine execution. The text in square braces shows
|
---|
485 | a method of the IConsole interface that performs the given state
|
---|
486 | transition.
|
---|
487 |
|
---|
488 | <pre>
|
---|
489 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
490 | V |
|
---|
491 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
492 | | | | | V |
|
---|
493 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
494 | | | ^ | ^ |
|
---|
495 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
496 | | ^ | | | |
|
---|
497 | | | +-----------------------------------------+-|-------------------+ +
|
---|
498 | | | | | |
|
---|
499 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
500 | | | | |
|
---|
501 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
502 | | | |
|
---|
503 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
504 | </pre>
|
---|
505 |
|
---|
506 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
507 | above diagram are called <i>online VM states</i>. These states
|
---|
508 | represent the virtual machine which is being executed in a dedicated
|
---|
509 | process (usually with a GUI window attached to it where you can see the
|
---|
510 | activity of the virtual machine and interact with it). There are two
|
---|
511 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
512 | relational expressions to detect if the given machine state is online or
|
---|
513 | not:
|
---|
514 |
|
---|
515 | <pre>
|
---|
516 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
517 | machine.GetState() <= MachineState_LastOnline)
|
---|
518 | {
|
---|
519 | ...the machine is being executed...
|
---|
520 | }
|
---|
521 | </pre>
|
---|
522 |
|
---|
523 | When the virtual machine is in one of the online VM states (that is, being
|
---|
524 | executed), only a few machine settings can be modified. Methods working
|
---|
525 | with such settings contain an explicit note about that. An attempt to
|
---|
526 | change any oter setting or perform a modifying operation during this time
|
---|
527 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
528 |
|
---|
529 | All online states except Running, Paused and Stuck are transitional: they
|
---|
530 | represent temporary conditions of the virtual machine that will last as
|
---|
531 | long as the operation that initiated such a condition.
|
---|
532 |
|
---|
533 | The Stuck state is a special case. It means that execution of the machine
|
---|
534 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
535 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
536 | result of either an unhandled low-level virtual hardware exception or one
|
---|
537 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
538 | condition).
|
---|
539 |
|
---|
540 | Note also that any online VM state may transit to the Aborted state. This
|
---|
541 | happens if the process that is executing the virtual machine terminates
|
---|
542 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
543 | equivalent to PoweredOff.
|
---|
544 |
|
---|
545 | There are also a few additional state diagrams that do not deal with
|
---|
546 | virtual machine execution and therefore are shown separately. The states
|
---|
547 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
548 | PoweredOff, Aborted and Saved too).
|
---|
549 |
|
---|
550 | The first diagram shows what happens when a lengthy setup operation is
|
---|
551 | being executed (such as <link to="IMachine::attachDevice"/>).
|
---|
552 |
|
---|
553 | <pre>
|
---|
554 | +----------------------------------(same state as before the call)------+
|
---|
555 | | |
|
---|
556 | +-> PoweredOff --+ |
|
---|
557 | | | |
|
---|
558 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
559 | | |
|
---|
560 | +-> Saved -------+
|
---|
561 | </pre>
|
---|
562 |
|
---|
563 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
564 | powered off virtual machine and performing one of the "discard..."
|
---|
565 | operations, respectively.
|
---|
566 |
|
---|
567 | <pre>
|
---|
568 | +----------------------------------(same state as before the call)------+
|
---|
569 | | |
|
---|
570 | +-> PoweredOff --+ |
|
---|
571 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
572 | +-> Aborted -----+
|
---|
573 |
|
---|
574 | +-> PoweredOff --+
|
---|
575 | | |
|
---|
576 | | Aborted -----+-->[restoreSnapshot() ]-------> RestoringSnapshot -+
|
---|
577 | | | [deleteSnapshot() ]-------> DeletingSnapshot --+
|
---|
578 | +-> Saved -------+ |
|
---|
579 | | |
|
---|
580 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
581 | </pre>
|
---|
582 |
|
---|
583 | Note that the Saving state is present in both the offline state group and
|
---|
584 | online state group. Currently, the only way to determine what group is
|
---|
585 | assumed in a particular case is to remember the previous machine state: if
|
---|
586 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
587 | an offline state. This inconsistency may be removed in one of the future
|
---|
588 | versions of VirtualBox by adding a new state.
|
---|
589 |
|
---|
590 | <note internal="yes">
|
---|
591 | For whoever decides to touch this enum: In order to keep the
|
---|
592 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
593 | the numeric values of these states must be correspondingly updated if
|
---|
594 | needed: for any online VM state, the condition
|
---|
595 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
596 | @c true. The same relates to transient states for which
|
---|
597 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
598 | @c true.
|
---|
599 | </note>
|
---|
600 | </desc>
|
---|
601 |
|
---|
602 | <const name="Null" value="0">
|
---|
603 | <desc>Null value (never used by the API).</desc>
|
---|
604 | </const>
|
---|
605 | <const name="PoweredOff" value="1">
|
---|
606 | <desc>
|
---|
607 | The machine is not running and has no saved execution state; it has
|
---|
608 | either never been started or been shut down successfully.
|
---|
609 | </desc>
|
---|
610 | </const>
|
---|
611 | <const name="Saved" value="2">
|
---|
612 | <desc>
|
---|
613 | The machine is not currently running, but the execution state of the machine
|
---|
614 | has been saved to an external file when it was running, from where
|
---|
615 | it can be resumed.
|
---|
616 | </desc>
|
---|
617 | </const>
|
---|
618 | <const name="Teleported" value="3">
|
---|
619 | <desc>
|
---|
620 | The machine was teleported to a different host (or process) and then
|
---|
621 | powered off. Take care when powering it on again may corrupt resources
|
---|
622 | it shares with the teleportation target (e.g. disk and network).
|
---|
623 | </desc>
|
---|
624 | </const>
|
---|
625 | <const name="Aborted" value="4">
|
---|
626 | <desc>
|
---|
627 | The process running the machine has terminated abnormally. This may
|
---|
628 | indicate a crash of the VM process in host execution context, or
|
---|
629 | the VM process has been terminated externally.
|
---|
630 | </desc>
|
---|
631 | </const>
|
---|
632 | <const name="Running" value="5">
|
---|
633 | <desc>
|
---|
634 | The machine is currently being executed.
|
---|
635 | <note internal="yes">
|
---|
636 | For whoever decides to touch this enum: In order to keep the
|
---|
637 | comparisons in the old source code valid, this state must immediately
|
---|
638 | precede the Paused state.
|
---|
639 | TODO: Lift this spectacularly wonderful restriction.
|
---|
640 | </note>
|
---|
641 | </desc>
|
---|
642 | </const>
|
---|
643 | <const name="Paused" value="6">
|
---|
644 | <desc>
|
---|
645 | Execution of the machine has been paused.
|
---|
646 | <note internal="yes">
|
---|
647 | For whoever decides to touch this enum: In order to keep the
|
---|
648 | comparisons in the old source code valid, this state must immediately
|
---|
649 | follow the Running state.
|
---|
650 | TODO: Lift this spectacularly wonderful restriction.
|
---|
651 | </note>
|
---|
652 | </desc>
|
---|
653 | </const>
|
---|
654 | <const name="Stuck" value="7">
|
---|
655 | <desc>
|
---|
656 | Execution of the machine has reached the "Guru Meditation"
|
---|
657 | condition. This indicates a severe error in the hypervisor itself.
|
---|
658 | <note internal="yes">
|
---|
659 | bird: Why this uncool name? Could we rename it to "GuruMeditation" or
|
---|
660 | "Guru", perhaps? Or are there some other VMM states that are
|
---|
661 | intended to be lumped in here as well?
|
---|
662 | </note>
|
---|
663 | </desc>
|
---|
664 | </const>
|
---|
665 | <const name="Teleporting" value="8">
|
---|
666 | <desc>
|
---|
667 | The machine is about to be teleported to a different host or process.
|
---|
668 | It is possible to pause a machine in this state, but it will go to the
|
---|
669 | <link to="MachineState::PausedTeleporting"/> state and it will not be
|
---|
670 | possible to resume it again unless the teleportation fails.
|
---|
671 | </desc>
|
---|
672 | </const>
|
---|
673 | <const name="LiveSnapshotting" value="9">
|
---|
674 | <desc>
|
---|
675 | A live snapshot is being taken. The machine is running normally, but
|
---|
676 | some of the runtime configuration options are inaccessible. Also, if
|
---|
677 | paused while in this state it will transition to
|
---|
678 | <link to="MachineState::Saving"/> and it will not be resume the
|
---|
679 | execution until the snapshot operation has completed.
|
---|
680 | </desc>
|
---|
681 | </const>
|
---|
682 | <const name="Starting" value="10">
|
---|
683 | <desc>
|
---|
684 | Machine is being started after powering it on from a
|
---|
685 | zero execution state.
|
---|
686 | </desc>
|
---|
687 | </const>
|
---|
688 | <const name="Stopping" value="11">
|
---|
689 | <desc>
|
---|
690 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
691 | has initiated a shutdown sequence.
|
---|
692 | </desc>
|
---|
693 | </const>
|
---|
694 | <const name="Saving" value="12">
|
---|
695 | <desc>
|
---|
696 | Machine is saving its execution state to a file, or an online
|
---|
697 | snapshot of the machine is being taken.
|
---|
698 | </desc>
|
---|
699 | </const>
|
---|
700 | <const name="Restoring" value="13">
|
---|
701 | <desc>
|
---|
702 | Execution state of the machine is being restored from a file
|
---|
703 | after powering it on from the saved execution state.
|
---|
704 | </desc>
|
---|
705 | </const>
|
---|
706 | <const name="TeleportingPausedVM" value="14">
|
---|
707 | <desc>
|
---|
708 | The machine is being teleported to another host or process, but it is
|
---|
709 | not running. This is the paused variant of the
|
---|
710 | <link to="MachineState::Teleporting"/> state.
|
---|
711 | </desc>
|
---|
712 | </const>
|
---|
713 | <const name="TeleportingIn" value="15">
|
---|
714 | <desc>
|
---|
715 | Teleporting the machine state in from another host or process.
|
---|
716 | </desc>
|
---|
717 | </const>
|
---|
718 | <const name="RestoringSnapshot" value="16">
|
---|
719 | <desc>
|
---|
720 | A machine snapshot is being restored; this typically does not take long.
|
---|
721 | </desc>
|
---|
722 | </const>
|
---|
723 | <const name="DeletingSnapshot" value="17">
|
---|
724 | <desc>
|
---|
725 | A machine snapshot is being deleted; this can take a long time since this
|
---|
726 | may require merging differencing media.
|
---|
727 | </desc>
|
---|
728 | </const>
|
---|
729 | <const name="SettingUp" value="18">
|
---|
730 | <desc>
|
---|
731 | Lengthy setup operation is in progress.
|
---|
732 | </desc>
|
---|
733 | </const>
|
---|
734 |
|
---|
735 | <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
|
---|
736 | <desc>
|
---|
737 | Pseudo-state: first online state (for use in relational expressions).
|
---|
738 | </desc>
|
---|
739 | </const>
|
---|
740 | <const name="LastOnline" value="13" wsmap="suppress"> <!-- TeleportingIn -->
|
---|
741 | <desc>
|
---|
742 | Pseudo-state: last online state (for use in relational expressions).
|
---|
743 | </desc>
|
---|
744 | </const>
|
---|
745 |
|
---|
746 | <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
|
---|
747 | <desc>
|
---|
748 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
749 | </desc>
|
---|
750 | </const>
|
---|
751 | <const name="LastTransient" value="18" wsmap="suppress"> <!-- SettingUp -->
|
---|
752 | <desc>
|
---|
753 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
754 | </desc>
|
---|
755 | </const>
|
---|
756 |
|
---|
757 | </enum>
|
---|
758 |
|
---|
759 | <enum
|
---|
760 | name="SessionState"
|
---|
761 | uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
|
---|
762 | >
|
---|
763 | <desc>
|
---|
764 | Session state. This enumeration represents possible values of
|
---|
765 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
766 | attributes. See individual enumerator descriptions for the meaning for
|
---|
767 | every value.
|
---|
768 | </desc>
|
---|
769 |
|
---|
770 | <const name="Null" value="0">
|
---|
771 | <desc>Null value (never used by the API).</desc>
|
---|
772 | </const>
|
---|
773 | <const name="Closed" value="1">
|
---|
774 | <desc>
|
---|
775 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
776 | the session is closed (<link to="ISession::state"/>)
|
---|
777 | </desc>
|
---|
778 | </const>
|
---|
779 | <const name="Open" value="2">
|
---|
780 | <desc>
|
---|
781 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
782 | the session is open (<link to="ISession::state"/>)
|
---|
783 | </desc>
|
---|
784 | </const>
|
---|
785 | <const name="Spawning" value="3">
|
---|
786 | <desc>
|
---|
787 | A new (direct) session is being opened for the machine as a result of
|
---|
788 | <link to="IVirtualBox::openRemoteSession"/> call
|
---|
789 | (<link to="IMachine::sessionState"/> or <link to="ISession::state"/>).
|
---|
790 | This state also occurs as a short transient state when a new direct
|
---|
791 | session is opened by calling <link to="IVirtualBox::openSession"/>.
|
---|
792 | </desc>
|
---|
793 | </const>
|
---|
794 | <const name="Closing" value="4">
|
---|
795 | <desc>
|
---|
796 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
797 | the session is being closed (<link to="ISession::state"/>)
|
---|
798 | </desc>
|
---|
799 | </const>
|
---|
800 | </enum>
|
---|
801 |
|
---|
802 | <enum
|
---|
803 | name="CpuPropertyType"
|
---|
804 | uuid="af7bb668-eeb1-4404-b77f-a114b30c92d6"
|
---|
805 | >
|
---|
806 | <desc>
|
---|
807 | Virtual CPU property type. This enumeration represents possible values of the
|
---|
808 | IMachine get- and setCpuProperty methods.
|
---|
809 | </desc>
|
---|
810 | <const name="Null" value="0">
|
---|
811 | <desc>Null value (never used by the API).</desc>
|
---|
812 | </const>
|
---|
813 | <const name="PAE" value="1">
|
---|
814 | <desc>
|
---|
815 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
816 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
817 | is not available, it will not be reported.
|
---|
818 | </desc>
|
---|
819 | </const>
|
---|
820 | <const name="Synthetic" value="2">
|
---|
821 | <desc>
|
---|
822 | This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
|
---|
823 | teleporting between host systems that differ significantly.
|
---|
824 | </desc>
|
---|
825 | </const>
|
---|
826 | </enum>
|
---|
827 |
|
---|
828 |
|
---|
829 | <enum
|
---|
830 | name="HWVirtExPropertyType"
|
---|
831 | uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
|
---|
832 | >
|
---|
833 | <desc>
|
---|
834 | Hardware virtualization property type. This enumeration represents possible values
|
---|
835 | for the <link to="IMachine::getHWVirtExProperty"/> and
|
---|
836 | <link to="IMachine::setHWVirtExProperty"/> methods.
|
---|
837 | </desc>
|
---|
838 | <const name="Null" value="0">
|
---|
839 | <desc>Null value (never used by the API).</desc>
|
---|
840 | </const>
|
---|
841 | <const name="Enabled" value="1">
|
---|
842 | <desc>
|
---|
843 | Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
|
---|
844 | such extensions are not available, they will not be used.
|
---|
845 | </desc>
|
---|
846 | </const>
|
---|
847 | <const name="Exclusive" value="2">
|
---|
848 | <desc>
|
---|
849 | Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
|
---|
850 | VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
|
---|
851 | feature of the host. To share these with other hypervisors, you must disable this property.
|
---|
852 | </desc>
|
---|
853 | </const>
|
---|
854 | <const name="VPID" value="3">
|
---|
855 | <desc>
|
---|
856 | Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
|
---|
857 | </desc>
|
---|
858 | </const>
|
---|
859 | <const name="NestedPaging" value="4">
|
---|
860 | <desc>
|
---|
861 | Whether Nested Paging is enabled. If this extension is not available, it will not be used.
|
---|
862 | </desc>
|
---|
863 | </const>
|
---|
864 | </enum>
|
---|
865 |
|
---|
866 | <enum
|
---|
867 | name="SessionType"
|
---|
868 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
869 | >
|
---|
870 | <desc>
|
---|
871 | Session type. This enumeration represents possible values of the
|
---|
872 | <link to="ISession::type"/> attribute.
|
---|
873 | </desc>
|
---|
874 |
|
---|
875 | <const name="Null" value="0">
|
---|
876 | <desc>Null value (never used by the API).</desc>
|
---|
877 | </const>
|
---|
878 | <const name="Direct" value="1">
|
---|
879 | <desc>
|
---|
880 | Direct session
|
---|
881 | (opened by <link to="IVirtualBox::openSession"/>)
|
---|
882 | </desc>
|
---|
883 | </const>
|
---|
884 | <const name="Remote" value="2">
|
---|
885 | <desc>
|
---|
886 | Remote session
|
---|
887 | (opened by <link to="IVirtualBox::openRemoteSession"/>)
|
---|
888 | </desc>
|
---|
889 | </const>
|
---|
890 | <const name="Existing" value="3">
|
---|
891 | <desc>
|
---|
892 | Existing session
|
---|
893 | (opened by <link to="IVirtualBox::openExistingSession"/>)
|
---|
894 | </desc>
|
---|
895 | </const>
|
---|
896 | </enum>
|
---|
897 |
|
---|
898 | <enum
|
---|
899 | name="DeviceType"
|
---|
900 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
901 | >
|
---|
902 | <desc>
|
---|
903 | Device type.
|
---|
904 | </desc>
|
---|
905 | <const name="Null" value="0">
|
---|
906 | <desc>
|
---|
907 | Null value, may also mean "no device" (not allowed for
|
---|
908 | <link to="IConsole::getDeviceActivity"/>).
|
---|
909 | </desc>
|
---|
910 | </const>
|
---|
911 | <const name="Floppy" value="1">
|
---|
912 | <desc>Floppy device.</desc>
|
---|
913 | </const>
|
---|
914 | <const name="DVD" value="2">
|
---|
915 | <desc>CD/DVD-ROM device.</desc>
|
---|
916 | </const>
|
---|
917 | <const name="HardDisk" value="3">
|
---|
918 | <desc>Hard disk device.</desc>
|
---|
919 | </const>
|
---|
920 | <const name="Network" value="4">
|
---|
921 | <desc>Network device.</desc>
|
---|
922 | </const>
|
---|
923 | <const name="USB" value="5">
|
---|
924 | <desc>USB device.</desc>
|
---|
925 | </const>
|
---|
926 | <const name="SharedFolder" value="6">
|
---|
927 | <desc>Shared folder device.</desc>
|
---|
928 | </const>
|
---|
929 | </enum>
|
---|
930 |
|
---|
931 | <enum
|
---|
932 | name="DeviceActivity"
|
---|
933 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
934 | >
|
---|
935 | <desc>
|
---|
936 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
937 | </desc>
|
---|
938 |
|
---|
939 | <const name="Null" value="0"/>
|
---|
940 | <const name="Idle" value="1"/>
|
---|
941 | <const name="Reading" value="2"/>
|
---|
942 | <const name="Writing" value="3"/>
|
---|
943 | </enum>
|
---|
944 |
|
---|
945 | <enum
|
---|
946 | name="ClipboardMode"
|
---|
947 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
948 | >
|
---|
949 | <desc>
|
---|
950 | Host-Guest clipboard interchange mode.
|
---|
951 | </desc>
|
---|
952 |
|
---|
953 | <const name="Disabled" value="0"/>
|
---|
954 | <const name="HostToGuest" value="1"/>
|
---|
955 | <const name="GuestToHost" value="2"/>
|
---|
956 | <const name="Bidirectional" value="3"/>
|
---|
957 | </enum>
|
---|
958 |
|
---|
959 | <enum
|
---|
960 | name="Scope"
|
---|
961 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
962 | >
|
---|
963 | <desc>
|
---|
964 | Scope of the operation.
|
---|
965 |
|
---|
966 | A generic enumeration used in various methods to define the action or
|
---|
967 | argument scope.
|
---|
968 | </desc>
|
---|
969 |
|
---|
970 | <const name="Global" value="0"/>
|
---|
971 | <const name="Machine" value="1"/>
|
---|
972 | <const name="Session" value="2"/>
|
---|
973 | </enum>
|
---|
974 |
|
---|
975 | <enum
|
---|
976 | name="GuestStatisticType"
|
---|
977 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
978 | >
|
---|
979 | <desc>
|
---|
980 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
981 | </desc>
|
---|
982 |
|
---|
983 | <const name="CPULoad_Idle" value="0">
|
---|
984 | <desc>
|
---|
985 | Idle CPU load (0-100%) for last interval.
|
---|
986 | </desc>
|
---|
987 | </const>
|
---|
988 | <const name="CPULoad_Kernel" value="1">
|
---|
989 | <desc>
|
---|
990 | Kernel CPU load (0-100%) for last interval.
|
---|
991 | </desc>
|
---|
992 | </const>
|
---|
993 | <const name="CPULoad_User" value="2">
|
---|
994 | <desc>
|
---|
995 | User CPU load (0-100%) for last interval.
|
---|
996 | </desc>
|
---|
997 | </const>
|
---|
998 | <const name="Threads" value="3">
|
---|
999 | <desc>
|
---|
1000 | Total number of threads in the system.
|
---|
1001 | </desc>
|
---|
1002 | </const>
|
---|
1003 | <const name="Processes" value="4">
|
---|
1004 | <desc>
|
---|
1005 | Total number of processes in the system.
|
---|
1006 | </desc>
|
---|
1007 | </const>
|
---|
1008 | <const name="Handles" value="5">
|
---|
1009 | <desc>
|
---|
1010 | Total number of handles in the system.
|
---|
1011 | </desc>
|
---|
1012 | </const>
|
---|
1013 | <const name="MemoryLoad" value="6">
|
---|
1014 | <desc>
|
---|
1015 | Memory load (0-100%).
|
---|
1016 | </desc>
|
---|
1017 | </const>
|
---|
1018 | <const name="PhysMemTotal" value="7">
|
---|
1019 | <desc>
|
---|
1020 | Total physical memory in megabytes.
|
---|
1021 | </desc>
|
---|
1022 | </const>
|
---|
1023 | <const name="PhysMemAvailable" value="8">
|
---|
1024 | <desc>
|
---|
1025 | Free physical memory in megabytes.
|
---|
1026 | </desc>
|
---|
1027 | </const>
|
---|
1028 | <const name="PhysMemBalloon" value="9">
|
---|
1029 | <desc>
|
---|
1030 | Ballooned physical memory in megabytes.
|
---|
1031 | </desc>
|
---|
1032 | </const>
|
---|
1033 | <const name="MemCommitTotal" value="10">
|
---|
1034 | <desc>
|
---|
1035 | Total amount of memory in the committed state in megabytes.
|
---|
1036 | </desc>
|
---|
1037 | </const>
|
---|
1038 | <const name="MemKernelTotal" value="11">
|
---|
1039 | <desc>
|
---|
1040 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
1041 | </desc>
|
---|
1042 | </const>
|
---|
1043 | <const name="MemKernelPaged" value="12">
|
---|
1044 | <desc>
|
---|
1045 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
1046 | </desc>
|
---|
1047 | </const>
|
---|
1048 | <const name="MemKernelNonpaged" value="13">
|
---|
1049 | <desc>
|
---|
1050 | Total amount of non-paged memory used by the guest OS's kernel in megabytes.
|
---|
1051 | </desc>
|
---|
1052 | </const>
|
---|
1053 | <const name="MemSystemCache" value="14">
|
---|
1054 | <desc>
|
---|
1055 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
1056 | </desc>
|
---|
1057 | </const>
|
---|
1058 | <const name="PageFileSize" value="15">
|
---|
1059 | <desc>
|
---|
1060 | Pagefile size in megabytes.
|
---|
1061 | </desc>
|
---|
1062 | </const>
|
---|
1063 | <const name="SampleNumber" value="16">
|
---|
1064 | <desc>
|
---|
1065 | Statistics sample number
|
---|
1066 | </desc>
|
---|
1067 | </const>
|
---|
1068 | <const name="MaxVal" value="17"/>
|
---|
1069 | </enum>
|
---|
1070 |
|
---|
1071 | <enum
|
---|
1072 | name="BIOSBootMenuMode"
|
---|
1073 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
1074 | >
|
---|
1075 | <desc>
|
---|
1076 | BIOS boot menu mode.
|
---|
1077 | </desc>
|
---|
1078 |
|
---|
1079 | <const name="Disabled" value="0"/>
|
---|
1080 | <const name="MenuOnly" value="1"/>
|
---|
1081 | <const name="MessageAndMenu" value="2"/>
|
---|
1082 | </enum>
|
---|
1083 |
|
---|
1084 | <enum
|
---|
1085 | name="ProcessorFeature"
|
---|
1086 | uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
|
---|
1087 | >
|
---|
1088 | <desc>
|
---|
1089 | CPU features.
|
---|
1090 | </desc>
|
---|
1091 |
|
---|
1092 | <const name="HWVirtEx" value="0"/>
|
---|
1093 | <const name="PAE" value="1"/>
|
---|
1094 | <const name="LongMode" value="2"/>
|
---|
1095 | <const name="NestedPaging" value="3"/>
|
---|
1096 | </enum>
|
---|
1097 |
|
---|
1098 | <enum
|
---|
1099 | name="FirmwareType"
|
---|
1100 | uuid="b903f264-c230-483e-ac74-2b37ce60d371"
|
---|
1101 | >
|
---|
1102 | <desc>
|
---|
1103 | Firmware type.
|
---|
1104 | </desc>
|
---|
1105 | <const name="BIOS" value="1">
|
---|
1106 | <desc>BIOS Firmware.</desc>
|
---|
1107 | </const>
|
---|
1108 | <const name="EFI" value="2">
|
---|
1109 | <desc>EFI Firmware, bitness detetced basing on OS type.</desc>
|
---|
1110 | </const>
|
---|
1111 | <const name="EFI32" value="3">
|
---|
1112 | <desc>Efi firmware, 32-bit.</desc>
|
---|
1113 | </const>
|
---|
1114 | <const name="EFI64" value="4">
|
---|
1115 | <desc>Efi firmware, 64-bit.</desc>
|
---|
1116 | </const>
|
---|
1117 | <const name="EFIDUAL" value="5">
|
---|
1118 | <desc>Efi firmware, combined 32 and 64-bit.</desc>
|
---|
1119 | </const>
|
---|
1120 | </enum>
|
---|
1121 |
|
---|
1122 | <!--
|
---|
1123 | // IVirtualBoxErrorInfo
|
---|
1124 | /////////////////////////////////////////////////////////////////////////
|
---|
1125 | -->
|
---|
1126 |
|
---|
1127 | <interface
|
---|
1128 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
1129 | uuid="4b86d186-407e-4f9e-8be8-e50061be8725"
|
---|
1130 | supportsErrorInfo="no"
|
---|
1131 | wsmap="managed"
|
---|
1132 | >
|
---|
1133 | <desc>
|
---|
1134 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
1135 |
|
---|
1136 | Extended error information can be set by VirtualBox components after
|
---|
1137 | unsuccessful or partially successful method invocation. This information
|
---|
1138 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
1139 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
1140 |
|
---|
1141 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
1142 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
1143 | it provides a set of common attributes to retrieve error
|
---|
1144 | information.
|
---|
1145 |
|
---|
1146 | Sometimes invocation of some component's method may involve methods of
|
---|
1147 | other components that may also fail (independently of this method's
|
---|
1148 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
1149 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
1150 | information about all errors happened during method invocation and deliver
|
---|
1151 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
1152 | specifically for this purpose and allows to represent a chain of errors
|
---|
1153 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
1154 |
|
---|
1155 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
1156 | initial error object you query right after method invocation is the last
|
---|
1157 | error set by the callee, the object it points to in the @a next attribute
|
---|
1158 | is the previous error and so on, up to the first error (which is the last
|
---|
1159 | in the chain).
|
---|
1160 | </desc>
|
---|
1161 |
|
---|
1162 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
1163 | <desc>
|
---|
1164 | Result code of the error.
|
---|
1165 | Usually, it will be the same as the result code returned
|
---|
1166 | by the method that provided this error information, but not
|
---|
1167 | always. For example, on Win32, CoCreateInstance() will most
|
---|
1168 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
1169 | instantiation attempt, but not the value the component factory
|
---|
1170 | returned. Value is typed 'long', not 'result',
|
---|
1171 | to make interface usable from scripting languages.
|
---|
1172 | <note>
|
---|
1173 | In MS COM, there is no equivalent.
|
---|
1174 | In XPCOM, it is the same as nsIException::result.
|
---|
1175 | </note>
|
---|
1176 | </desc>
|
---|
1177 | </attribute>
|
---|
1178 |
|
---|
1179 | <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
|
---|
1180 | <desc>
|
---|
1181 | UUID of the interface that defined the error.
|
---|
1182 | <note>
|
---|
1183 | In MS COM, it is the same as IErrorInfo::GetGUID, except for the
|
---|
1184 | data type.
|
---|
1185 | In XPCOM, there is no equivalent.
|
---|
1186 | </note>
|
---|
1187 | </desc>
|
---|
1188 | </attribute>
|
---|
1189 |
|
---|
1190 | <attribute name="component" type="wstring" readonly="yes">
|
---|
1191 | <desc>
|
---|
1192 | Name of the component that generated the error.
|
---|
1193 | <note>
|
---|
1194 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
1195 | In XPCOM, there is no equivalent.
|
---|
1196 | </note>
|
---|
1197 | </desc>
|
---|
1198 | </attribute>
|
---|
1199 |
|
---|
1200 | <attribute name="text" type="wstring" readonly="yes">
|
---|
1201 | <desc>
|
---|
1202 | Text description of the error.
|
---|
1203 | <note>
|
---|
1204 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
1205 | In XPCOM, it is the same as nsIException::message.
|
---|
1206 | </note>
|
---|
1207 | </desc>
|
---|
1208 | </attribute>
|
---|
1209 |
|
---|
1210 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
1211 | <desc>
|
---|
1212 | Next error object if there is any, or @c null otherwise.
|
---|
1213 | <note>
|
---|
1214 | In MS COM, there is no equivalent.
|
---|
1215 | In XPCOM, it is the same as nsIException::inner.
|
---|
1216 | </note>
|
---|
1217 | </desc>
|
---|
1218 | </attribute>
|
---|
1219 |
|
---|
1220 | </interface>
|
---|
1221 |
|
---|
1222 | <interface
|
---|
1223 | name="ILocalOwner" extends="$dispatched"
|
---|
1224 | uuid="308FF42A-DC45-49D4-A950-B1EEE5E00BB5" wsmap="suppress"
|
---|
1225 | >
|
---|
1226 | <desc>
|
---|
1227 | The ILocalOwner interface allows to register local objects
|
---|
1228 | (created without COM calls, but with new()).
|
---|
1229 | Once registered, calls to methods of such objects can be made
|
---|
1230 | from remote COM processes.
|
---|
1231 | The main usecase is the event callback implementation where
|
---|
1232 | API clients provide callback objects.
|
---|
1233 | </desc>
|
---|
1234 | <method name="setLocalObject">
|
---|
1235 | <desc>
|
---|
1236 | Set local object.
|
---|
1237 | </desc>
|
---|
1238 | <param name="object" type="$unknown" dir="in">
|
---|
1239 | <desc>Local object to forward requests to.
|
---|
1240 | If null, clears currently set local object.</desc>
|
---|
1241 | </param>
|
---|
1242 | </method>
|
---|
1243 | </interface>
|
---|
1244 |
|
---|
1245 | <!--
|
---|
1246 | // IVirtualBox
|
---|
1247 | /////////////////////////////////////////////////////////////////////////
|
---|
1248 | -->
|
---|
1249 |
|
---|
1250 | <interface
|
---|
1251 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
1252 | uuid="9a65adf2-3ee6-406b-bca2-2b1fa05f0d0b"
|
---|
1253 | wsmap="suppress"
|
---|
1254 | >
|
---|
1255 |
|
---|
1256 | <method name="onMachineStateChange">
|
---|
1257 | <desc>
|
---|
1258 | The execution state of the given machine has changed.
|
---|
1259 | <see>IMachine::state</see>
|
---|
1260 | </desc>
|
---|
1261 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1262 | <desc>ID of the machine this event relates to.</desc>
|
---|
1263 | </param>
|
---|
1264 | <param name="state" type="MachineState" dir="in">
|
---|
1265 | <desc>New execution state.</desc>
|
---|
1266 | </param>
|
---|
1267 | </method>
|
---|
1268 |
|
---|
1269 | <method name="onMachineDataChange">
|
---|
1270 | <desc>
|
---|
1271 | Any of the settings of the given machine has changed.
|
---|
1272 | </desc>
|
---|
1273 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1274 | <desc>ID of the machine this event relates to.</desc>
|
---|
1275 | </param>
|
---|
1276 | </method>
|
---|
1277 |
|
---|
1278 | <method name="onExtraDataCanChange">
|
---|
1279 | <desc>
|
---|
1280 | Notification when someone tries to change extra data for
|
---|
1281 | either the given machine or (if @c null) global extra data.
|
---|
1282 | This gives the chance to veto against changes.
|
---|
1283 | </desc>
|
---|
1284 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1285 | <desc>
|
---|
1286 | ID of the machine this event relates to
|
---|
1287 | (@c null ID for global extra data change requests).
|
---|
1288 | </desc>
|
---|
1289 | </param>
|
---|
1290 | <param name="key" type="wstring" dir="in">
|
---|
1291 | <desc>
|
---|
1292 | Extra data key for the attempted write.
|
---|
1293 | </desc>
|
---|
1294 | </param>
|
---|
1295 | <param name="value" type="wstring" dir="in">
|
---|
1296 | <desc>
|
---|
1297 | Extra data value for the given key.
|
---|
1298 | </desc>
|
---|
1299 | </param>
|
---|
1300 | <param name="error" type="wstring" dir="out">
|
---|
1301 | <desc>
|
---|
1302 | Optional error message describing the reason of the
|
---|
1303 | veto (ignored if this notification returns @c true).
|
---|
1304 | </desc>
|
---|
1305 | </param>
|
---|
1306 | <param name="allowChange" type="boolean" dir="return">
|
---|
1307 | <desc>
|
---|
1308 | Flag to indicate whether the callee agrees (@c true)
|
---|
1309 | or vetoes against the change (@c false).
|
---|
1310 | </desc>
|
---|
1311 | </param>
|
---|
1312 | </method>
|
---|
1313 |
|
---|
1314 | <method name="onExtraDataChange">
|
---|
1315 | <desc>
|
---|
1316 | Notification when machine specific or global extra data
|
---|
1317 | has changed.
|
---|
1318 | </desc>
|
---|
1319 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1320 | <desc>
|
---|
1321 | ID of the machine this event relates to.
|
---|
1322 | Null for global extra data changes.
|
---|
1323 | </desc>
|
---|
1324 | </param>
|
---|
1325 | <param name="key" type="wstring" dir="in">
|
---|
1326 | <desc>
|
---|
1327 | Extra data key that has changed.
|
---|
1328 | </desc>
|
---|
1329 | </param>
|
---|
1330 | <param name="value" type="wstring" dir="in">
|
---|
1331 | <desc>
|
---|
1332 | Extra data value for the given key.
|
---|
1333 | </desc>
|
---|
1334 | </param>
|
---|
1335 | </method>
|
---|
1336 |
|
---|
1337 | <method name="onMediumRegistered">
|
---|
1338 | <desc>
|
---|
1339 | The given medium was registered or unregistered
|
---|
1340 | within this VirtualBox installation.
|
---|
1341 |
|
---|
1342 | The @a mediumType parameter describes what type of
|
---|
1343 | medium the specified @a mediumId refers to. Possible
|
---|
1344 | values are:
|
---|
1345 |
|
---|
1346 | <ul>
|
---|
1347 | <li><link to="DeviceType_HardDisk"/>: the medium is a hard disk
|
---|
1348 | that, if registered, can be obtained using the
|
---|
1349 | <link to="IVirtualBox::getHardDisk"/> call.</li>
|
---|
1350 | <li><link to="DeviceType_DVD"/>: the medium is a CD/DVD image
|
---|
1351 | that, if registered, can be obtained using the
|
---|
1352 | <link to="IVirtualBox::getDVDImage"/> call.</li>
|
---|
1353 | <li><link to="DeviceType_Floppy"/>: the medium is a Floppy image
|
---|
1354 | that, if registered, can be obtained using the
|
---|
1355 | <link to="IVirtualBox::getFloppyImage"/> call.</li>
|
---|
1356 | </ul>
|
---|
1357 |
|
---|
1358 | Note that if this is a deregistration notification,
|
---|
1359 | there is no way to access the object representing the
|
---|
1360 | unregistered medium. It is supposed that the
|
---|
1361 | application will do required cleanup based on the
|
---|
1362 | @a mediumId value.
|
---|
1363 | </desc>
|
---|
1364 | <param name="mediumId" type="uuid" mod="string" dir="in">
|
---|
1365 | <desc>ID of the medium this event relates to.</desc>
|
---|
1366 | </param>
|
---|
1367 | <param name="mediumType" type="DeviceType" dir="in">
|
---|
1368 | <desc>Type of the medium this event relates to.</desc>
|
---|
1369 | </param>
|
---|
1370 | <param name="registered" type="boolean" dir="in">
|
---|
1371 | <desc>
|
---|
1372 | If @c true, the medium was registered, otherwise it was
|
---|
1373 | unregistered.
|
---|
1374 | </desc>
|
---|
1375 | </param>
|
---|
1376 | </method>
|
---|
1377 |
|
---|
1378 | <method name="onMachineRegistered">
|
---|
1379 | <desc>
|
---|
1380 | The given machine was registered or unregistered
|
---|
1381 | within this VirtualBox installation.
|
---|
1382 | </desc>
|
---|
1383 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1384 | <desc>ID of the machine this event relates to.</desc>
|
---|
1385 | </param>
|
---|
1386 | <param name="registered" type="boolean" dir="in">
|
---|
1387 | <desc>
|
---|
1388 | If @c true, the machine was registered, otherwise it was
|
---|
1389 | unregistered.
|
---|
1390 | </desc>
|
---|
1391 | </param>
|
---|
1392 | </method>
|
---|
1393 |
|
---|
1394 | <method name="onSessionStateChange">
|
---|
1395 | <desc>
|
---|
1396 | The state of the session for the given machine was changed.
|
---|
1397 | <see>IMachine::sessionState</see>
|
---|
1398 | </desc>
|
---|
1399 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1400 | <desc>ID of the machine this event relates to.</desc>
|
---|
1401 | </param>
|
---|
1402 | <param name="state" type="SessionState" dir="in">
|
---|
1403 | <desc>New session state.</desc>
|
---|
1404 | </param>
|
---|
1405 | </method>
|
---|
1406 |
|
---|
1407 | <method name="onSnapshotTaken">
|
---|
1408 | <desc>
|
---|
1409 | A new snapshot of the machine has been taken.
|
---|
1410 | <see>ISnapshot</see>
|
---|
1411 | </desc>
|
---|
1412 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1413 | <desc>ID of the machine this event relates to.</desc>
|
---|
1414 | </param>
|
---|
1415 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1416 | <desc>ID of the new snapshot.</desc>
|
---|
1417 | </param>
|
---|
1418 | </method>
|
---|
1419 |
|
---|
1420 | <method name="onSnapshotDiscarded">
|
---|
1421 | <desc>
|
---|
1422 | Snapshot of the given machine has been discarded.
|
---|
1423 |
|
---|
1424 | <note>
|
---|
1425 | This notification is delivered <b>after</b> the snapshot
|
---|
1426 | object has been uninitialized on the server (so that any
|
---|
1427 | attempt to call its methods will return an error).
|
---|
1428 | </note>
|
---|
1429 |
|
---|
1430 | <see>ISnapshot</see>
|
---|
1431 | </desc>
|
---|
1432 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1433 | <desc>ID of the machine this event relates to.</desc>
|
---|
1434 | </param>
|
---|
1435 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1436 | <desc>
|
---|
1437 | ID of the discarded snapshot. @c null means the current machine
|
---|
1438 | state has been discarded (restored from the current snapshot).
|
---|
1439 | </desc>
|
---|
1440 | </param>
|
---|
1441 | </method>
|
---|
1442 |
|
---|
1443 | <method name="onSnapshotChange">
|
---|
1444 | <desc>
|
---|
1445 | Snapshot properties (name and/or description) have been changed.
|
---|
1446 | <see>ISnapshot</see>
|
---|
1447 | </desc>
|
---|
1448 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1449 | <desc>ID of the machine this event relates to.</desc>
|
---|
1450 | </param>
|
---|
1451 | <param name="snapshotId" type="uuid" mod="string" dir="in">
|
---|
1452 | <desc>ID of the changed snapshot.</desc>
|
---|
1453 | </param>
|
---|
1454 | </method>
|
---|
1455 |
|
---|
1456 | <method name="onGuestPropertyChange">
|
---|
1457 | <desc>
|
---|
1458 | Notification when a guest property has changed.
|
---|
1459 | </desc>
|
---|
1460 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
1461 | <desc>
|
---|
1462 | ID of the machine this event relates to.
|
---|
1463 | </desc>
|
---|
1464 | </param>
|
---|
1465 | <param name="name" type="wstring" dir="in">
|
---|
1466 | <desc>
|
---|
1467 | The name of the property that has changed.
|
---|
1468 | </desc>
|
---|
1469 | </param>
|
---|
1470 | <param name="value" type="wstring" dir="in">
|
---|
1471 | <desc>
|
---|
1472 | The new property value.
|
---|
1473 | </desc>
|
---|
1474 | </param>
|
---|
1475 | <param name="flags" type="wstring" dir="in">
|
---|
1476 | <desc>
|
---|
1477 | The new property flags.
|
---|
1478 | </desc>
|
---|
1479 | </param>
|
---|
1480 | </method>
|
---|
1481 |
|
---|
1482 | </interface>
|
---|
1483 |
|
---|
1484 | <interface
|
---|
1485 | name="IDHCPServer" extends="$unknown"
|
---|
1486 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1487 | wsmap="managed"
|
---|
1488 | >
|
---|
1489 | <desc>
|
---|
1490 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1491 |
|
---|
1492 | To enumerate all the dhcp servers on the host, use the
|
---|
1493 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1494 | </desc>
|
---|
1495 |
|
---|
1496 | <attribute name="enabled" type="boolean">
|
---|
1497 | <desc>
|
---|
1498 | specifies if the dhcp server is enabled
|
---|
1499 | </desc>
|
---|
1500 | </attribute>
|
---|
1501 |
|
---|
1502 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1503 | <desc>
|
---|
1504 | specifies server IP
|
---|
1505 | </desc>
|
---|
1506 | </attribute>
|
---|
1507 |
|
---|
1508 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1509 | <desc>
|
---|
1510 | specifies server network mask
|
---|
1511 | </desc>
|
---|
1512 | </attribute>
|
---|
1513 |
|
---|
1514 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1515 | <desc>
|
---|
1516 | specifies internal network name the server is used for
|
---|
1517 | </desc>
|
---|
1518 | </attribute>
|
---|
1519 |
|
---|
1520 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1521 | <desc>
|
---|
1522 | specifies from IP adrres in server address range
|
---|
1523 | </desc>
|
---|
1524 | </attribute>
|
---|
1525 |
|
---|
1526 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1527 | <desc>
|
---|
1528 | specifies to IP adrres in server address range
|
---|
1529 | </desc>
|
---|
1530 | </attribute>
|
---|
1531 |
|
---|
1532 | <method name="setConfiguration">
|
---|
1533 | <desc>
|
---|
1534 | configures the server
|
---|
1535 | <result name="E_INVALIDARG">
|
---|
1536 | invalid configuration supplied
|
---|
1537 | </result>
|
---|
1538 | </desc>
|
---|
1539 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1540 | <desc>
|
---|
1541 | server IP address
|
---|
1542 | </desc>
|
---|
1543 | </param>
|
---|
1544 | <param name="networkMask" type="wstring" dir="in">
|
---|
1545 | <desc>
|
---|
1546 | server network mask
|
---|
1547 | </desc>
|
---|
1548 | </param>
|
---|
1549 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1550 | <desc>
|
---|
1551 | server From IP address for address range
|
---|
1552 | </desc>
|
---|
1553 | </param>
|
---|
1554 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1555 | <desc>
|
---|
1556 | server To IP address for address range
|
---|
1557 | </desc>
|
---|
1558 | </param>
|
---|
1559 | </method>
|
---|
1560 |
|
---|
1561 | <method name="start">
|
---|
1562 | <desc>
|
---|
1563 | Starts DHCP server process.
|
---|
1564 | <result name="E_FAIL">
|
---|
1565 | Failed to start the process.
|
---|
1566 | </result>
|
---|
1567 | </desc>
|
---|
1568 | <param name="networkName" type="wstring" dir="in">
|
---|
1569 | <desc>
|
---|
1570 | Name of internal network DHCP server should attach to.
|
---|
1571 | </desc>
|
---|
1572 | </param>
|
---|
1573 | <param name="trunkName" type="wstring" dir="in">
|
---|
1574 | <desc>
|
---|
1575 | Name of internal network trunk.
|
---|
1576 | </desc>
|
---|
1577 | </param>
|
---|
1578 | <param name="trunkType" type="wstring" dir="in">
|
---|
1579 | <desc>
|
---|
1580 | Type of internal network trunk.
|
---|
1581 | </desc>
|
---|
1582 | </param>
|
---|
1583 | </method>
|
---|
1584 |
|
---|
1585 | <method name="stop">
|
---|
1586 | <desc>
|
---|
1587 | Stops DHCP server process.
|
---|
1588 | <result name="E_FAIL">
|
---|
1589 | Failed to stop the process.
|
---|
1590 | </result>
|
---|
1591 | </desc>
|
---|
1592 | </method>
|
---|
1593 | </interface>
|
---|
1594 |
|
---|
1595 | <interface
|
---|
1596 | name="IVirtualBox" extends="$dispatched"
|
---|
1597 | uuid="2158464a-f706-414b-a8c4-fb589dfc6b62"
|
---|
1598 | wsmap="managed"
|
---|
1599 | >
|
---|
1600 | <desc>
|
---|
1601 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1602 | product that provides virtual machine management.
|
---|
1603 |
|
---|
1604 | An instance of IVirtualBox is required for the product to do anything
|
---|
1605 | useful. Even though the interface does not expose this, internally,
|
---|
1606 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1607 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1608 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1609 | host, regardless of which frontend started them.
|
---|
1610 |
|
---|
1611 | To enumerate all the virtual machines on the host, use the
|
---|
1612 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1613 | </desc>
|
---|
1614 |
|
---|
1615 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1616 | <desc>
|
---|
1617 | A string representing the version number of the product. The
|
---|
1618 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1619 | last number represents the build number and will frequently change.
|
---|
1620 | </desc>
|
---|
1621 | </attribute>
|
---|
1622 |
|
---|
1623 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1624 | <desc>
|
---|
1625 | The internal build revision number of the product.
|
---|
1626 | </desc>
|
---|
1627 | </attribute>
|
---|
1628 |
|
---|
1629 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1630 | <desc>
|
---|
1631 | A string representing the package type of this product. The
|
---|
1632 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1633 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1634 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1635 | this.
|
---|
1636 | </desc>
|
---|
1637 | </attribute>
|
---|
1638 |
|
---|
1639 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1640 | <desc>
|
---|
1641 | Full path to the directory where the global settings file,
|
---|
1642 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1643 |
|
---|
1644 | In this version of VirtualBox, the value of this property is
|
---|
1645 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1646 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1647 | as determined by the host OS), and cannot be changed.
|
---|
1648 |
|
---|
1649 | This path is also used as the base to resolve relative paths in
|
---|
1650 | places where relative paths are allowed (unless otherwise
|
---|
1651 | expressly indicated).
|
---|
1652 | </desc>
|
---|
1653 | </attribute>
|
---|
1654 |
|
---|
1655 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1656 | <desc>
|
---|
1657 | Full name of the global settings file.
|
---|
1658 | The value of this property corresponds to the value of
|
---|
1659 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1660 | </desc>
|
---|
1661 | </attribute>
|
---|
1662 |
|
---|
1663 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1664 | <desc>Associated host object.</desc>
|
---|
1665 | </attribute>
|
---|
1666 |
|
---|
1667 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1668 | <desc>Associated system information object.</desc>
|
---|
1669 | </attribute>
|
---|
1670 |
|
---|
1671 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1672 | <desc>
|
---|
1673 | Array of machine objects registered within this VirtualBox instance.
|
---|
1674 | </desc>
|
---|
1675 | </attribute>
|
---|
1676 |
|
---|
1677 | <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
|
---|
1678 | <desc>
|
---|
1679 | Array of medium objects known to this VirtualBox installation.
|
---|
1680 |
|
---|
1681 | This array contains only base media. All differencing
|
---|
1682 | media of the given base medium can be enumerated using
|
---|
1683 | <link to="IMedium::children"/>.
|
---|
1684 | </desc>
|
---|
1685 | </attribute>
|
---|
1686 |
|
---|
1687 | <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1688 | <desc>
|
---|
1689 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1690 | </desc>
|
---|
1691 | </attribute>
|
---|
1692 |
|
---|
1693 | <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1694 | <desc>
|
---|
1695 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1696 | </desc>
|
---|
1697 | </attribute>
|
---|
1698 |
|
---|
1699 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1700 |
|
---|
1701 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1702 |
|
---|
1703 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1704 | <desc>
|
---|
1705 | Collection of global shared folders. Global shared folders are
|
---|
1706 | available to all virtual machines.
|
---|
1707 |
|
---|
1708 | New shared folders are added to the collection using
|
---|
1709 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1710 | removed using <link to="#removeSharedFolder"/>.
|
---|
1711 |
|
---|
1712 | <note>
|
---|
1713 | In the current version of the product, global shared folders are not
|
---|
1714 | implemented and therefore this collection is always empty.
|
---|
1715 | </note>
|
---|
1716 | </desc>
|
---|
1717 | </attribute>
|
---|
1718 |
|
---|
1719 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1720 | <desc>
|
---|
1721 | Associated performance collector object.
|
---|
1722 | </desc>
|
---|
1723 | </attribute>
|
---|
1724 |
|
---|
1725 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1726 | <desc>
|
---|
1727 | dhcp server settings.
|
---|
1728 | </desc>
|
---|
1729 | </attribute>
|
---|
1730 |
|
---|
1731 | <method name="createMachine">
|
---|
1732 | <desc>
|
---|
1733 | Creates a new virtual machine.
|
---|
1734 |
|
---|
1735 | The new machine is created unregistered, with the initial configuration
|
---|
1736 | set according to the specified guest OS type. A typical sequence of
|
---|
1737 | actions to create a new virtual machine is as follows:
|
---|
1738 |
|
---|
1739 | <ol>
|
---|
1740 | <li>
|
---|
1741 | Call this method to have a new machine created. The returned machine
|
---|
1742 | object will be "mutable" allowing to change any machine property.
|
---|
1743 | </li>
|
---|
1744 |
|
---|
1745 | <li>
|
---|
1746 | Configure the machine using the appropriate attributes and methods.
|
---|
1747 | </li>
|
---|
1748 |
|
---|
1749 | <li>
|
---|
1750 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1751 | to the machine's XML settings file. The configuration of the newly
|
---|
1752 | created machine will not be saved to disk until this method is
|
---|
1753 | called.
|
---|
1754 | </li>
|
---|
1755 |
|
---|
1756 | <li>
|
---|
1757 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1758 | of machines known to VirtualBox.
|
---|
1759 | </li>
|
---|
1760 | </ol>
|
---|
1761 |
|
---|
1762 | You should specify valid name for the newly created machine when calling
|
---|
1763 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1764 | for more details about the machine name.
|
---|
1765 |
|
---|
1766 | The specified guest OS type identifier must match an ID of one of known
|
---|
1767 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1768 | array.
|
---|
1769 |
|
---|
1770 | Every machine has a <i>settings file</i> that is used to store
|
---|
1771 | the machine configuration. This file is stored in a directory called the
|
---|
1772 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1773 | will have a name that corresponds to the name of the virtual machine.
|
---|
1774 | You can specify where to create the machine setting subfolder using the
|
---|
1775 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1776 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1777 | directory</link>.
|
---|
1778 |
|
---|
1779 | If @a baseFolder is a @c null or empty string (which is recommended), the
|
---|
1780 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1781 | settings folder</link> will be used as a base folder for the created
|
---|
1782 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1783 | the full path to the resulting settings file has the following
|
---|
1784 | structure:
|
---|
1785 | <pre>
|
---|
1786 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1787 | </pre>
|
---|
1788 |
|
---|
1789 | Note that if the resulting settings file already exists, this method
|
---|
1790 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1791 |
|
---|
1792 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1793 | However, this is not recommended and you should normally pass an empty
|
---|
1794 | (@c null) UUID to this method so that a new UUID will be automatically
|
---|
1795 | generated for every created machine. You can use UUID
|
---|
1796 | 00000000-0000-0000-0000-000000000000 as @c null value.
|
---|
1797 |
|
---|
1798 | <note>
|
---|
1799 | There is no way to change the name of the settings file or
|
---|
1800 | subfolder of the created machine directly.
|
---|
1801 | </note>
|
---|
1802 |
|
---|
1803 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1804 | @a osTypeId is invalid.
|
---|
1805 | </result>
|
---|
1806 | <result name="VBOX_E_FILE_ERROR">
|
---|
1807 | Resulting settings file name is invalid or the settings file already
|
---|
1808 | exists or could not be created due to an I/O error.
|
---|
1809 | </result>
|
---|
1810 | <result name="E_INVALIDARG">
|
---|
1811 | @a name is empty or @c null.
|
---|
1812 | </result>
|
---|
1813 | </desc>
|
---|
1814 |
|
---|
1815 | <param name="name" type="wstring" dir="in">
|
---|
1816 | <desc>Machine name.</desc>
|
---|
1817 | </param>
|
---|
1818 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1819 | <desc>Guest OS Type ID.</desc>
|
---|
1820 | </param>
|
---|
1821 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1822 | <desc>Base machine folder (optional).</desc>
|
---|
1823 | </param>
|
---|
1824 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1825 | <desc>Machine UUID (optional).</desc>
|
---|
1826 | </param>
|
---|
1827 | <param name="machine" type="IMachine" dir="return">
|
---|
1828 | <desc>Created machine object.</desc>
|
---|
1829 | </param>
|
---|
1830 | </method>
|
---|
1831 |
|
---|
1832 | <method name="createLegacyMachine">
|
---|
1833 | <desc>
|
---|
1834 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1835 | settings file to store machine settings.
|
---|
1836 |
|
---|
1837 | As opposed to machines created by <link to="#createMachine"/>,
|
---|
1838 | the settings file of the machine created in "legacy" mode is not
|
---|
1839 | automatically renamed when the machine name is changed -- it will always
|
---|
1840 | remain the same as specified in this method call.
|
---|
1841 |
|
---|
1842 | The specified settings file name can be absolute (full path) or relative
|
---|
1843 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1844 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1845 | default extension (.xml) will be appended.
|
---|
1846 |
|
---|
1847 | Note that the configuration of the newly created machine is not
|
---|
1848 | saved to disk (and therefore no settings file is created)
|
---|
1849 | until <link to="IMachine::saveSettings"/> is called. If the
|
---|
1850 | specified settings file already exists, this method
|
---|
1851 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1852 |
|
---|
1853 | See <link to="#createMachine"/> for more information.
|
---|
1854 |
|
---|
1855 | @deprecated This method may be removed later. Use <link
|
---|
1856 | to="IVirtualBox::createMachine"/> instead.
|
---|
1857 |
|
---|
1858 | <note>
|
---|
1859 | There is no way to change the name of the settings file
|
---|
1860 | of the machine created in "legacy" mode.
|
---|
1861 | </note>
|
---|
1862 |
|
---|
1863 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1864 | @a osTypeId is invalid.
|
---|
1865 | </result>
|
---|
1866 | <result name="VBOX_E_FILE_ERROR">
|
---|
1867 | @a settingsFile is invalid or the settings file already exists or
|
---|
1868 | could not be created due to an I/O error.
|
---|
1869 | </result>
|
---|
1870 | <result name="E_INVALIDARG">
|
---|
1871 | @a name or @a settingsFile is empty or @c null.
|
---|
1872 | </result>
|
---|
1873 | </desc>
|
---|
1874 |
|
---|
1875 | <param name="name" type="wstring" dir="in">
|
---|
1876 | <desc>Machine name.</desc>
|
---|
1877 | </param>
|
---|
1878 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1879 | <desc>Machine OS Type ID.</desc>
|
---|
1880 | </param>
|
---|
1881 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1882 | <desc>Name of the machine settings file.</desc>
|
---|
1883 | </param>
|
---|
1884 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1885 | <desc>Machine UUID (optional).</desc>
|
---|
1886 | </param>
|
---|
1887 | <param name="machine" type="IMachine" dir="return">
|
---|
1888 | <desc>Created machine object.</desc>
|
---|
1889 | </param>
|
---|
1890 | </method>
|
---|
1891 |
|
---|
1892 | <method name="openMachine">
|
---|
1893 | <desc>
|
---|
1894 | Opens a virtual machine from the existing settings file.
|
---|
1895 | The opened machine remains unregistered until you call
|
---|
1896 | <link to="#registerMachine"/>.
|
---|
1897 |
|
---|
1898 | The specified settings file name can be absolute
|
---|
1899 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1900 | VirtualBox home directory</link>. This file must exist
|
---|
1901 | and must be a valid machine settings file whose contents
|
---|
1902 | will be used to construct the machine object.
|
---|
1903 |
|
---|
1904 | @deprecated Will be removed soon.
|
---|
1905 | <result name="VBOX_E_FILE_ERROR">
|
---|
1906 | Settings file name invalid, not found or sharing violation.
|
---|
1907 | </result>
|
---|
1908 | </desc>
|
---|
1909 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1910 | <desc>
|
---|
1911 | Name of the machine settings file.
|
---|
1912 | </desc>
|
---|
1913 | </param>
|
---|
1914 | <param name="machine" type="IMachine" dir="return">
|
---|
1915 | <desc>Opened machine object.</desc>
|
---|
1916 | </param>
|
---|
1917 | <note>
|
---|
1918 | <link to="IMachine::settingsModified"/> will return
|
---|
1919 | @c false for the created machine, until any of machine settings
|
---|
1920 | are changed.
|
---|
1921 | </note>
|
---|
1922 | </method>
|
---|
1923 |
|
---|
1924 | <method name="registerMachine">
|
---|
1925 | <desc>
|
---|
1926 |
|
---|
1927 | Registers the machine previously created using
|
---|
1928 | <link to="#createMachine"/> or opened using
|
---|
1929 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1930 | successful method invocation, the
|
---|
1931 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1932 | to all registered callbacks.
|
---|
1933 |
|
---|
1934 | <note>
|
---|
1935 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1936 | to save all current machine settings before registering it.
|
---|
1937 | </note>
|
---|
1938 |
|
---|
1939 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1940 | No matching virtual machine found.
|
---|
1941 | </result>
|
---|
1942 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1943 | Virtual machine was not created within this VirtualBox instance.
|
---|
1944 | </result>
|
---|
1945 |
|
---|
1946 | </desc>
|
---|
1947 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1948 | </method>
|
---|
1949 |
|
---|
1950 | <method name="getMachine">
|
---|
1951 | <desc>
|
---|
1952 | Attempts to find a virtual machine given its UUID.
|
---|
1953 | To look up a machine by name, use <link to="IVirtualBox::findMachine" />
|
---|
1954 | instead.
|
---|
1955 |
|
---|
1956 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1957 | Could not find registered machine matching @a id.
|
---|
1958 | </result>
|
---|
1959 |
|
---|
1960 | </desc>
|
---|
1961 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
1962 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1963 | </method>
|
---|
1964 |
|
---|
1965 | <method name="findMachine">
|
---|
1966 | <desc>
|
---|
1967 | Attempts to find a virtual machine given its name.
|
---|
1968 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
|
---|
1969 | instead.
|
---|
1970 |
|
---|
1971 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1972 | Could not find registered machine matching @a name.
|
---|
1973 | </result>
|
---|
1974 |
|
---|
1975 | </desc>
|
---|
1976 | <param name="name" type="wstring" dir="in"/>
|
---|
1977 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1978 | </method>
|
---|
1979 |
|
---|
1980 | <method name="unregisterMachine">
|
---|
1981 | <desc>
|
---|
1982 |
|
---|
1983 | Unregisters the machine previously registered using
|
---|
1984 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1985 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1986 | to all registered callbacks.
|
---|
1987 |
|
---|
1988 | <note>
|
---|
1989 | The specified machine must not be in the Saved state, have an open
|
---|
1990 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1991 | have any medium attached.
|
---|
1992 | </note>
|
---|
1993 |
|
---|
1994 | <note>
|
---|
1995 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1996 | save all current machine settings before unregistering it.
|
---|
1997 | </note>
|
---|
1998 |
|
---|
1999 | <note>
|
---|
2000 | If the given machine is inaccessible (see
|
---|
2001 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
2002 | fully uninitialized right afterwards. As a result, the returned
|
---|
2003 | machine object will be unusable and an attempt to call
|
---|
2004 | <b>any</b> method will return the "Object not ready" error.
|
---|
2005 | </note>
|
---|
2006 |
|
---|
2007 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2008 | Could not find registered machine matching @a id.
|
---|
2009 | </result>
|
---|
2010 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
2011 | Machine is in Saved state.
|
---|
2012 | </result>
|
---|
2013 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2014 | Machine has snapshot or open session or medium attached.
|
---|
2015 | </result>
|
---|
2016 |
|
---|
2017 | </desc>
|
---|
2018 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2019 | <desc>UUID of the machine to unregister.</desc>
|
---|
2020 | </param>
|
---|
2021 | <param name="machine" type="IMachine" dir="return">
|
---|
2022 | <desc>Unregistered machine object.</desc>
|
---|
2023 | </param>
|
---|
2024 | </method>
|
---|
2025 |
|
---|
2026 | <method name="createAppliance">
|
---|
2027 | <desc>
|
---|
2028 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
2029 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
2030 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
2031 | </desc>
|
---|
2032 | <param name="appliance" type="IAppliance" dir="return">
|
---|
2033 | <desc>New appliance.</desc>
|
---|
2034 | </param>
|
---|
2035 | </method>
|
---|
2036 |
|
---|
2037 | <method name="createHardDisk">
|
---|
2038 | <desc>
|
---|
2039 | Creates a new base medium object that will use the given storage
|
---|
2040 | format and location for medium data.
|
---|
2041 |
|
---|
2042 | Note that the actual storage unit is not created by this method. In
|
---|
2043 | order to do it, and before you are able to attach the created medium
|
---|
2044 | to virtual machines, you must call one of the following methods to
|
---|
2045 | allocate a format-specific storage unit at the specified location:
|
---|
2046 | <ul>
|
---|
2047 | <li><link to="IMedium::createBaseStorage"/></li>
|
---|
2048 | <li><link to="IMedium::createDiffStorage"/></li>
|
---|
2049 | </ul>
|
---|
2050 |
|
---|
2051 | Some medium attributes, such as <link to="IMedium::id"/>, may
|
---|
2052 | remain uninitialized until the medium storage unit is successfully
|
---|
2053 | created by one of the above methods.
|
---|
2054 |
|
---|
2055 | After the storage unit is successfully created, the medium gets
|
---|
2056 | remembered by this VirtualBox installation and will be accessible
|
---|
2057 | through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
|
---|
2058 | methods. Remembered base medium are also returned as part of
|
---|
2059 | the <link to="#hardDisks"/> array. See IMedium for more details.
|
---|
2060 |
|
---|
2061 | The list of all storage formats supported by this VirtualBox
|
---|
2062 | installation can be obtained using
|
---|
2063 | <link to="ISystemProperties::mediumFormats"/>. If the @a format
|
---|
2064 | attribute is empty or @c null then the default storage format
|
---|
2065 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
2066 | be used for creating a storage unit of the medium.
|
---|
2067 |
|
---|
2068 | Note that the format of the location string is storage format specific.
|
---|
2069 | See <link to="IMedium::location"/>, IMedium and
|
---|
2070 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
2071 |
|
---|
2072 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2073 | @a format identifier is invalid. See
|
---|
2074 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
2075 | </result>
|
---|
2076 | <result name="VBOX_E_FILE_ERROR">
|
---|
2077 | @a location is a not valid file name (for file-based formats only).
|
---|
2078 | </result>
|
---|
2079 | </desc>
|
---|
2080 | <param name="format" type="wstring" dir="in">
|
---|
2081 | <desc>
|
---|
2082 | Identifier of the storage format to use for the new medium.
|
---|
2083 | </desc>
|
---|
2084 | </param>
|
---|
2085 | <param name="location" type="wstring" dir="in">
|
---|
2086 | <desc>
|
---|
2087 | Location of the storage unit for the new medium.
|
---|
2088 | </desc>
|
---|
2089 | </param>
|
---|
2090 | <param name="medium" type="IMedium" dir="return">
|
---|
2091 | <desc>Created medium object.</desc>
|
---|
2092 | </param>
|
---|
2093 | </method>
|
---|
2094 |
|
---|
2095 | <method name="openHardDisk">
|
---|
2096 | <desc>
|
---|
2097 | Opens a medium from an existing location, optionally replacing
|
---|
2098 | the image UUID and/or parent UUID.
|
---|
2099 |
|
---|
2100 | After the medium is successfully opened by this method, it gets
|
---|
2101 | remembered by (known to) this VirtualBox installation and will be
|
---|
2102 | accessible through <link to="#getHardDisk"/> and
|
---|
2103 | <link to="#findHardDisk"/> methods. Remembered base media
|
---|
2104 | are also returned as part of the <link to="#hardDisks"/> array and can
|
---|
2105 | be attached to virtual machines. See IMedium for more details.
|
---|
2106 |
|
---|
2107 | If a differencing medium is to be opened by this method, the
|
---|
2108 | operation will succeed only if its parent medium and all ancestors,
|
---|
2109 | if any, are already known to this VirtualBox installation (for example,
|
---|
2110 | were opened by this method before).
|
---|
2111 |
|
---|
2112 | This method tries to guess the storage format of the specified medium
|
---|
2113 | by reading medium data at the specified location.
|
---|
2114 |
|
---|
2115 | If @a write is ReadWrite (which it should be), the image is opened for
|
---|
2116 | read/write access and must have according permissions, as VirtualBox
|
---|
2117 | may actually write status information into the disk's metadata sections.
|
---|
2118 |
|
---|
2119 | Note that write access is required for all typical image usage in VirtualBox,
|
---|
2120 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
2121 | The only exception is opening a source image temporarily for copying and
|
---|
2122 | cloning when the image will quickly be closed again.
|
---|
2123 |
|
---|
2124 | Note that the format of the location string is storage format specific.
|
---|
2125 | See <link to="IMedium::location"/>, IMedium and
|
---|
2126 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
2127 |
|
---|
2128 | <result name="VBOX_E_FILE_ERROR">
|
---|
2129 | Invalid medium storage file location or could not find the medium
|
---|
2130 | at the specified location.
|
---|
2131 | </result>
|
---|
2132 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2133 | Could not get medium storage format.
|
---|
2134 | </result>
|
---|
2135 | <result name="E_INVALIDARG">
|
---|
2136 | Invalid medium storage format.
|
---|
2137 | </result>
|
---|
2138 |
|
---|
2139 | </desc>
|
---|
2140 | <param name="location" type="wstring" dir="in">
|
---|
2141 | <desc>
|
---|
2142 | Location of the storage unit that contains medium data in one of
|
---|
2143 | the supported storage formats.
|
---|
2144 | </desc>
|
---|
2145 | </param>
|
---|
2146 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
2147 | <desc>
|
---|
2148 | Determines whether to open the image in read/write or read-only mode.
|
---|
2149 | </desc>
|
---|
2150 | </param>
|
---|
2151 | <param name="setImageId" type="boolean" dir="in">
|
---|
2152 | <desc>
|
---|
2153 | Select whether a new image UUID is set or not.
|
---|
2154 | </desc>
|
---|
2155 | </param>
|
---|
2156 | <param name="imageId" type="uuid" mod="string" dir="in">
|
---|
2157 | <desc>
|
---|
2158 | New UUID for the image. If an empty string is passed, then a new
|
---|
2159 | UUID is automatically created. Specifying a zero UUIDs is not valid.
|
---|
2160 | </desc>
|
---|
2161 | </param>
|
---|
2162 | <param name="setParentId" type="boolean" dir="in">
|
---|
2163 | <desc>
|
---|
2164 | Select whether a new parent UUID is set or not.
|
---|
2165 | </desc>
|
---|
2166 | </param>
|
---|
2167 | <param name="parentId" type="uuid" mod="string" dir="in">
|
---|
2168 | <desc>
|
---|
2169 | New parent UUID for the image. If an empty string is passed, then a
|
---|
2170 | new UUID is automatically created, provided @a setParentId is
|
---|
2171 | @c true. A zero UUID is valid.
|
---|
2172 | </desc>
|
---|
2173 | </param>
|
---|
2174 | <param name="medium" type="IMedium" dir="return">
|
---|
2175 | <desc>Opened medium object.</desc>
|
---|
2176 | </param>
|
---|
2177 | </method>
|
---|
2178 |
|
---|
2179 | <method name="getHardDisk" const="yes">
|
---|
2180 | <desc>
|
---|
2181 | Returns a medium with the given UUID.
|
---|
2182 |
|
---|
2183 | The medium with the given UUID must be known to this VirtualBox
|
---|
2184 | installation, i.e. it must be previously created by
|
---|
2185 | <link to="#createHardDisk"/> or opened by <link
|
---|
2186 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2187 |
|
---|
2188 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2189 | No medium object matching @a id found.
|
---|
2190 | </result>
|
---|
2191 |
|
---|
2192 | </desc>
|
---|
2193 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2194 | <desc>UUID of the medium to look for.</desc>
|
---|
2195 | </param>
|
---|
2196 | <param name="medium" type="IMedium" dir="return">
|
---|
2197 | <desc>Found medium object.</desc>
|
---|
2198 | </param>
|
---|
2199 | </method>
|
---|
2200 |
|
---|
2201 | <method name="findHardDisk">
|
---|
2202 | <desc>
|
---|
2203 | Returns a medium that uses the given location to store medium data.
|
---|
2204 |
|
---|
2205 | The given medium must be known to this VirtualBox installation, i.e.
|
---|
2206 | it must be previously created by
|
---|
2207 | <link to="#createHardDisk"/> or opened by <link
|
---|
2208 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2209 |
|
---|
2210 | The search is done by comparing the value of the @a location argument to
|
---|
2211 | the <link to="IMedium::location"/> attribute of each known medium.
|
---|
2212 |
|
---|
2213 | For locations represented by file names in the host's file system, the
|
---|
2214 | requested location can be a path relative to the
|
---|
2215 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2216 | only a file name without any path is given, the
|
---|
2217 | <link to="ISystemProperties::defaultHardDiskFolder"> default medium
|
---|
2218 | folder</link> will be prepended to the file name before searching. Note
|
---|
2219 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2220 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2221 |
|
---|
2222 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2223 | No medium object matching @a location found.
|
---|
2224 | </result>
|
---|
2225 |
|
---|
2226 | </desc>
|
---|
2227 | <param name="location" type="wstring" dir="in">
|
---|
2228 | <desc>Location string to search for.</desc>
|
---|
2229 | </param>
|
---|
2230 | <param name="medium" type="IMedium" dir="return">
|
---|
2231 | <desc>Found medium object.</desc>
|
---|
2232 | </param>
|
---|
2233 | </method>
|
---|
2234 |
|
---|
2235 | <method name="openDVDImage">
|
---|
2236 | <desc>
|
---|
2237 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
2238 | format and assigns it the given UUID.
|
---|
2239 |
|
---|
2240 | After the image is successfully opened by this method, it gets
|
---|
2241 | remembered by (known to) this VirtualBox installation and will be
|
---|
2242 | accessible through <link to="#getDVDImage"/> and
|
---|
2243 | <link to="#findDVDImage"/> methods. Remembered images are also
|
---|
2244 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
2245 | to virtual machines. See IMedium for more details.
|
---|
2246 |
|
---|
2247 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2248 | of the location string.
|
---|
2249 |
|
---|
2250 | <note>
|
---|
2251 | Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
|
---|
2252 | </note>
|
---|
2253 |
|
---|
2254 | <result name="VBOX_E_FILE_ERROR">
|
---|
2255 | Invalid CD/DVD image file location or could not find the CD/DVD
|
---|
2256 | image at the specified location.
|
---|
2257 | </result>
|
---|
2258 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2259 | CD/DVD image already exists in the media registry.
|
---|
2260 | </result>
|
---|
2261 |
|
---|
2262 | </desc>
|
---|
2263 | <param name="location" type="wstring" dir="in">
|
---|
2264 | <desc>
|
---|
2265 | Full path to the file that contains a valid CD/DVD image.
|
---|
2266 | </desc>
|
---|
2267 | </param>
|
---|
2268 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2269 | <desc>
|
---|
2270 | UUID to assign to the given image within this VirtualBox installation.
|
---|
2271 | If an empty (@c null) UUID is specified, the system will randomly
|
---|
2272 | generate a new UUID.
|
---|
2273 | </desc>
|
---|
2274 | </param>
|
---|
2275 | <param name="image" type="IMedium" dir="return">
|
---|
2276 | <desc>Opened CD/DVD image object.</desc>
|
---|
2277 | </param>
|
---|
2278 | </method>
|
---|
2279 |
|
---|
2280 | <method name="getDVDImage">
|
---|
2281 | <desc>
|
---|
2282 | Returns a CD/DVD image with the given UUID.
|
---|
2283 |
|
---|
2284 | The image with the given UUID must be known to this VirtualBox
|
---|
2285 | installation, i.e. it must be previously opened by <link
|
---|
2286 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2287 |
|
---|
2288 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2289 | No matching DVD image found in the media registry.
|
---|
2290 | </result>
|
---|
2291 |
|
---|
2292 | </desc>
|
---|
2293 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2294 | <desc>UUID of the image to look for.</desc>
|
---|
2295 | </param>
|
---|
2296 | <param name="image" type="IMedium" dir="return">
|
---|
2297 | <desc>Found CD/DVD image object.</desc>
|
---|
2298 | </param>
|
---|
2299 | </method>
|
---|
2300 |
|
---|
2301 | <method name="findDVDImage">
|
---|
2302 | <desc>
|
---|
2303 | Returns a CD/DVD image with the given image location.
|
---|
2304 |
|
---|
2305 | The image with the given UUID must be known to this VirtualBox
|
---|
2306 | installation, i.e. it must be previously opened by <link
|
---|
2307 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2308 |
|
---|
2309 | The search is done by comparing the value of the @a location argument to
|
---|
2310 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
2311 |
|
---|
2312 | The requested location can be a path relative to the
|
---|
2313 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2314 | only a file name without any path is given, the
|
---|
2315 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2316 | folder</link> will be prepended to the file name before searching. Note
|
---|
2317 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2318 | performed, otherwise the case in the file path is ignored.
|
---|
2319 |
|
---|
2320 | <result name="VBOX_E_FILE_ERROR">
|
---|
2321 | Invalid image file location.
|
---|
2322 | </result>
|
---|
2323 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2324 | No matching DVD image found in the media registry.
|
---|
2325 | </result>
|
---|
2326 |
|
---|
2327 | </desc>
|
---|
2328 | <param name="location" type="wstring" dir="in">
|
---|
2329 | <desc>CD/DVD image file path to look for.</desc>
|
---|
2330 | </param>
|
---|
2331 | <param name="image" type="IMedium" dir="return">
|
---|
2332 | <desc>Found CD/DVD image object.</desc>
|
---|
2333 | </param>
|
---|
2334 | </method>
|
---|
2335 |
|
---|
2336 | <method name="openFloppyImage">
|
---|
2337 | <desc>
|
---|
2338 | Opens a floppy image contained in the specified file of the supported
|
---|
2339 | format and assigns it the given UUID.
|
---|
2340 |
|
---|
2341 | After the image is successfully opened by this method, it gets
|
---|
2342 | remembered by (known to) this VirtualBox installation and will be
|
---|
2343 | accessible through <link to="#getFloppyImage"/> and
|
---|
2344 | <link to="#findFloppyImage"/> methods. Remembered images are also
|
---|
2345 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
2346 | mounted to virtual machines. See IMedium for more details.
|
---|
2347 |
|
---|
2348 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2349 | of the location string.
|
---|
2350 |
|
---|
2351 | <result name="VBOX_E_FILE_ERROR">
|
---|
2352 | Invalid floppy image file location or could not find the floppy
|
---|
2353 | image at the specified location.
|
---|
2354 | </result>
|
---|
2355 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2356 | Floppy image already exists in the media registry.
|
---|
2357 | </result>
|
---|
2358 |
|
---|
2359 | <note>
|
---|
2360 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
2361 | </note>
|
---|
2362 | </desc>
|
---|
2363 | <param name="location" type="wstring" dir="in">
|
---|
2364 | <desc>
|
---|
2365 | Full path to the file that contains a valid floppy image.
|
---|
2366 | </desc>
|
---|
2367 | </param>
|
---|
2368 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2369 | <desc>
|
---|
2370 | UUID to assign to the given image file within this VirtualBox
|
---|
2371 | installation. If an empty (@c null) UUID is specified, the system will
|
---|
2372 | randomly generate a new UUID.
|
---|
2373 | </desc>
|
---|
2374 | </param>
|
---|
2375 | <param name="image" type="IMedium" dir="return">
|
---|
2376 | <desc>Opened floppy image object.</desc>
|
---|
2377 | </param>
|
---|
2378 | </method>
|
---|
2379 |
|
---|
2380 | <method name="getFloppyImage">
|
---|
2381 | <desc>
|
---|
2382 | Returns a floppy image with the given UUID.
|
---|
2383 |
|
---|
2384 | The image with the given UUID must be known to this VirtualBox
|
---|
2385 | installation, i.e. it must be previously opened by <link
|
---|
2386 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2387 |
|
---|
2388 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2389 | No matching floppy image found in the media registry.
|
---|
2390 | </result>
|
---|
2391 |
|
---|
2392 | </desc>
|
---|
2393 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2394 | <desc>UUID of the image to look for.</desc>
|
---|
2395 | </param>
|
---|
2396 | <param name="image" type="IMedium" dir="return">
|
---|
2397 | <desc>Found floppy image object.</desc>
|
---|
2398 | </param>
|
---|
2399 | </method>
|
---|
2400 |
|
---|
2401 | <method name="findFloppyImage">
|
---|
2402 | <desc>
|
---|
2403 | Returns a floppy image with the given image location.
|
---|
2404 |
|
---|
2405 | The image with the given UUID must be known to this VirtualBox
|
---|
2406 | installation, i.e. it must be previously opened by <link
|
---|
2407 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2408 |
|
---|
2409 | The search is done by comparing the value of the @a location argument to
|
---|
2410 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
2411 |
|
---|
2412 | The requested location can be a path relative to the
|
---|
2413 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2414 | only a file name without any path is given, the
|
---|
2415 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2416 | folder</link> will be prepended to the file name before searching. Note
|
---|
2417 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2418 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2419 |
|
---|
2420 | <result name="VBOX_E_FILE_ERROR">
|
---|
2421 | Invalid image file location.
|
---|
2422 | </result>
|
---|
2423 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2424 | No matching floppy image found in the media registry.
|
---|
2425 | </result>
|
---|
2426 |
|
---|
2427 | </desc>
|
---|
2428 | <param name="location" type="wstring" dir="in">
|
---|
2429 | <desc>Floppy image file path to look for.</desc>
|
---|
2430 | </param>
|
---|
2431 | <param name="image" type="IMedium" dir="return">
|
---|
2432 | <desc>Found floppy image object.</desc>
|
---|
2433 | </param>
|
---|
2434 | </method>
|
---|
2435 |
|
---|
2436 | <method name="getGuestOSType">
|
---|
2437 | <desc>
|
---|
2438 | Returns an object describing the specified guest OS type.
|
---|
2439 |
|
---|
2440 | The requested guest OS type is specified using a string which is a
|
---|
2441 | mnemonic identifier of the guest operating system, such as
|
---|
2442 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
2443 | particular virtual machine can be read or set using the
|
---|
2444 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
2445 |
|
---|
2446 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
2447 | available guest OS type objects. Each object has an
|
---|
2448 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
2449 | the guest OS this object describes.
|
---|
2450 |
|
---|
2451 | <result name="E_INVALIDARG">
|
---|
2452 | @a id is not a valid Guest OS type.
|
---|
2453 | </result>
|
---|
2454 |
|
---|
2455 | </desc>
|
---|
2456 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
2457 | <desc>Guest OS type ID string.</desc>
|
---|
2458 | </param>
|
---|
2459 | <param name="type" type="IGuestOSType" dir="return">
|
---|
2460 | <desc>Guest OS type object.</desc>
|
---|
2461 | </param>
|
---|
2462 | </method>
|
---|
2463 |
|
---|
2464 | <method name="createSharedFolder">
|
---|
2465 | <desc>
|
---|
2466 | Creates a new global shared folder by associating the given logical
|
---|
2467 | name with the given host path, adds it to the collection of shared
|
---|
2468 | folders and starts sharing it. Refer to the description of
|
---|
2469 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
2470 | <note>
|
---|
2471 | In the current implementation, this operation is not
|
---|
2472 | implemented.
|
---|
2473 | </note>
|
---|
2474 | </desc>
|
---|
2475 | <param name="name" type="wstring" dir="in">
|
---|
2476 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2477 | </param>
|
---|
2478 | <param name="hostPath" type="wstring" dir="in">
|
---|
2479 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2480 | </param>
|
---|
2481 | <param name="writable" type="boolean" dir="in">
|
---|
2482 | <desc>Whether the share is writable or readonly</desc>
|
---|
2483 | </param>
|
---|
2484 | </method>
|
---|
2485 |
|
---|
2486 | <method name="removeSharedFolder">
|
---|
2487 | <desc>
|
---|
2488 | Removes the global shared folder with the given name previously
|
---|
2489 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
2490 | shared folders and stops sharing it.
|
---|
2491 | <note>
|
---|
2492 | In the current implementation, this operation is not
|
---|
2493 | implemented.
|
---|
2494 | </note>
|
---|
2495 | </desc>
|
---|
2496 | <param name="name" type="wstring" dir="in">
|
---|
2497 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2498 | </param>
|
---|
2499 | </method>
|
---|
2500 |
|
---|
2501 | <method name="getExtraDataKeys">
|
---|
2502 | <desc>
|
---|
2503 | Returns an array representing the global extra data keys which currently
|
---|
2504 | have values defined.
|
---|
2505 | </desc>
|
---|
2506 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
2507 | <desc>Array of extra data keys.</desc>
|
---|
2508 | </param>
|
---|
2509 | </method>
|
---|
2510 |
|
---|
2511 | <method name="getExtraData">
|
---|
2512 | <desc>
|
---|
2513 | Returns associated global extra data.
|
---|
2514 |
|
---|
2515 | If the requested data @a key does not exist, this function will
|
---|
2516 | succeed and return an empty string in the @a value argument.
|
---|
2517 |
|
---|
2518 | <result name="VBOX_E_FILE_ERROR">
|
---|
2519 | Settings file not accessible.
|
---|
2520 | </result>
|
---|
2521 | <result name="VBOX_E_XML_ERROR">
|
---|
2522 | Could not parse the settings file.
|
---|
2523 | </result>
|
---|
2524 |
|
---|
2525 | </desc>
|
---|
2526 | <param name="key" type="wstring" dir="in">
|
---|
2527 | <desc>Name of the data key to get.</desc>
|
---|
2528 | </param>
|
---|
2529 | <param name="value" type="wstring" dir="return">
|
---|
2530 | <desc>Value of the requested data key.</desc>
|
---|
2531 | </param>
|
---|
2532 | </method>
|
---|
2533 |
|
---|
2534 | <method name="setExtraData">
|
---|
2535 | <desc>
|
---|
2536 | Sets associated global extra data.
|
---|
2537 |
|
---|
2538 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
2539 | will be deleted.
|
---|
2540 |
|
---|
2541 | <note>
|
---|
2542 | Before performing the actual data change, this method will ask all
|
---|
2543 | registered callbacks using the
|
---|
2544 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
2545 | notification for a permission. If one of the callbacks refuses the
|
---|
2546 | new value, the change will not be performed.
|
---|
2547 | </note>
|
---|
2548 | <note>
|
---|
2549 | On success, the
|
---|
2550 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
2551 | is called to inform all registered callbacks about a successful data
|
---|
2552 | change.
|
---|
2553 | </note>
|
---|
2554 |
|
---|
2555 | <result name="VBOX_E_FILE_ERROR">
|
---|
2556 | Settings file not accessible.
|
---|
2557 | </result>
|
---|
2558 | <result name="VBOX_E_XML_ERROR">
|
---|
2559 | Could not parse the settings file.
|
---|
2560 | </result>
|
---|
2561 | <result name="E_ACCESSDENIED">
|
---|
2562 | Modification request refused.
|
---|
2563 | </result>
|
---|
2564 |
|
---|
2565 | </desc>
|
---|
2566 | <param name="key" type="wstring" dir="in">
|
---|
2567 | <desc>Name of the data key to set.</desc>
|
---|
2568 | </param>
|
---|
2569 | <param name="value" type="wstring" dir="in">
|
---|
2570 | <desc>Value to assign to the key.</desc>
|
---|
2571 | </param>
|
---|
2572 | </method>
|
---|
2573 |
|
---|
2574 | <method name="openSession">
|
---|
2575 | <desc>
|
---|
2576 | Opens a new direct session with the given virtual machine.
|
---|
2577 |
|
---|
2578 | A direct session acts as a local lock on the given VM.
|
---|
2579 | There can be only one direct session open at a time for every
|
---|
2580 | virtual machine, protecting the VM from being manipulated by
|
---|
2581 | conflicting actions from different processes. Only after a
|
---|
2582 | direct session has been opened, one can change all VM settings
|
---|
2583 | and execute the VM in the process space of the session object.
|
---|
2584 |
|
---|
2585 | Sessions therefore can be compared to mutex semaphores that
|
---|
2586 | lock a given VM for modification and execution.
|
---|
2587 | See <link to="ISession">ISession</link> for details.
|
---|
2588 |
|
---|
2589 | <note>Unless you are writing a new VM frontend, you will not
|
---|
2590 | want to execute a VM in the current process. To spawn a new
|
---|
2591 | process that executes a VM, use
|
---|
2592 | <link to="IVirtualBox::openRemoteSession" />
|
---|
2593 | instead.</note>
|
---|
2594 |
|
---|
2595 | Upon successful return, the session object can be used to
|
---|
2596 | get access to the machine and to the VM console.
|
---|
2597 |
|
---|
2598 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2599 | a session has been opened. Note that the "mutable" machine
|
---|
2600 | object, on which you may invoke IMachine methods to change its
|
---|
2601 | settings, will be a different object from the immutable IMachine
|
---|
2602 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2603 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2604 | use the <link to="ISession::machine" /> attribute.
|
---|
2605 |
|
---|
2606 | One must always call <link to="ISession::close" /> to release the
|
---|
2607 | lock on the machine, or the machine's state will eventually be
|
---|
2608 | set to "Aborted".
|
---|
2609 |
|
---|
2610 | In other words, to change settings on a machine, the following
|
---|
2611 | sequence is typically performed:
|
---|
2612 |
|
---|
2613 | <ol>
|
---|
2614 | <li>Call this method (openSession) to have a machine locked for
|
---|
2615 | the current session.</li>
|
---|
2616 |
|
---|
2617 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2618 |
|
---|
2619 | <li>Change the settings of the machine.</li>
|
---|
2620 |
|
---|
2621 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2622 |
|
---|
2623 | <li>Close the session by calling <link to="ISession::close"/>.</li>
|
---|
2624 | </ol>
|
---|
2625 |
|
---|
2626 | <result name="E_UNEXPECTED">
|
---|
2627 | Virtual machine not registered.
|
---|
2628 | </result>
|
---|
2629 | <result name="E_ACCESSDENIED">
|
---|
2630 | Process not started by OpenRemoteSession.
|
---|
2631 | </result>
|
---|
2632 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2633 | No matching virtual machine found.
|
---|
2634 | </result>
|
---|
2635 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2636 | Session already open or being opened.
|
---|
2637 | </result>
|
---|
2638 | <result name="VBOX_E_VM_ERROR">
|
---|
2639 | Failed to assign machine to session.
|
---|
2640 | </result>
|
---|
2641 |
|
---|
2642 | </desc>
|
---|
2643 | <param name="session" type="ISession" dir="in">
|
---|
2644 | <desc>
|
---|
2645 | Session object that will represent the opened session after
|
---|
2646 | successful method invocation. This object must not represent
|
---|
2647 | the already open session.
|
---|
2648 | <note>
|
---|
2649 | This session will be automatically closed if the
|
---|
2650 | VirtualBox server is terminated for some reason.
|
---|
2651 | </note>
|
---|
2652 | </desc>
|
---|
2653 | </param>
|
---|
2654 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2655 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2656 | </param>
|
---|
2657 | </method>
|
---|
2658 |
|
---|
2659 | <method name="openRemoteSession">
|
---|
2660 | <desc>
|
---|
2661 | Spawns a new process that executes a virtual machine (called a
|
---|
2662 | "remote session").
|
---|
2663 |
|
---|
2664 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2665 | process that opens a direct session with the given VM. As a result, the
|
---|
2666 | VM is locked by that direct session in the new process, preventing
|
---|
2667 | conflicting changes from other processes. Since sessions act as locks
|
---|
2668 | that prevent conflicting changes, one cannot open a remote session
|
---|
2669 | for a VM that already has another open session (direct or remote), or
|
---|
2670 | is currently in the process of opening one (see <link
|
---|
2671 | to="IMachine::sessionState"/>).
|
---|
2672 |
|
---|
2673 | While the remote session still provides some level of control over the
|
---|
2674 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2675 | not all VM settings are available for modification within the remote
|
---|
2676 | session context.
|
---|
2677 |
|
---|
2678 | This operation can take some time (a new VM is started in a new process,
|
---|
2679 | for which memory and other resources need to be set up). Because of this,
|
---|
2680 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2681 | asynchronous operation to be completed. Until then, the remote session
|
---|
2682 | object remains in the closed state, and accessing the machine or its
|
---|
2683 | console through it is invalid. It is recommended to use
|
---|
2684 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2685 | completion.
|
---|
2686 |
|
---|
2687 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2688 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2689 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2690 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2691 | until the VM is no longer running). In that case, however, the state of
|
---|
2692 | the session will automatically change back to "Closed".
|
---|
2693 |
|
---|
2694 | Currently supported session types (values of the @a type
|
---|
2695 | argument) are:
|
---|
2696 | <ul>
|
---|
2697 | <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
|
---|
2698 | <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
|
---|
2699 | <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
|
---|
2700 | </ul>
|
---|
2701 |
|
---|
2702 | The @a environment argument is a string containing definitions of
|
---|
2703 | environment variables in the following format:
|
---|
2704 | @code
|
---|
2705 | NAME[=VALUE]\n
|
---|
2706 | NAME[=VALUE]\n
|
---|
2707 | ...
|
---|
2708 | @endcode
|
---|
2709 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2710 | variables will be appended to the environment of the VirtualBox server
|
---|
2711 | process. If an environment variable exists both in the server process
|
---|
2712 | and in this list, the value from this list takes precedence over the
|
---|
2713 | server's variable. If the value of the environment variable is
|
---|
2714 | omitted, this variable will be removed from the resulting environment.
|
---|
2715 | If the environment string is @c null or empty, the server environment
|
---|
2716 | is inherited by the started process as is.
|
---|
2717 |
|
---|
2718 | <see>openExistingSession</see>
|
---|
2719 |
|
---|
2720 | <result name="E_UNEXPECTED">
|
---|
2721 | Virtual machine not registered.
|
---|
2722 | </result>
|
---|
2723 | <result name="E_INVALIDARG">
|
---|
2724 | Invalid session type @a type.
|
---|
2725 | </result>
|
---|
2726 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2727 | No machine matching @a machineId found.
|
---|
2728 | </result>
|
---|
2729 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2730 | Session already open or being opened.
|
---|
2731 | </result>
|
---|
2732 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2733 | Launching process for machine failed.
|
---|
2734 | </result>
|
---|
2735 | <result name="VBOX_E_VM_ERROR">
|
---|
2736 | Failed to assign machine to session.
|
---|
2737 | </result>
|
---|
2738 |
|
---|
2739 | </desc>
|
---|
2740 | <param name="session" type="ISession" dir="in">
|
---|
2741 | <desc>
|
---|
2742 | Session object that will represent the opened remote session
|
---|
2743 | after successful method invocation (this object must not
|
---|
2744 | represent an already open session).
|
---|
2745 | </desc>
|
---|
2746 | </param>
|
---|
2747 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2748 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2749 | </param>
|
---|
2750 | <param name="type" type="wstring" dir="in">
|
---|
2751 | <desc>
|
---|
2752 | Type of the remote session (case sensitive).
|
---|
2753 | </desc>
|
---|
2754 | </param>
|
---|
2755 | <param name="environment" type="wstring" dir="in">
|
---|
2756 | <desc>
|
---|
2757 | Environment to pass to the opened session.
|
---|
2758 | </desc>
|
---|
2759 | </param>
|
---|
2760 | <param name="progress" type="IProgress" dir="return">
|
---|
2761 | <desc>Progress object to track the operation completion.</desc>
|
---|
2762 | </param>
|
---|
2763 | </method>
|
---|
2764 |
|
---|
2765 | <method name="openExistingSession">
|
---|
2766 | <desc>
|
---|
2767 | Opens a new remote session with the virtual machine for
|
---|
2768 | which a direct session is already open.
|
---|
2769 |
|
---|
2770 | The remote session provides some level of control over the VM
|
---|
2771 | execution (using the IConsole interface) to the caller; however,
|
---|
2772 | within the remote session context, not all VM settings are available
|
---|
2773 | for modification.
|
---|
2774 |
|
---|
2775 | As opposed to <link to="#openRemoteSession"/>, the number of
|
---|
2776 | remote sessions opened this way is not limited by the API
|
---|
2777 |
|
---|
2778 | <note>
|
---|
2779 | It is an error to open a remote session with the machine that
|
---|
2780 | doesn't have an open direct session.
|
---|
2781 | </note>
|
---|
2782 |
|
---|
2783 | <result name="E_UNEXPECTED">
|
---|
2784 | Virtual machine not registered.
|
---|
2785 | </result>
|
---|
2786 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2787 | No machine matching @a machineId found.
|
---|
2788 | </result>
|
---|
2789 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2790 | Session already open or being opened.
|
---|
2791 | </result>
|
---|
2792 | <result name="VBOX_E_INVALID_SESSION_STATE">
|
---|
2793 | Direct session state not Open.
|
---|
2794 | </result>
|
---|
2795 | <result name="VBOX_E_VM_ERROR">
|
---|
2796 | Failed to get console object from direct session or assign
|
---|
2797 | machine to session.
|
---|
2798 | </result>
|
---|
2799 |
|
---|
2800 | <see>openRemoteSession</see>
|
---|
2801 | </desc>
|
---|
2802 | <param name="session" type="ISession" dir="in">
|
---|
2803 | <desc>
|
---|
2804 | Session object that will represent the open remote session
|
---|
2805 | after successful method invocation. This object must not
|
---|
2806 | represent an already open session.
|
---|
2807 | <note>
|
---|
2808 | This session will be automatically closed when the peer
|
---|
2809 | (direct) session dies or gets closed.
|
---|
2810 | </note>
|
---|
2811 | </desc>
|
---|
2812 | </param>
|
---|
2813 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
2814 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2815 | </param>
|
---|
2816 | </method>
|
---|
2817 |
|
---|
2818 | <method name="registerCallback">
|
---|
2819 | <desc>
|
---|
2820 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2821 | callback object will be called by VirtualBox when an appropriate
|
---|
2822 | event occurs.
|
---|
2823 |
|
---|
2824 | <result name="E_INVALIDARG">
|
---|
2825 | A @c null callback cannot be registered.
|
---|
2826 | </result>
|
---|
2827 |
|
---|
2828 | </desc>
|
---|
2829 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2830 | <desc>Callback object to register.</desc>
|
---|
2831 | </param>
|
---|
2832 | </method>
|
---|
2833 |
|
---|
2834 | <method name="unregisterCallback">
|
---|
2835 | <desc>
|
---|
2836 | Unregisters the previously registered global VirtualBox callback.
|
---|
2837 |
|
---|
2838 | <result name="E_INVALIDARG">
|
---|
2839 | Specified @a callback not registered.
|
---|
2840 | </result>
|
---|
2841 |
|
---|
2842 | </desc>
|
---|
2843 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2844 | <desc>Callback object to unregister.</desc>
|
---|
2845 | </param>
|
---|
2846 | </method>
|
---|
2847 |
|
---|
2848 | <method name="waitForPropertyChange">
|
---|
2849 | <desc>
|
---|
2850 | Blocks the caller until any of the properties represented by the
|
---|
2851 | @a what argument changes the value or until the given timeout interval
|
---|
2852 | expires.
|
---|
2853 |
|
---|
2854 | The @a what argument is a comma separated list of property masks that
|
---|
2855 | describe properties the caller is interested in. The property mask is
|
---|
2856 | a string in the following format:
|
---|
2857 |
|
---|
2858 | <pre>
|
---|
2859 | [[group.]subgroup.]name
|
---|
2860 | </pre>
|
---|
2861 |
|
---|
2862 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2863 | or more property group specifiers. Each element (group or name) in
|
---|
2864 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2865 | (@c "*") which is used to match any string for the given element. A
|
---|
2866 | property mask that doesn't contain asterisk symbols represents a
|
---|
2867 | single fully qualified property name.
|
---|
2868 |
|
---|
2869 | Groups in the fully qualified property name go from more generic (the
|
---|
2870 | left-most part) to more specific (the right-most part). The first
|
---|
2871 | element is usually a name of the object the property belongs to. The
|
---|
2872 | second element may be either a property name, or a child object name,
|
---|
2873 | or an index if the preceding element names an object which is one of
|
---|
2874 | many objects of the same type. This way, property names form a
|
---|
2875 | hierarchy of properties. Here are some examples of property names:
|
---|
2876 |
|
---|
2877 | <table>
|
---|
2878 | <tr>
|
---|
2879 | <td><tt>VirtualBox.version</tt></td>
|
---|
2880 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2881 | </tr>
|
---|
2882 | <tr>
|
---|
2883 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2884 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2885 | given UUID</td>
|
---|
2886 | </tr>
|
---|
2887 | </table>
|
---|
2888 |
|
---|
2889 | Most property names directly correspond to the properties of objects
|
---|
2890 | (components) provided by the VirtualBox library and may be used to
|
---|
2891 | track changes to these properties. However, there may be
|
---|
2892 | pseudo-property names that don't correspond to any existing object's
|
---|
2893 | property directly, as well as there may be object properties that
|
---|
2894 | don't have a corresponding property name that is understood by this
|
---|
2895 | method, and therefore changes to such properties cannot be
|
---|
2896 | tracked. See individual object's property descriptions to get a
|
---|
2897 | fully qualified property name that can be used with this method (if
|
---|
2898 | any).
|
---|
2899 |
|
---|
2900 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2901 | single asterisk symbol) that can be used to match all properties.
|
---|
2902 | Below are more examples of property masks:
|
---|
2903 |
|
---|
2904 | <table>
|
---|
2905 | <tr>
|
---|
2906 | <td><tt>VirtualBox.*</tt></td>
|
---|
2907 | <td>Track all properties of the VirtualBox object</td>
|
---|
2908 | </tr>
|
---|
2909 | <tr>
|
---|
2910 | <td><tt>Machine.*.name</tt></td>
|
---|
2911 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2912 | all registered virtual machines</td>
|
---|
2913 | </tr>
|
---|
2914 | </table>
|
---|
2915 |
|
---|
2916 | <note>
|
---|
2917 | This function is not implemented in the current version of the
|
---|
2918 | product.
|
---|
2919 | </note>
|
---|
2920 | </desc>
|
---|
2921 | <param name="what" type="wstring" dir="in">
|
---|
2922 | <desc>Comma separated list of property masks.</desc>
|
---|
2923 | </param>
|
---|
2924 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2925 | <desc>
|
---|
2926 | Wait timeout in milliseconds.
|
---|
2927 | Specify -1 for an indefinite wait.
|
---|
2928 | </desc>
|
---|
2929 | </param>
|
---|
2930 | <param name="changed" type="wstring" dir="out">
|
---|
2931 | <desc>
|
---|
2932 | Comma separated list of properties that have been changed and caused
|
---|
2933 | this method to return to the caller.
|
---|
2934 | </desc>
|
---|
2935 | </param>
|
---|
2936 | <param name="values" type="wstring" dir="out">
|
---|
2937 | <desc>Reserved, not currently used.</desc>
|
---|
2938 | </param>
|
---|
2939 | </method>
|
---|
2940 |
|
---|
2941 | <!--method name="createDHCPServerForInterface">
|
---|
2942 | <desc>
|
---|
2943 | Creates a dhcp server settings to be used for the given interface
|
---|
2944 | <result name="E_INVALIDARG">
|
---|
2945 | Host network interface @a name already exists.
|
---|
2946 | </result>
|
---|
2947 | </desc>
|
---|
2948 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2949 | <desc>Network Interface</desc>
|
---|
2950 | </param>
|
---|
2951 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2952 | <desc>Dhcp server settings</desc>
|
---|
2953 | </param>
|
---|
2954 | </method-->
|
---|
2955 |
|
---|
2956 | <method name="createDHCPServer">
|
---|
2957 | <desc>
|
---|
2958 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2959 | <result name="E_INVALIDARG">
|
---|
2960 | Host network interface @a name already exists.
|
---|
2961 | </result>
|
---|
2962 | </desc>
|
---|
2963 | <param name="name" type="wstring" dir="in">
|
---|
2964 | <desc>server name</desc>
|
---|
2965 | </param>
|
---|
2966 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2967 | <desc>Dhcp server settings</desc>
|
---|
2968 | </param>
|
---|
2969 | </method>
|
---|
2970 |
|
---|
2971 | <method name="findDHCPServerByNetworkName">
|
---|
2972 | <desc>
|
---|
2973 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2974 | <result name="E_INVALIDARG">
|
---|
2975 | Host network interface @a name already exists.
|
---|
2976 | </result>
|
---|
2977 |
|
---|
2978 | </desc>
|
---|
2979 | <param name="name" type="wstring" dir="in">
|
---|
2980 | <desc>server name</desc>
|
---|
2981 | </param>
|
---|
2982 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2983 | <desc>Dhcp server settings</desc>
|
---|
2984 | </param>
|
---|
2985 | </method>
|
---|
2986 |
|
---|
2987 | <!--method name="findDHCPServerForInterface">
|
---|
2988 | <desc>
|
---|
2989 | Searches a dhcp server settings to be used for the given interface
|
---|
2990 | <result name="E_INVALIDARG">
|
---|
2991 | Host network interface @a name already exists.
|
---|
2992 | </result>
|
---|
2993 | </desc>
|
---|
2994 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2995 | <desc>Network Interface</desc>
|
---|
2996 | </param>
|
---|
2997 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2998 | <desc>Dhcp server settings</desc>
|
---|
2999 | </param>
|
---|
3000 | </method-->
|
---|
3001 |
|
---|
3002 | <method name="removeDHCPServer">
|
---|
3003 | <desc>
|
---|
3004 | Removes the dhcp server settings
|
---|
3005 | <result name="E_INVALIDARG">
|
---|
3006 | Host network interface @a name already exists.
|
---|
3007 | </result>
|
---|
3008 | </desc>
|
---|
3009 | <param name="server" type="IDHCPServer" dir="in">
|
---|
3010 | <desc>Dhcp server settings to be removed</desc>
|
---|
3011 | </param>
|
---|
3012 | </method>
|
---|
3013 |
|
---|
3014 |
|
---|
3015 | <method name="checkFirmwarePresent">
|
---|
3016 | <desc>
|
---|
3017 | Check if this VirtualBox installation have firmware
|
---|
3018 | of given type available, either system-wide, or per-user.
|
---|
3019 | Optionally, may return a hint where this firmware can be
|
---|
3020 | downloaded from.
|
---|
3021 | </desc>
|
---|
3022 | <param name="firmwareType" type="FirmwareType" dir="in">
|
---|
3023 | <desc>
|
---|
3024 | Type of firmware to check.
|
---|
3025 | </desc>
|
---|
3026 | </param>
|
---|
3027 | <param name="version" type="wstring" dir="in">
|
---|
3028 | <desc>Expected version number, usually empty string.</desc>
|
---|
3029 | </param>
|
---|
3030 |
|
---|
3031 | <param name="url" type="wstring" dir="out">
|
---|
3032 | <desc>
|
---|
3033 | Suggested url to download this firmware from.
|
---|
3034 | </desc>
|
---|
3035 | </param>
|
---|
3036 |
|
---|
3037 | <param name="file" type="wstring" dir="out">
|
---|
3038 | <desc>
|
---|
3039 | Filename of firmware, only valid if result == TRUE.
|
---|
3040 | </desc>
|
---|
3041 | </param>
|
---|
3042 |
|
---|
3043 | <param name="result" type="boolean" dir="return">
|
---|
3044 | <desc>If firmware of this type and version is available.</desc>
|
---|
3045 | </param>
|
---|
3046 | </method>
|
---|
3047 |
|
---|
3048 | </interface>
|
---|
3049 |
|
---|
3050 | <!--
|
---|
3051 | // IVFSExplorer
|
---|
3052 | /////////////////////////////////////////////////////////////////////////
|
---|
3053 | -->
|
---|
3054 |
|
---|
3055 | <enum
|
---|
3056 | name="VFSType"
|
---|
3057 | uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
|
---|
3058 | >
|
---|
3059 | <desc>
|
---|
3060 | Virtual file systems supported by VFSExplorer.
|
---|
3061 | </desc>
|
---|
3062 |
|
---|
3063 | <const name="File" value="1" />
|
---|
3064 | <const name="Cloud" value="2" />
|
---|
3065 | <const name="S3" value="3" />
|
---|
3066 | <const name="WebDav" value="4" />
|
---|
3067 | </enum>
|
---|
3068 |
|
---|
3069 | <enum
|
---|
3070 | name="VFSFileType"
|
---|
3071 | uuid="714333cd-44e2-415f-a245-d378fa9b1242"
|
---|
3072 | >
|
---|
3073 | <desc>
|
---|
3074 | File types known by VFSExplorer.
|
---|
3075 | </desc>
|
---|
3076 |
|
---|
3077 | <const name="Unknown" value="1" />
|
---|
3078 | <const name="Fifo" value="2" />
|
---|
3079 | <const name="DevChar" value="3" />
|
---|
3080 | <const name="Directory" value="4" />
|
---|
3081 | <const name="DevBlock" value="5" />
|
---|
3082 | <const name="File" value="6" />
|
---|
3083 | <const name="SymLink" value="7" />
|
---|
3084 | <const name="Socket" value="8" />
|
---|
3085 | <const name="WhiteOut" value="9" />
|
---|
3086 | </enum>
|
---|
3087 |
|
---|
3088 | <interface
|
---|
3089 | name="IVFSExplorer" extends="$unknown"
|
---|
3090 | uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
|
---|
3091 | wsmap="managed"
|
---|
3092 | >
|
---|
3093 | <desc>
|
---|
3094 | The VFSExplorer interface unifies access to different file system
|
---|
3095 | types. This includes local file systems as well remote file systems like
|
---|
3096 | S3. For a list of supported types see <link to="VFSType" />.
|
---|
3097 | An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
|
---|
3098 | </desc>
|
---|
3099 |
|
---|
3100 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3101 | <desc>Returns the current path in the virtual file system.</desc>
|
---|
3102 | </attribute>
|
---|
3103 |
|
---|
3104 | <attribute name="type" type="VFSType" readonly="yes">
|
---|
3105 | <desc>Returns the file system type which is currently in use.</desc>
|
---|
3106 | </attribute>
|
---|
3107 |
|
---|
3108 | <method name="update">
|
---|
3109 | <desc>Updates the internal list of files/directories from the
|
---|
3110 | current directory level. Use <link to="#entryList" /> to get the full list
|
---|
3111 | after a call to this method.</desc>
|
---|
3112 |
|
---|
3113 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3114 | <desc>Progress object to track the operation completion.</desc>
|
---|
3115 | </param>
|
---|
3116 | </method>
|
---|
3117 |
|
---|
3118 | <method name="cd">
|
---|
3119 | <desc>Change the current directory level.</desc>
|
---|
3120 |
|
---|
3121 | <param name="aDir" type="wstring" dir="in">
|
---|
3122 | <desc>The name of the directory to go in.</desc>
|
---|
3123 | </param>
|
---|
3124 |
|
---|
3125 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3126 | <desc>Progress object to track the operation completion.</desc>
|
---|
3127 | </param>
|
---|
3128 | </method>
|
---|
3129 |
|
---|
3130 | <method name="cdUp">
|
---|
3131 | <desc>Go one directory upwards from the current directory level.</desc>
|
---|
3132 |
|
---|
3133 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3134 | <desc>Progress object to track the operation completion.</desc>
|
---|
3135 | </param>
|
---|
3136 | </method>
|
---|
3137 |
|
---|
3138 | <method name="entryList">
|
---|
3139 | <desc>Returns a list of files/directories after a call to <link
|
---|
3140 | to="#update" />. The user is responsible for keeping this internal
|
---|
3141 | list up do date.</desc>
|
---|
3142 |
|
---|
3143 | <param name="aNames" type="wstring" safearray="yes" dir="out">
|
---|
3144 | <desc>The list of names for the entries.</desc>
|
---|
3145 | </param>
|
---|
3146 |
|
---|
3147 | <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
|
---|
3148 | <desc>The list of types for the entries.</desc>
|
---|
3149 | </param>
|
---|
3150 | </method>
|
---|
3151 |
|
---|
3152 | <method name="exists">
|
---|
3153 | <desc>Checks if the given file list exists in the current directory
|
---|
3154 | level.</desc>
|
---|
3155 |
|
---|
3156 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3157 | <desc>The names to check.</desc>
|
---|
3158 | </param>
|
---|
3159 |
|
---|
3160 | <param name="aExists" type="wstring" safearray="yes" dir="return">
|
---|
3161 | <desc>The names which exist.</desc>
|
---|
3162 | </param>
|
---|
3163 | </method>
|
---|
3164 |
|
---|
3165 | <method name="remove">
|
---|
3166 | <desc>Deletes the given files in the current directory level.</desc>
|
---|
3167 |
|
---|
3168 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3169 | <desc>The names to remove.</desc>
|
---|
3170 | </param>
|
---|
3171 |
|
---|
3172 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3173 | <desc>Progress object to track the operation completion.</desc>
|
---|
3174 | </param>
|
---|
3175 | </method>
|
---|
3176 |
|
---|
3177 | </interface>
|
---|
3178 |
|
---|
3179 | <!--
|
---|
3180 | // IAppliance
|
---|
3181 | /////////////////////////////////////////////////////////////////////////
|
---|
3182 | -->
|
---|
3183 |
|
---|
3184 | <interface
|
---|
3185 | name="IAppliance" extends="$unknown"
|
---|
3186 | uuid="e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
|
---|
3187 | wsmap="managed"
|
---|
3188 | >
|
---|
3189 | <desc>
|
---|
3190 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
3191 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
3192 | appliances with VirtualBox.
|
---|
3193 |
|
---|
3194 | The OVF standard suggests two different physical file formats:
|
---|
3195 |
|
---|
3196 | <ol>
|
---|
3197 | <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
|
---|
3198 | path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
|
---|
3199 | this descriptor file references other files, as OVF appliances distributed as a set of
|
---|
3200 | files most likely do, those files must be in the same directory as the descriptor file.</li>
|
---|
3201 |
|
---|
3202 | <li>If the OVF is distributed as a single file, it must be in TAR format and have the
|
---|
3203 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
3204 | files and optionally other files.
|
---|
3205 |
|
---|
3206 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
3207 | be added with a later version.</li>
|
---|
3208 | </ol>
|
---|
3209 |
|
---|
3210 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
3211 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
3212 |
|
---|
3213 | <ol>
|
---|
3214 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
3215 | </li>
|
---|
3216 |
|
---|
3217 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
3218 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
3219 | and return an instance of IAppliance that contains the parsed data from the OVF file.
|
---|
3220 | </li>
|
---|
3221 |
|
---|
3222 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
3223 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
3224 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
3225 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
3226 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
3227 | systems in the OVF, which in turn describe the virtual hardware prescribed by the
|
---|
3228 | OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
3229 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
3230 | </li>
|
---|
3231 |
|
---|
3232 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3233 | virtual system to override the suggestions made by the interpret() routine.
|
---|
3234 | </li>
|
---|
3235 |
|
---|
3236 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
3237 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
3238 | virtual system descriptions.
|
---|
3239 | </li>
|
---|
3240 | </ol>
|
---|
3241 |
|
---|
3242 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
3243 |
|
---|
3244 | <ol>
|
---|
3245 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
3246 | an empty IAppliance object.
|
---|
3247 | </li>
|
---|
3248 |
|
---|
3249 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
3250 | with the IAppliance object you just created. This creates an instance of
|
---|
3251 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
3252 | </li>
|
---|
3253 |
|
---|
3254 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3255 | virtual system to override the suggestions made by the export() routine.
|
---|
3256 | </li>
|
---|
3257 |
|
---|
3258 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
3259 | file written.</li>
|
---|
3260 | </ol>
|
---|
3261 |
|
---|
3262 | </desc>
|
---|
3263 |
|
---|
3264 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3265 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
3266 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
3267 | <link to="#write" /> (for export).
|
---|
3268 | This attribute is empty until one of these methods has been called.
|
---|
3269 | </desc>
|
---|
3270 | </attribute>
|
---|
3271 |
|
---|
3272 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
3273 | <desc>
|
---|
3274 | Array of virtual disk definitions. One such description exists for each
|
---|
3275 | disk definition in the OVF; each string array item represents one such piece of
|
---|
3276 | disk information, with the information fields separated by tab (\\t) characters.
|
---|
3277 |
|
---|
3278 | The caller should be prepared for additional fields being appended to
|
---|
3279 | this string in future versions of VirtualBox and therefore check for
|
---|
3280 | the number of tabs in the strings returned.
|
---|
3281 |
|
---|
3282 | In the current version, the following eight fields are returned per string
|
---|
3283 | in the array:
|
---|
3284 |
|
---|
3285 | <ol>
|
---|
3286 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
3287 |
|
---|
3288 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
3289 |
|
---|
3290 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
3291 | disk; can be approximate; -1 if unspecified)</li>
|
---|
3292 |
|
---|
3293 | <li>Format (string identifying the disk format, typically
|
---|
3294 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
3295 |
|
---|
3296 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
3297 | then the disk should be created on import)</li>
|
---|
3298 |
|
---|
3299 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
3300 | which need not necessarily be the same as the values specified above, since
|
---|
3301 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
3302 |
|
---|
3303 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
3304 | presently unsupported and always -1)</li>
|
---|
3305 |
|
---|
3306 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
3307 | </ol>
|
---|
3308 | </desc>
|
---|
3309 | </attribute>
|
---|
3310 |
|
---|
3311 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
3312 | <desc> Array of virtual system descriptions. One such description is created
|
---|
3313 | for each virtual system found in the OVF.
|
---|
3314 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
3315 | (for export) has been called.
|
---|
3316 | </desc>
|
---|
3317 | </attribute>
|
---|
3318 |
|
---|
3319 | <method name="read">
|
---|
3320 | <desc>
|
---|
3321 | Reads an OVF file into the appliance object.
|
---|
3322 |
|
---|
3323 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
3324 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
3325 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
3326 | </desc>
|
---|
3327 | <param name="file" type="wstring" dir="in">
|
---|
3328 | <desc>
|
---|
3329 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3330 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3331 | </desc>
|
---|
3332 | </param>
|
---|
3333 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3334 | <desc></desc>
|
---|
3335 | </param>
|
---|
3336 | </method>
|
---|
3337 |
|
---|
3338 | <method name="interpret">
|
---|
3339 | <desc>
|
---|
3340 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
3341 | calling this method, one can inspect the
|
---|
3342 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
3343 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
3344 | the appliance.
|
---|
3345 |
|
---|
3346 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
3347 | see <link to="IAppliance" /> for an overview.
|
---|
3348 |
|
---|
3349 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
3350 | if problems were encountered during the processing which might later lead to
|
---|
3351 | errors.
|
---|
3352 | </desc>
|
---|
3353 | </method>
|
---|
3354 |
|
---|
3355 | <method name="importMachines">
|
---|
3356 | <desc>
|
---|
3357 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
3358 | and other interfaces that match the information contained in the appliance as
|
---|
3359 | closely as possible, as represented by the import instructions in the
|
---|
3360 | <link to="#virtualSystemDescriptions" /> array.
|
---|
3361 |
|
---|
3362 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
3363 | see <link to="IAppliance" /> for an overview.
|
---|
3364 |
|
---|
3365 | Since importing the appliance will most probably involve copying and converting
|
---|
3366 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3367 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3368 | </desc>
|
---|
3369 |
|
---|
3370 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3371 | <desc></desc>
|
---|
3372 | </param>
|
---|
3373 | </method>
|
---|
3374 |
|
---|
3375 | <method name="createVFSExplorer">
|
---|
3376 | <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
|
---|
3377 |
|
---|
3378 | <param name="aUri" type="wstring" dir="in">
|
---|
3379 | <desc>The URI describing the file system to use.</desc>
|
---|
3380 | </param>
|
---|
3381 |
|
---|
3382 | <param name="aExplorer" type="IVFSExplorer" dir="return">
|
---|
3383 | <desc></desc>
|
---|
3384 | </param>
|
---|
3385 | </method>
|
---|
3386 |
|
---|
3387 | <method name="write">
|
---|
3388 | <desc>
|
---|
3389 | Writes the contents of the appliance exports into a new OVF file.
|
---|
3390 |
|
---|
3391 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
3392 | see <link to="IAppliance" /> for an overview.
|
---|
3393 |
|
---|
3394 | Since exporting the appliance will most probably involve copying and converting
|
---|
3395 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3396 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3397 | </desc>
|
---|
3398 | <param name="format" type="wstring" dir="in">
|
---|
3399 | <desc>
|
---|
3400 | Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
|
---|
3401 | future versions of VirtualBox may support additional formats.
|
---|
3402 | </desc>
|
---|
3403 | </param>
|
---|
3404 | <param name="path" type="wstring" dir="in">
|
---|
3405 | <desc>
|
---|
3406 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3407 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3408 | </desc>
|
---|
3409 | </param>
|
---|
3410 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3411 | <desc>Progress object to track the operation completion.</desc>
|
---|
3412 | </param>
|
---|
3413 | </method>
|
---|
3414 |
|
---|
3415 | <method name="getWarnings">
|
---|
3416 | <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
|
---|
3417 |
|
---|
3418 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
3419 | <desc></desc>
|
---|
3420 | </param>
|
---|
3421 | </method>
|
---|
3422 |
|
---|
3423 | </interface>
|
---|
3424 |
|
---|
3425 | <enum
|
---|
3426 | name="VirtualSystemDescriptionType"
|
---|
3427 | uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
|
---|
3428 | >
|
---|
3429 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
3430 | a configuration value.</desc>
|
---|
3431 |
|
---|
3432 | <const name="Ignore" value="1" />
|
---|
3433 | <const name="OS" value="2" />
|
---|
3434 | <const name="Name" value="3" />
|
---|
3435 | <const name="Product" value="4" />
|
---|
3436 | <const name="Vendor" value="5" />
|
---|
3437 | <const name="Version" value="6" />
|
---|
3438 | <const name="ProductUrl" value="7" />
|
---|
3439 | <const name="VendorUrl" value="8" />
|
---|
3440 | <const name="Description" value="9" />
|
---|
3441 | <const name="License" value="10" />
|
---|
3442 | <const name="Miscellaneous" value="11" />
|
---|
3443 | <const name="CPU" value="12" />
|
---|
3444 | <const name="Memory" value="13" />
|
---|
3445 | <const name="HardDiskControllerIDE" value="14" />
|
---|
3446 | <const name="HardDiskControllerSATA" value="15" />
|
---|
3447 | <const name="HardDiskControllerSCSI" value="16" />
|
---|
3448 | <const name="HardDiskImage" value="17" />
|
---|
3449 | <const name="Floppy" value="18" />
|
---|
3450 | <const name="CDROM" value="19" />
|
---|
3451 | <const name="NetworkAdapter" value="20" />
|
---|
3452 | <const name="USBController" value="21" />
|
---|
3453 | <const name="SoundCard" value="22" />
|
---|
3454 |
|
---|
3455 | </enum>
|
---|
3456 |
|
---|
3457 | <enum
|
---|
3458 | name="VirtualSystemDescriptionValueType"
|
---|
3459 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
3460 | >
|
---|
3461 | <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
|
---|
3462 | type to fetch.</desc>
|
---|
3463 |
|
---|
3464 | <const name="Reference" value="1" />
|
---|
3465 | <const name="Original" value="2" />
|
---|
3466 | <const name="Auto" value="3" />
|
---|
3467 | <const name="ExtraConfig" value="4" />
|
---|
3468 |
|
---|
3469 | </enum>
|
---|
3470 |
|
---|
3471 | <interface
|
---|
3472 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
3473 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
3474 | wsmap="managed"
|
---|
3475 | >
|
---|
3476 |
|
---|
3477 | <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
|
---|
3478 | After <link to="IAppliance::interpret" /> has been called, that array contains
|
---|
3479 | information about how the virtual systems described in the OVF should best be imported into VirtualBox
|
---|
3480 | virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
|
---|
3481 | into VirtualBox.
|
---|
3482 | </desc>
|
---|
3483 |
|
---|
3484 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
3485 | <desc>Return the number of virtual system description entries.</desc>
|
---|
3486 | </attribute>
|
---|
3487 |
|
---|
3488 | <method name="getDescription">
|
---|
3489 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
3490 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
3491 |
|
---|
3492 | The list below identifies the value sets that are possible depending on the
|
---|
3493 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
|
---|
3494 | the array item with the same index in aOvfValues[] will contain the original value as contained
|
---|
3495 | in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
|
---|
3496 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
3497 | the aExtraConfigValues[] array item may also be used.
|
---|
3498 |
|
---|
3499 | <ul>
|
---|
3500 | <li>
|
---|
3501 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
3502 | corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
3503 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
3504 | item in aOvfValues[] will contain a numerical value that described the operating system in the OVF.
|
---|
3505 | </li>
|
---|
3506 | <li>
|
---|
3507 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
3508 | if none is present on import, then an automatic name will be created from the operating system
|
---|
3509 | type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
|
---|
3510 | from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
|
---|
3511 | <link to="IMachine" /> name that does not exist yet.
|
---|
3512 | </li>
|
---|
3513 | <li>
|
---|
3514 | "Description": an arbitrary description.
|
---|
3515 | </li>
|
---|
3516 | <li>
|
---|
3517 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
3518 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
3519 | </li>
|
---|
3520 | <li>
|
---|
3521 | Miscellaneous: reserved for future use.
|
---|
3522 | </li>
|
---|
3523 | <li>
|
---|
3524 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
3525 | </li>
|
---|
3526 | <li>
|
---|
3527 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
3528 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
3529 | type.
|
---|
3530 | </li>
|
---|
3531 | <li>
|
---|
3532 | "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
|
---|
3533 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3534 | The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
3535 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
3536 | </li>
|
---|
3537 | <li>
|
---|
3538 | "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
3539 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3540 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3541 | </li>
|
---|
3542 | <li>
|
---|
3543 | "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
3544 | The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
|
---|
3545 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3546 | </li>
|
---|
3547 | <li>
|
---|
3548 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
3549 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
3550 |
|
---|
3551 | The array item in aOvfValues[] will contain the file specification from the OVF file (without
|
---|
3552 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
3553 | item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
3554 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
3555 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
3556 | On import, the target image will also be registered with VirtualBox.
|
---|
3557 |
|
---|
3558 | The matching item in the aExtraConfigValues[] array must contain a string of the following
|
---|
3559 | format: "controller=<index>;channel=<c>"
|
---|
3560 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
3561 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
3562 | types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
|
---|
3563 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
3564 | this can range from 0-3 (which VirtualBox will interpret as primary master, primary slave, secondary master and
|
---|
3565 | secondary slave. For SATA and SCSI controllers, the channel can range from 0-29.
|
---|
3566 | </li>
|
---|
3567 | <li>
|
---|
3568 | "CDROM": a virtual CD-ROM drive. The matching item in aExtraConfigValue[] contains the same
|
---|
3569 | attachment information as with "HardDiskImage" items.
|
---|
3570 | </li>
|
---|
3571 | <li>
|
---|
3572 | "CDROM": a virtual floppy drive. The matching item in aExtraConfigValue[] contains the same
|
---|
3573 | attachment information as with "HardDiskImage" items.
|
---|
3574 | </li>
|
---|
3575 | <li>
|
---|
3576 | "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
|
---|
3577 | for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
|
---|
3578 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
3579 | </li>
|
---|
3580 | <li>
|
---|
3581 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
3582 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
3583 | </li>
|
---|
3584 | <li>
|
---|
3585 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
3586 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
3587 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
3588 | may be different from the virtual soundcard expected by the appliance.
|
---|
3589 | </li>
|
---|
3590 | </ul>
|
---|
3591 |
|
---|
3592 | </desc>
|
---|
3593 |
|
---|
3594 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3595 | <desc></desc>
|
---|
3596 | </param>
|
---|
3597 |
|
---|
3598 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3599 | <desc></desc>
|
---|
3600 | </param>
|
---|
3601 |
|
---|
3602 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3603 | <desc></desc>
|
---|
3604 | </param>
|
---|
3605 |
|
---|
3606 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3607 | <desc></desc>
|
---|
3608 | </param>
|
---|
3609 |
|
---|
3610 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3611 | <desc></desc>
|
---|
3612 | </param>
|
---|
3613 |
|
---|
3614 | </method>
|
---|
3615 |
|
---|
3616 | <method name="getDescriptionByType">
|
---|
3617 | <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
|
---|
3618 | should be returned.</desc>
|
---|
3619 |
|
---|
3620 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3621 | <desc></desc>
|
---|
3622 | </param>
|
---|
3623 |
|
---|
3624 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3625 | <desc></desc>
|
---|
3626 | </param>
|
---|
3627 |
|
---|
3628 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3629 | <desc></desc>
|
---|
3630 | </param>
|
---|
3631 |
|
---|
3632 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3633 | <desc></desc>
|
---|
3634 | </param>
|
---|
3635 |
|
---|
3636 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3637 | <desc></desc>
|
---|
3638 | </param>
|
---|
3639 |
|
---|
3640 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3641 | <desc></desc>
|
---|
3642 | </param>
|
---|
3643 |
|
---|
3644 | </method>
|
---|
3645 |
|
---|
3646 | <method name="getValuesByType">
|
---|
3647 | <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
|
---|
3648 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
3649 | values.</desc>
|
---|
3650 |
|
---|
3651 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3652 | <desc></desc>
|
---|
3653 | </param>
|
---|
3654 |
|
---|
3655 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
3656 | <desc></desc>
|
---|
3657 | </param>
|
---|
3658 |
|
---|
3659 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
3660 | <desc></desc>
|
---|
3661 | </param>
|
---|
3662 |
|
---|
3663 | </method>
|
---|
3664 |
|
---|
3665 | <method name="setFinalValues">
|
---|
3666 | <desc>
|
---|
3667 | This method allows the appliance's user to change the configuration for the virtual
|
---|
3668 | system descriptions. For each array item returned from <link to="#getDescription" />,
|
---|
3669 | you must pass in one boolean value and one configuration value.
|
---|
3670 |
|
---|
3671 | Each item in the boolean array determines whether the particular configuration item
|
---|
3672 | should be enabled.
|
---|
3673 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
3674 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
3675 | and SoundCard.
|
---|
3676 |
|
---|
3677 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
3678 | as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
|
---|
3679 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
3680 | for valid configuration values for the individual array item types. If the
|
---|
3681 | corresponding item in the aEnabled array is @c false, the configuration value is ignored.
|
---|
3682 | </desc>
|
---|
3683 |
|
---|
3684 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
3685 | <desc></desc>
|
---|
3686 | </param>
|
---|
3687 |
|
---|
3688 | <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
|
---|
3689 | <desc></desc>
|
---|
3690 | </param>
|
---|
3691 |
|
---|
3692 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
3693 | <desc></desc>
|
---|
3694 | </param>
|
---|
3695 | </method>
|
---|
3696 |
|
---|
3697 | <method name="addDescription">
|
---|
3698 | <desc>
|
---|
3699 | This method adds an additional description entry to the stack of already
|
---|
3700 | available descriptions for this virtual system. This is handy for writing
|
---|
3701 | values which aren't directly supported by VirtualBox. One example would
|
---|
3702 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
3703 | </desc>
|
---|
3704 |
|
---|
3705 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3706 | <desc></desc>
|
---|
3707 | </param>
|
---|
3708 |
|
---|
3709 | <param name="aVBoxValue" type="wstring" dir="in">
|
---|
3710 | <desc></desc>
|
---|
3711 | </param>
|
---|
3712 |
|
---|
3713 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
3714 | <desc></desc>
|
---|
3715 | </param>
|
---|
3716 | </method>
|
---|
3717 | </interface>
|
---|
3718 |
|
---|
3719 |
|
---|
3720 | <!--
|
---|
3721 | // IMachine
|
---|
3722 | /////////////////////////////////////////////////////////////////////////
|
---|
3723 | -->
|
---|
3724 |
|
---|
3725 | <interface
|
---|
3726 | name="IInternalMachineControl" extends="$unknown"
|
---|
3727 | uuid="35d8d838-d066-447d-927a-fd93afdbec90"
|
---|
3728 | internal="yes"
|
---|
3729 | wsmap="suppress"
|
---|
3730 | >
|
---|
3731 | <method name="setRemoveSavedState">
|
---|
3732 | <desc>
|
---|
3733 | Updates the flag whether saved state is removed on a machine state
|
---|
3734 | change from Saved to PoweredOff.
|
---|
3735 | </desc>
|
---|
3736 | <param name="aRemove" type="boolean" dir="in"/>
|
---|
3737 | </method>
|
---|
3738 |
|
---|
3739 | <method name="updateState">
|
---|
3740 | <desc>
|
---|
3741 | Updates the VM state.
|
---|
3742 | <note>
|
---|
3743 | This operation will also update the settings file with
|
---|
3744 | the correct information about the saved state file
|
---|
3745 | and delete this file from disk when appropriate.
|
---|
3746 | </note>
|
---|
3747 | </desc>
|
---|
3748 | <param name="state" type="MachineState" dir="in"/>
|
---|
3749 | </method>
|
---|
3750 |
|
---|
3751 | <method name="getIPCId">
|
---|
3752 | <param name="id" type="wstring" dir="return"/>
|
---|
3753 | </method>
|
---|
3754 |
|
---|
3755 | <method name="runUSBDeviceFilters">
|
---|
3756 | <desc>
|
---|
3757 | Asks the server to run USB devices filters of the associated
|
---|
3758 | machine against the given USB device and tell if there is
|
---|
3759 | a match.
|
---|
3760 | <note>
|
---|
3761 | Intended to be used only for remote USB devices. Local
|
---|
3762 | ones don't require to call this method (this is done
|
---|
3763 | implicitly by the Host and USBProxyService).
|
---|
3764 | </note>
|
---|
3765 | </desc>
|
---|
3766 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3767 | <param name="matched" type="boolean" dir="out"/>
|
---|
3768 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3769 | </method>
|
---|
3770 |
|
---|
3771 | <method name="captureUSBDevice">
|
---|
3772 | <desc>
|
---|
3773 | Requests a capture of the given host USB device.
|
---|
3774 | When the request is completed, the VM process will
|
---|
3775 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3776 | notification.
|
---|
3777 | </desc>
|
---|
3778 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3779 | </method>
|
---|
3780 |
|
---|
3781 | <method name="detachUSBDevice">
|
---|
3782 | <desc>
|
---|
3783 | Notification that a VM is going to detach (@a done = @c false) or has
|
---|
3784 | already detached (@a done = @c true) the given USB device.
|
---|
3785 | When the @a done = @c true request is completed, the VM process will
|
---|
3786 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3787 | notification.
|
---|
3788 | <note>
|
---|
3789 | In the @a done = @c true case, the server must run its own filters
|
---|
3790 | and filters of all VMs but this one on the detached device
|
---|
3791 | as if it were just attached to the host computer.
|
---|
3792 | </note>
|
---|
3793 | </desc>
|
---|
3794 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3795 | <param name="done" type="boolean" dir="in"/>
|
---|
3796 | </method>
|
---|
3797 |
|
---|
3798 | <method name="autoCaptureUSBDevices">
|
---|
3799 | <desc>
|
---|
3800 | Requests a capture all matching USB devices attached to the host.
|
---|
3801 | When the request is completed, the VM process will
|
---|
3802 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3803 | notification per every captured device.
|
---|
3804 | </desc>
|
---|
3805 | </method>
|
---|
3806 |
|
---|
3807 | <method name="detachAllUSBDevices">
|
---|
3808 | <desc>
|
---|
3809 | Notification that a VM that is being powered down. The done
|
---|
3810 | parameter indicates whether which stage of the power down
|
---|
3811 | we're at. When @a done = @c false the VM is announcing its
|
---|
3812 | intentions, while when @a done = @c true the VM is reporting
|
---|
3813 | what it has done.
|
---|
3814 | <note>
|
---|
3815 | In the @a done = @c true case, the server must run its own filters
|
---|
3816 | and filters of all VMs but this one on all detach devices as
|
---|
3817 | if they were just attached to the host computer.
|
---|
3818 | </note>
|
---|
3819 | </desc>
|
---|
3820 | <param name="done" type="boolean" dir="in"/>
|
---|
3821 | </method>
|
---|
3822 |
|
---|
3823 | <method name="onSessionEnd">
|
---|
3824 | <desc>
|
---|
3825 | Triggered by the given session object when the session is about
|
---|
3826 | to close normally.
|
---|
3827 | </desc>
|
---|
3828 | <param name="session" type="ISession" dir="in">
|
---|
3829 | <desc>Session that is being closed</desc>
|
---|
3830 | </param>
|
---|
3831 | <param name="progress" type="IProgress" dir="return">
|
---|
3832 | <desc>
|
---|
3833 | Used to wait until the corresponding machine is actually
|
---|
3834 | dissociated from the given session on the server.
|
---|
3835 | Returned only when this session is a direct one.
|
---|
3836 | </desc>
|
---|
3837 | </param>
|
---|
3838 | </method>
|
---|
3839 |
|
---|
3840 | <method name="beginSavingState">
|
---|
3841 | <desc>
|
---|
3842 | Called by the VM process to inform the server it wants to
|
---|
3843 | save the current state and stop the VM execution.
|
---|
3844 | </desc>
|
---|
3845 | <param name="progress" type="IProgress" dir="in">
|
---|
3846 | <desc>
|
---|
3847 | Progress object created by the VM process to wait until
|
---|
3848 | the state is saved.
|
---|
3849 | </desc>
|
---|
3850 | </param>
|
---|
3851 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3852 | <desc>
|
---|
3853 | File path the VM process must save the execution state to.
|
---|
3854 | </desc>
|
---|
3855 | </param>
|
---|
3856 | </method>
|
---|
3857 |
|
---|
3858 | <method name="endSavingState">
|
---|
3859 | <desc>
|
---|
3860 | Called by the VM process to inform the server that saving
|
---|
3861 | the state previously requested by #beginSavingState is either
|
---|
3862 | successfully finished or there was a failure.
|
---|
3863 |
|
---|
3864 | <result name="VBOX_E_FILE_ERROR">
|
---|
3865 | Settings file not accessible.
|
---|
3866 | </result>
|
---|
3867 | <result name="VBOX_E_XML_ERROR">
|
---|
3868 | Could not parse the settings file.
|
---|
3869 | </result>
|
---|
3870 |
|
---|
3871 | </desc>
|
---|
3872 |
|
---|
3873 | <param name="success" type="boolean" dir="in">
|
---|
3874 | <desc>@c true to indicate success and @c false otherwise.
|
---|
3875 | </desc>
|
---|
3876 | </param>
|
---|
3877 | </method>
|
---|
3878 |
|
---|
3879 | <method name="adoptSavedState">
|
---|
3880 | <desc>
|
---|
3881 | Gets called by IConsole::adoptSavedState.
|
---|
3882 | <result name="VBOX_E_FILE_ERROR">
|
---|
3883 | Invalid saved state file path.
|
---|
3884 | </result>
|
---|
3885 | </desc>
|
---|
3886 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3887 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3888 | </param>
|
---|
3889 | </method>
|
---|
3890 |
|
---|
3891 | <method name="beginTakingSnapshot">
|
---|
3892 | <desc>
|
---|
3893 | Called from the VM process to request from the server to perform the
|
---|
3894 | server-side actions of creating a snapshot (creating differencing images
|
---|
3895 | and the snapshot object).
|
---|
3896 |
|
---|
3897 | <result name="VBOX_E_FILE_ERROR">
|
---|
3898 | Settings file not accessible.
|
---|
3899 | </result>
|
---|
3900 | <result name="VBOX_E_XML_ERROR">
|
---|
3901 | Could not parse the settings file.
|
---|
3902 | </result>
|
---|
3903 | </desc>
|
---|
3904 | <param name="initiator" type="IConsole" dir="in">
|
---|
3905 | <desc>The console object that initiated this call.</desc>
|
---|
3906 | </param>
|
---|
3907 | <param name="name" type="wstring" dir="in">
|
---|
3908 | <desc>Snapshot name.</desc>
|
---|
3909 | </param>
|
---|
3910 | <param name="description" type="wstring" dir="in">
|
---|
3911 | <desc>Snapshot description.</desc>
|
---|
3912 | </param>
|
---|
3913 | <param name="consoleProgress" type="IProgress" dir="in">
|
---|
3914 | <desc>
|
---|
3915 | Progress object created by the VM process tracking the
|
---|
3916 | snapshot's progress. This has the following sub-operations:
|
---|
3917 | <ul>
|
---|
3918 | <li>setting up (weight 1);</li>
|
---|
3919 | <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
|
---|
3920 | <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
|
---|
3921 | <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
|
---|
3922 | <li>finishing up (weight 1)</li>
|
---|
3923 | </ul>
|
---|
3924 | </desc>
|
---|
3925 | </param>
|
---|
3926 | <param name="fTakingSnapshotOnline" type="boolean" dir="in">
|
---|
3927 | <desc>
|
---|
3928 | Whether this is an online snapshot (i.e. the machine is running).
|
---|
3929 | </desc>
|
---|
3930 | </param>
|
---|
3931 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3932 | <desc>
|
---|
3933 | File path the VM process must save the execution state to.
|
---|
3934 | </desc>
|
---|
3935 | </param>
|
---|
3936 | </method>
|
---|
3937 |
|
---|
3938 | <method name="endTakingSnapshot">
|
---|
3939 | <desc>
|
---|
3940 | Called by the VM process to inform the server that the snapshot
|
---|
3941 | previously requested by #beginTakingSnapshot is either
|
---|
3942 | successfully taken or there was a failure.
|
---|
3943 | </desc>
|
---|
3944 |
|
---|
3945 | <param name="success" type="boolean" dir="in">
|
---|
3946 | <desc>@c true to indicate success and @c false otherwise</desc>
|
---|
3947 | </param>
|
---|
3948 | </method>
|
---|
3949 |
|
---|
3950 | <method name="deleteSnapshot">
|
---|
3951 | <desc>
|
---|
3952 | Gets called by IConsole::deleteSnapshot.
|
---|
3953 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3954 | Snapshot has more than one child snapshot.
|
---|
3955 | </result>
|
---|
3956 | </desc>
|
---|
3957 | <param name="initiator" type="IConsole" dir="in">
|
---|
3958 | <desc>The console object that initiated this call.</desc>
|
---|
3959 | </param>
|
---|
3960 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
3961 | <desc>UUID of the snapshot to discard.</desc>
|
---|
3962 | </param>
|
---|
3963 | <param name="machineState" type="MachineState" dir="out">
|
---|
3964 | <desc>New machine state after this operation is started.</desc>
|
---|
3965 | </param>
|
---|
3966 | <param name="progress" type="IProgress" dir="return">
|
---|
3967 | <desc>Progress object to track the operation completion.</desc>
|
---|
3968 | </param>
|
---|
3969 | </method>
|
---|
3970 |
|
---|
3971 | <method name="restoreSnapshot">
|
---|
3972 | <desc>
|
---|
3973 | Gets called by IConsole::RestoreSnapshot.
|
---|
3974 | </desc>
|
---|
3975 | <param name="initiator" type="IConsole" dir="in">
|
---|
3976 | <desc>The console object that initiated this call.</desc>
|
---|
3977 | </param>
|
---|
3978 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
3979 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
3980 | </param>
|
---|
3981 | <param name="machineState" type="MachineState" dir="out">
|
---|
3982 | <desc>New machine state after this operation is started.</desc>
|
---|
3983 | </param>
|
---|
3984 | <param name="progress" type="IProgress" dir="return">
|
---|
3985 | <desc>Progress object to track the operation completion.</desc>
|
---|
3986 | </param>
|
---|
3987 | </method>
|
---|
3988 |
|
---|
3989 | <method name="pullGuestProperties">
|
---|
3990 | <desc>
|
---|
3991 | Get the list of the guest properties matching a set of patterns along
|
---|
3992 | with their values, time stamps and flags and give responsibility for
|
---|
3993 | managing properties to the console.
|
---|
3994 | </desc>
|
---|
3995 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3996 | <desc>
|
---|
3997 | The names of the properties returned.
|
---|
3998 | </desc>
|
---|
3999 | </param>
|
---|
4000 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
4001 | <desc>
|
---|
4002 | The values of the properties returned. The array entries match the
|
---|
4003 | corresponding entries in the @a name array.
|
---|
4004 | </desc>
|
---|
4005 | </param>
|
---|
4006 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
4007 | <desc>
|
---|
4008 | The time stamps of the properties returned. The array entries match
|
---|
4009 | the corresponding entries in the @a name array.
|
---|
4010 | </desc>
|
---|
4011 | </param>
|
---|
4012 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
4013 | <desc>
|
---|
4014 | The flags of the properties returned. The array entries match the
|
---|
4015 | corresponding entries in the @a name array.
|
---|
4016 | </desc>
|
---|
4017 | </param>
|
---|
4018 | </method>
|
---|
4019 |
|
---|
4020 | <method name="pushGuestProperties">
|
---|
4021 | <desc>
|
---|
4022 | Set the list of the guest properties matching a set of patterns along
|
---|
4023 | with their values, time stamps and flags and return responsibility for
|
---|
4024 | managing properties to IMachine.
|
---|
4025 | </desc>
|
---|
4026 | <param name="name" type="wstring" dir="in" safearray="yes">
|
---|
4027 | <desc>
|
---|
4028 | The names of the properties.
|
---|
4029 | </desc>
|
---|
4030 | </param>
|
---|
4031 | <param name="value" type="wstring" dir="in" safearray="yes">
|
---|
4032 | <desc>
|
---|
4033 | The values of the properties. The array entries match the
|
---|
4034 | corresponding entries in the @a name array.
|
---|
4035 | </desc>
|
---|
4036 | </param>
|
---|
4037 | <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
|
---|
4038 | <desc>
|
---|
4039 | The time stamps of the properties. The array entries match
|
---|
4040 | the corresponding entries in the @a name array.
|
---|
4041 | </desc>
|
---|
4042 | </param>
|
---|
4043 | <param name="flags" type="wstring" dir="in" safearray="yes">
|
---|
4044 | <desc>
|
---|
4045 | The flags of the properties. The array entries match the
|
---|
4046 | corresponding entries in the @a name array.
|
---|
4047 | </desc>
|
---|
4048 | </param>
|
---|
4049 | </method>
|
---|
4050 | <method name="pushGuestProperty">
|
---|
4051 | <desc>
|
---|
4052 | Update a single guest property in IMachine.
|
---|
4053 | </desc>
|
---|
4054 | <param name="name" type="wstring" dir="in">
|
---|
4055 | <desc>
|
---|
4056 | The name of the property to be updated.
|
---|
4057 | </desc>
|
---|
4058 | </param>
|
---|
4059 | <param name="value" type="wstring" dir="in">
|
---|
4060 | <desc>
|
---|
4061 | The value of the property.
|
---|
4062 | </desc>
|
---|
4063 | </param>
|
---|
4064 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
4065 | <desc>
|
---|
4066 | The timestamp of the property.
|
---|
4067 | </desc>
|
---|
4068 | </param>
|
---|
4069 | <param name="flags" type="wstring" dir="in">
|
---|
4070 | <desc>
|
---|
4071 | The flags of the property.
|
---|
4072 | </desc>
|
---|
4073 | </param>
|
---|
4074 | </method>
|
---|
4075 |
|
---|
4076 | <method name="lockMedia">
|
---|
4077 | <desc>
|
---|
4078 | Locks all media attached to the machine for writing and parents of
|
---|
4079 | attached differencing media (if any) for reading. This operation is
|
---|
4080 | atomic so that if it fails no media is actually locked.
|
---|
4081 |
|
---|
4082 | This method is intended to be called when the machine is in Starting or
|
---|
4083 | Restoring state. The locked media will be automatically unlocked when
|
---|
4084 | the machine is powered off or crashed.
|
---|
4085 | </desc>
|
---|
4086 | </method>
|
---|
4087 | <method name="unlockMedia">
|
---|
4088 | <desc>
|
---|
4089 | Unlocks all media previously locked using
|
---|
4090 | <link to="IInternalMachineControl::lockMedia"/>.
|
---|
4091 |
|
---|
4092 | This method is intended to be used with teleportation so that it is
|
---|
4093 | possible to teleport between processes on the same machine.
|
---|
4094 | </desc>
|
---|
4095 | </method>
|
---|
4096 | </interface>
|
---|
4097 |
|
---|
4098 | <interface
|
---|
4099 | name="IBIOSSettings" extends="$unknown"
|
---|
4100 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
4101 | wsmap="managed"
|
---|
4102 | >
|
---|
4103 | <desc>
|
---|
4104 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
4105 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
4106 | </desc>
|
---|
4107 | <attribute name="logoFadeIn" type="boolean">
|
---|
4108 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
4109 | </attribute>
|
---|
4110 |
|
---|
4111 | <attribute name="logoFadeOut" type="boolean">
|
---|
4112 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
4113 | </attribute>
|
---|
4114 |
|
---|
4115 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
4116 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
4117 | </attribute>
|
---|
4118 |
|
---|
4119 | <attribute name="logoImagePath" type="wstring">
|
---|
4120 | <desc>Local file system path for external BIOS image.</desc>
|
---|
4121 | </attribute>
|
---|
4122 |
|
---|
4123 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
4124 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
4125 | </attribute>
|
---|
4126 |
|
---|
4127 | <attribute name="ACPIEnabled" type="boolean">
|
---|
4128 | <desc>ACPI support flag.</desc>
|
---|
4129 | </attribute>
|
---|
4130 |
|
---|
4131 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
4132 | <desc>
|
---|
4133 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
4134 | and support IRQs above 15.
|
---|
4135 | </desc>
|
---|
4136 | </attribute>
|
---|
4137 |
|
---|
4138 | <attribute name="timeOffset" type="long long">
|
---|
4139 | <desc>
|
---|
4140 | Offset in milliseconds from the host system time. This allows for
|
---|
4141 | guests running with a different system date/time than the host.
|
---|
4142 | It is equivalent to setting the system date/time in the BIOS except
|
---|
4143 | it is not an absolute value but a relative one. Guest Additions
|
---|
4144 | time synchronization honors this offset.
|
---|
4145 | </desc>
|
---|
4146 | </attribute>
|
---|
4147 |
|
---|
4148 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
4149 | <desc>
|
---|
4150 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
4151 | PXE trace information to the release log.
|
---|
4152 | </desc>
|
---|
4153 | </attribute>
|
---|
4154 |
|
---|
4155 | </interface>
|
---|
4156 |
|
---|
4157 | <interface
|
---|
4158 | name="IMachine" extends="$unknown"
|
---|
4159 | uuid="99404f50-dd10-40d3-889b-dd2f79f1e95e"
|
---|
4160 | wsmap="managed"
|
---|
4161 | >
|
---|
4162 | <desc>
|
---|
4163 | The IMachine interface represents a virtual machine, or guest, created
|
---|
4164 | in VirtualBox.
|
---|
4165 |
|
---|
4166 | This interface is used in two contexts. First of all, a collection of
|
---|
4167 | objects implementing this interface is stored in the
|
---|
4168 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
4169 | machines that are currently registered with this VirtualBox
|
---|
4170 | installation. Also, once a session has been opened for the given virtual
|
---|
4171 | machine (e.g. the virtual machine is running), the machine object
|
---|
4172 | associated with the open session can be queried from the session object;
|
---|
4173 | see <link to="ISession"/> for details.
|
---|
4174 |
|
---|
4175 | The main role of this interface is to expose the settings of the virtual
|
---|
4176 | machine and provide methods to change various aspects of the virtual
|
---|
4177 | machine's configuration. For machine objects stored in the
|
---|
4178 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
4179 | read-only unless explicitly stated otherwise in individual attribute
|
---|
4180 | and method descriptions. In order to change a machine setting, a session
|
---|
4181 | for this machine must be opened using one of
|
---|
4182 | <link to="IVirtualBox::openSession"/>,
|
---|
4183 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4184 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
4185 | session has been successfully opened, a mutable machine object needs to
|
---|
4186 | be queried from the session object and then the desired settings changes
|
---|
4187 | can be applied to the returned object using IMachine attributes and
|
---|
4188 | methods. See the <link to="ISession"/> interface description for more
|
---|
4189 | information about sessions.
|
---|
4190 |
|
---|
4191 | Note that IMachine does not provide methods to control virtual machine
|
---|
4192 | execution (such as start the machine, or power it down) -- these methods
|
---|
4193 | are grouped in a separate interface called <link to="IConsole" />.
|
---|
4194 |
|
---|
4195 | <see>ISession, IConsole</see>
|
---|
4196 | </desc>
|
---|
4197 |
|
---|
4198 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
4199 | <desc>Associated parent object.</desc>
|
---|
4200 | </attribute>
|
---|
4201 |
|
---|
4202 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
4203 | <desc>
|
---|
4204 | Whether this virtual machine is currently accessible or not.
|
---|
4205 |
|
---|
4206 | A machine is always deemed accessible unless it is registered <i>and</i>
|
---|
4207 | its settings file cannot be read or parsed (either because the file itself
|
---|
4208 | is unavailable or has invalid XML contents).
|
---|
4209 |
|
---|
4210 | Every time this property is read, the accessibility state of
|
---|
4211 | this machine is re-evaluated. If the returned value is @c false,
|
---|
4212 | the <link to="#accessError"/> property may be used to get the
|
---|
4213 | detailed error information describing the reason of
|
---|
4214 | inaccessibility, including XML error messages.
|
---|
4215 |
|
---|
4216 | When the machine is inaccessible, only the following properties
|
---|
4217 | can be used on it:
|
---|
4218 | <ul>
|
---|
4219 | <li><link to="#parent"/></li>
|
---|
4220 | <li><link to="#id"/></li>
|
---|
4221 | <li><link to="#settingsFilePath"/></li>
|
---|
4222 | <li><link to="#accessible"/></li>
|
---|
4223 | <li><link to="#accessError"/></li>
|
---|
4224 | </ul>
|
---|
4225 |
|
---|
4226 | An attempt to access any other property or method will return
|
---|
4227 | an error.
|
---|
4228 |
|
---|
4229 | The only possible action you can perform on an inaccessible
|
---|
4230 | machine is to unregister it using the
|
---|
4231 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
4232 | for the accessibility state once more by querying this
|
---|
4233 | property).
|
---|
4234 |
|
---|
4235 | <note>
|
---|
4236 | In the current implementation, once this property returns
|
---|
4237 | @c true, the machine will never become inaccessible
|
---|
4238 | later, even if its settings file cannot be successfully
|
---|
4239 | read/written any more (at least, until the VirtualBox
|
---|
4240 | server is restarted). This limitation may be removed in
|
---|
4241 | future releases.
|
---|
4242 | </note>
|
---|
4243 | </desc>
|
---|
4244 | </attribute>
|
---|
4245 |
|
---|
4246 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4247 | <desc>
|
---|
4248 | Error information describing the reason of machine
|
---|
4249 | inaccessibility.
|
---|
4250 |
|
---|
4251 | Reading this property is only valid after the last call to
|
---|
4252 | <link to="#accessible"/> returned @c false (i.e. the
|
---|
4253 | machine is currently unaccessible). Otherwise, a @c null
|
---|
4254 | IVirtualBoxErrorInfo object will be returned.
|
---|
4255 | </desc>
|
---|
4256 | </attribute>
|
---|
4257 |
|
---|
4258 | <attribute name="name" type="wstring">
|
---|
4259 | <desc>
|
---|
4260 | Name of the virtual machine.
|
---|
4261 |
|
---|
4262 | Besides being used for human-readable identification purposes
|
---|
4263 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
4264 | as a name of the machine's settings file and as a name of the
|
---|
4265 | subdirectory this settings file resides in. Thus, every time you
|
---|
4266 | change the value of this property, the settings file will be
|
---|
4267 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
4268 | change. The containing subdirectory will be also renamed, but
|
---|
4269 | only if it has exactly the same name as the settings file
|
---|
4270 | itself prior to changing this property (for backward compatibility
|
---|
4271 | with previous API releases). The above implies the following
|
---|
4272 | limitations:
|
---|
4273 | <ul>
|
---|
4274 | <li>The machine name cannot be empty.</li>
|
---|
4275 | <li>The machine name can contain only characters that are valid
|
---|
4276 | file name characters according to the rules of the file
|
---|
4277 | system used to store VirtualBox configuration.</li>
|
---|
4278 | <li>You cannot have two or more machines with the same name
|
---|
4279 | if they use the same subdirectory for storing the machine
|
---|
4280 | settings files.</li>
|
---|
4281 | <li>You cannot change the name of the machine if it is running,
|
---|
4282 | or if any file in the directory containing the settings file
|
---|
4283 | is being used by another running machine or by any other
|
---|
4284 | process in the host operating system at a time when
|
---|
4285 | <link to="#saveSettings"/> is called.
|
---|
4286 | </li>
|
---|
4287 | </ul>
|
---|
4288 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
4289 | will return an appropriate error message explaining the exact
|
---|
4290 | reason and the changes you made to this machine will not be
|
---|
4291 | saved.
|
---|
4292 | <note>
|
---|
4293 | For "legacy" machines created using the
|
---|
4294 | <link to="IVirtualBox::createLegacyMachine"/> call,
|
---|
4295 | the above naming limitations do not apply because the
|
---|
4296 | machine name does not affect the settings file name.
|
---|
4297 | The settings file name remains the same as it was specified
|
---|
4298 | during machine creation and never changes.
|
---|
4299 | </note>
|
---|
4300 | </desc>
|
---|
4301 | </attribute>
|
---|
4302 |
|
---|
4303 | <attribute name="description" type="wstring">
|
---|
4304 | <desc>
|
---|
4305 | Description of the virtual machine.
|
---|
4306 |
|
---|
4307 | The description attribute can contain any text and is
|
---|
4308 | typically used to describe the hardware and software
|
---|
4309 | configuration of the virtual machine in detail (i.e. network
|
---|
4310 | settings, versions of the installed software and so on).
|
---|
4311 | </desc>
|
---|
4312 | </attribute>
|
---|
4313 |
|
---|
4314 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
4315 | <desc>UUID of the virtual machine.</desc>
|
---|
4316 | </attribute>
|
---|
4317 |
|
---|
4318 | <attribute name="OSTypeId" type="wstring">
|
---|
4319 | <desc>
|
---|
4320 | User-defined identifier of the Guest OS type.
|
---|
4321 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4322 | an IGuestOSType object representing details about the given
|
---|
4323 | Guest OS type.
|
---|
4324 | <note>
|
---|
4325 | This value may differ from the value returned by
|
---|
4326 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
4327 | installed to the guest OS.
|
---|
4328 | </note>
|
---|
4329 | </desc>
|
---|
4330 | </attribute>
|
---|
4331 |
|
---|
4332 | <attribute name="HardwareVersion" type="wstring">
|
---|
4333 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
4334 | </attribute>
|
---|
4335 |
|
---|
4336 | <attribute name="hardwareUUID" type="uuid" mod="string">
|
---|
4337 | <desc>
|
---|
4338 | The UUID presented to the guest via memory tables, hardware and guest
|
---|
4339 | properties. For most VMs this is the same as the @a id, but for VMs
|
---|
4340 | which have been cloned or teleported it may be the same as the source
|
---|
4341 | VM. This latter is because the guest shouldn't notice that it was
|
---|
4342 | cloned or teleported.
|
---|
4343 | </desc>
|
---|
4344 | </attribute>
|
---|
4345 |
|
---|
4346 | <attribute name="CPUCount" type="unsigned long">
|
---|
4347 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
4348 | </attribute>
|
---|
4349 |
|
---|
4350 | <attribute name="memorySize" type="unsigned long">
|
---|
4351 | <desc>System memory size in megabytes.</desc>
|
---|
4352 | </attribute>
|
---|
4353 |
|
---|
4354 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4355 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
4356 | </attribute>
|
---|
4357 |
|
---|
4358 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4359 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
4360 | </attribute>
|
---|
4361 |
|
---|
4362 | <attribute name="VRAMSize" type="unsigned long">
|
---|
4363 | <desc>Video memory size in megabytes.</desc>
|
---|
4364 | </attribute>
|
---|
4365 |
|
---|
4366 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
4367 | <desc>
|
---|
4368 | This setting determines whether VirtualBox allows this machine to make
|
---|
4369 | use of the 3D graphics support available on the host.</desc>
|
---|
4370 | </attribute>
|
---|
4371 |
|
---|
4372 | <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
|
---|
4373 | <desc>
|
---|
4374 | This setting determines whether VirtualBox allows this machine to make
|
---|
4375 | use of the 2D video acceleration support available on the host.</desc>
|
---|
4376 | </attribute>
|
---|
4377 |
|
---|
4378 | <attribute name="monitorCount" type="unsigned long">
|
---|
4379 | <desc>
|
---|
4380 | Number of virtual monitors.
|
---|
4381 | <note>
|
---|
4382 | Only effective on Windows XP and later guests with
|
---|
4383 | Guest Additions installed.
|
---|
4384 | </note>
|
---|
4385 | </desc>
|
---|
4386 | </attribute>
|
---|
4387 |
|
---|
4388 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
4389 | <desc>Object containing all BIOS settings.</desc>
|
---|
4390 | </attribute>
|
---|
4391 |
|
---|
4392 | <attribute name="firmwareType" type="FirmwareType">
|
---|
4393 | <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
|
---|
4394 | bootstrap in this VM.</desc>
|
---|
4395 | </attribute>
|
---|
4396 |
|
---|
4397 | <attribute name="snapshotFolder" type="wstring">
|
---|
4398 | <desc>
|
---|
4399 | Full path to the directory used to store snapshot data
|
---|
4400 | (differencing media and saved state files) of this machine.
|
---|
4401 |
|
---|
4402 | The initial value of this property is
|
---|
4403 | <tt><</tt><link to="#settingsFilePath">
|
---|
4404 | path_to_settings_file</link><tt>>/<</tt>
|
---|
4405 | <link to="#id">machine_uuid</link>
|
---|
4406 | <tt>></tt>.
|
---|
4407 |
|
---|
4408 | Currently, it is an error to try to change this property on
|
---|
4409 | a machine that has snapshots (because this would require to
|
---|
4410 | move possibly large files to a different location).
|
---|
4411 | A separate method will be available for this purpose later.
|
---|
4412 |
|
---|
4413 | <note>
|
---|
4414 | Setting this property to @c null or to an empty string will restore
|
---|
4415 | the initial value.
|
---|
4416 | </note>
|
---|
4417 | <note>
|
---|
4418 | When setting this property, the specified path can be
|
---|
4419 | absolute (full path) or relative to the directory where the
|
---|
4420 | <link to="#settingsFilePath">machine settings file</link>
|
---|
4421 | is located. When reading this property, a full path is
|
---|
4422 | always returned.
|
---|
4423 | </note>
|
---|
4424 | <note>
|
---|
4425 | The specified path may not exist, it will be created
|
---|
4426 | when necessary.
|
---|
4427 | </note>
|
---|
4428 | </desc>
|
---|
4429 | </attribute>
|
---|
4430 |
|
---|
4431 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
4432 | <desc>VRDP server object.</desc>
|
---|
4433 | </attribute>
|
---|
4434 |
|
---|
4435 | <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
|
---|
4436 | <desc>Array of media attached to this machine.</desc>
|
---|
4437 | </attribute>
|
---|
4438 |
|
---|
4439 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
4440 | <desc>
|
---|
4441 | Associated USB controller object.
|
---|
4442 |
|
---|
4443 | <note>
|
---|
4444 | If USB functionality is not available in the given edition of
|
---|
4445 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4446 | </note>
|
---|
4447 | </desc>
|
---|
4448 | </attribute>
|
---|
4449 |
|
---|
4450 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
4451 | <desc>Associated audio adapter, always present.</desc>
|
---|
4452 | </attribute>
|
---|
4453 |
|
---|
4454 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
4455 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
4456 | </attribute>
|
---|
4457 |
|
---|
4458 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
4459 | <desc>
|
---|
4460 | Full name of the file containing machine settings data.
|
---|
4461 | </desc>
|
---|
4462 | </attribute>
|
---|
4463 |
|
---|
4464 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
4465 | <desc>
|
---|
4466 | Whether the settings of this machine have been modified
|
---|
4467 | (but neither yet saved nor discarded).
|
---|
4468 | <note>
|
---|
4469 | Reading this property is only valid on instances returned
|
---|
4470 | by <link to="ISession::machine"/> and on new machines
|
---|
4471 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
4472 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
4473 | yet registered, or on unregistered machines after calling
|
---|
4474 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
4475 | cases, the settings can never be modified.
|
---|
4476 | </note>
|
---|
4477 | <note>
|
---|
4478 | For newly created unregistered machines, the value of this
|
---|
4479 | property is always @c true until <link to="#saveSettings"/>
|
---|
4480 | is called (no matter if any machine settings have been
|
---|
4481 | changed after the creation or not). For opened machines
|
---|
4482 | the value is set to @c false (and then follows to normal rules).
|
---|
4483 | </note>
|
---|
4484 | </desc>
|
---|
4485 | </attribute>
|
---|
4486 |
|
---|
4487 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
4488 | <desc>Current session state for this machine.</desc>
|
---|
4489 | </attribute>
|
---|
4490 |
|
---|
4491 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
4492 | <desc>
|
---|
4493 | Type of the session. If <link to="#sessionState"/> is
|
---|
4494 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
4495 | same value as passed to the
|
---|
4496 | <link to="IVirtualBox::openRemoteSession"/> method in the
|
---|
4497 | @a type parameter. If the session was opened directly using
|
---|
4498 | <link to="IVirtualBox::openSession"/>, or if
|
---|
4499 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
4500 | attribute is an empty string.
|
---|
4501 | </desc>
|
---|
4502 | </attribute>
|
---|
4503 |
|
---|
4504 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
4505 | <desc>
|
---|
4506 | Identifier of the session process. This attribute contains the
|
---|
4507 | platform-dependent identifier of the process that has opened a
|
---|
4508 | direct session for this machine using the
|
---|
4509 | <link to="IVirtualBox::openSession"/> call. The returned value
|
---|
4510 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
4511 | SessionClosing (i.e. a session is currently open or being
|
---|
4512 | closed) by the time this property is read.
|
---|
4513 | </desc>
|
---|
4514 | </attribute>
|
---|
4515 |
|
---|
4516 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4517 | <desc>Current execution state of this machine.</desc>
|
---|
4518 | </attribute>
|
---|
4519 |
|
---|
4520 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
4521 | <desc>
|
---|
4522 | Time stamp of the last execution state change,
|
---|
4523 | in milliseconds since 1970-01-01 UTC.
|
---|
4524 | </desc>
|
---|
4525 | </attribute>
|
---|
4526 |
|
---|
4527 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
4528 | <desc>
|
---|
4529 | Full path to the file that stores the execution state of
|
---|
4530 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
4531 | <note>
|
---|
4532 | When the machine is not in the Saved state, this attribute is
|
---|
4533 | an empty string.
|
---|
4534 | </note>
|
---|
4535 | </desc>
|
---|
4536 | </attribute>
|
---|
4537 |
|
---|
4538 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
4539 | <desc>
|
---|
4540 | Full path to the folder that stores a set of rotated log files
|
---|
4541 | recorded during machine execution. The most recent log file is
|
---|
4542 | named <tt>VBox.log</tt>, the previous log file is
|
---|
4543 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
4544 | in the current version).
|
---|
4545 | </desc>
|
---|
4546 | </attribute>
|
---|
4547 |
|
---|
4548 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
4549 | <desc>
|
---|
4550 | Current snapshot of this machine. This is @c null if the machine
|
---|
4551 | currently has no snapshots. If it is not @c null, then it was
|
---|
4552 | set by one of <link to="Console::takeSnapshot" />,
|
---|
4553 | <link to="Console::deleteSnapshot" />
|
---|
4554 | or <link to="Console::restoreSnapshot" />, depending on which
|
---|
4555 | was called last. See <link to="ISnapshot"/> for details.
|
---|
4556 | </desc>
|
---|
4557 | </attribute>
|
---|
4558 |
|
---|
4559 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
4560 | <desc>
|
---|
4561 | Number of snapshots taken on this machine. Zero means the
|
---|
4562 | machine doesn't have any snapshots.
|
---|
4563 | </desc>
|
---|
4564 | </attribute>
|
---|
4565 |
|
---|
4566 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
4567 | <desc>
|
---|
4568 | Returns @c true if the current state of the machine is not
|
---|
4569 | identical to the state stored in the current snapshot.
|
---|
4570 |
|
---|
4571 | The current state is identical to the current snapshot only
|
---|
4572 | directly after one of the following calls are made:
|
---|
4573 |
|
---|
4574 | <ul>
|
---|
4575 | <li><link to="IConsole::restoreSnapshot"/>
|
---|
4576 | </li>
|
---|
4577 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
4578 | "powered off" or "saved" machine, for which
|
---|
4579 | <link to="#settingsModified"/> returns @c false)
|
---|
4580 | </li>
|
---|
4581 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
4582 | </li>
|
---|
4583 | </ul>
|
---|
4584 |
|
---|
4585 | The current state remains identical until one of the following
|
---|
4586 | happens:
|
---|
4587 | <ul>
|
---|
4588 | <li>settings of the machine are changed</li>
|
---|
4589 | <li>the saved state is discarded</li>
|
---|
4590 | <li>the current snapshot is discarded</li>
|
---|
4591 | <li>an attempt to execute the machine is made</li>
|
---|
4592 | </ul>
|
---|
4593 |
|
---|
4594 | <note>
|
---|
4595 | For machines that don't have snapshots, this property is
|
---|
4596 | always @c false.
|
---|
4597 | </note>
|
---|
4598 | </desc>
|
---|
4599 | </attribute>
|
---|
4600 |
|
---|
4601 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
4602 | <desc>
|
---|
4603 | Collection of shared folders for this machine (permanent shared
|
---|
4604 | folders). These folders are shared automatically at machine startup
|
---|
4605 | and available only to the guest OS installed within this machine.
|
---|
4606 |
|
---|
4607 | New shared folders are added to the collection using
|
---|
4608 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4609 | removed using <link to="#removeSharedFolder"/>.
|
---|
4610 | </desc>
|
---|
4611 | </attribute>
|
---|
4612 |
|
---|
4613 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
4614 | <desc>
|
---|
4615 | Synchronization mode between the host OS clipboard
|
---|
4616 | and the guest OS clipboard.
|
---|
4617 | </desc>
|
---|
4618 | </attribute>
|
---|
4619 |
|
---|
4620 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
4621 | <desc>
|
---|
4622 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
4623 | properties whose name matches one of the patterns will generate an
|
---|
4624 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
4625 | </desc>
|
---|
4626 | </attribute>
|
---|
4627 |
|
---|
4628 | <attribute name="teleporterEnabled" type="boolean">
|
---|
4629 | <desc>
|
---|
4630 | When set to @a true, the virtual machine becomes a target teleporter
|
---|
4631 | the next time it is powered on. This can only set to @a true when the
|
---|
4632 | VM is in the @a PoweredOff or @a Aborted state.
|
---|
4633 |
|
---|
4634 | <!-- This property is automatically set to @a false when the VM is powered
|
---|
4635 | on. (bird: This doesn't work yet ) -->
|
---|
4636 | </desc>
|
---|
4637 | </attribute>
|
---|
4638 |
|
---|
4639 | <attribute name="teleporterPort" type="unsigned long">
|
---|
4640 | <desc>
|
---|
4641 | The TCP port the target teleporter will listen for incoming
|
---|
4642 | teleportations on.
|
---|
4643 |
|
---|
4644 | 0 means the port is automatically selected upon power on. The actual
|
---|
4645 | value can be read from this property while the machine is waiting for
|
---|
4646 | incoming teleportations.
|
---|
4647 | </desc>
|
---|
4648 | </attribute>
|
---|
4649 |
|
---|
4650 | <attribute name="teleporterAddress" type="wstring">
|
---|
4651 | <desc>
|
---|
4652 | The address the target teleporter will listen on. If set to an empty
|
---|
4653 | string, it will listen on all addresses.
|
---|
4654 | </desc>
|
---|
4655 | </attribute>
|
---|
4656 |
|
---|
4657 | <attribute name="teleporterPassword" type="wstring">
|
---|
4658 | <desc>
|
---|
4659 | The password the to check for on the target teleporter. This is just a
|
---|
4660 | very basic measure to prevent simple hacks and operators accidentally
|
---|
4661 | beaming a virtual machine to the wrong place.
|
---|
4662 | </desc>
|
---|
4663 | </attribute>
|
---|
4664 |
|
---|
4665 | <method name="setBootOrder">
|
---|
4666 | <desc>
|
---|
4667 | Puts the given device to the specified position in
|
---|
4668 | the boot order.
|
---|
4669 |
|
---|
4670 | To indicate that no device is associated with the given position,
|
---|
4671 | <link to="DeviceType_Null"/> should be used.
|
---|
4672 |
|
---|
4673 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4674 |
|
---|
4675 | <result name="E_INVALIDARG">
|
---|
4676 | Boot @a position out of range.
|
---|
4677 | </result>
|
---|
4678 | <result name="E_NOTIMPL">
|
---|
4679 | Booting from USB @a device currently not supported.
|
---|
4680 | </result>
|
---|
4681 |
|
---|
4682 | </desc>
|
---|
4683 | <param name="position" type="unsigned long" dir="in">
|
---|
4684 | <desc>
|
---|
4685 | Position in the boot order (@c 1 to the total number of
|
---|
4686 | devices the machine can boot from, as returned by
|
---|
4687 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4688 | </desc>
|
---|
4689 | </param>
|
---|
4690 | <param name="device" type="DeviceType" dir="in">
|
---|
4691 | <desc>
|
---|
4692 | The type of the device used to boot at the given position.
|
---|
4693 | </desc>
|
---|
4694 | </param>
|
---|
4695 | </method>
|
---|
4696 |
|
---|
4697 | <method name="getBootOrder" const="yes">
|
---|
4698 | <desc>
|
---|
4699 | Returns the device type that occupies the specified
|
---|
4700 | position in the boot order.
|
---|
4701 |
|
---|
4702 | @todo [remove?]
|
---|
4703 | If the machine can have more than one device of the returned type
|
---|
4704 | (such as hard disks), then a separate method should be used to
|
---|
4705 | retrieve the individual device that occupies the given position.
|
---|
4706 |
|
---|
4707 | If here are no devices at the given position, then
|
---|
4708 | <link to="DeviceType_Null"/> is returned.
|
---|
4709 |
|
---|
4710 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4711 |
|
---|
4712 | <result name="E_INVALIDARG">
|
---|
4713 | Boot @a position out of range.
|
---|
4714 | </result>
|
---|
4715 |
|
---|
4716 | </desc>
|
---|
4717 | <param name="position" type="unsigned long" dir="in">
|
---|
4718 | <desc>
|
---|
4719 | Position in the boot order (@c 1 to the total number of
|
---|
4720 | devices the machine can boot from, as returned by
|
---|
4721 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4722 | </desc>
|
---|
4723 | </param>
|
---|
4724 | <param name="device" type="DeviceType" dir="return">
|
---|
4725 | <desc>
|
---|
4726 | Device at the given position.
|
---|
4727 | </desc>
|
---|
4728 | </param>
|
---|
4729 | </method>
|
---|
4730 |
|
---|
4731 | <method name="attachDevice">
|
---|
4732 | <desc>
|
---|
4733 | Attaches a device and optionally mounts a medium to the given storage
|
---|
4734 | controller (<link to="IStorageController" />, identified by @a name),
|
---|
4735 | at the indicated port and device.
|
---|
4736 |
|
---|
4737 | This method is intended for managing storage devices in general (it works
|
---|
4738 | for both fixed and removable media). For storage devices supporting removable
|
---|
4739 | media (such as DVDs and floppies), you can also use <link to="IMedium::mountMedium"/>
|
---|
4740 | for changing the media while the machine is running.
|
---|
4741 |
|
---|
4742 | For the IDE bus, the @a controllerPort parameter can be either
|
---|
4743 | @c 0 or @c 1, to specify the primary or secondary IDE controller,
|
---|
4744 | respectively. For each of these, @a device can then be either @c 0 or @c 1,
|
---|
4745 | to specify the master or the slave device, respectively. (In the
|
---|
4746 | default configuration of virtual machines, the secondary master is
|
---|
4747 | used for a CD/DVD drive.)
|
---|
4748 |
|
---|
4749 | For an SATA controller, @a controllerPort must be a number ranging
|
---|
4750 | from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
|
---|
4751 | be a number ranging from @c 0 to @c 15.
|
---|
4752 |
|
---|
4753 | For both SCSI and SATA, the @a device parameter is unused and must
|
---|
4754 | be @c 0.
|
---|
4755 |
|
---|
4756 | For fixed media such as hard disks, the given medium identifier cannot
|
---|
4757 | be a zero UUID. It may be a zero UUID for removable media such as DVDs
|
---|
4758 | and floppies.
|
---|
4759 |
|
---|
4760 | After calling this returns successfully, a new instance of
|
---|
4761 | <link to="IMediumAttachment"/> will appear in the machine's list of medium
|
---|
4762 | attachments (<link to="IMachine::mediumAttachments"/>).
|
---|
4763 |
|
---|
4764 | The specified device slot must not have a device attached to it,
|
---|
4765 | or this method will fail.
|
---|
4766 |
|
---|
4767 | See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
|
---|
4768 | information about attaching media.
|
---|
4769 |
|
---|
4770 | <note>
|
---|
4771 | You cannot attach a device to a running machine. Also, you cannot
|
---|
4772 | attach a device to a newly created machine until this machine's
|
---|
4773 | settings are saved to disk using <link to="#saveSettings"/>.
|
---|
4774 | </note>
|
---|
4775 | <note>
|
---|
4776 | If the medium is being attached indirectly, a new differencing medium
|
---|
4777 | will implicitly be created for it and attached instead. If the
|
---|
4778 | changes made to the machine settings (including this indirect
|
---|
4779 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4780 | this implicitly created differencing medium will implicitly
|
---|
4781 | be deleted.
|
---|
4782 | </note>
|
---|
4783 |
|
---|
4784 | <result name="E_INVALIDARG">
|
---|
4785 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4786 | </result>
|
---|
4787 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4788 | Attempt to attach medium to an unregistered virtual machine.
|
---|
4789 | </result>
|
---|
4790 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4791 | Invalid machine state.
|
---|
4792 | </result>
|
---|
4793 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4794 | Hard disk already attached to this or another virtual machine.
|
---|
4795 | </result>
|
---|
4796 |
|
---|
4797 | </desc>
|
---|
4798 | <param name="name" type="wstring" dir="in">
|
---|
4799 | <desc>Name of the storage controller to attach the device to.</desc>
|
---|
4800 | </param>
|
---|
4801 | <param name="controllerPort" type="long" dir="in">
|
---|
4802 | <desc>Port to attach the device to.</desc>
|
---|
4803 | </param>
|
---|
4804 | <param name="device" type="long" dir="in">
|
---|
4805 | <desc>Device slot in the given port to attach the device to.</desc>
|
---|
4806 | </param>
|
---|
4807 | <param name="type" type="DeviceType" dir="in">
|
---|
4808 | <desc>Device type of the attached device.</desc>
|
---|
4809 | </param>
|
---|
4810 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
4811 | <desc>UUID of the medium to mount. Zero UUID means do not mount any
|
---|
4812 | medium.</desc>
|
---|
4813 | </param>
|
---|
4814 | </method>
|
---|
4815 |
|
---|
4816 | <method name="detachDevice">
|
---|
4817 | <desc>
|
---|
4818 | Detaches the device attached to a device slot of the specified bus.
|
---|
4819 |
|
---|
4820 | Detaching the device from the virtual machine is deferred. This means
|
---|
4821 | that the medium remains associated with the machine when this method
|
---|
4822 | returns and gets actually de-associated only after a successful
|
---|
4823 | <link to="#saveSettings"/> call. See <link to="IMedium"/>
|
---|
4824 | for more detailed information about attaching media.
|
---|
4825 |
|
---|
4826 | <note>
|
---|
4827 | You cannot detach a device from a running machine.
|
---|
4828 | </note>
|
---|
4829 | <note>
|
---|
4830 | Detaching differencing media implicitly created by <link
|
---|
4831 | to="#attachDevice"/> for the indirect attachment using this
|
---|
4832 | method will <b>not</b> implicitly delete them. The
|
---|
4833 | <link to="IMedium::deleteStorage"/> operation should be
|
---|
4834 | explicitly performed by the caller after the medium is successfully
|
---|
4835 | detached and the settings are saved with
|
---|
4836 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4837 | </note>
|
---|
4838 |
|
---|
4839 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4840 | Attempt to detach medium from a running virtual machine.
|
---|
4841 | </result>
|
---|
4842 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4843 | No medium attached to given slot/bus.
|
---|
4844 | </result>
|
---|
4845 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4846 | Medium format does not support storage deletion.
|
---|
4847 | </result>
|
---|
4848 |
|
---|
4849 | </desc>
|
---|
4850 | <param name="name" type="wstring" dir="in">
|
---|
4851 | <desc>Name of the storage controller to detach the medium from.</desc>
|
---|
4852 | </param>
|
---|
4853 | <param name="controllerPort" type="long" dir="in">
|
---|
4854 | <desc>Port number to detach the medium from.</desc>
|
---|
4855 | </param>
|
---|
4856 | <param name="device" type="long" dir="in">
|
---|
4857 | <desc>Device slot number to detach the medium from.</desc>
|
---|
4858 | </param>
|
---|
4859 | </method>
|
---|
4860 |
|
---|
4861 | <method name="passthroughDevice">
|
---|
4862 | <desc>
|
---|
4863 | Sets the passthrough mode of an existing DVD device. Changing the
|
---|
4864 | setting while the VM is running is forbidden. The setting is only used
|
---|
4865 | if at VM start the device is configured as a host DVD drive, in all
|
---|
4866 | other cases it is ignored. The device must already exist; see
|
---|
4867 | <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4868 |
|
---|
4869 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4870 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4871 |
|
---|
4872 | <result name="E_INVALIDARG">
|
---|
4873 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4874 | </result>
|
---|
4875 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4876 | Attempt to modify an unregistered virtual machine.
|
---|
4877 | </result>
|
---|
4878 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4879 | Invalid machine state.
|
---|
4880 | </result>
|
---|
4881 |
|
---|
4882 | </desc>
|
---|
4883 | <param name="name" type="wstring" dir="in">
|
---|
4884 | <desc>Name of the storage controller.</desc>
|
---|
4885 | </param>
|
---|
4886 | <param name="controllerPort" type="long" dir="in">
|
---|
4887 | <desc>Storage controller port.</desc>
|
---|
4888 | </param>
|
---|
4889 | <param name="device" type="long" dir="in">
|
---|
4890 | <desc>Device slot in the given port.</desc>
|
---|
4891 | </param>
|
---|
4892 | <param name="passthrough" type="boolean" dir="in">
|
---|
4893 | <desc>New value for the passthrough setting.</desc>
|
---|
4894 | </param>
|
---|
4895 | </method>
|
---|
4896 |
|
---|
4897 | <method name="mountMedium">
|
---|
4898 | <desc>
|
---|
4899 | Mounts a medium (<link to="IMedium" />, identified
|
---|
4900 | by the given UUID @a id) to the given storage controller
|
---|
4901 | (<link to="IStorageController" />, identified by @a name),
|
---|
4902 | at the indicated port and device. The device must already exist;
|
---|
4903 | see <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4904 |
|
---|
4905 | This method is intended only for managing removable media, where the
|
---|
4906 | device is fixed but media is changeable at runtime (such as DVDs
|
---|
4907 | and floppies). It cannot be used for fixed media such as hard disks.
|
---|
4908 |
|
---|
4909 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4910 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4911 |
|
---|
4912 | The specified device slot can have a medium mounted, which will be
|
---|
4913 | unmounted first. Specifying a zero UUID (or an empty string) for
|
---|
4914 | @a medium does just an unmount.
|
---|
4915 |
|
---|
4916 | See <link to="IMedium"/> for more detailed information about
|
---|
4917 | attaching media.
|
---|
4918 |
|
---|
4919 | <result name="E_INVALIDARG">
|
---|
4920 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4921 | </result>
|
---|
4922 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4923 | Attempt to attach medium to an unregistered virtual machine.
|
---|
4924 | </result>
|
---|
4925 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4926 | Invalid machine state.
|
---|
4927 | </result>
|
---|
4928 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4929 | Medium already attached to this or another virtual machine.
|
---|
4930 | </result>
|
---|
4931 |
|
---|
4932 | </desc>
|
---|
4933 | <param name="name" type="wstring" dir="in">
|
---|
4934 | <desc>Name of the storage controller to attach the medium to.</desc>
|
---|
4935 | </param>
|
---|
4936 | <param name="controllerPort" type="long" dir="in">
|
---|
4937 | <desc>Port to attach the medium to.</desc>
|
---|
4938 | </param>
|
---|
4939 | <param name="device" type="long" dir="in">
|
---|
4940 | <desc>Device slot in the given port to attach the medium to.</desc>
|
---|
4941 | </param>
|
---|
4942 | <param name="medium" type="uuid" mod="string" dir="in">
|
---|
4943 | <desc>UUID of the medium to attach. A zero UUID means unmount the
|
---|
4944 | currently mounted medium.</desc>
|
---|
4945 | </param>
|
---|
4946 | <param name="force" type="boolean" dir="in">
|
---|
4947 | <desc>Allows to force unmount/mount of a medium which is locked by
|
---|
4948 | theDevice slot in the given port to attach the medium to.</desc>
|
---|
4949 | </param>
|
---|
4950 | </method>
|
---|
4951 |
|
---|
4952 | <method name="getMedium" const="yes">
|
---|
4953 | <desc>
|
---|
4954 | Returns the virtual medium attached to a device slot of the specified
|
---|
4955 | bus.
|
---|
4956 |
|
---|
4957 | Note that if the medium was indirectly attached by
|
---|
4958 | <link to="#mountMedium"/> to the given device slot then this
|
---|
4959 | method will return not the same object as passed to the
|
---|
4960 | <link to="#mountMedium"/> call. See <link to="IMedium"/> for
|
---|
4961 | more detailed information about mounting a medium.
|
---|
4962 |
|
---|
4963 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4964 | No medium attached to given slot/bus.
|
---|
4965 | </result>
|
---|
4966 |
|
---|
4967 | </desc>
|
---|
4968 | <param name="name" type="wstring" dir="in">
|
---|
4969 | <desc>Name of the storage controller the medium is attached to.</desc>
|
---|
4970 | </param>
|
---|
4971 | <param name="controllerPort" type="long" dir="in">
|
---|
4972 | <desc>Port to query.</desc>
|
---|
4973 | </param>
|
---|
4974 | <param name="device" type="long" dir="in">
|
---|
4975 | <desc>Device slot in the given port to query.</desc>
|
---|
4976 | </param>
|
---|
4977 | <param name="medium" type="IMedium" dir="return">
|
---|
4978 | <desc>Attached medium object.</desc>
|
---|
4979 | </param>
|
---|
4980 | </method>
|
---|
4981 |
|
---|
4982 | <method name="getMediumAttachmentsOfController" const="yes">
|
---|
4983 | <desc>
|
---|
4984 | Returns an array of medium attachments which are attached to the
|
---|
4985 | the controller with the given name.
|
---|
4986 |
|
---|
4987 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4988 | A storage controller with given name doesn't exist.
|
---|
4989 | </result>
|
---|
4990 | </desc>
|
---|
4991 | <param name="name" type="wstring" dir="in"/>
|
---|
4992 | <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
|
---|
4993 | </method>
|
---|
4994 |
|
---|
4995 | <method name="getMediumAttachment" const="yes">
|
---|
4996 | <desc>
|
---|
4997 | Returns a medium attachment which corresponds to the controller with
|
---|
4998 | the given name, on the given port and device slot.
|
---|
4999 |
|
---|
5000 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5001 | No attachment exists for the given controller/port/device combination.
|
---|
5002 | </result>
|
---|
5003 | </desc>
|
---|
5004 | <param name="name" type="wstring" dir="in"/>
|
---|
5005 | <param name="controllerPort" type="long" dir="in"/>
|
---|
5006 | <param name="device" type="long" dir="in"/>
|
---|
5007 | <param name="attachment" type="IMediumAttachment" dir="return"/>
|
---|
5008 | </method>
|
---|
5009 |
|
---|
5010 | <method name="getNetworkAdapter" const="yes">
|
---|
5011 | <desc>
|
---|
5012 | Returns the network adapter associated with the given slot.
|
---|
5013 | Slots are numbered sequentially, starting with zero. The total
|
---|
5014 | number of adapters per machine is defined by the
|
---|
5015 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
5016 | so the maximum slot number is one less than that property's value.
|
---|
5017 |
|
---|
5018 | <result name="E_INVALIDARG">
|
---|
5019 | Invalid @a slot number.
|
---|
5020 | </result>
|
---|
5021 |
|
---|
5022 | </desc>
|
---|
5023 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5024 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
5025 | </method>
|
---|
5026 |
|
---|
5027 | <method name="addStorageController">
|
---|
5028 | <desc>
|
---|
5029 | Adds a new storage controller (SCSI or SATA controller) to the
|
---|
5030 | machine and returns it as an instance of
|
---|
5031 | <link to="IStorageController" />.
|
---|
5032 |
|
---|
5033 | @a name identifies the controller for subsequent calls such as
|
---|
5034 | <link to="#getStorageControllerByName" />,
|
---|
5035 | <link to="#getStorageControllerByInstance" />,
|
---|
5036 | <link to="#removeStorageController" />,
|
---|
5037 | <link to="#attachDevice" /> or <link to="#mountMedium" />.
|
---|
5038 |
|
---|
5039 | After the controller has been added, you can set its exact
|
---|
5040 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
5041 |
|
---|
5042 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5043 | A storage controller with given name exists already.
|
---|
5044 | </result>
|
---|
5045 | <result name="E_INVALIDARG">
|
---|
5046 | Invalid @a controllerType.
|
---|
5047 | </result>
|
---|
5048 | </desc>
|
---|
5049 | <param name="name" type="wstring" dir="in"/>
|
---|
5050 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
5051 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
5052 | </method>
|
---|
5053 |
|
---|
5054 | <method name="getStorageControllerByName" const="yes">
|
---|
5055 | <desc>
|
---|
5056 | Returns a storage controller with the given name.
|
---|
5057 |
|
---|
5058 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5059 | A storage controller with given name doesn't exist.
|
---|
5060 | </result>
|
---|
5061 | </desc>
|
---|
5062 | <param name="name" type="wstring" dir="in"/>
|
---|
5063 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
5064 | </method>
|
---|
5065 |
|
---|
5066 | <method name="getStorageControllerByInstance" const="yes">
|
---|
5067 | <desc>
|
---|
5068 | Returns a storage controller with the given instance number.
|
---|
5069 |
|
---|
5070 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5071 | A storage controller with given instance number doesn't exist.
|
---|
5072 | </result>
|
---|
5073 | </desc>
|
---|
5074 | <param name="instance" type="unsigned long" dir="in"/>
|
---|
5075 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
5076 | </method>
|
---|
5077 |
|
---|
5078 | <method name="removeStorageController">
|
---|
5079 | <desc>
|
---|
5080 | Removes a storage controller from the machine.
|
---|
5081 |
|
---|
5082 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5083 | A storage controller with given name doesn't exist.
|
---|
5084 | </result>
|
---|
5085 | </desc>
|
---|
5086 | <param name="name" type="wstring" dir="in"/>
|
---|
5087 | </method>
|
---|
5088 |
|
---|
5089 | <method name="getSerialPort" const="yes">
|
---|
5090 | <desc>
|
---|
5091 | Returns the serial port associated with the given slot.
|
---|
5092 | Slots are numbered sequentially, starting with zero. The total
|
---|
5093 | number of serial ports per machine is defined by the
|
---|
5094 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
5095 | so the maximum slot number is one less than that property's value.
|
---|
5096 |
|
---|
5097 | <result name="E_INVALIDARG">
|
---|
5098 | Invalid @a slot number.
|
---|
5099 | </result>
|
---|
5100 |
|
---|
5101 | </desc>
|
---|
5102 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5103 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
5104 | </method>
|
---|
5105 |
|
---|
5106 | <method name="getParallelPort" const="yes">
|
---|
5107 | <desc>
|
---|
5108 | Returns the parallel port associated with the given slot.
|
---|
5109 | Slots are numbered sequentially, starting with zero. The total
|
---|
5110 | number of parallel ports per machine is defined by the
|
---|
5111 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
5112 | so the maximum slot number is one less than that property's value.
|
---|
5113 |
|
---|
5114 | <result name="E_INVALIDARG">
|
---|
5115 | Invalid @a slot number.
|
---|
5116 | </result>
|
---|
5117 |
|
---|
5118 | </desc>
|
---|
5119 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
5120 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
5121 | </method>
|
---|
5122 |
|
---|
5123 | <method name="getExtraDataKeys">
|
---|
5124 | <desc>
|
---|
5125 | Returns an array representing the machine-specific extra data keys
|
---|
5126 | which currently have values defined.
|
---|
5127 | </desc>
|
---|
5128 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
5129 | <desc>Array of extra data keys.</desc>
|
---|
5130 | </param>
|
---|
5131 | </method>
|
---|
5132 |
|
---|
5133 | <method name="getExtraData">
|
---|
5134 | <desc>
|
---|
5135 | Returns associated machine-specific extra data.
|
---|
5136 |
|
---|
5137 | If the requested data @a key does not exist, this function will
|
---|
5138 | succeed and return an empty string in the @a value argument.
|
---|
5139 |
|
---|
5140 | <result name="VBOX_E_FILE_ERROR">
|
---|
5141 | Settings file not accessible.
|
---|
5142 | </result>
|
---|
5143 | <result name="VBOX_E_XML_ERROR">
|
---|
5144 | Could not parse the settings file.
|
---|
5145 | </result>
|
---|
5146 |
|
---|
5147 | </desc>
|
---|
5148 | <param name="key" type="wstring" dir="in">
|
---|
5149 | <desc>Name of the data key to get.</desc>
|
---|
5150 | </param>
|
---|
5151 | <param name="value" type="wstring" dir="return">
|
---|
5152 | <desc>Value of the requested data key.</desc>
|
---|
5153 | </param>
|
---|
5154 | </method>
|
---|
5155 |
|
---|
5156 | <method name="setExtraData">
|
---|
5157 | <desc>
|
---|
5158 | Sets associated machine-specific extra data.
|
---|
5159 |
|
---|
5160 | If you pass @c null or an empty string as a key @a value, the given
|
---|
5161 | @a key will be deleted.
|
---|
5162 |
|
---|
5163 | <note>
|
---|
5164 | Before performing the actual data change, this method will ask all
|
---|
5165 | registered callbacks using the
|
---|
5166 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
5167 | notification for a permission. If one of the callbacks refuses the
|
---|
5168 | new value, the change will not be performed.
|
---|
5169 | </note>
|
---|
5170 | <note>
|
---|
5171 | On success, the
|
---|
5172 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
5173 | is called to inform all registered callbacks about a successful data
|
---|
5174 | change.
|
---|
5175 | </note>
|
---|
5176 | <note>
|
---|
5177 | This method can be called outside the machine session and therefore
|
---|
5178 | it's a caller's responsibility to handle possible race conditions
|
---|
5179 | when several clients change the same key at the same time.
|
---|
5180 | </note>
|
---|
5181 |
|
---|
5182 | <result name="VBOX_E_FILE_ERROR">
|
---|
5183 | Settings file not accessible.
|
---|
5184 | </result>
|
---|
5185 | <result name="VBOX_E_XML_ERROR">
|
---|
5186 | Could not parse the settings file.
|
---|
5187 | </result>
|
---|
5188 |
|
---|
5189 | </desc>
|
---|
5190 | <param name="key" type="wstring" dir="in">
|
---|
5191 | <desc>Name of the data key to set.</desc>
|
---|
5192 | </param>
|
---|
5193 | <param name="value" type="wstring" dir="in">
|
---|
5194 | <desc>Value to assign to the key.</desc>
|
---|
5195 | </param>
|
---|
5196 | </method>
|
---|
5197 |
|
---|
5198 | <method name="getCpuProperty" const="yes">
|
---|
5199 | <desc>
|
---|
5200 | Returns the virtual CPU boolean value of the specified property.
|
---|
5201 |
|
---|
5202 | <result name="E_INVALIDARG">
|
---|
5203 | Invalid property.
|
---|
5204 | </result>
|
---|
5205 |
|
---|
5206 | </desc>
|
---|
5207 | <param name="property" type="CpuPropertyType" dir="in">
|
---|
5208 | <desc>
|
---|
5209 | Property type to query.
|
---|
5210 | </desc>
|
---|
5211 | </param>
|
---|
5212 | <param name="value" type="boolean" dir="return">
|
---|
5213 | <desc>
|
---|
5214 | Property value.
|
---|
5215 | </desc>
|
---|
5216 | </param>
|
---|
5217 | </method>
|
---|
5218 |
|
---|
5219 | <method name="setCpuProperty">
|
---|
5220 | <desc>
|
---|
5221 | Sets the virtual CPU boolean value of the specified property.
|
---|
5222 |
|
---|
5223 | <result name="E_INVALIDARG">
|
---|
5224 | Invalid property.
|
---|
5225 | </result>
|
---|
5226 |
|
---|
5227 | </desc>
|
---|
5228 | <param name="property" type="CpuPropertyType" dir="in">
|
---|
5229 | <desc>
|
---|
5230 | Property type to query.
|
---|
5231 | </desc>
|
---|
5232 | </param>
|
---|
5233 | <param name="value" type="boolean" dir="in">
|
---|
5234 | <desc>
|
---|
5235 | Property value.
|
---|
5236 | </desc>
|
---|
5237 | </param>
|
---|
5238 | </method>
|
---|
5239 |
|
---|
5240 | <method name="getCpuIdLeaf" const="yes">
|
---|
5241 | <desc>
|
---|
5242 | Returns the virtual CPU cpuid information for the specified leaf.
|
---|
5243 |
|
---|
5244 | Currently supported index values for cpuid:
|
---|
5245 | Standard CPUID leafs: 0 - 0xA
|
---|
5246 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5247 |
|
---|
5248 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5249 | about the cpuid instruction and its leafs.
|
---|
5250 | <result name="E_INVALIDARG">
|
---|
5251 | Invalid id.
|
---|
5252 | </result>
|
---|
5253 |
|
---|
5254 | </desc>
|
---|
5255 | <param name="id" type="unsigned long" dir="in">
|
---|
5256 | <desc>
|
---|
5257 | Cpuid leaf index.
|
---|
5258 | </desc>
|
---|
5259 | </param>
|
---|
5260 | <param name="valEax" type="unsigned long" dir="out">
|
---|
5261 | <desc>
|
---|
5262 | Cpuid leaf value for register eax.
|
---|
5263 | </desc>
|
---|
5264 | </param>
|
---|
5265 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
5266 | <desc>
|
---|
5267 | Cpuid leaf value for register ebx.
|
---|
5268 | </desc>
|
---|
5269 | </param>
|
---|
5270 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
5271 | <desc>
|
---|
5272 | Cpuid leaf value for register ecx.
|
---|
5273 | </desc>
|
---|
5274 | </param>
|
---|
5275 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
5276 | <desc>
|
---|
5277 | Cpuid leaf value for register edx.
|
---|
5278 | </desc>
|
---|
5279 | </param>
|
---|
5280 | </method>
|
---|
5281 |
|
---|
5282 | <method name="setCpuIdLeaf" const="yes">
|
---|
5283 | <desc>
|
---|
5284 | Sets the virtual CPU cpuid information for the specified leaf. Note that these values
|
---|
5285 | are not passed unmodified. VirtualBox clears features that it doesn't support.
|
---|
5286 |
|
---|
5287 | Currently supported index values for cpuid:
|
---|
5288 | Standard CPUID leafs: 0 - 0xA
|
---|
5289 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5290 |
|
---|
5291 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5292 | about the cpuid instruction and its leafs.
|
---|
5293 |
|
---|
5294 | Do not use this method unless you know exactly what you're doing. Misuse can lead to
|
---|
5295 | random crashes inside VMs.
|
---|
5296 | <result name="E_INVALIDARG">
|
---|
5297 | Invalid id.
|
---|
5298 | </result>
|
---|
5299 |
|
---|
5300 | </desc>
|
---|
5301 | <param name="id" type="unsigned long" dir="in">
|
---|
5302 | <desc>
|
---|
5303 | Cpuid leaf index.
|
---|
5304 | </desc>
|
---|
5305 | </param>
|
---|
5306 | <param name="valEax" type="unsigned long" dir="in">
|
---|
5307 | <desc>
|
---|
5308 | Cpuid leaf value for register eax.
|
---|
5309 | </desc>
|
---|
5310 | </param>
|
---|
5311 | <param name="valEbx" type="unsigned long" dir="in">
|
---|
5312 | <desc>
|
---|
5313 | Cpuid leaf value for register ebx.
|
---|
5314 | </desc>
|
---|
5315 | </param>
|
---|
5316 | <param name="valEcx" type="unsigned long" dir="in">
|
---|
5317 | <desc>
|
---|
5318 | Cpuid leaf value for register ecx.
|
---|
5319 | </desc>
|
---|
5320 | </param>
|
---|
5321 | <param name="valEdx" type="unsigned long" dir="in">
|
---|
5322 | <desc>
|
---|
5323 | Cpuid leaf value for register edx.
|
---|
5324 | </desc>
|
---|
5325 | </param>
|
---|
5326 | </method>
|
---|
5327 |
|
---|
5328 | <method name="removeCpuIdLeaf" const="yes">
|
---|
5329 | <desc>
|
---|
5330 | Removes the virtual CPU cpuid leaf for the specified index
|
---|
5331 |
|
---|
5332 | <result name="E_INVALIDARG">
|
---|
5333 | Invalid id.
|
---|
5334 | </result>
|
---|
5335 |
|
---|
5336 | </desc>
|
---|
5337 | <param name="id" type="unsigned long" dir="in">
|
---|
5338 | <desc>
|
---|
5339 | Cpuid leaf index.
|
---|
5340 | </desc>
|
---|
5341 | </param>
|
---|
5342 | </method>
|
---|
5343 |
|
---|
5344 | <method name="removeAllCpuIdLeafs" const="yes">
|
---|
5345 | <desc>
|
---|
5346 | Removes all the virtual CPU cpuid leafs
|
---|
5347 | </desc>
|
---|
5348 | </method>
|
---|
5349 |
|
---|
5350 | <method name="getHWVirtExProperty" const="yes">
|
---|
5351 | <desc>
|
---|
5352 | Returns the value of the specified hardware virtualization boolean property.
|
---|
5353 |
|
---|
5354 | <result name="E_INVALIDARG">
|
---|
5355 | Invalid property.
|
---|
5356 | </result>
|
---|
5357 |
|
---|
5358 | </desc>
|
---|
5359 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5360 | <desc>
|
---|
5361 | Property type to query.
|
---|
5362 | </desc>
|
---|
5363 | </param>
|
---|
5364 | <param name="value" type="boolean" dir="return">
|
---|
5365 | <desc>
|
---|
5366 | Property value.
|
---|
5367 | </desc>
|
---|
5368 | </param>
|
---|
5369 | </method>
|
---|
5370 |
|
---|
5371 | <method name="setHWVirtExProperty">
|
---|
5372 | <desc>
|
---|
5373 | Sets a new value for the specified hardware virtualization boolean property.
|
---|
5374 |
|
---|
5375 | <result name="E_INVALIDARG">
|
---|
5376 | Invalid property.
|
---|
5377 | </result>
|
---|
5378 |
|
---|
5379 | </desc>
|
---|
5380 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5381 | <desc>
|
---|
5382 | Property type to set.
|
---|
5383 | </desc>
|
---|
5384 | </param>
|
---|
5385 | <param name="value" type="boolean" dir="in">
|
---|
5386 | <desc>
|
---|
5387 | New property value.
|
---|
5388 | </desc>
|
---|
5389 | </param>
|
---|
5390 | </method>
|
---|
5391 |
|
---|
5392 | <method name="saveSettings">
|
---|
5393 | <desc>
|
---|
5394 | Saves any changes to machine settings made since the session
|
---|
5395 | has been opened or a new machine has been created, or since the
|
---|
5396 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
5397 | For registered machines, new settings become visible to all
|
---|
5398 | other VirtualBox clients after successful invocation of this
|
---|
5399 | method.
|
---|
5400 | <note>
|
---|
5401 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
5402 | notification event after the configuration has been successfully
|
---|
5403 | saved (only for registered machines).
|
---|
5404 | </note>
|
---|
5405 | <note>
|
---|
5406 | Calling this method is only valid on instances returned
|
---|
5407 | by <link to="ISession::machine"/> and on new machines
|
---|
5408 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
5409 | yet registered, or on unregistered machines after calling
|
---|
5410 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5411 | </note>
|
---|
5412 |
|
---|
5413 | <result name="VBOX_E_FILE_ERROR">
|
---|
5414 | Settings file not accessible.
|
---|
5415 | </result>
|
---|
5416 | <result name="VBOX_E_XML_ERROR">
|
---|
5417 | Could not parse the settings file.
|
---|
5418 | </result>
|
---|
5419 | <result name="E_ACCESSDENIED">
|
---|
5420 | Modification request refused.
|
---|
5421 | </result>
|
---|
5422 |
|
---|
5423 | </desc>
|
---|
5424 | </method>
|
---|
5425 |
|
---|
5426 | <method name="discardSettings">
|
---|
5427 | <desc>
|
---|
5428 | Discards any changes to the machine settings made since the session
|
---|
5429 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
5430 | or <link to="#discardSettings"/>.
|
---|
5431 | <note>
|
---|
5432 | Calling this method is only valid on instances returned
|
---|
5433 | by <link to="ISession::machine"/> and on new machines
|
---|
5434 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5435 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5436 | yet registered, or on unregistered machines after calling
|
---|
5437 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5438 | </note>
|
---|
5439 |
|
---|
5440 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5441 | Virtual machine is not mutable.
|
---|
5442 | </result>
|
---|
5443 |
|
---|
5444 | </desc>
|
---|
5445 | </method>
|
---|
5446 |
|
---|
5447 | <method name="deleteSettings">
|
---|
5448 | <desc>
|
---|
5449 | Deletes the settings file of this machine from disk.
|
---|
5450 | The machine must not be registered in order for this operation
|
---|
5451 | to succeed.
|
---|
5452 | <note>
|
---|
5453 | <link to="#settingsModified"/> will return @c true after this
|
---|
5454 | method successfully returns.
|
---|
5455 | </note>
|
---|
5456 | <note>
|
---|
5457 | Calling this method is only valid on instances returned
|
---|
5458 | by <link to="ISession::machine"/> and on new machines
|
---|
5459 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5460 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5461 | yet registered, or on unregistered machines after calling
|
---|
5462 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5463 | </note>
|
---|
5464 | <note>
|
---|
5465 | The deleted machine settings file can be restored (saved again)
|
---|
5466 | by calling <link to="#saveSettings"/>.
|
---|
5467 | </note>
|
---|
5468 |
|
---|
5469 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5470 | Cannot delete settings of a registered machine or
|
---|
5471 | machine not mutable.
|
---|
5472 | </result>
|
---|
5473 | <result name="VBOX_E_IPRT_ERROR">
|
---|
5474 | Could not delete the settings file.
|
---|
5475 | </result>
|
---|
5476 |
|
---|
5477 | </desc>
|
---|
5478 | </method>
|
---|
5479 |
|
---|
5480 | <method name="export">
|
---|
5481 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
5482 | steps required to export VirtualBox machines to OVF.
|
---|
5483 | </desc>
|
---|
5484 |
|
---|
5485 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
5486 | <desc>Appliance to export this machine to.</desc>
|
---|
5487 | </param>
|
---|
5488 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
5489 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
5490 | </param>
|
---|
5491 | </method >
|
---|
5492 |
|
---|
5493 | <method name="getSnapshot">
|
---|
5494 | <desc>
|
---|
5495 | Returns a snapshot of this machine with the given UUID.
|
---|
5496 | A @c null UUID can be used to obtain the first snapshot
|
---|
5497 | taken on this machine. This is useful if you want to traverse
|
---|
5498 | the whole tree of snapshots starting from the root.
|
---|
5499 |
|
---|
5500 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5501 | Virtual machine has no snapshots or snapshot not found.
|
---|
5502 | </result>
|
---|
5503 |
|
---|
5504 | </desc>
|
---|
5505 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
5506 | <desc>UUID of the snapshot to get</desc>
|
---|
5507 | </param>
|
---|
5508 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5509 | <desc>Snapshot object with the given UUID.</desc>
|
---|
5510 | </param>
|
---|
5511 | </method>
|
---|
5512 |
|
---|
5513 | <method name="findSnapshot">
|
---|
5514 | <desc>
|
---|
5515 | Returns a snapshot of this machine with the given name.
|
---|
5516 |
|
---|
5517 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5518 | Virtual machine has no snapshots or snapshot not found.
|
---|
5519 | </result>
|
---|
5520 |
|
---|
5521 | </desc>
|
---|
5522 | <param name="name" type="wstring" dir="in">
|
---|
5523 | <desc>Name of the snapshot to find</desc>
|
---|
5524 | </param>
|
---|
5525 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5526 | <desc>Snapshot object with the given name.</desc>
|
---|
5527 | </param>
|
---|
5528 | </method>
|
---|
5529 |
|
---|
5530 | <method name="setCurrentSnapshot">
|
---|
5531 | <desc>
|
---|
5532 | Sets the current snapshot of this machine.
|
---|
5533 | <note>
|
---|
5534 | In the current implementation, this operation is not
|
---|
5535 | implemented.
|
---|
5536 | </note>
|
---|
5537 | </desc>
|
---|
5538 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
5539 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
5540 | </param>
|
---|
5541 | </method>
|
---|
5542 |
|
---|
5543 | <method name="createSharedFolder">
|
---|
5544 | <desc>
|
---|
5545 | Creates a new permanent shared folder by associating the given logical
|
---|
5546 | name with the given host path, adds it to the collection of shared
|
---|
5547 | folders and starts sharing it. Refer to the description of
|
---|
5548 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5549 |
|
---|
5550 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5551 | Shared folder already exists.
|
---|
5552 | </result>
|
---|
5553 | <result name="VBOX_E_FILE_ERROR">
|
---|
5554 | Shared folder @a hostPath not accessible.
|
---|
5555 | </result>
|
---|
5556 |
|
---|
5557 | </desc>
|
---|
5558 | <param name="name" type="wstring" dir="in">
|
---|
5559 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5560 | </param>
|
---|
5561 | <param name="hostPath" type="wstring" dir="in">
|
---|
5562 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5563 | </param>
|
---|
5564 | <param name="writable" type="boolean" dir="in">
|
---|
5565 | <desc>Whether the share is writable or readonly</desc>
|
---|
5566 | </param>
|
---|
5567 | </method>
|
---|
5568 |
|
---|
5569 | <method name="removeSharedFolder">
|
---|
5570 | <desc>
|
---|
5571 | Removes the permanent shared folder with the given name previously
|
---|
5572 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5573 | shared folders and stops sharing it.
|
---|
5574 |
|
---|
5575 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5576 | Virtual machine is not mutable.
|
---|
5577 | </result>
|
---|
5578 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5579 | Shared folder @a name does not exist.
|
---|
5580 | </result>
|
---|
5581 |
|
---|
5582 | </desc>
|
---|
5583 | <param name="name" type="wstring" dir="in">
|
---|
5584 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5585 | </param>
|
---|
5586 | </method>
|
---|
5587 |
|
---|
5588 | <method name="canShowConsoleWindow">
|
---|
5589 | <desc>
|
---|
5590 | Returns @c true if the VM console process can activate the
|
---|
5591 | console window and bring it to foreground on the desktop of
|
---|
5592 | the host PC.
|
---|
5593 | <note>
|
---|
5594 | This method will fail if a session for this machine is not
|
---|
5595 | currently open.
|
---|
5596 | </note>
|
---|
5597 |
|
---|
5598 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5599 | Machine session is not open.
|
---|
5600 | </result>
|
---|
5601 |
|
---|
5602 | </desc>
|
---|
5603 | <param name="canShow" type="boolean" dir="return">
|
---|
5604 | <desc>
|
---|
5605 | @c true if the console window can be shown and @c false otherwise.
|
---|
5606 | </desc>
|
---|
5607 | </param>
|
---|
5608 | </method>
|
---|
5609 |
|
---|
5610 | <method name="showConsoleWindow">
|
---|
5611 | <desc>
|
---|
5612 | Activates the console window and brings it to foreground on
|
---|
5613 | the desktop of the host PC. Many modern window managers on
|
---|
5614 | many platforms implement some sort of focus stealing
|
---|
5615 | prevention logic, so that it may be impossible to activate
|
---|
5616 | a window without the help of the currently active
|
---|
5617 | application. In this case, this method will return a non-zero
|
---|
5618 | identifier that represents the top-level window of the VM
|
---|
5619 | console process. The caller, if it represents a currently
|
---|
5620 | active process, is responsible to use this identifier (in a
|
---|
5621 | platform-dependent manner) to perform actual window
|
---|
5622 | activation.
|
---|
5623 | <note>
|
---|
5624 | This method will fail if a session for this machine is not
|
---|
5625 | currently open.
|
---|
5626 | </note>
|
---|
5627 |
|
---|
5628 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5629 | Machine session is not open.
|
---|
5630 | </result>
|
---|
5631 |
|
---|
5632 | </desc>
|
---|
5633 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5634 | <desc>
|
---|
5635 | Platform-dependent identifier of the top-level VM console
|
---|
5636 | window, or zero if this method has performed all actions
|
---|
5637 | necessary to implement the <i>show window</i> semantics for
|
---|
5638 | the given platform and/or VirtualBox front-end.
|
---|
5639 | </desc>
|
---|
5640 | </param>
|
---|
5641 | </method>
|
---|
5642 |
|
---|
5643 | <method name="getGuestProperty">
|
---|
5644 | <desc>
|
---|
5645 | Reads an entry from the machine's guest property store.
|
---|
5646 |
|
---|
5647 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5648 | Machine session is not open.
|
---|
5649 | </result>
|
---|
5650 |
|
---|
5651 | </desc>
|
---|
5652 | <param name="name" type="wstring" dir="in">
|
---|
5653 | <desc>
|
---|
5654 | The name of the property to read.
|
---|
5655 | </desc>
|
---|
5656 | </param>
|
---|
5657 | <param name="value" type="wstring" dir="out">
|
---|
5658 | <desc>
|
---|
5659 | The value of the property. If the property does not exist then this
|
---|
5660 | will be empty.
|
---|
5661 | </desc>
|
---|
5662 | </param>
|
---|
5663 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
5664 | <desc>
|
---|
5665 | The time at which the property was last modified, as seen by the
|
---|
5666 | server process.
|
---|
5667 | </desc>
|
---|
5668 | </param>
|
---|
5669 | <param name="flags" type="wstring" dir="out">
|
---|
5670 | <desc>
|
---|
5671 | Additional property parameters, passed as a comma-separated list of
|
---|
5672 | "name=value" type entries.
|
---|
5673 | </desc>
|
---|
5674 | </param>
|
---|
5675 | </method>
|
---|
5676 |
|
---|
5677 | <method name="getGuestPropertyValue">
|
---|
5678 | <desc>
|
---|
5679 | Reads a value from the machine's guest property store.
|
---|
5680 |
|
---|
5681 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5682 | Machine session is not open.
|
---|
5683 | </result>
|
---|
5684 |
|
---|
5685 | </desc>
|
---|
5686 | <param name="property" type="wstring" dir="in">
|
---|
5687 | <desc>
|
---|
5688 | The name of the property to read.
|
---|
5689 | </desc>
|
---|
5690 | </param>
|
---|
5691 | <param name="value" type="wstring" dir="return">
|
---|
5692 | <desc>
|
---|
5693 | The value of the property. If the property does not exist then this
|
---|
5694 | will be empty.
|
---|
5695 | </desc>
|
---|
5696 | </param>
|
---|
5697 | </method>
|
---|
5698 |
|
---|
5699 | <method name="getGuestPropertyTimestamp">
|
---|
5700 | <desc>
|
---|
5701 | Reads a property timestamp from the machine's guest property store.
|
---|
5702 |
|
---|
5703 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5704 | Machine session is not open.
|
---|
5705 | </result>
|
---|
5706 |
|
---|
5707 | </desc>
|
---|
5708 | <param name="property" type="wstring" dir="in">
|
---|
5709 | <desc>
|
---|
5710 | The name of the property to read.
|
---|
5711 | </desc>
|
---|
5712 | </param>
|
---|
5713 | <param name="value" type="unsigned long long" dir="return">
|
---|
5714 | <desc>
|
---|
5715 | The timestamp. If the property does not exist then this will be
|
---|
5716 | empty.
|
---|
5717 | </desc>
|
---|
5718 | </param>
|
---|
5719 | </method>
|
---|
5720 |
|
---|
5721 | <method name="setGuestProperty">
|
---|
5722 | <desc>
|
---|
5723 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5724 | store.
|
---|
5725 |
|
---|
5726 | <result name="E_ACCESSDENIED">
|
---|
5727 | Property cannot be changed.
|
---|
5728 | </result>
|
---|
5729 | <result name="E_INVALIDARG">
|
---|
5730 | Invalid @a flags.
|
---|
5731 | </result>
|
---|
5732 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5733 | Virtual machine is not mutable or session not open.
|
---|
5734 | </result>
|
---|
5735 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5736 | Cannot set transient property when machine not running.
|
---|
5737 | </result>
|
---|
5738 |
|
---|
5739 | </desc>
|
---|
5740 | <param name="property" type="wstring" dir="in">
|
---|
5741 | <desc>
|
---|
5742 | The name of the property to set, change or delete.
|
---|
5743 | </desc>
|
---|
5744 | </param>
|
---|
5745 | <param name="value" type="wstring" dir="in">
|
---|
5746 | <desc>
|
---|
5747 | The new value of the property to set, change or delete. If the
|
---|
5748 | property does not yet exist and value is non-empty, it will be
|
---|
5749 | created. If the value is @c null or empty, the property will be
|
---|
5750 | deleted if it exists.
|
---|
5751 | </desc>
|
---|
5752 | </param>
|
---|
5753 | <param name="flags" type="wstring" dir="in">
|
---|
5754 | <desc>
|
---|
5755 | Additional property parameters, passed as a comma-separated list of
|
---|
5756 | "name=value" type entries.
|
---|
5757 | </desc>
|
---|
5758 | </param>
|
---|
5759 | </method>
|
---|
5760 |
|
---|
5761 | <method name="setGuestPropertyValue">
|
---|
5762 | <desc>
|
---|
5763 | Sets, changes or deletes a value in the machine's guest property
|
---|
5764 | store. The flags field will be left unchanged or created empty for a
|
---|
5765 | new property.
|
---|
5766 |
|
---|
5767 | <result name="E_ACCESSDENIED">
|
---|
5768 | Property cannot be changed.
|
---|
5769 | </result>
|
---|
5770 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5771 | Virtual machine is not mutable or session not open.
|
---|
5772 | </result>
|
---|
5773 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5774 | Cannot set transient property when machine not running.
|
---|
5775 | </result>
|
---|
5776 | </desc>
|
---|
5777 |
|
---|
5778 | <param name="property" type="wstring" dir="in">
|
---|
5779 | <desc>
|
---|
5780 | The name of the property to set, change or delete.
|
---|
5781 | </desc>
|
---|
5782 | </param>
|
---|
5783 | <param name="value" type="wstring" dir="in">
|
---|
5784 | <desc>
|
---|
5785 | The new value of the property to set, change or delete. If the
|
---|
5786 | property does not yet exist and value is non-empty, it will be
|
---|
5787 | created. If the value is @c null or empty, the property will be
|
---|
5788 | deleted if it exists.
|
---|
5789 | </desc>
|
---|
5790 | </param>
|
---|
5791 | </method>
|
---|
5792 |
|
---|
5793 | <method name="enumerateGuestProperties">
|
---|
5794 | <desc>
|
---|
5795 | Return a list of the guest properties matching a set of patterns along
|
---|
5796 | with their values, time stamps and flags.
|
---|
5797 | </desc>
|
---|
5798 | <param name="patterns" type="wstring" dir="in">
|
---|
5799 | <desc>
|
---|
5800 | The patterns to match the properties against, separated by '|'
|
---|
5801 | characters. If this is empty or @c null, all properties will match.
|
---|
5802 | </desc>
|
---|
5803 | </param>
|
---|
5804 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5805 | <desc>
|
---|
5806 | The names of the properties returned.
|
---|
5807 | </desc>
|
---|
5808 | </param>
|
---|
5809 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5810 | <desc>
|
---|
5811 | The values of the properties returned. The array entries match the
|
---|
5812 | corresponding entries in the @a name array.
|
---|
5813 | </desc>
|
---|
5814 | </param>
|
---|
5815 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
5816 | <desc>
|
---|
5817 | The time stamps of the properties returned. The array entries match
|
---|
5818 | the corresponding entries in the @a name array.
|
---|
5819 | </desc>
|
---|
5820 | </param>
|
---|
5821 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5822 | <desc>
|
---|
5823 | The flags of the properties returned. The array entries match the
|
---|
5824 | corresponding entries in the @a name array.
|
---|
5825 | </desc>
|
---|
5826 | </param>
|
---|
5827 | </method>
|
---|
5828 |
|
---|
5829 | <method name="querySavedThumbnailSize">
|
---|
5830 | <desc>
|
---|
5831 | Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
|
---|
5832 | </desc>
|
---|
5833 | <param name="size" type="unsigned long" dir="out">
|
---|
5834 | <desc>
|
---|
5835 | Size of buffer required to store the bitmap.
|
---|
5836 | </desc>
|
---|
5837 | </param>
|
---|
5838 | <param name="width" type="unsigned long" dir="out">
|
---|
5839 | <desc>
|
---|
5840 | Bitmap width.
|
---|
5841 | </desc>
|
---|
5842 | </param>
|
---|
5843 | <param name="height" type="unsigned long" dir="out">
|
---|
5844 | <desc>
|
---|
5845 | Bitmap height.
|
---|
5846 | </desc>
|
---|
5847 | </param>
|
---|
5848 | </method>
|
---|
5849 |
|
---|
5850 | <method name="readSavedThumbnailToArray">
|
---|
5851 | <desc>
|
---|
5852 | Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
|
---|
5853 | </desc>
|
---|
5854 | <param name="BGR" type="boolean" dir="in">
|
---|
5855 | <desc>
|
---|
5856 | How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
|
---|
5857 | bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
|
---|
5858 | </desc>
|
---|
5859 | </param>
|
---|
5860 | <param name="width" type="unsigned long" dir="out">
|
---|
5861 | <desc>
|
---|
5862 | Bitmap width.
|
---|
5863 | </desc>
|
---|
5864 | </param>
|
---|
5865 | <param name="height" type="unsigned long" dir="out">
|
---|
5866 | <desc>
|
---|
5867 | Bitmap height.
|
---|
5868 | </desc>
|
---|
5869 | </param>
|
---|
5870 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5871 | <desc>
|
---|
5872 | Array with resulting bitmap data.
|
---|
5873 | </desc>
|
---|
5874 | </param>
|
---|
5875 | </method>
|
---|
5876 |
|
---|
5877 | <method name="querySavedScreenshotPNGSize">
|
---|
5878 | <desc>
|
---|
5879 | Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
|
---|
5880 | </desc>
|
---|
5881 | <param name="size" type="unsigned long" dir="out">
|
---|
5882 | <desc>
|
---|
5883 | Size of buffer required to store the PNG binary data.
|
---|
5884 | </desc>
|
---|
5885 | </param>
|
---|
5886 | <param name="width" type="unsigned long" dir="out">
|
---|
5887 | <desc>
|
---|
5888 | Image width.
|
---|
5889 | </desc>
|
---|
5890 | </param>
|
---|
5891 | <param name="height" type="unsigned long" dir="out">
|
---|
5892 | <desc>
|
---|
5893 | Image height.
|
---|
5894 | </desc>
|
---|
5895 | </param>
|
---|
5896 | </method>
|
---|
5897 |
|
---|
5898 | <method name="readSavedScreenshotPNGToArray">
|
---|
5899 | <desc>
|
---|
5900 | Screenshot in PNG format is retrieved to an array of bytes.
|
---|
5901 | </desc>
|
---|
5902 | <param name="width" type="unsigned long" dir="out">
|
---|
5903 | <desc>
|
---|
5904 | Image width.
|
---|
5905 | </desc>
|
---|
5906 | </param>
|
---|
5907 | <param name="height" type="unsigned long" dir="out">
|
---|
5908 | <desc>
|
---|
5909 | Image height.
|
---|
5910 | </desc>
|
---|
5911 | </param>
|
---|
5912 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5913 | <desc>
|
---|
5914 | Array with resulting PNG data.
|
---|
5915 | </desc>
|
---|
5916 | </param>
|
---|
5917 | </method>
|
---|
5918 | </interface>
|
---|
5919 |
|
---|
5920 | <!--
|
---|
5921 | // IConsole
|
---|
5922 | /////////////////////////////////////////////////////////////////////////
|
---|
5923 | -->
|
---|
5924 |
|
---|
5925 | <interface
|
---|
5926 | name="IConsoleCallback" extends="$unknown"
|
---|
5927 | uuid="d6239535-bda2-4ef7-83f4-f4722e4a3b2c"
|
---|
5928 | wsmap="suppress"
|
---|
5929 | >
|
---|
5930 |
|
---|
5931 | <desc>
|
---|
5932 | This interface is used by a client of the Main API that need to
|
---|
5933 | be notified of events. For example, a graphical user interface
|
---|
5934 | can use this to learn about machine state changes so they can
|
---|
5935 | update the list of virtual machines without having to rely
|
---|
5936 | on polling.
|
---|
5937 |
|
---|
5938 | Whenever relevant events occur in VirtualBox, the callbacks in
|
---|
5939 | objects of this interface are called. In order for this to be
|
---|
5940 | useful, a client needs to create its own subclass that implements
|
---|
5941 | this interface in which the methods for the relevant callbacks
|
---|
5942 | are overridden. An instance of this subclass interface can then
|
---|
5943 | be passed to <link to="IConsole::registerCallback" />.
|
---|
5944 | </desc>
|
---|
5945 |
|
---|
5946 | <method name="onMousePointerShapeChange">
|
---|
5947 | <desc>
|
---|
5948 | Notification when the guest mouse pointer shape has
|
---|
5949 | changed. The new shape data is given.
|
---|
5950 | </desc>
|
---|
5951 | <param name="visible" type="boolean" dir="in">
|
---|
5952 | <desc>
|
---|
5953 | Flag whether the pointer is visible.
|
---|
5954 | </desc>
|
---|
5955 | </param>
|
---|
5956 | <param name="alpha" type="boolean" dir="in">
|
---|
5957 | <desc>
|
---|
5958 | Flag whether the pointer has an alpha channel.
|
---|
5959 | </desc>
|
---|
5960 | </param>
|
---|
5961 | <param name="xHot" type="unsigned long" dir="in">
|
---|
5962 | <desc>
|
---|
5963 | The pointer hot spot x coordinate.
|
---|
5964 | </desc>
|
---|
5965 | </param>
|
---|
5966 | <param name="yHot" type="unsigned long" dir="in">
|
---|
5967 | <desc>
|
---|
5968 | The pointer hot spot y coordinate.
|
---|
5969 | </desc>
|
---|
5970 | </param>
|
---|
5971 | <param name="width" type="unsigned long" dir="in">
|
---|
5972 | <desc>
|
---|
5973 | Width of the pointer shape in pixels.
|
---|
5974 | </desc>
|
---|
5975 | </param>
|
---|
5976 | <param name="height" type="unsigned long" dir="in">
|
---|
5977 | <desc>
|
---|
5978 | Height of the pointer shape in pixels.
|
---|
5979 | </desc>
|
---|
5980 | </param>
|
---|
5981 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
5982 | <desc>
|
---|
5983 | Address of the shape buffer.
|
---|
5984 |
|
---|
5985 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
5986 | followed by a 32-bpp XOR (color) mask.
|
---|
5987 |
|
---|
5988 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
5989 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
5990 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
5991 |
|
---|
5992 | An AND mask is used for pointers with alpha channel, so if the
|
---|
5993 | callback does not support alpha, the pointer could be
|
---|
5994 | displayed as a normal color pointer.
|
---|
5995 |
|
---|
5996 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
5997 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
5998 | height</tt>. The padding bits at the end of each scanline are
|
---|
5999 | undefined.
|
---|
6000 |
|
---|
6001 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
6002 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
6003 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
6004 | The XOR mask scanlines have no gap between them and the size of
|
---|
6005 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
6006 |
|
---|
6007 | <note>
|
---|
6008 | If @a shape is 0, only the pointer visibility is changed.
|
---|
6009 | </note>
|
---|
6010 | </desc>
|
---|
6011 | </param>
|
---|
6012 | </method>
|
---|
6013 |
|
---|
6014 | <method name="onMouseCapabilityChange">
|
---|
6015 | <desc>
|
---|
6016 | Notification when the mouse capabilities reported by the
|
---|
6017 | guest have changed. The new capabilities are passed.
|
---|
6018 | </desc>
|
---|
6019 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
6020 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
6021 | </method>
|
---|
6022 |
|
---|
6023 | <method name="onKeyboardLedsChange">
|
---|
6024 | <desc>
|
---|
6025 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
6026 | to alter the state of the keyboard LEDs.
|
---|
6027 | </desc>
|
---|
6028 | <param name="numLock" type="boolean" dir="in"/>
|
---|
6029 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
6030 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
6031 | </method>
|
---|
6032 |
|
---|
6033 | <method name="onStateChange">
|
---|
6034 | <desc>
|
---|
6035 | Notification when the execution state of the machine has changed.
|
---|
6036 | The new state will be given.
|
---|
6037 | </desc>
|
---|
6038 | <param name="state" type="MachineState" dir="in"/>
|
---|
6039 | </method>
|
---|
6040 |
|
---|
6041 | <method name="onAdditionsStateChange">
|
---|
6042 | <desc>
|
---|
6043 | Notification when a Guest Additions property changes.
|
---|
6044 | Interested callees should query IGuest attributes to
|
---|
6045 | find out what has changed.
|
---|
6046 | </desc>
|
---|
6047 | </method>
|
---|
6048 |
|
---|
6049 | <method name="onNetworkAdapterChange">
|
---|
6050 | <desc>
|
---|
6051 | Notification when a property of one of the
|
---|
6052 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
6053 | changes. Interested callees should use INetworkAdapter methods and
|
---|
6054 | attributes to find out what has changed.
|
---|
6055 | </desc>
|
---|
6056 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
6057 | <desc>Network adapter that is subject to change.</desc>
|
---|
6058 | </param>
|
---|
6059 | </method>
|
---|
6060 |
|
---|
6061 | <method name="onSerialPortChange">
|
---|
6062 | <desc>
|
---|
6063 | Notification when a property of one of the
|
---|
6064 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
6065 | Interested callees should use ISerialPort methods and attributes
|
---|
6066 | to find out what has changed.
|
---|
6067 | </desc>
|
---|
6068 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
6069 | <desc>Serial port that is subject to change.</desc>
|
---|
6070 | </param>
|
---|
6071 | </method>
|
---|
6072 |
|
---|
6073 | <method name="onParallelPortChange">
|
---|
6074 | <desc>
|
---|
6075 | Notification when a property of one of the
|
---|
6076 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
6077 | changes. Interested callees should use ISerialPort methods and
|
---|
6078 | attributes to find out what has changed.
|
---|
6079 | </desc>
|
---|
6080 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
6081 | <desc>Parallel port that is subject to change.</desc>
|
---|
6082 | </param>
|
---|
6083 | </method>
|
---|
6084 |
|
---|
6085 | <method name="onStorageControllerChange">
|
---|
6086 | <desc>
|
---|
6087 | Notification when a property of one of the
|
---|
6088 | virtual <link to="IMachine::storageControllers">storage controllers</link>
|
---|
6089 | changes. Interested callees should query the corresponding collections
|
---|
6090 | to find out what has changed.
|
---|
6091 | </desc>
|
---|
6092 | </method>
|
---|
6093 |
|
---|
6094 | <method name="onMediumChange">
|
---|
6095 | <desc>
|
---|
6096 | Notification when a
|
---|
6097 | <link to="IMachine::mediumAttachments">medium attachment</link>
|
---|
6098 | changes.
|
---|
6099 | </desc>
|
---|
6100 | <param name="mediumAttachment" type="IMediumAttachment" dir="in">
|
---|
6101 | <desc>Medium attachment that is subject to change.</desc>
|
---|
6102 | </param>
|
---|
6103 | </method>
|
---|
6104 |
|
---|
6105 | <method name="onVRDPServerChange">
|
---|
6106 | <desc>
|
---|
6107 | Notification when a property of the
|
---|
6108 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
6109 | Interested callees should use IVRDPServer methods and attributes to
|
---|
6110 | find out what has changed.
|
---|
6111 | </desc>
|
---|
6112 | </method>
|
---|
6113 |
|
---|
6114 | <method name="onRemoteDisplayInfoChange">
|
---|
6115 | <desc>
|
---|
6116 | Notification when the status of the VRDP server changes. Interested callees
|
---|
6117 | should use <link to="IConsole::RemoteDisplayInfo">IRemoteDisplayInfo</link>
|
---|
6118 | attributes to find out what is the current status.
|
---|
6119 | </desc>
|
---|
6120 | </method>
|
---|
6121 |
|
---|
6122 | <method name="onUSBControllerChange">
|
---|
6123 | <desc>
|
---|
6124 | Notification when a property of the virtual
|
---|
6125 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
6126 | Interested callees should use IUSBController methods and attributes to
|
---|
6127 | find out what has changed.
|
---|
6128 | </desc>
|
---|
6129 | </method>
|
---|
6130 |
|
---|
6131 | <method name="onUSBDeviceStateChange">
|
---|
6132 | <desc>
|
---|
6133 | Notification when a USB device is attached to or detached from
|
---|
6134 | the virtual USB controller.
|
---|
6135 |
|
---|
6136 | This notification is sent as a result of the indirect
|
---|
6137 | request to attach the device because it matches one of the
|
---|
6138 | machine USB filters, or as a result of the direct request
|
---|
6139 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
6140 | <link to="IConsole::detachUSBDevice"/>.
|
---|
6141 |
|
---|
6142 | This notification is sent in case of both a succeeded and a
|
---|
6143 | failed request completion. When the request succeeds, the
|
---|
6144 | @a error parameter is @c null, and the given device has been
|
---|
6145 | already added to (when @a attached is @c true) or removed from
|
---|
6146 | (when @a attached is @c false) the collection represented by
|
---|
6147 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
6148 | doesn't change and the @a error parameter represents the error
|
---|
6149 | message describing the failure.
|
---|
6150 |
|
---|
6151 | </desc>
|
---|
6152 | <param name="device" type="IUSBDevice" dir="in">
|
---|
6153 | <desc>Device that is subject to state change.</desc>
|
---|
6154 | </param>
|
---|
6155 | <param name="attached" type="boolean" dir="in">
|
---|
6156 | <desc>
|
---|
6157 | @c true if the device was attached and @c false otherwise.
|
---|
6158 | </desc>
|
---|
6159 | </param>
|
---|
6160 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
6161 | <desc>
|
---|
6162 | @c null on success or an error message object on failure.
|
---|
6163 | </desc>
|
---|
6164 | </param>
|
---|
6165 | </method>
|
---|
6166 |
|
---|
6167 | <method name="onSharedFolderChange">
|
---|
6168 | <desc>
|
---|
6169 | Notification when a shared folder is added or removed.
|
---|
6170 | The @a scope argument defines one of three scopes:
|
---|
6171 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
6172 | (<link to="Scope_Global">Global</link>),
|
---|
6173 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
6174 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
6175 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
6176 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
6177 | should use query the corresponding collections to find out what has
|
---|
6178 | changed.
|
---|
6179 | </desc>
|
---|
6180 | <param name="scope" type="Scope" dir="in">
|
---|
6181 | <desc>Scope of the notification.</desc>
|
---|
6182 | </param>
|
---|
6183 | </method>
|
---|
6184 |
|
---|
6185 | <method name="onRuntimeError">
|
---|
6186 | <desc>
|
---|
6187 | Notification when an error happens during the virtual
|
---|
6188 | machine execution.
|
---|
6189 |
|
---|
6190 | There are three kinds of runtime errors:
|
---|
6191 | <ul>
|
---|
6192 | <li><i>fatal</i></li>
|
---|
6193 | <li><i>non-fatal with retry</i></li>
|
---|
6194 | <li><i>non-fatal warnings</i></li>
|
---|
6195 | </ul>
|
---|
6196 |
|
---|
6197 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
6198 | to @c true. In case of fatal errors, the virtual machine
|
---|
6199 | execution is always paused before calling this notification, and
|
---|
6200 | the notification handler is supposed either to immediately save
|
---|
6201 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
6202 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
6203 | Resuming the execution can lead to unpredictable results.
|
---|
6204 |
|
---|
6205 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
6206 | @a fatal parameter set to @c false. If the virtual machine
|
---|
6207 | is in the Paused state by the time the error notification is
|
---|
6208 | received, it means that the user can <i>try to resume</i> the machine
|
---|
6209 | execution after attempting to solve the problem that caused the
|
---|
6210 | error. In this case, the notification handler is supposed
|
---|
6211 | to show an appropriate message to the user (depending on the
|
---|
6212 | value of the @a id parameter) that offers several actions such
|
---|
6213 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
6214 | wants to retry, the notification handler should continue
|
---|
6215 | the machine execution using the <link to="IConsole::resume"/>
|
---|
6216 | call. If the machine execution is not Paused during this
|
---|
6217 | notification, then it means this notification is a <i>warning</i>
|
---|
6218 | (for example, about a fatal condition that can happen very soon);
|
---|
6219 | no immediate action is required from the user, the machine
|
---|
6220 | continues its normal execution.
|
---|
6221 |
|
---|
6222 | Note that in either case the notification handler
|
---|
6223 | <b>must not</b> perform any action directly on a thread
|
---|
6224 | where this notification is called. Everything it is allowed to
|
---|
6225 | do is to post a message to another thread that will then talk
|
---|
6226 | to the user and take the corresponding action.
|
---|
6227 |
|
---|
6228 | Currently, the following error identifiers are known:
|
---|
6229 | <ul>
|
---|
6230 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
6231 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
6232 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
6233 | <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
|
---|
6234 | </ul>
|
---|
6235 |
|
---|
6236 | <note>
|
---|
6237 | This notification is not designed to be implemented by
|
---|
6238 | more than one callback at a time. If you have multiple
|
---|
6239 | IConsoleCallback instances registered on the given
|
---|
6240 | IConsole object, make sure you simply do nothing but
|
---|
6241 | return @c S_OK from all but one of them that does actual
|
---|
6242 | user notification and performs necessary actions.
|
---|
6243 | </note>
|
---|
6244 |
|
---|
6245 | </desc>
|
---|
6246 | <param name="fatal" type="boolean" dir="in">
|
---|
6247 | <desc>Whether the error is fatal or not</desc>
|
---|
6248 | </param>
|
---|
6249 | <param name="id" type="wstring" dir="in">
|
---|
6250 | <desc>Error identifier</desc>
|
---|
6251 | </param>
|
---|
6252 | <param name="message" type="wstring" dir="in">
|
---|
6253 | <desc>Optional error message</desc>
|
---|
6254 | </param>
|
---|
6255 | </method>
|
---|
6256 |
|
---|
6257 | <method name="onCanShowWindow">
|
---|
6258 | <desc>
|
---|
6259 | Notification when a call to
|
---|
6260 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
6261 | front-end to check if a subsequent call to
|
---|
6262 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
6263 |
|
---|
6264 | The callee should give an answer appropriate to the current
|
---|
6265 | machine state in the @a canShow argument. This answer must
|
---|
6266 | remain valid at least until the next
|
---|
6267 | <link to="IConsole::state">machine state</link> change.
|
---|
6268 |
|
---|
6269 | <note>
|
---|
6270 | This notification is not designed to be implemented by
|
---|
6271 | more than one callback at a time. If you have multiple
|
---|
6272 | IConsoleCallback instances registered on the given
|
---|
6273 | IConsole object, make sure you simply do nothing but
|
---|
6274 | return @c true and @c S_OK from all but one of them that
|
---|
6275 | actually manages console window activation.
|
---|
6276 | </note>
|
---|
6277 | </desc>
|
---|
6278 | <param name="canShow" type="boolean" dir="return">
|
---|
6279 | <desc>
|
---|
6280 | @c true if the console window can be shown and @c false otherwise.
|
---|
6281 | </desc>
|
---|
6282 | </param>
|
---|
6283 | </method>
|
---|
6284 |
|
---|
6285 | <method name="onShowWindow">
|
---|
6286 | <desc>
|
---|
6287 | Notification when a call to
|
---|
6288 | <link to="IMachine::showConsoleWindow"/>
|
---|
6289 | requests the console window to be activated and brought to
|
---|
6290 | foreground on the desktop of the host PC.
|
---|
6291 |
|
---|
6292 | This notification should cause the VM console process to
|
---|
6293 | perform the requested action as described above. If it is
|
---|
6294 | impossible to do it at a time of this notification, this
|
---|
6295 | method should return a failure.
|
---|
6296 |
|
---|
6297 | Note that many modern window managers on many platforms
|
---|
6298 | implement some sort of focus stealing prevention logic, so
|
---|
6299 | that it may be impossible to activate a window without the
|
---|
6300 | help of the currently active application (which is supposedly
|
---|
6301 | an initiator of this notification). In this case, this method
|
---|
6302 | must return a non-zero identifier that represents the
|
---|
6303 | top-level window of the VM console process. The caller, if it
|
---|
6304 | represents a currently active process, is responsible to use
|
---|
6305 | this identifier (in a platform-dependent manner) to perform
|
---|
6306 | actual window activation.
|
---|
6307 |
|
---|
6308 | This method must set @a winId to zero if it has performed all
|
---|
6309 | actions necessary to complete the request and the console
|
---|
6310 | window is now active and in foreground, to indicate that no
|
---|
6311 | further action is required on the caller's side.
|
---|
6312 |
|
---|
6313 | <note>
|
---|
6314 | This notification is not designed to be implemented by
|
---|
6315 | more than one callback at a time. If you have multiple
|
---|
6316 | IConsoleCallback instances registered on the given
|
---|
6317 | IConsole object, make sure you simply do nothing but
|
---|
6318 | return @c S_OK from all but one of them that actually
|
---|
6319 | manages console window activation.
|
---|
6320 | </note>
|
---|
6321 | </desc>
|
---|
6322 | <param name="winId" type="unsigned long long" dir="return">
|
---|
6323 | <desc>
|
---|
6324 | Platform-dependent identifier of the top-level VM console
|
---|
6325 | window, or zero if this method has performed all actions
|
---|
6326 | necessary to implement the <i>show window</i> semantics for
|
---|
6327 | the given platform and/or this VirtualBox front-end.
|
---|
6328 | </desc>
|
---|
6329 | </param>
|
---|
6330 | </method>
|
---|
6331 |
|
---|
6332 | </interface>
|
---|
6333 |
|
---|
6334 | <interface
|
---|
6335 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
6336 | uuid="b3741084-806f-4c3b-8c42-ebad1a81e45a"
|
---|
6337 | wsmap="struct"
|
---|
6338 | >
|
---|
6339 | <desc>
|
---|
6340 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
6341 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
6342 | </desc>
|
---|
6343 |
|
---|
6344 | <attribute name="active" type="boolean" readonly="yes">
|
---|
6345 | <desc>
|
---|
6346 | Whether the remote display connection is active.
|
---|
6347 | </desc>
|
---|
6348 | </attribute>
|
---|
6349 |
|
---|
6350 | <attribute name="port" type="long" readonly="yes">
|
---|
6351 | <desc>
|
---|
6352 | VRDP server port number. If this property is equal to <tt>0</tt>, then
|
---|
6353 | the VRDP server failed to start, usually because there are no free TCP
|
---|
6354 | ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDP
|
---|
6355 | server has not yet been started.
|
---|
6356 | </desc>
|
---|
6357 | </attribute>
|
---|
6358 |
|
---|
6359 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
6360 | <desc>
|
---|
6361 | How many times a client connected.
|
---|
6362 | </desc>
|
---|
6363 | </attribute>
|
---|
6364 |
|
---|
6365 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
6366 | <desc>
|
---|
6367 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
6368 | </desc>
|
---|
6369 | </attribute>
|
---|
6370 |
|
---|
6371 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
6372 | <desc>
|
---|
6373 | When the last connection was terminated or the current time, if
|
---|
6374 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
6375 | </desc>
|
---|
6376 | </attribute>
|
---|
6377 |
|
---|
6378 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
6379 | <desc>
|
---|
6380 | How many bytes were sent in last or current, if still active, connection.
|
---|
6381 | </desc>
|
---|
6382 | </attribute>
|
---|
6383 |
|
---|
6384 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
6385 | <desc>
|
---|
6386 | How many bytes were sent in all connections.
|
---|
6387 | </desc>
|
---|
6388 | </attribute>
|
---|
6389 |
|
---|
6390 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
6391 | <desc>
|
---|
6392 | How many bytes were received in last or current, if still active, connection.
|
---|
6393 | </desc>
|
---|
6394 | </attribute>
|
---|
6395 |
|
---|
6396 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
6397 | <desc>
|
---|
6398 | How many bytes were received in all connections.
|
---|
6399 | </desc>
|
---|
6400 | </attribute>
|
---|
6401 |
|
---|
6402 | <attribute name="user" type="wstring" readonly="yes">
|
---|
6403 | <desc>
|
---|
6404 | Login user name supplied by the client.
|
---|
6405 | </desc>
|
---|
6406 | </attribute>
|
---|
6407 |
|
---|
6408 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
6409 | <desc>
|
---|
6410 | Login domain name supplied by the client.
|
---|
6411 | </desc>
|
---|
6412 | </attribute>
|
---|
6413 |
|
---|
6414 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
6415 | <desc>
|
---|
6416 | The client name supplied by the client.
|
---|
6417 | </desc>
|
---|
6418 | </attribute>
|
---|
6419 |
|
---|
6420 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
6421 | <desc>
|
---|
6422 | The IP address of the client.
|
---|
6423 | </desc>
|
---|
6424 | </attribute>
|
---|
6425 |
|
---|
6426 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
6427 | <desc>
|
---|
6428 | The client software version number.
|
---|
6429 | </desc>
|
---|
6430 | </attribute>
|
---|
6431 |
|
---|
6432 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
6433 | <desc>
|
---|
6434 | Public key exchange method used when connection was established.
|
---|
6435 | Values: 0 - RDP4 public key exchange scheme.
|
---|
6436 | 1 - X509 certificates were sent to client.
|
---|
6437 | </desc>
|
---|
6438 | </attribute>
|
---|
6439 |
|
---|
6440 | </interface>
|
---|
6441 |
|
---|
6442 | <interface
|
---|
6443 | name="IConsole" extends="$unknown"
|
---|
6444 | uuid="6375231a-c17c-464b-92cb-ae9e128d71c3"
|
---|
6445 | wsmap="managed"
|
---|
6446 | >
|
---|
6447 | <desc>
|
---|
6448 | The IConsole interface represents an interface to control virtual
|
---|
6449 | machine execution.
|
---|
6450 |
|
---|
6451 | The console object that implements the IConsole interface is obtained
|
---|
6452 | from a session object after the session for the given machine has been
|
---|
6453 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
6454 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
6455 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
6456 |
|
---|
6457 | Methods of the IConsole interface allow the caller to query the current
|
---|
6458 | virtual machine execution state, pause the machine or power it down, save
|
---|
6459 | the machine state or take a snapshot, attach and detach removable media
|
---|
6460 | and so on.
|
---|
6461 |
|
---|
6462 | <see>ISession</see>
|
---|
6463 | </desc>
|
---|
6464 |
|
---|
6465 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
6466 | <desc>
|
---|
6467 | Machine object this console is sessioned with.
|
---|
6468 | <note>
|
---|
6469 | This is a convenience property, it has the same value as
|
---|
6470 | <link to="ISession::machine"/> of the corresponding session
|
---|
6471 | object.
|
---|
6472 | </note>
|
---|
6473 | </desc>
|
---|
6474 | </attribute>
|
---|
6475 |
|
---|
6476 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
6477 | <desc>
|
---|
6478 | Current execution state of the machine.
|
---|
6479 | <note>
|
---|
6480 | This property always returns the same value as the corresponding
|
---|
6481 | property of the IMachine object this console is sessioned with.
|
---|
6482 | For the process that owns (executes) the VM, this is the
|
---|
6483 | preferable way of querying the VM state, because no IPC
|
---|
6484 | calls are made.
|
---|
6485 | </note>
|
---|
6486 | </desc>
|
---|
6487 | </attribute>
|
---|
6488 |
|
---|
6489 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
6490 | <desc>Guest object.</desc>
|
---|
6491 | </attribute>
|
---|
6492 |
|
---|
6493 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
6494 | <desc>
|
---|
6495 | Virtual keyboard object.
|
---|
6496 | <note>
|
---|
6497 | If the machine is not running, any attempt to use
|
---|
6498 | the returned object will result in an error.
|
---|
6499 | </note>
|
---|
6500 | </desc>
|
---|
6501 | </attribute>
|
---|
6502 |
|
---|
6503 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
6504 | <desc>
|
---|
6505 | Virtual mouse object.
|
---|
6506 | <note>
|
---|
6507 | If the machine is not running, any attempt to use
|
---|
6508 | the returned object will result in an error.
|
---|
6509 | </note>
|
---|
6510 | </desc>
|
---|
6511 | </attribute>
|
---|
6512 |
|
---|
6513 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
6514 | <desc>Virtual display object.
|
---|
6515 | <note>
|
---|
6516 | If the machine is not running, any attempt to use
|
---|
6517 | the returned object will result in an error.
|
---|
6518 | </note>
|
---|
6519 | </desc>
|
---|
6520 | </attribute>
|
---|
6521 |
|
---|
6522 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
6523 | <desc>Debugging interface.</desc>
|
---|
6524 | </attribute>
|
---|
6525 |
|
---|
6526 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
6527 | <desc>
|
---|
6528 | Collection of USB devices currently attached to the virtual
|
---|
6529 | USB controller.
|
---|
6530 | <note>
|
---|
6531 | The collection is empty if the machine is not running.
|
---|
6532 | </note>
|
---|
6533 | </desc>
|
---|
6534 | </attribute>
|
---|
6535 |
|
---|
6536 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6537 | <desc>
|
---|
6538 | List of USB devices currently attached to the remote VRDP client.
|
---|
6539 | Once a new device is physically attached to the remote host computer,
|
---|
6540 | it appears in this list and remains there until detached.
|
---|
6541 | </desc>
|
---|
6542 | </attribute>
|
---|
6543 |
|
---|
6544 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
6545 | <desc>
|
---|
6546 | Collection of shared folders for the current session. These folders
|
---|
6547 | are called transient shared folders because they are available to the
|
---|
6548 | guest OS running inside the associated virtual machine only for the
|
---|
6549 | duration of the session (as opposed to
|
---|
6550 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
6551 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
6552 | these folders are automatically discarded.
|
---|
6553 |
|
---|
6554 | New shared folders are added to the collection using
|
---|
6555 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
6556 | removed using <link to="#removeSharedFolder"/>.
|
---|
6557 | </desc>
|
---|
6558 | </attribute>
|
---|
6559 |
|
---|
6560 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
6561 | <desc>
|
---|
6562 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
6563 | </desc>
|
---|
6564 | </attribute>
|
---|
6565 |
|
---|
6566 | <method name="powerUp">
|
---|
6567 | <desc>
|
---|
6568 | Starts the virtual machine execution using the current machine
|
---|
6569 | state (that is, its current execution state, current settings and
|
---|
6570 | current storage devices).
|
---|
6571 |
|
---|
6572 | If the machine is powered off or aborted, the execution will
|
---|
6573 | start from the beginning (as if the real hardware were just
|
---|
6574 | powered on).
|
---|
6575 |
|
---|
6576 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
6577 | it will continue its execution the point where the state has
|
---|
6578 | been saved.
|
---|
6579 |
|
---|
6580 | <note>
|
---|
6581 | Unless you are trying to write a new VirtualBox front-end that
|
---|
6582 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
6583 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
6584 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
6585 | session only to change virtual machine settings. If you simply want to
|
---|
6586 | start virtual machine execution using one of the existing front-ends
|
---|
6587 | (for example the VirtualBox GUI or headless server), simply use
|
---|
6588 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
6589 | power up the machine automatically for you.
|
---|
6590 | </note>
|
---|
6591 |
|
---|
6592 | <see>#saveState</see>
|
---|
6593 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6594 | Virtual machine already running.
|
---|
6595 | </result>
|
---|
6596 | <result name="VBOX_E_HOST_ERROR">
|
---|
6597 | Host interface does not exist or name not set.
|
---|
6598 | </result>
|
---|
6599 | <result name="VBOX_E_FILE_ERROR">
|
---|
6600 | Invalid saved state file.
|
---|
6601 | </result>
|
---|
6602 | </desc>
|
---|
6603 | <param name="progress" type="IProgress" dir="return">
|
---|
6604 | <desc>Progress object to track the operation completion.</desc>
|
---|
6605 | </param>
|
---|
6606 | </method>
|
---|
6607 |
|
---|
6608 | <method name="powerUpPaused">
|
---|
6609 | <desc>
|
---|
6610 | Identical to powerUp except that the VM will enter the
|
---|
6611 | <link to="MachineState_Paused"/> state, instead of
|
---|
6612 | <link to="MachineState_Running"/>.
|
---|
6613 |
|
---|
6614 | <see>#powerUp</see>
|
---|
6615 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6616 | Virtual machine already running.
|
---|
6617 | </result>
|
---|
6618 | <result name="VBOX_E_HOST_ERROR">
|
---|
6619 | Host interface does not exist or name not set.
|
---|
6620 | </result>
|
---|
6621 | <result name="VBOX_E_FILE_ERROR">
|
---|
6622 | Invalid saved state file.
|
---|
6623 | </result>
|
---|
6624 | </desc>
|
---|
6625 | <param name="progress" type="IProgress" dir="return">
|
---|
6626 | <desc>Progress object to track the operation completion.</desc>
|
---|
6627 | </param>
|
---|
6628 | </method>
|
---|
6629 |
|
---|
6630 | <method name="powerDown">
|
---|
6631 | <desc>
|
---|
6632 | Initiates the power down procedure to stop the virtual machine
|
---|
6633 | execution.
|
---|
6634 |
|
---|
6635 | The completion of the power down procedure is tracked using the returned
|
---|
6636 | IProgress object. After the operation is complete, the machine will go
|
---|
6637 | to the PoweredOff state.
|
---|
6638 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6639 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6640 | </result>
|
---|
6641 | </desc>
|
---|
6642 | <param name="progress" type="IProgress" dir="return">
|
---|
6643 | <desc>Progress object to track the operation completion.</desc>
|
---|
6644 | </param>
|
---|
6645 | </method>
|
---|
6646 |
|
---|
6647 | <method name="reset">
|
---|
6648 | <desc>Resets the virtual machine.
|
---|
6649 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6650 | Virtual machine not in Running state.
|
---|
6651 | </result>
|
---|
6652 | <result name="VBOX_E_VM_ERROR">
|
---|
6653 | Virtual machine error in reset operation.
|
---|
6654 | </result>
|
---|
6655 | </desc>
|
---|
6656 | </method>
|
---|
6657 |
|
---|
6658 | <method name="pause">
|
---|
6659 | <desc>Pauses the virtual machine execution.
|
---|
6660 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6661 | Virtual machine not in Running state.
|
---|
6662 | </result>
|
---|
6663 | <result name="VBOX_E_VM_ERROR">
|
---|
6664 | Virtual machine error in suspend operation.
|
---|
6665 | </result>
|
---|
6666 | </desc>
|
---|
6667 | </method>
|
---|
6668 |
|
---|
6669 | <method name="resume">
|
---|
6670 | <desc>Resumes the virtual machine execution.
|
---|
6671 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6672 | Virtual machine not in Paused state.
|
---|
6673 | </result>
|
---|
6674 | <result name="VBOX_E_VM_ERROR">
|
---|
6675 | Virtual machine error in resume operation.
|
---|
6676 | </result>
|
---|
6677 | </desc>
|
---|
6678 | </method>
|
---|
6679 |
|
---|
6680 | <method name="powerButton">
|
---|
6681 | <desc>Sends the ACPI power button event to the guest.
|
---|
6682 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6683 | Virtual machine not in Running state.
|
---|
6684 | </result>
|
---|
6685 | <result name="VBOX_E_PDM_ERROR">
|
---|
6686 | Controlled power off failed.
|
---|
6687 | </result>
|
---|
6688 | </desc>
|
---|
6689 | </method>
|
---|
6690 |
|
---|
6691 | <method name="sleepButton">
|
---|
6692 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6693 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6694 | Virtual machine not in Running state.
|
---|
6695 | </result>
|
---|
6696 | <result name="VBOX_E_PDM_ERROR">
|
---|
6697 | Sending sleep button event failed.
|
---|
6698 | </result>
|
---|
6699 | </desc>
|
---|
6700 | </method>
|
---|
6701 |
|
---|
6702 | <method name="getPowerButtonHandled">
|
---|
6703 | <desc>Checks if the last power button event was handled by guest.
|
---|
6704 | <result name="VBOX_E_PDM_ERROR">
|
---|
6705 | Checking if the event was handled by the guest OS failed.
|
---|
6706 | </result>
|
---|
6707 | </desc>
|
---|
6708 | <param name="handled" type="boolean" dir="return"/>
|
---|
6709 | </method>
|
---|
6710 |
|
---|
6711 | <method name="getGuestEnteredACPIMode">
|
---|
6712 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6713 | G1 (sleeping). If this method returns @c false, the guest will
|
---|
6714 | most likely not respond to external ACPI events.
|
---|
6715 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6716 | Virtual machine not in Running state.
|
---|
6717 | </result>
|
---|
6718 | </desc>
|
---|
6719 | <param name="entered" type="boolean" dir="return"/>
|
---|
6720 | </method>
|
---|
6721 |
|
---|
6722 | <method name="saveState">
|
---|
6723 | <desc>
|
---|
6724 | Saves the current execution state of a running virtual machine
|
---|
6725 | and stops its execution.
|
---|
6726 |
|
---|
6727 | After this operation completes, the machine will go to the
|
---|
6728 | Saved state. Next time it is powered up, this state will
|
---|
6729 | be restored and the machine will continue its execution from
|
---|
6730 | the place where it was saved.
|
---|
6731 |
|
---|
6732 | This operation differs from taking a snapshot to the effect
|
---|
6733 | that it doesn't create new differencing media. Also, once
|
---|
6734 | the machine is powered up from the state saved using this method,
|
---|
6735 | the saved state is deleted, so it will be impossible to return
|
---|
6736 | to this state later.
|
---|
6737 |
|
---|
6738 | <note>
|
---|
6739 | On success, this method implicitly calls
|
---|
6740 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6741 | settings (including runtime changes to the DVD medium, etc.).
|
---|
6742 | Together with the impossibility to change any VM settings when it is
|
---|
6743 | in the Saved state, this guarantees adequate hardware
|
---|
6744 | configuration of the machine when it is restored from the saved
|
---|
6745 | state file.
|
---|
6746 | </note>
|
---|
6747 |
|
---|
6748 | <note>
|
---|
6749 | The machine must be in the Running or Paused state, otherwise
|
---|
6750 | the operation will fail.
|
---|
6751 | </note>
|
---|
6752 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6753 | Virtual machine state neither Running nor Paused.
|
---|
6754 | </result>
|
---|
6755 | <result name="VBOX_E_FILE_ERROR">
|
---|
6756 | Failed to create directory for saved state file.
|
---|
6757 | </result>
|
---|
6758 |
|
---|
6759 | <see><link to="#takeSnapshot"/></see>
|
---|
6760 | </desc>
|
---|
6761 | <param name="progress" type="IProgress" dir="return">
|
---|
6762 | <desc>Progress object to track the operation completion.</desc>
|
---|
6763 | </param>
|
---|
6764 | </method>
|
---|
6765 |
|
---|
6766 | <method name="adoptSavedState">
|
---|
6767 | <desc>
|
---|
6768 | Associates the given saved state file to the virtual machine.
|
---|
6769 |
|
---|
6770 | On success, the machine will go to the Saved state. Next time it is
|
---|
6771 | powered up, it will be restored from the adopted saved state and
|
---|
6772 | continue execution from the place where the saved state file was
|
---|
6773 | created.
|
---|
6774 |
|
---|
6775 | The specified saved state file path may be absolute or relative to the
|
---|
6776 | folder the VM normally saves the state to (usually,
|
---|
6777 | <link to="IMachine::snapshotFolder"/>).
|
---|
6778 |
|
---|
6779 | <note>
|
---|
6780 | It's a caller's responsibility to make sure the given saved state
|
---|
6781 | file is compatible with the settings of this virtual machine that
|
---|
6782 | represent its virtual hardware (memory size, storage disk configuration
|
---|
6783 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6784 | is undefined.
|
---|
6785 | </note>
|
---|
6786 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6787 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6788 | </result>
|
---|
6789 | </desc>
|
---|
6790 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6791 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6792 | </param>
|
---|
6793 | </method>
|
---|
6794 |
|
---|
6795 | <method name="forgetSavedState">
|
---|
6796 | <desc>
|
---|
6797 | Forgets the saved state of the virtual machine previously created
|
---|
6798 | by <link to="#saveState"/>. Next time the machine is powered up, a
|
---|
6799 | clean boot will occur. If @a remove is @c true the saved state file
|
---|
6800 | is deleted.
|
---|
6801 | <note>
|
---|
6802 | This operation is equivalent to resetting or powering off
|
---|
6803 | the machine without doing a proper shutdown in the guest OS.
|
---|
6804 | </note>
|
---|
6805 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6806 | Virtual machine not in state Saved.
|
---|
6807 | </result>
|
---|
6808 | </desc>
|
---|
6809 | <param name="remove" type="boolean" dir="in">
|
---|
6810 | <desc>If @c true remove the saved state file.</desc>
|
---|
6811 | </param>
|
---|
6812 | </method>
|
---|
6813 |
|
---|
6814 | <method name="getDeviceActivity">
|
---|
6815 | <desc>
|
---|
6816 | Gets the current activity type of a given device or device group.
|
---|
6817 | <result name="E_INVALIDARG">
|
---|
6818 | Invalid device type.
|
---|
6819 | </result>
|
---|
6820 | </desc>
|
---|
6821 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6822 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6823 | </method>
|
---|
6824 |
|
---|
6825 | <method name="attachUSBDevice">
|
---|
6826 | <desc>
|
---|
6827 | Attaches a host USB device with the given UUID to the
|
---|
6828 | USB controller of the virtual machine.
|
---|
6829 |
|
---|
6830 | The device needs to be in one of the following states:
|
---|
6831 | <link to="USBDeviceState_Busy"/>,
|
---|
6832 | <link to="USBDeviceState_Available"/> or
|
---|
6833 | <link to="USBDeviceState_Held"/>,
|
---|
6834 | otherwise an error is immediately returned.
|
---|
6835 |
|
---|
6836 | When the device state is
|
---|
6837 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6838 | be returned if the host computer refuses to release it for some reason.
|
---|
6839 |
|
---|
6840 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6841 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6842 | Virtual machine state neither Running nor Paused.
|
---|
6843 | </result>
|
---|
6844 | <result name="VBOX_E_PDM_ERROR">
|
---|
6845 | Virtual machine does not have a USB controller.
|
---|
6846 | </result>
|
---|
6847 | </desc>
|
---|
6848 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6849 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6850 | </param>
|
---|
6851 | </method>
|
---|
6852 |
|
---|
6853 | <method name="detachUSBDevice">
|
---|
6854 | <desc>
|
---|
6855 | Detaches an USB device with the given UUID from the USB controller
|
---|
6856 | of the virtual machine.
|
---|
6857 |
|
---|
6858 | After this method succeeds, the VirtualBox server re-initiates
|
---|
6859 | all USB filters as if the device were just physically attached
|
---|
6860 | to the host, but filters of this machine are ignored to avoid
|
---|
6861 | a possible automatic re-attachment.
|
---|
6862 |
|
---|
6863 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6864 |
|
---|
6865 | <result name="VBOX_E_PDM_ERROR">
|
---|
6866 | Virtual machine does not have a USB controller.
|
---|
6867 | </result>
|
---|
6868 | <result name="E_INVALIDARG">
|
---|
6869 | USB device not attached to this virtual machine.
|
---|
6870 | </result>
|
---|
6871 | </desc>
|
---|
6872 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6873 | <desc>UUID of the USB device to detach.</desc>
|
---|
6874 | </param>
|
---|
6875 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6876 | <desc>Detached USB device.</desc>
|
---|
6877 | </param>
|
---|
6878 | </method>
|
---|
6879 |
|
---|
6880 | <method name="findUSBDeviceByAddress">
|
---|
6881 | <desc>
|
---|
6882 | Searches for a USB device with the given host address.
|
---|
6883 |
|
---|
6884 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6885 | Given @c name does not correspond to any USB device.
|
---|
6886 | </result>
|
---|
6887 |
|
---|
6888 | <see>IUSBDevice::address</see>
|
---|
6889 | </desc>
|
---|
6890 | <param name="name" type="wstring" dir="in">
|
---|
6891 | <desc>
|
---|
6892 | Address of the USB device (as assigned by the host) to
|
---|
6893 | search for.
|
---|
6894 | </desc>
|
---|
6895 | </param>
|
---|
6896 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6897 | <desc>Found USB device object.</desc>
|
---|
6898 | </param>
|
---|
6899 | </method>
|
---|
6900 |
|
---|
6901 | <method name="findUSBDeviceById">
|
---|
6902 | <desc>
|
---|
6903 | Searches for a USB device with the given UUID.
|
---|
6904 |
|
---|
6905 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6906 | Given @c id does not correspond to any USB device.
|
---|
6907 | </result>
|
---|
6908 |
|
---|
6909 | <see>IUSBDevice::id</see>
|
---|
6910 | </desc>
|
---|
6911 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6912 | <desc>UUID of the USB device to search for.</desc>
|
---|
6913 | </param>
|
---|
6914 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6915 | <desc>Found USB device object.</desc>
|
---|
6916 | </param>
|
---|
6917 | </method>
|
---|
6918 |
|
---|
6919 | <method name="createSharedFolder">
|
---|
6920 | <desc>
|
---|
6921 | Creates a transient new shared folder by associating the given logical
|
---|
6922 | name with the given host path, adds it to the collection of shared
|
---|
6923 | folders and starts sharing it. Refer to the description of
|
---|
6924 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
6925 |
|
---|
6926 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6927 | Virtual machine in Saved state or currently changing state.
|
---|
6928 | </result>
|
---|
6929 | <result name="VBOX_E_FILE_ERROR">
|
---|
6930 | Shared folder already exists or not accessible.
|
---|
6931 | </result>
|
---|
6932 | </desc>
|
---|
6933 | <param name="name" type="wstring" dir="in">
|
---|
6934 | <desc>Unique logical name of the shared folder.</desc>
|
---|
6935 | </param>
|
---|
6936 | <param name="hostPath" type="wstring" dir="in">
|
---|
6937 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
6938 | </param>
|
---|
6939 | <param name="writable" type="boolean" dir="in">
|
---|
6940 | <desc>Whether the share is writable or readonly</desc>
|
---|
6941 | </param>
|
---|
6942 | </method>
|
---|
6943 |
|
---|
6944 | <method name="removeSharedFolder">
|
---|
6945 | <desc>
|
---|
6946 | Removes a transient shared folder with the given name previously
|
---|
6947 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
6948 | shared folders and stops sharing it.
|
---|
6949 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6950 | Virtual machine in Saved state or currently changing state.
|
---|
6951 | </result>
|
---|
6952 | <result name="VBOX_E_FILE_ERROR">
|
---|
6953 | Shared folder does not exists.
|
---|
6954 | </result>
|
---|
6955 | </desc>
|
---|
6956 | <param name="name" type="wstring" dir="in">
|
---|
6957 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
6958 | </param>
|
---|
6959 | </method>
|
---|
6960 |
|
---|
6961 | <method name="takeSnapshot">
|
---|
6962 | <desc>
|
---|
6963 | Saves the current execution state
|
---|
6964 | and all settings of the machine and creates differencing images
|
---|
6965 | for all normal (non-independent) media.
|
---|
6966 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6967 |
|
---|
6968 | This method can be called for a PoweredOff, Saved (see
|
---|
6969 | <link to="#saveState"/>), Running or
|
---|
6970 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
6971 | offline snapshot is created. When the machine is Running a live
|
---|
6972 | snapshot is created, and an online snapshot is is created when Paused.
|
---|
6973 |
|
---|
6974 | The taken snapshot is always based on the
|
---|
6975 | <link to="IMachine::currentSnapshot">current snapshot</link>
|
---|
6976 | of the associated virtual machine and becomes a new current snapshot.
|
---|
6977 |
|
---|
6978 | <note>
|
---|
6979 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
6980 | save all current machine settings before taking an offline snapshot.
|
---|
6981 | </note>
|
---|
6982 |
|
---|
6983 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6984 | Virtual machine currently changing state.
|
---|
6985 | </result>
|
---|
6986 | </desc>
|
---|
6987 | <param name="name" type="wstring" dir="in">
|
---|
6988 | <desc>Short name for the snapshot.</desc>
|
---|
6989 | </param>
|
---|
6990 | <param name="description" type="wstring" dir="in">
|
---|
6991 | <desc>Optional description of the snapshot.</desc>
|
---|
6992 | </param>
|
---|
6993 | <param name="progress" type="IProgress" dir="return">
|
---|
6994 | <desc>Progress object to track the operation completion.</desc>
|
---|
6995 | </param>
|
---|
6996 | </method>
|
---|
6997 |
|
---|
6998 | <method name="deleteSnapshot">
|
---|
6999 | <desc>
|
---|
7000 | Starts deleting the specified snapshot asynchronously.
|
---|
7001 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
7002 |
|
---|
7003 | The execution state and settings of the associated machine stored in
|
---|
7004 | the snapshot will be deleted. The contents of all differencing media of
|
---|
7005 | this snapshot will be merged with the contents of their dependent child
|
---|
7006 | media to keep the medium chain valid (in other words, all changes
|
---|
7007 | represented by media being discarded will be propagated to their child
|
---|
7008 | medium). After that, this snapshot's differencing medium will be
|
---|
7009 | deleted. The parent of this snapshot will become a new parent for all
|
---|
7010 | its child snapshots.
|
---|
7011 |
|
---|
7012 | If the deleted snapshot is the current one, its parent snapshot will
|
---|
7013 | become a new current snapshot. The current machine state is not directly
|
---|
7014 | affected in this case, except that currently attached differencing
|
---|
7015 | media based on media of the discarded snapshot will be also merged as
|
---|
7016 | described above.
|
---|
7017 |
|
---|
7018 | If the deleted snapshot is the first or current snapshot, then the
|
---|
7019 | respective IMachine attributes will be adjusted. Deleting the current
|
---|
7020 | snapshot will also implicitly call <link to="IMachine::saveSettings"/>
|
---|
7021 | to make all current machine settings permanent.
|
---|
7022 |
|
---|
7023 | Deleting a snapshot has the following preconditions:
|
---|
7024 |
|
---|
7025 | <ul>
|
---|
7026 | <li>Child media of all normal media of the discarded snapshot
|
---|
7027 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
7028 | operation to succeed. In particular, this means that all virtual
|
---|
7029 | machines, whose media are directly or indirectly based on the
|
---|
7030 | media of discarded snapshot, must be powered off.</li>
|
---|
7031 |
|
---|
7032 | <li>You cannot delete the snapshot if a medium attached to it has
|
---|
7033 | more than once child medium (differencing images) because otherwise
|
---|
7034 | merging would be impossible. This might be the case if there is
|
---|
7035 | more than one child snapshot or differencing images were created
|
---|
7036 | for other reason (e.g. implicitly because of multiple machine
|
---|
7037 | attachments).</li>
|
---|
7038 | </ul>
|
---|
7039 |
|
---|
7040 |
|
---|
7041 | The virtual machine's <link to="IMachine::state">state</link> is changed to "DeletingSnapshot"
|
---|
7042 | while this operation is in progress.
|
---|
7043 |
|
---|
7044 | <note>
|
---|
7045 | Merging medium contents can be very time and disk space
|
---|
7046 | consuming, if these media are big in size and have many
|
---|
7047 | children. However, if the snapshot being discarded is the last
|
---|
7048 | (head) snapshot on the branch, the operation will be rather
|
---|
7049 | quick.
|
---|
7050 | </note>
|
---|
7051 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7052 | Virtual machine is running.
|
---|
7053 | </result>
|
---|
7054 | </desc>
|
---|
7055 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7056 | <desc>UUID of the snapshot to discard.</desc>
|
---|
7057 | </param>
|
---|
7058 | <param name="progress" type="IProgress" dir="return">
|
---|
7059 | <desc>Progress object to track the operation completion.</desc>
|
---|
7060 | </param>
|
---|
7061 | </method>
|
---|
7062 |
|
---|
7063 | <method name="restoreSnapshot">
|
---|
7064 | <desc>
|
---|
7065 | Starts resetting the machine's current state to the state contained
|
---|
7066 | in the given snapshot, asynchronously. All current settings of the
|
---|
7067 | machine will be reset and changes stored in differencing media
|
---|
7068 | will be lost.
|
---|
7069 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
7070 |
|
---|
7071 | After this operation is successfully completed, new empty differencing
|
---|
7072 | media are created for all normal media of the machine.
|
---|
7073 |
|
---|
7074 | If the given snapshot is an online snapshot, the machine will go to
|
---|
7075 | the <link to="MachineState_Saved"> saved state</link>, so that the
|
---|
7076 | next time it is powered on, the execution state will be restored
|
---|
7077 | from the state of the snapshot.
|
---|
7078 |
|
---|
7079 | <note>
|
---|
7080 | The machine must not be running, otherwise the operation will fail.
|
---|
7081 | </note>
|
---|
7082 |
|
---|
7083 | <note>
|
---|
7084 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
7085 | prior to this operation, the saved state file will be implicitly
|
---|
7086 | discarded (as if <link to="IConsole::forgetSavedState"/> were
|
---|
7087 | called).
|
---|
7088 | </note>
|
---|
7089 |
|
---|
7090 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7091 | Virtual machine is running.
|
---|
7092 | </result>
|
---|
7093 | </desc>
|
---|
7094 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
7095 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
7096 | </param>
|
---|
7097 | <param name="progress" type="IProgress" dir="return">
|
---|
7098 | <desc>Progress object to track the operation completion.</desc>
|
---|
7099 | </param>
|
---|
7100 | </method>
|
---|
7101 |
|
---|
7102 | <method name="teleport">
|
---|
7103 | <desc>
|
---|
7104 | Teleport the VM to a different host machine or process.
|
---|
7105 |
|
---|
7106 | TODO explain the details.
|
---|
7107 |
|
---|
7108 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
7109 | Virtual machine not running or paused.
|
---|
7110 | </result>
|
---|
7111 | </desc>
|
---|
7112 | <param name="hostname" type="wstring" dir="in">
|
---|
7113 | <desc>The name or IP of the host to teleport to.</desc>
|
---|
7114 | </param>
|
---|
7115 | <param name="tcpport" type="unsigned long" dir="in">
|
---|
7116 | <desc>The TCP port to connect to (1..65535).</desc>
|
---|
7117 | </param>
|
---|
7118 | <param name="password" type="wstring" dir="in">
|
---|
7119 | <desc>The password.</desc>
|
---|
7120 | </param>
|
---|
7121 | <param name="maxDowntime" type="unsigned long" dir="in">
|
---|
7122 | <desc>
|
---|
7123 | The maximum allowed downtime given as milliseconds. 0 is not a valid
|
---|
7124 | value. Recommended value: 250 ms.
|
---|
7125 |
|
---|
7126 | The higher the value is, the greater the chance for a successful
|
---|
7127 | teleportation. A small value may easily result in the teleportation
|
---|
7128 | process taking hours and eventually fail.
|
---|
7129 |
|
---|
7130 | <note>
|
---|
7131 | The current implementation treats this a guideline, not as an
|
---|
7132 | absolute rule.
|
---|
7133 | </note>
|
---|
7134 | </desc>
|
---|
7135 | </param>
|
---|
7136 | <param name="progress" type="IProgress" dir="return">
|
---|
7137 | <desc>Progress object to track the operation completion.</desc>
|
---|
7138 | </param>
|
---|
7139 | </method>
|
---|
7140 |
|
---|
7141 | <method name="registerCallback">
|
---|
7142 | <desc>
|
---|
7143 | Registers a new console callback on this instance. The methods of the
|
---|
7144 | callback interface will be called by this instance when the appropriate
|
---|
7145 | event occurs.
|
---|
7146 | </desc>
|
---|
7147 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
7148 | </method>
|
---|
7149 |
|
---|
7150 | <method name="unregisterCallback">
|
---|
7151 | <desc>
|
---|
7152 | Unregisters the console callback previously registered using
|
---|
7153 | <link to="#registerCallback"/>.
|
---|
7154 | <result name="E_INVALIDARG">
|
---|
7155 | Given @a callback handler is not registered.
|
---|
7156 | </result>
|
---|
7157 | </desc>
|
---|
7158 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
7159 | </method>
|
---|
7160 | </interface>
|
---|
7161 |
|
---|
7162 | <!--
|
---|
7163 | // IHost
|
---|
7164 | /////////////////////////////////////////////////////////////////////////
|
---|
7165 | -->
|
---|
7166 |
|
---|
7167 | <enum
|
---|
7168 | name="HostNetworkInterfaceMediumType"
|
---|
7169 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
7170 | >
|
---|
7171 | <desc>
|
---|
7172 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
7173 | wireless Ethernet connections.
|
---|
7174 | <see>IHostNetworkInterface</see>
|
---|
7175 | </desc>
|
---|
7176 |
|
---|
7177 | <const name="Unknown" value="0">
|
---|
7178 | <desc>
|
---|
7179 | The type of interface cannot be determined.
|
---|
7180 | </desc>
|
---|
7181 | </const>
|
---|
7182 | <const name="Ethernet" value="1">
|
---|
7183 | <desc>
|
---|
7184 | Ethernet frame encapsulation.
|
---|
7185 | </desc>
|
---|
7186 | </const>
|
---|
7187 | <const name="PPP" value="2">
|
---|
7188 | <desc>
|
---|
7189 | Point-to-point protocol encapsulation.
|
---|
7190 | </desc>
|
---|
7191 | </const>
|
---|
7192 | <const name="SLIP" value="3">
|
---|
7193 | <desc>
|
---|
7194 | Serial line IP encapsulation.
|
---|
7195 | </desc>
|
---|
7196 | </const>
|
---|
7197 | </enum>
|
---|
7198 |
|
---|
7199 | <enum
|
---|
7200 | name="HostNetworkInterfaceStatus"
|
---|
7201 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
7202 | >
|
---|
7203 | <desc>
|
---|
7204 | Current status of the interface.
|
---|
7205 | <see>IHostNetworkInterface</see>
|
---|
7206 | </desc>
|
---|
7207 |
|
---|
7208 | <const name="Unknown" value="0">
|
---|
7209 | <desc>
|
---|
7210 | The state of interface cannot be determined.
|
---|
7211 | </desc>
|
---|
7212 | </const>
|
---|
7213 | <const name="Up" value="1">
|
---|
7214 | <desc>
|
---|
7215 | The interface is fully operational.
|
---|
7216 | </desc>
|
---|
7217 | </const>
|
---|
7218 | <const name="Down" value="2">
|
---|
7219 | <desc>
|
---|
7220 | The interface is not functioning.
|
---|
7221 | </desc>
|
---|
7222 | </const>
|
---|
7223 | </enum>
|
---|
7224 |
|
---|
7225 | <enum
|
---|
7226 | name="HostNetworkInterfaceType"
|
---|
7227 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
7228 | >
|
---|
7229 | <desc>
|
---|
7230 | Network interface type.
|
---|
7231 | </desc>
|
---|
7232 | <const name="Bridged" value="1"/>
|
---|
7233 | <const name="HostOnly" value="2"/>
|
---|
7234 | </enum>
|
---|
7235 |
|
---|
7236 | <interface
|
---|
7237 | name="IHostNetworkInterface" extends="$unknown"
|
---|
7238 | uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
|
---|
7239 | wsmap="managed"
|
---|
7240 | >
|
---|
7241 | <desc>
|
---|
7242 | Represents one of host's network interfaces. IP V6 address and network
|
---|
7243 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
7244 | separated by colons.
|
---|
7245 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
7246 | </desc>
|
---|
7247 | <attribute name="name" type="wstring" readonly="yes">
|
---|
7248 | <desc>Returns the host network interface name.</desc>
|
---|
7249 | </attribute>
|
---|
7250 |
|
---|
7251 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
7252 | <desc>Returns the interface UUID.</desc>
|
---|
7253 | </attribute>
|
---|
7254 |
|
---|
7255 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
7256 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
7257 | </attribute>
|
---|
7258 |
|
---|
7259 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
7260 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
7261 | </attribute>
|
---|
7262 |
|
---|
7263 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
7264 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
7265 | </attribute>
|
---|
7266 |
|
---|
7267 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
7268 | <desc>Returns the network mask of the interface.</desc>
|
---|
7269 | </attribute>
|
---|
7270 |
|
---|
7271 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
7272 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
7273 | </attribute>
|
---|
7274 |
|
---|
7275 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
7276 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
7277 | </attribute>
|
---|
7278 |
|
---|
7279 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
7280 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
7281 | </attribute>
|
---|
7282 |
|
---|
7283 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
7284 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
7285 | </attribute>
|
---|
7286 |
|
---|
7287 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
7288 | <desc>Type of protocol encapsulation used.</desc>
|
---|
7289 | </attribute>
|
---|
7290 |
|
---|
7291 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
7292 | <desc>Status of the interface.</desc>
|
---|
7293 | </attribute>
|
---|
7294 |
|
---|
7295 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
7296 | <desc>specifies the host interface type.</desc>
|
---|
7297 | </attribute>
|
---|
7298 |
|
---|
7299 | <method name="enableStaticIpConfig">
|
---|
7300 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
7301 | <param name="IPAddress" type="wstring" dir="in">
|
---|
7302 | <desc>
|
---|
7303 | IP address.
|
---|
7304 | </desc>
|
---|
7305 | </param>
|
---|
7306 | <param name="networkMask" type="wstring" dir="in">
|
---|
7307 | <desc>
|
---|
7308 | network mask.
|
---|
7309 | </desc>
|
---|
7310 | </param>
|
---|
7311 | </method>
|
---|
7312 |
|
---|
7313 | <method name="enableStaticIpConfigV6">
|
---|
7314 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
7315 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
7316 | <desc>
|
---|
7317 | IP address.
|
---|
7318 | </desc>
|
---|
7319 | </param>
|
---|
7320 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
7321 | <desc>
|
---|
7322 | network mask.
|
---|
7323 | </desc>
|
---|
7324 | </param>
|
---|
7325 | </method>
|
---|
7326 |
|
---|
7327 | <method name="enableDynamicIpConfig">
|
---|
7328 | <desc>enables the dynamic IP configuration.</desc>
|
---|
7329 | </method>
|
---|
7330 |
|
---|
7331 | <method name="dhcpRediscover">
|
---|
7332 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
7333 | </method>
|
---|
7334 |
|
---|
7335 | </interface>
|
---|
7336 |
|
---|
7337 | <interface
|
---|
7338 | name="IHost" extends="$unknown"
|
---|
7339 | uuid="e380cbfc-ae65-4fa6-899e-45ded6b3132a"
|
---|
7340 | wsmap="managed"
|
---|
7341 | >
|
---|
7342 | <desc>
|
---|
7343 | The IHost interface represents the physical machine that this VirtualBox
|
---|
7344 | installation runs on.
|
---|
7345 |
|
---|
7346 | An object implementing this interface is returned by the
|
---|
7347 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
7348 | read-only information about the host's physical hardware (such as what
|
---|
7349 | processors and disks are available, what the host operating system is,
|
---|
7350 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
7351 | such as global USB device filters and host interface networking.
|
---|
7352 |
|
---|
7353 | </desc>
|
---|
7354 | <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
7355 | <desc>List of DVD drives available on the host.</desc>
|
---|
7356 | </attribute>
|
---|
7357 |
|
---|
7358 | <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
7359 | <desc>List of floppy drives available on the host.</desc>
|
---|
7360 | </attribute>
|
---|
7361 |
|
---|
7362 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
7363 | <desc>
|
---|
7364 | List of USB devices currently attached to the host.
|
---|
7365 | Once a new device is physically attached to the host computer,
|
---|
7366 | it appears in this list and remains there until detached.
|
---|
7367 |
|
---|
7368 | <note>
|
---|
7369 | If USB functionality is not available in the given edition of
|
---|
7370 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7371 | </note>
|
---|
7372 | </desc>
|
---|
7373 | </attribute>
|
---|
7374 |
|
---|
7375 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
7376 | <desc>
|
---|
7377 | List of USB device filters in action.
|
---|
7378 | When a new device is physically attached to the host computer,
|
---|
7379 | filters from this list are applied to it (in order they are stored
|
---|
7380 | in the list). The first matched filter will determine the
|
---|
7381 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
7382 | performed on the device.
|
---|
7383 |
|
---|
7384 | Unless the device is ignored by these filters, filters of all
|
---|
7385 | currently running virtual machines
|
---|
7386 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
7387 |
|
---|
7388 | <note>
|
---|
7389 | If USB functionality is not available in the given edition of
|
---|
7390 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7391 | </note>
|
---|
7392 |
|
---|
7393 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7394 | </desc>
|
---|
7395 | </attribute>
|
---|
7396 |
|
---|
7397 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
7398 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
7399 | </attribute>
|
---|
7400 |
|
---|
7401 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
7402 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
7403 | </attribute>
|
---|
7404 |
|
---|
7405 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
7406 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
7407 | </attribute>
|
---|
7408 |
|
---|
7409 | <method name="getProcessorSpeed">
|
---|
7410 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
7411 | Megahertz.
|
---|
7412 | </desc>
|
---|
7413 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7414 | <desc>
|
---|
7415 | Identifier of the CPU.
|
---|
7416 | </desc>
|
---|
7417 | </param>
|
---|
7418 | <param name="speed" type="unsigned long" dir="return">
|
---|
7419 | <desc>
|
---|
7420 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
7421 | invalid.
|
---|
7422 | </desc>
|
---|
7423 | </param>
|
---|
7424 | </method>
|
---|
7425 |
|
---|
7426 | <method name="getProcessorFeature">
|
---|
7427 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
7428 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
7429 | <desc>
|
---|
7430 | CPU Feature identifier.
|
---|
7431 | </desc>
|
---|
7432 | </param>
|
---|
7433 | <param name="supported" type="boolean" dir="return">
|
---|
7434 | <desc>
|
---|
7435 | Feature is supported or not.
|
---|
7436 | </desc>
|
---|
7437 | </param>
|
---|
7438 | </method>
|
---|
7439 |
|
---|
7440 | <method name="getProcessorDescription">
|
---|
7441 | <desc>Query the model string of a specified host CPU.
|
---|
7442 | </desc>
|
---|
7443 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7444 | <desc>
|
---|
7445 | Identifier of the CPU.
|
---|
7446 | <note>
|
---|
7447 | The current implementation might not necessarily return the
|
---|
7448 | description for this exact CPU.
|
---|
7449 | </note>
|
---|
7450 | </desc>
|
---|
7451 | </param>
|
---|
7452 | <param name="description" type="wstring" dir="return">
|
---|
7453 | <desc>
|
---|
7454 | Model string. An empty string is returned if value is not known or
|
---|
7455 | @a cpuId is invalid.
|
---|
7456 | </desc>
|
---|
7457 | </param>
|
---|
7458 | </method>
|
---|
7459 |
|
---|
7460 | <method name="getProcessorCpuIdLeaf">
|
---|
7461 | <desc>
|
---|
7462 | Returns the CPU cpuid information for the specified leaf.
|
---|
7463 | </desc>
|
---|
7464 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7465 | <desc>
|
---|
7466 | Identifier of the CPU. The CPU most be online.
|
---|
7467 | <note>
|
---|
7468 | The current implementation might not necessarily return the
|
---|
7469 | description for this exact CPU.
|
---|
7470 | </note>
|
---|
7471 | </desc>
|
---|
7472 | </param>
|
---|
7473 | <param name="leaf" type="unsigned long" dir="in">
|
---|
7474 | <desc>
|
---|
7475 | Cpuid leaf index (eax).
|
---|
7476 | </desc>
|
---|
7477 | </param>
|
---|
7478 | <param name="subLeaf" type="unsigned long" dir="in">
|
---|
7479 | <desc>
|
---|
7480 | Cpuid leaf sub index (ecx). This currently only applies to cache
|
---|
7481 | information on Intel CPUs. Use 0 if retriving values for
|
---|
7482 | <link to="IMachine::setCpuIdLeaf"/>.
|
---|
7483 | </desc>
|
---|
7484 | </param>
|
---|
7485 | <param name="valEax" type="unsigned long" dir="out">
|
---|
7486 | <desc>
|
---|
7487 | Cpuid leaf value for register eax.
|
---|
7488 | </desc>
|
---|
7489 | </param>
|
---|
7490 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
7491 | <desc>
|
---|
7492 | Cpuid leaf value for register ebx.
|
---|
7493 | </desc>
|
---|
7494 | </param>
|
---|
7495 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
7496 | <desc>
|
---|
7497 | Cpuid leaf value for register ecx.
|
---|
7498 | </desc>
|
---|
7499 | </param>
|
---|
7500 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
7501 | <desc>
|
---|
7502 | Cpuid leaf value for register edx.
|
---|
7503 | </desc>
|
---|
7504 | </param>
|
---|
7505 | </method>
|
---|
7506 |
|
---|
7507 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
7508 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
7509 | </attribute>
|
---|
7510 |
|
---|
7511 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
7512 | <desc>Available system memory in the host system.</desc>
|
---|
7513 | </attribute>
|
---|
7514 |
|
---|
7515 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
7516 | <desc>Name of the host system's operating system.</desc>
|
---|
7517 | </attribute>
|
---|
7518 |
|
---|
7519 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
7520 | <desc>Host operating system's version string.</desc>
|
---|
7521 | </attribute>
|
---|
7522 |
|
---|
7523 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
7524 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
7525 | </attribute>
|
---|
7526 |
|
---|
7527 | <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
|
---|
7528 | <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
|
---|
7529 | </attribute>
|
---|
7530 |
|
---|
7531 | <method name="createHostOnlyNetworkInterface">
|
---|
7532 | <desc>
|
---|
7533 | Creates a new adapter for Host Only Networking.
|
---|
7534 | <result name="E_INVALIDARG">
|
---|
7535 | Host network interface @a name already exists.
|
---|
7536 | </result>
|
---|
7537 | </desc>
|
---|
7538 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7539 | <desc>
|
---|
7540 | Created host interface object.
|
---|
7541 | </desc>
|
---|
7542 | </param>
|
---|
7543 | <param name="progress" type="IProgress" dir="return">
|
---|
7544 | <desc>
|
---|
7545 | Progress object to track the operation completion.
|
---|
7546 | </desc>
|
---|
7547 | </param>
|
---|
7548 | </method>
|
---|
7549 |
|
---|
7550 | <method name="removeHostOnlyNetworkInterface">
|
---|
7551 | <desc>
|
---|
7552 | Removes the given Host Only Networking interface.
|
---|
7553 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7554 | No host network interface matching @a id found.
|
---|
7555 | </result>
|
---|
7556 | </desc>
|
---|
7557 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7558 | <desc>
|
---|
7559 | Adapter GUID.
|
---|
7560 | </desc>
|
---|
7561 | </param>
|
---|
7562 | <param name="progress" type="IProgress" dir="return">
|
---|
7563 | <desc>
|
---|
7564 | Progress object to track the operation completion.
|
---|
7565 | </desc>
|
---|
7566 | </param>
|
---|
7567 | </method>
|
---|
7568 |
|
---|
7569 | <method name="createUSBDeviceFilter">
|
---|
7570 | <desc>
|
---|
7571 | Creates a new USB device filter. All attributes except
|
---|
7572 | the filter name are set to empty (any match),
|
---|
7573 | <i>active</i> is @c false (the filter is not active).
|
---|
7574 |
|
---|
7575 | The created filter can be added to the list of filters using
|
---|
7576 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7577 |
|
---|
7578 | <see>#USBDeviceFilters</see>
|
---|
7579 | </desc>
|
---|
7580 | <param name="name" type="wstring" dir="in">
|
---|
7581 | <desc>
|
---|
7582 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
7583 | for more info.
|
---|
7584 | </desc>
|
---|
7585 | </param>
|
---|
7586 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7587 | <desc>Created filter object.</desc>
|
---|
7588 | </param>
|
---|
7589 | </method>
|
---|
7590 |
|
---|
7591 | <method name="insertUSBDeviceFilter">
|
---|
7592 | <desc>
|
---|
7593 | Inserts the given USB device to the specified position
|
---|
7594 | in the list of filters.
|
---|
7595 |
|
---|
7596 | Positions are numbered starting from @c 0. If the specified
|
---|
7597 | position is equal to or greater than the number of elements in
|
---|
7598 | the list, the filter is added at the end of the collection.
|
---|
7599 |
|
---|
7600 | <note>
|
---|
7601 | Duplicates are not allowed, so an attempt to insert a
|
---|
7602 | filter already in the list is an error.
|
---|
7603 | </note>
|
---|
7604 | <note>
|
---|
7605 | If USB functionality is not available in the given edition of
|
---|
7606 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7607 | </note>
|
---|
7608 |
|
---|
7609 | <see>#USBDeviceFilters</see>
|
---|
7610 |
|
---|
7611 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7612 | USB device filter is not created within this VirtualBox instance.
|
---|
7613 | </result>
|
---|
7614 | <result name="E_INVALIDARG">
|
---|
7615 | USB device filter already in list.
|
---|
7616 | </result>
|
---|
7617 |
|
---|
7618 | </desc>
|
---|
7619 | <param name="position" type="unsigned long" dir="in">
|
---|
7620 | <desc>Position to insert the filter to.</desc>
|
---|
7621 | </param>
|
---|
7622 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7623 | <desc>USB device filter to insert.</desc>
|
---|
7624 | </param>
|
---|
7625 | </method>
|
---|
7626 |
|
---|
7627 | <method name="removeUSBDeviceFilter">
|
---|
7628 | <desc>
|
---|
7629 | Removes a USB device filter from the specified position in the
|
---|
7630 | list of filters.
|
---|
7631 |
|
---|
7632 | Positions are numbered starting from @c 0. Specifying a
|
---|
7633 | position equal to or greater than the number of elements in
|
---|
7634 | the list will produce an error.
|
---|
7635 |
|
---|
7636 | <note>
|
---|
7637 | If USB functionality is not available in the given edition of
|
---|
7638 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7639 | </note>
|
---|
7640 |
|
---|
7641 | <see>#USBDeviceFilters</see>
|
---|
7642 |
|
---|
7643 | <result name="E_INVALIDARG">
|
---|
7644 | USB device filter list empty or invalid @a position.
|
---|
7645 | </result>
|
---|
7646 |
|
---|
7647 | </desc>
|
---|
7648 | <param name="position" type="unsigned long" dir="in">
|
---|
7649 | <desc>Position to remove the filter from.</desc>
|
---|
7650 | </param>
|
---|
7651 | </method>
|
---|
7652 |
|
---|
7653 | <method name="findHostDVDDrive">
|
---|
7654 | <desc>
|
---|
7655 | Searches for a host DVD drive with the given @c name.
|
---|
7656 |
|
---|
7657 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7658 | Given @c name does not correspond to any host drive.
|
---|
7659 | </result>
|
---|
7660 |
|
---|
7661 | </desc>
|
---|
7662 | <param name="name" type="wstring" dir="in">
|
---|
7663 | <desc>Name of the host drive to search for</desc>
|
---|
7664 | </param>
|
---|
7665 | <param name="drive" type="IMedium" dir="return">
|
---|
7666 | <desc>Found host drive object</desc>
|
---|
7667 | </param>
|
---|
7668 | </method>
|
---|
7669 |
|
---|
7670 | <method name="findHostFloppyDrive">
|
---|
7671 | <desc>
|
---|
7672 | Searches for a host floppy drive with the given @c name.
|
---|
7673 |
|
---|
7674 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7675 | Given @c name does not correspond to any host floppy drive.
|
---|
7676 | </result>
|
---|
7677 |
|
---|
7678 | </desc>
|
---|
7679 | <param name="name" type="wstring" dir="in">
|
---|
7680 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7681 | </param>
|
---|
7682 | <param name="drive" type="IMedium" dir="return">
|
---|
7683 | <desc>Found host floppy drive object</desc>
|
---|
7684 | </param>
|
---|
7685 | </method>
|
---|
7686 |
|
---|
7687 | <method name="findHostNetworkInterfaceByName">
|
---|
7688 | <desc>
|
---|
7689 | Searches through all host network interfaces for an interface with
|
---|
7690 | the given @c name.
|
---|
7691 | <note>
|
---|
7692 | The method returns an error if the given @c name does not
|
---|
7693 | correspond to any host network interface.
|
---|
7694 | </note>
|
---|
7695 | </desc>
|
---|
7696 | <param name="name" type="wstring" dir="in">
|
---|
7697 | <desc>Name of the host network interface to search for.</desc>
|
---|
7698 | </param>
|
---|
7699 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7700 | <desc>Found host network interface object.</desc>
|
---|
7701 | </param>
|
---|
7702 | </method>
|
---|
7703 | <method name="findHostNetworkInterfaceById">
|
---|
7704 | <desc>
|
---|
7705 | Searches through all host network interfaces for an interface with
|
---|
7706 | the given GUID.
|
---|
7707 | <note>
|
---|
7708 | The method returns an error if the given GUID does not
|
---|
7709 | correspond to any host network interface.
|
---|
7710 | </note>
|
---|
7711 | </desc>
|
---|
7712 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7713 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7714 | </param>
|
---|
7715 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7716 | <desc>Found host network interface object.</desc>
|
---|
7717 | </param>
|
---|
7718 | </method>
|
---|
7719 | <method name="findHostNetworkInterfacesOfType">
|
---|
7720 | <desc>
|
---|
7721 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7722 | </desc>
|
---|
7723 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7724 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7725 | </param>
|
---|
7726 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7727 | <desc>Found host network interface objects.</desc>
|
---|
7728 | </param>
|
---|
7729 | </method>
|
---|
7730 |
|
---|
7731 | <method name="findUSBDeviceById">
|
---|
7732 | <desc>
|
---|
7733 | Searches for a USB device with the given UUID.
|
---|
7734 |
|
---|
7735 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7736 | Given @c id does not correspond to any USB device.
|
---|
7737 | </result>
|
---|
7738 |
|
---|
7739 | <see>IHostUSBDevice::id</see>
|
---|
7740 | </desc>
|
---|
7741 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7742 | <desc>UUID of the USB device to search for.</desc>
|
---|
7743 | </param>
|
---|
7744 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7745 | <desc>Found USB device object.</desc>
|
---|
7746 | </param>
|
---|
7747 | </method>
|
---|
7748 |
|
---|
7749 | <method name="findUSBDeviceByAddress">
|
---|
7750 | <desc>
|
---|
7751 | Searches for a USB device with the given host address.
|
---|
7752 |
|
---|
7753 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7754 | Given @c name does not correspond to any USB device.
|
---|
7755 | </result>
|
---|
7756 |
|
---|
7757 | <see>IHostUSBDevice::address</see>
|
---|
7758 | </desc>
|
---|
7759 | <param name="name" type="wstring" dir="in">
|
---|
7760 | <desc>
|
---|
7761 | Address of the USB device (as assigned by the host) to
|
---|
7762 | search for.
|
---|
7763 | </desc>
|
---|
7764 | </param>
|
---|
7765 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7766 | <desc>Found USB device object.</desc>
|
---|
7767 | </param>
|
---|
7768 | </method>
|
---|
7769 |
|
---|
7770 | </interface>
|
---|
7771 |
|
---|
7772 | <!--
|
---|
7773 | // ISystemProperties
|
---|
7774 | /////////////////////////////////////////////////////////////////////////
|
---|
7775 | -->
|
---|
7776 |
|
---|
7777 | <interface
|
---|
7778 | name="ISystemProperties"
|
---|
7779 | extends="$unknown"
|
---|
7780 | uuid="8030645c-8fef-4320-bb7b-c829f00069dc"
|
---|
7781 | wsmap="managed"
|
---|
7782 | >
|
---|
7783 | <desc>
|
---|
7784 | The ISystemProperties interface represents global properties of the given
|
---|
7785 | VirtualBox installation.
|
---|
7786 |
|
---|
7787 | These properties define limits and default values for various attributes
|
---|
7788 | and parameters. Most of the properties are read-only, but some can be
|
---|
7789 | changed by a user.
|
---|
7790 | </desc>
|
---|
7791 |
|
---|
7792 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7793 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7794 | </attribute>
|
---|
7795 |
|
---|
7796 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7797 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7798 | </attribute>
|
---|
7799 |
|
---|
7800 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7801 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7802 | </attribute>
|
---|
7803 |
|
---|
7804 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7805 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7806 | </attribute>
|
---|
7807 |
|
---|
7808 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7809 | <desc>Minimum CPU count.</desc>
|
---|
7810 | </attribute>
|
---|
7811 |
|
---|
7812 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7813 | <desc>Maximum CPU count.</desc>
|
---|
7814 | </attribute>
|
---|
7815 |
|
---|
7816 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
7817 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
7818 | </attribute>
|
---|
7819 |
|
---|
7820 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
7821 | <desc>
|
---|
7822 | Number of network adapters associated with every
|
---|
7823 | <link to="IMachine"/> instance.
|
---|
7824 | </desc>
|
---|
7825 | </attribute>
|
---|
7826 |
|
---|
7827 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7828 | <desc>
|
---|
7829 | Number of serial ports associated with every
|
---|
7830 | <link to="IMachine"/> instance.
|
---|
7831 | </desc>
|
---|
7832 | </attribute>
|
---|
7833 |
|
---|
7834 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7835 | <desc>
|
---|
7836 | Number of parallel ports associated with every
|
---|
7837 | <link to="IMachine"/> instance.
|
---|
7838 | </desc>
|
---|
7839 | </attribute>
|
---|
7840 |
|
---|
7841 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7842 | <desc>
|
---|
7843 | Maximum device position in the boot order. This value corresponds
|
---|
7844 | to the total number of devices a machine can boot from, to make it
|
---|
7845 | possible to include all possible devices to the boot list.
|
---|
7846 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7847 | </desc>
|
---|
7848 | </attribute>
|
---|
7849 |
|
---|
7850 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
7851 | <desc>
|
---|
7852 | Full path to the default directory used to create new or open
|
---|
7853 | existing machines when a settings file name contains no
|
---|
7854 | path.
|
---|
7855 |
|
---|
7856 | The initial value of this property is
|
---|
7857 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
7858 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
7859 |
|
---|
7860 | <note>
|
---|
7861 | Setting this property to @c null or an empty string will restore the
|
---|
7862 | initial value.
|
---|
7863 | </note>
|
---|
7864 | <note>
|
---|
7865 | When settings this property, the specified path can be
|
---|
7866 | absolute (full path) or relative
|
---|
7867 | to the <link to="IVirtualBox::homeFolder">
|
---|
7868 | VirtualBox home directory</link>.
|
---|
7869 | When reading this property, a full path is
|
---|
7870 | always returned.
|
---|
7871 | </note>
|
---|
7872 | <note>
|
---|
7873 | The specified path may not exist, it will be created
|
---|
7874 | when necessary.
|
---|
7875 | </note>
|
---|
7876 |
|
---|
7877 | <see>
|
---|
7878 | <link to="IVirtualBox::createMachine"/>,
|
---|
7879 | <link to="IVirtualBox::openMachine"/>
|
---|
7880 | </see>
|
---|
7881 | </desc>
|
---|
7882 | </attribute>
|
---|
7883 |
|
---|
7884 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
7885 | <desc>
|
---|
7886 | Full path to the default directory used to create new or open existing
|
---|
7887 | virtual disks.
|
---|
7888 |
|
---|
7889 | This path is used when the storage unit of a hard disk is a regular file
|
---|
7890 | in the host's file system and only a file name that contains no path is
|
---|
7891 | given.
|
---|
7892 |
|
---|
7893 | The initial value of this property is
|
---|
7894 | <tt><</tt>
|
---|
7895 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
7896 | <tt>>/HardDisks</tt>.
|
---|
7897 |
|
---|
7898 | <note>
|
---|
7899 | Setting this property to @c null or empty string will restore the
|
---|
7900 | initial value.
|
---|
7901 | </note>
|
---|
7902 | <note>
|
---|
7903 | When settings this property, the specified path can be relative
|
---|
7904 | to the
|
---|
7905 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
7906 | absolute. When reading this property, a full path is
|
---|
7907 | always returned.
|
---|
7908 | </note>
|
---|
7909 | <note>
|
---|
7910 | The specified path may not exist, it will be created
|
---|
7911 | when necessary.
|
---|
7912 | </note>
|
---|
7913 |
|
---|
7914 | <see>
|
---|
7915 | IMedium,
|
---|
7916 | <link to="IVirtualBox::createHardDisk"/>,
|
---|
7917 | <link to="IVirtualBox::openHardDisk"/>,
|
---|
7918 | <link to="IMedium::location"/>
|
---|
7919 | </see>
|
---|
7920 | </desc>
|
---|
7921 | </attribute>
|
---|
7922 |
|
---|
7923 | <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
|
---|
7924 | <desc>
|
---|
7925 | List of all medium storage formats supported by this VirtualBox
|
---|
7926 | installation.
|
---|
7927 |
|
---|
7928 | Keep in mind that the medium format identifier
|
---|
7929 | (<link to="IMediumFormat::id"/>) used in other API calls like
|
---|
7930 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
7931 | medium format is a case-insensitive string. This means that, for
|
---|
7932 | example, all of the following strings:
|
---|
7933 | <pre>
|
---|
7934 | "VDI"
|
---|
7935 | "vdi"
|
---|
7936 | "VdI"</pre>
|
---|
7937 | refer to the same medium format.
|
---|
7938 |
|
---|
7939 | Note that the virtual medium framework is backend-based, therefore
|
---|
7940 | the list of supported formats depends on what backends are currently
|
---|
7941 | installed.
|
---|
7942 |
|
---|
7943 | <see>
|
---|
7944 | <link to="IMediumFormat"/>,
|
---|
7945 | </see>
|
---|
7946 | </desc>
|
---|
7947 | </attribute>
|
---|
7948 |
|
---|
7949 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
7950 | <desc>
|
---|
7951 | Identifier of the default medium format used by VirtualBox.
|
---|
7952 |
|
---|
7953 | The medium format set by this attribute is used by VirtualBox
|
---|
7954 | when the medium format was not specified explicitly. One example is
|
---|
7955 | <link to="IVirtualBox::createHardDisk"/> with the empty
|
---|
7956 | format argument. A more complex example is implicit creation of
|
---|
7957 | differencing media when taking a snapshot of a virtual machine:
|
---|
7958 | this operation will try to use a format of the parent medium first
|
---|
7959 | and if this format does not support differencing media the default
|
---|
7960 | format specified by this argument will be used.
|
---|
7961 |
|
---|
7962 | The list of supported medium formats may be obtained by the
|
---|
7963 | <link to="#mediaFormats"/> call. Note that the default medium
|
---|
7964 | format must have a capability to create differencing media;
|
---|
7965 | otherwise operations that create media implicitly may fail
|
---|
7966 | unexpectedly.
|
---|
7967 |
|
---|
7968 | The initial value of this property is <tt>"VDI"</tt> in the current
|
---|
7969 | version of the VirtualBox product, but may change in the future.
|
---|
7970 |
|
---|
7971 | <note>
|
---|
7972 | Setting this property to @c null or empty string will restore the
|
---|
7973 | initial value.
|
---|
7974 | </note>
|
---|
7975 |
|
---|
7976 | <see>
|
---|
7977 | <link to="#mediaFormats"/>,
|
---|
7978 | <link to="IMediumFormat::id"/>,
|
---|
7979 | <link to="IVirtualBox::createHardDisk"/>
|
---|
7980 | </see>
|
---|
7981 | </desc>
|
---|
7982 | </attribute>
|
---|
7983 |
|
---|
7984 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
7985 | <desc>
|
---|
7986 | Library that provides authentication for VRDP clients. The library
|
---|
7987 | is used if a virtual machine's authentication type is set to "external"
|
---|
7988 | in the VM RemoteDisplay configuration.
|
---|
7989 |
|
---|
7990 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
7991 | A full path can be specified; if not, then the library must reside on the
|
---|
7992 | system's default library path.
|
---|
7993 |
|
---|
7994 | The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
|
---|
7995 | of that name in one of the default VirtualBox library directories.
|
---|
7996 |
|
---|
7997 | For details about VirtualBox authentication libraries and how to implement
|
---|
7998 | them, please refer to the VirtualBox manual.
|
---|
7999 |
|
---|
8000 | <note>
|
---|
8001 | Setting this property to @c null or empty string will restore the
|
---|
8002 | initial value.
|
---|
8003 | </note>
|
---|
8004 | </desc>
|
---|
8005 | </attribute>
|
---|
8006 |
|
---|
8007 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
8008 | <desc>
|
---|
8009 | Library that provides authentication for webservice clients. The library
|
---|
8010 | is used if a virtual machine's authentication type is set to "external"
|
---|
8011 | in the VM RemoteDisplay configuration and will be called from
|
---|
8012 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
8013 |
|
---|
8014 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
8015 | there is no per-VM setting for this, as the webservice is a global
|
---|
8016 | resource (if it is running). Only for this setting (for the webservice),
|
---|
8017 | setting this value to a literal <tt>"null"</tt> string disables authentication,
|
---|
8018 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
8019 | no matter what user name and password are supplied.
|
---|
8020 |
|
---|
8021 | The initial value of this property is <tt>"VRDPAuth"</tt>,
|
---|
8022 | meaning that the webservice will use the same authentication
|
---|
8023 | library that is used by default for VBoxVRDP (again, see
|
---|
8024 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
8025 | The format and calling convention of authentication libraries
|
---|
8026 | is the same for the webservice as it is for VBoxVRDP.
|
---|
8027 |
|
---|
8028 | <note>
|
---|
8029 | Setting this property to @c null or empty string will restore the
|
---|
8030 | initial value.
|
---|
8031 | </note>
|
---|
8032 | </desc>
|
---|
8033 | </attribute>
|
---|
8034 |
|
---|
8035 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
8036 | <desc>
|
---|
8037 | This value specifies how many old release log files are kept.
|
---|
8038 | </desc>
|
---|
8039 | </attribute>
|
---|
8040 |
|
---|
8041 | <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
|
---|
8042 | <desc>This value hold the default audio driver for the current
|
---|
8043 | system.</desc>
|
---|
8044 | </attribute>
|
---|
8045 |
|
---|
8046 | <method name="getMaxDevicesPerPortForStorageBus">
|
---|
8047 | <desc>Returns the maximum number of devices which can be attached to a port
|
---|
8048 | for the given storage bus.</desc>
|
---|
8049 |
|
---|
8050 | <param name="bus" type="StorageBus" dir="in">
|
---|
8051 | <desc>The storage bus type to get the value for.</desc>
|
---|
8052 | </param>
|
---|
8053 |
|
---|
8054 | <param name="maxDevicesPerPort" type="unsigned long" dir="return">
|
---|
8055 | <desc>The maximum number of devices which can eb attached to the port for the given
|
---|
8056 | storage bus.</desc>
|
---|
8057 | </param>
|
---|
8058 | </method>
|
---|
8059 |
|
---|
8060 | <method name="getMinPortCountForStorageBus">
|
---|
8061 | <desc>Returns the minimum number of ports the given storage bus supports.</desc>
|
---|
8062 |
|
---|
8063 | <param name="bus" type="StorageBus" dir="in">
|
---|
8064 | <desc>The storage bus type to get the value for.</desc>
|
---|
8065 | </param>
|
---|
8066 |
|
---|
8067 | <param name="minPortCount" type="unsigned long" dir="return">
|
---|
8068 | <desc>The minimum number of ports for the given storage bus.</desc>
|
---|
8069 | </param>
|
---|
8070 | </method>
|
---|
8071 |
|
---|
8072 | <method name="getMaxPortCountForStorageBus">
|
---|
8073 | <desc>Returns the maximum number of ports the given storage bus supports.</desc>
|
---|
8074 |
|
---|
8075 | <param name="bus" type="StorageBus" dir="in">
|
---|
8076 | <desc>The storage bus type to get the value for.</desc>
|
---|
8077 | </param>
|
---|
8078 |
|
---|
8079 | <param name="maxPortCount" type="unsigned long" dir="return">
|
---|
8080 | <desc>The maximum number of ports for the given storage bus.</desc>
|
---|
8081 | </param>
|
---|
8082 | </method>
|
---|
8083 |
|
---|
8084 | <method name="getMaxInstancesOfStorageBus">
|
---|
8085 | <desc>Returns the maximum number of storage bus instances which
|
---|
8086 | can be configured for each VM. This corresponds to the number of
|
---|
8087 | storage controllers one can have.</desc>
|
---|
8088 |
|
---|
8089 | <param name="bus" type="StorageBus" dir="in">
|
---|
8090 | <desc>The storage bus type to get the value for.</desc>
|
---|
8091 | </param>
|
---|
8092 |
|
---|
8093 | <param name="maxInstances" type="unsigned long" dir="return">
|
---|
8094 | <desc>The maximum number of instances for the given storage bus.</desc>
|
---|
8095 | </param>
|
---|
8096 | </method>
|
---|
8097 |
|
---|
8098 | <method name="getDeviceTypesForStorageBus">
|
---|
8099 | <desc>Returns list of all the supported device types
|
---|
8100 | (<link to="DeviceType"/>) for the given type of storage
|
---|
8101 | bus.</desc>
|
---|
8102 |
|
---|
8103 | <param name="bus" type="StorageBus" dir="in">
|
---|
8104 | <desc>The storage bus type to get the value for.</desc>
|
---|
8105 | </param>
|
---|
8106 |
|
---|
8107 | <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
|
---|
8108 | <desc>The list of all supported device types for the given storage bus.</desc>
|
---|
8109 | </param>
|
---|
8110 | </method>
|
---|
8111 | </interface>
|
---|
8112 |
|
---|
8113 | <!--
|
---|
8114 | // IGuest
|
---|
8115 | /////////////////////////////////////////////////////////////////////////
|
---|
8116 | -->
|
---|
8117 |
|
---|
8118 | <interface
|
---|
8119 | name="IGuestOSType" extends="$unknown"
|
---|
8120 | uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
|
---|
8121 | wsmap="struct"
|
---|
8122 | >
|
---|
8123 | <desc>
|
---|
8124 | </desc>
|
---|
8125 |
|
---|
8126 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
8127 | <desc>Guest OS family identifier string.</desc>
|
---|
8128 | </attribute>
|
---|
8129 |
|
---|
8130 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
8131 | <desc>Human readable description of the guest OS family.</desc>
|
---|
8132 | </attribute>
|
---|
8133 |
|
---|
8134 | <attribute name="id" type="wstring" readonly="yes">
|
---|
8135 | <desc>Guest OS identifier string.</desc>
|
---|
8136 | </attribute>
|
---|
8137 |
|
---|
8138 | <attribute name="description" type="wstring" readonly="yes">
|
---|
8139 | <desc>Human readable description of the guest OS.</desc>
|
---|
8140 | </attribute>
|
---|
8141 |
|
---|
8142 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
8143 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
8144 | </attribute>
|
---|
8145 |
|
---|
8146 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
8147 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
8148 | </attribute>
|
---|
8149 |
|
---|
8150 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
8151 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
8152 | </attribute>
|
---|
8153 |
|
---|
8154 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
8155 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
8156 | </attribute>
|
---|
8157 |
|
---|
8158 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
8159 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
8160 | </attribute>
|
---|
8161 |
|
---|
8162 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
8163 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
8164 | </attribute>
|
---|
8165 |
|
---|
8166 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
8167 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
8168 | </attribute>
|
---|
8169 | </interface>
|
---|
8170 |
|
---|
8171 | <interface
|
---|
8172 | name="IGuest" extends="$unknown"
|
---|
8173 | uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
|
---|
8174 | wsmap="managed"
|
---|
8175 | >
|
---|
8176 | <desc>
|
---|
8177 | The IGuest interface represents information about the operating system
|
---|
8178 | running inside the virtual machine. Used in
|
---|
8179 | <link to="IConsole::guest"/>.
|
---|
8180 |
|
---|
8181 | IGuest provides information about the guest operating system, whether
|
---|
8182 | Guest Additions are installed and other OS-specific virtual machine
|
---|
8183 | properties.
|
---|
8184 | </desc>
|
---|
8185 |
|
---|
8186 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
8187 | <desc>
|
---|
8188 | Identifier of the Guest OS type as reported by the Guest
|
---|
8189 | Additions.
|
---|
8190 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
8191 | an IGuestOSType object representing details about the given
|
---|
8192 | Guest OS type.
|
---|
8193 | <note>
|
---|
8194 | If Guest Additions are not installed, this value will be
|
---|
8195 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
8196 | </note>
|
---|
8197 | </desc>
|
---|
8198 | </attribute>
|
---|
8199 |
|
---|
8200 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
8201 | <desc>
|
---|
8202 | Flag whether the Guest Additions are installed and active
|
---|
8203 | in which case their version will be returned by the
|
---|
8204 | <link to="#additionsVersion"/> property.
|
---|
8205 | </desc>
|
---|
8206 | </attribute>
|
---|
8207 |
|
---|
8208 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
8209 | <desc>
|
---|
8210 | Version of the Guest Additions (3 decimal numbers separated
|
---|
8211 | by dots) or empty when the Additions are not installed. The
|
---|
8212 | Additions may also report a version but yet not be active as
|
---|
8213 | the version might be refused by VirtualBox (incompatible) or
|
---|
8214 | other failures occurred.
|
---|
8215 | </desc>
|
---|
8216 | </attribute>
|
---|
8217 |
|
---|
8218 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
8219 | <desc>
|
---|
8220 | Flag whether seamless guest display rendering (seamless desktop
|
---|
8221 | integration) is supported.
|
---|
8222 | </desc>
|
---|
8223 | </attribute>
|
---|
8224 |
|
---|
8225 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
8226 | <desc>
|
---|
8227 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
8228 | seamless rendering will not work, resize hints are not immediately
|
---|
8229 | acted on and guest display resizes are probably not initiated by
|
---|
8230 | the guest additions.
|
---|
8231 | </desc>
|
---|
8232 | </attribute>
|
---|
8233 |
|
---|
8234 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
8235 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
8236 | </attribute>
|
---|
8237 |
|
---|
8238 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
8239 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
8240 | </attribute>
|
---|
8241 |
|
---|
8242 | <method name="setCredentials">
|
---|
8243 | <desc>
|
---|
8244 | Store login credentials that can be queried by guest operating
|
---|
8245 | systems with Additions installed. The credentials are transient
|
---|
8246 | to the session and the guest may also choose to erase them. Note
|
---|
8247 | that the caller cannot determine whether the guest operating system
|
---|
8248 | has queried or made use of the credentials.
|
---|
8249 |
|
---|
8250 | <result name="VBOX_E_VM_ERROR">
|
---|
8251 | VMM device is not available.
|
---|
8252 | </result>
|
---|
8253 |
|
---|
8254 | </desc>
|
---|
8255 | <param name="userName" type="wstring" dir="in">
|
---|
8256 | <desc>User name string, can be empty</desc>
|
---|
8257 | </param>
|
---|
8258 | <param name="password" type="wstring" dir="in">
|
---|
8259 | <desc>Password string, can be empty</desc>
|
---|
8260 | </param>
|
---|
8261 | <param name="domain" type="wstring" dir="in">
|
---|
8262 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
8263 | </param>
|
---|
8264 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
8265 | <desc>
|
---|
8266 | Flag whether the guest should alternatively allow the user to
|
---|
8267 | interactively specify different credentials. This flag might
|
---|
8268 | not be supported by all versions of the Additions.
|
---|
8269 | </desc>
|
---|
8270 | </param>
|
---|
8271 | </method>
|
---|
8272 |
|
---|
8273 | <method name="getStatistic">
|
---|
8274 | <desc>
|
---|
8275 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
8276 | </desc>
|
---|
8277 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
8278 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
8279 | </param>
|
---|
8280 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
8281 | <desc>Statistic type.</desc>
|
---|
8282 | </param>
|
---|
8283 | <param name="statVal" type="unsigned long" dir="return">
|
---|
8284 | <desc>Statistics value</desc>
|
---|
8285 | </param>
|
---|
8286 | </method>
|
---|
8287 |
|
---|
8288 | </interface>
|
---|
8289 |
|
---|
8290 |
|
---|
8291 | <!--
|
---|
8292 | // IProgress
|
---|
8293 | /////////////////////////////////////////////////////////////////////////
|
---|
8294 | -->
|
---|
8295 |
|
---|
8296 | <interface
|
---|
8297 | name="IProgress" extends="$unknown"
|
---|
8298 | uuid="856aa038-853f-42e2-acf7-6e7b02dbe294"
|
---|
8299 | wsmap="managed"
|
---|
8300 | >
|
---|
8301 | <desc>
|
---|
8302 | The IProgress interface is used to track and control
|
---|
8303 | asynchronous tasks within VirtualBox.
|
---|
8304 |
|
---|
8305 | An instance of this is returned every time VirtualBox starts
|
---|
8306 | an asynchronous task (in other words, a separate thread) which
|
---|
8307 | continues to run after a method call returns. For example,
|
---|
8308 | <link to="IConsole::saveState" />, which saves the state of
|
---|
8309 | a running virtual machine, can take a long time to complete.
|
---|
8310 | To be able to display a progress bar, a user interface such as
|
---|
8311 | the VirtualBox graphical user interface can use the IProgress
|
---|
8312 | object returned by that method.
|
---|
8313 |
|
---|
8314 | Note that IProgress is a "read-only" interface in the sense
|
---|
8315 | that only the VirtualBox internals behind the Main API can
|
---|
8316 | create and manipulate progress objects, whereas client code
|
---|
8317 | can only use the IProgress object to monitor a task's
|
---|
8318 | progress and, if <link to="#cancelable" /> is @c true,
|
---|
8319 | cancel the task by calling <link to="#cancel" />.
|
---|
8320 |
|
---|
8321 | A task represented by IProgress consists of either one or
|
---|
8322 | several sub-operations that run sequentially, one by one (see
|
---|
8323 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
8324 | Every operation is identified by a number (starting from 0)
|
---|
8325 | and has a separate description.
|
---|
8326 |
|
---|
8327 | You can find the individual percentage of completion of the current
|
---|
8328 | operation in <link to="#operationPercent" /> and the
|
---|
8329 | percentage of completion of the task as a whole
|
---|
8330 | in <link to="#percent" />.
|
---|
8331 |
|
---|
8332 | Similarly, you can wait for the completion of a particular
|
---|
8333 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
8334 | for the completion of the whole task via
|
---|
8335 | <link to="#waitForCompletion" />.
|
---|
8336 | </desc>
|
---|
8337 |
|
---|
8338 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8339 | <desc>ID of the task.</desc>
|
---|
8340 | </attribute>
|
---|
8341 |
|
---|
8342 | <attribute name="description" type="wstring" readonly="yes">
|
---|
8343 | <desc>Description of the task.</desc>
|
---|
8344 | </attribute>
|
---|
8345 |
|
---|
8346 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
8347 | <desc>Initiator of the task.</desc>
|
---|
8348 | </attribute>
|
---|
8349 |
|
---|
8350 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
8351 | <desc>Whether the task can be interrupted.</desc>
|
---|
8352 | </attribute>
|
---|
8353 |
|
---|
8354 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
8355 | <desc>
|
---|
8356 | Current progress value of the task as a whole, in percent.
|
---|
8357 | This value depends on how many operations are already complete.
|
---|
8358 | Returns 100 if <link to="#completed" /> is @c true.
|
---|
8359 | </desc>
|
---|
8360 | </attribute>
|
---|
8361 |
|
---|
8362 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
8363 | <desc>
|
---|
8364 | Estimated remaining time until the task completes, in
|
---|
8365 | seconds. Returns 0 once the task has completed; returns -1
|
---|
8366 | if the remaining time cannot be computed, in particular if
|
---|
8367 | the current progress is 0.
|
---|
8368 |
|
---|
8369 | Even if a value is returned, the estimate will be unreliable
|
---|
8370 | for low progress values. It will become more reliable as the
|
---|
8371 | task progresses; it is not recommended to display an ETA
|
---|
8372 | before at least 20% of a task have completed.
|
---|
8373 | </desc>
|
---|
8374 | </attribute>
|
---|
8375 |
|
---|
8376 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
8377 | <desc>Whether the task has been completed.</desc>
|
---|
8378 | </attribute>
|
---|
8379 |
|
---|
8380 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
8381 | <desc>Whether the task has been canceled.</desc>
|
---|
8382 | </attribute>
|
---|
8383 |
|
---|
8384 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
8385 | <desc>
|
---|
8386 | Result code of the progress task.
|
---|
8387 | Valid only if <link to="#completed"/> is @c true.
|
---|
8388 | </desc>
|
---|
8389 | </attribute>
|
---|
8390 |
|
---|
8391 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
8392 | <desc>
|
---|
8393 | Extended information about the unsuccessful result of the
|
---|
8394 | progress operation. May be @c null if no extended information
|
---|
8395 | is available.
|
---|
8396 | Valid only if <link to="#completed"/> is @c true and
|
---|
8397 | <link to="#resultCode"/> indicates a failure.
|
---|
8398 | </desc>
|
---|
8399 | </attribute>
|
---|
8400 |
|
---|
8401 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
8402 | <desc>
|
---|
8403 | Number of sub-operations this task is divided into.
|
---|
8404 | Every task consists of at least one suboperation.
|
---|
8405 | </desc>
|
---|
8406 | </attribute>
|
---|
8407 |
|
---|
8408 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
8409 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
8410 | </attribute>
|
---|
8411 |
|
---|
8412 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
8413 | <desc>
|
---|
8414 | Description of the sub-operation being currently executed.
|
---|
8415 | </desc>
|
---|
8416 | </attribute>
|
---|
8417 |
|
---|
8418 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
8419 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
8420 | </attribute>
|
---|
8421 |
|
---|
8422 | <attribute name="timeout" type="unsigned long">
|
---|
8423 | <desc>
|
---|
8424 | When non-zero, this specifies the number of milliseconds after which
|
---|
8425 | the operation will automatically be canceled. This can only be set on
|
---|
8426 | cancelable objects.
|
---|
8427 | </desc>
|
---|
8428 | </attribute>
|
---|
8429 |
|
---|
8430 | <method name="setCurrentOperationProgress">
|
---|
8431 | <desc>Internal method, not to be called externally.</desc>
|
---|
8432 | <param name="percent" type="unsigned long" dir="in" />
|
---|
8433 | </method>
|
---|
8434 | <method name="setNextOperation">
|
---|
8435 | <desc>Internal method, not to be called externally.</desc>
|
---|
8436 | <param name="nextOperationDescription" type="wstring" dir="in" />
|
---|
8437 | <param name="nextOperationsWeight" type="unsigned long" dir="in" />
|
---|
8438 | </method>
|
---|
8439 |
|
---|
8440 | <method name="waitForCompletion">
|
---|
8441 | <desc>
|
---|
8442 | Waits until the task is done (including all sub-operations)
|
---|
8443 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
8444 |
|
---|
8445 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8446 | Failed to wait for task completion.
|
---|
8447 | </result>
|
---|
8448 | </desc>
|
---|
8449 |
|
---|
8450 | <param name="timeout" type="long" dir="in">
|
---|
8451 | <desc>
|
---|
8452 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8453 | </desc>
|
---|
8454 | </param>
|
---|
8455 | </method>
|
---|
8456 |
|
---|
8457 | <method name="waitForOperationCompletion">
|
---|
8458 | <desc>
|
---|
8459 | Waits until the given operation is done with a given timeout in
|
---|
8460 | milliseconds; specify -1 for an indefinite wait.
|
---|
8461 |
|
---|
8462 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8463 | Failed to wait for operation completion.
|
---|
8464 | </result>
|
---|
8465 |
|
---|
8466 | </desc>
|
---|
8467 | <param name="operation" type="unsigned long" dir="in">
|
---|
8468 | <desc>
|
---|
8469 | Number of the operation to wait for.
|
---|
8470 | Must be less than <link to="#operationCount"/>.
|
---|
8471 | </desc>
|
---|
8472 | </param>
|
---|
8473 | <param name="timeout" type="long" dir="in">
|
---|
8474 | <desc>
|
---|
8475 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8476 | </desc>
|
---|
8477 | </param>
|
---|
8478 | </method>
|
---|
8479 |
|
---|
8480 | <method name="cancel">
|
---|
8481 | <desc>
|
---|
8482 | Cancels the task.
|
---|
8483 | <note>
|
---|
8484 | If <link to="#cancelable"/> is @c false, then this method will fail.
|
---|
8485 | </note>
|
---|
8486 |
|
---|
8487 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8488 | Operation cannot be canceled.
|
---|
8489 | </result>
|
---|
8490 |
|
---|
8491 | </desc>
|
---|
8492 | </method>
|
---|
8493 |
|
---|
8494 | </interface>
|
---|
8495 |
|
---|
8496 |
|
---|
8497 | <!--
|
---|
8498 | // ISnapshot
|
---|
8499 | /////////////////////////////////////////////////////////////////////////
|
---|
8500 | -->
|
---|
8501 |
|
---|
8502 | <interface
|
---|
8503 | name="ISnapshot" extends="$unknown"
|
---|
8504 | uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
|
---|
8505 | wsmap="managed"
|
---|
8506 | >
|
---|
8507 | <desc>
|
---|
8508 | The ISnapshot interface represents a snapshot of the virtual
|
---|
8509 | machine.
|
---|
8510 |
|
---|
8511 | Together with the differencing media that are created
|
---|
8512 | when a snapshot is taken, a machine can be brought back to
|
---|
8513 | the exact state it was in when the snapshot was taken.
|
---|
8514 |
|
---|
8515 | The ISnapshot interface has no methods, only attributes; snapshots
|
---|
8516 | are controlled through methods of the <link to="IConsole" /> interface
|
---|
8517 | which also manage the media associated with the snapshot.
|
---|
8518 | The following operations exist:
|
---|
8519 |
|
---|
8520 | <ul>
|
---|
8521 | <li><link to="IConsole::takeSnapshot"/>: creates a new snapshot
|
---|
8522 | by creating new, empty differencing images for the machine's
|
---|
8523 | media and saving the VM settings and (if the VM is running)
|
---|
8524 | the current VM state in the snapshot.
|
---|
8525 |
|
---|
8526 | The differencing images will then receive all data written to
|
---|
8527 | the machine's media, while their parent (base) images
|
---|
8528 | remain unmodified after the snapshot has been taken (see
|
---|
8529 | <link to="IMedium" /> for details about differencing images).
|
---|
8530 | This simplifies restoring a machine to the state of a snapshot:
|
---|
8531 | only the differencing images need to be deleted.
|
---|
8532 |
|
---|
8533 | The current machine state is not changed by taking a snapshot.
|
---|
8534 | If the machine is running, it will resume execution after the
|
---|
8535 | snapshot has been taken.
|
---|
8536 | </li>
|
---|
8537 |
|
---|
8538 | <li><link to="IConsole::restoreSnapshot"/>: this goes back to
|
---|
8539 | a previous snapshot. This resets the machine's state to that of
|
---|
8540 | the previous snapshot by deleting the differencing image of each
|
---|
8541 | of the machine's media and setting the machine's settings
|
---|
8542 | and state to the state that was saved in the snapshot (if any).
|
---|
8543 |
|
---|
8544 | This destroys the machine's current state.
|
---|
8545 | </li>
|
---|
8546 |
|
---|
8547 | <li><link to="IConsole::deleteSnapshot"/>: deletes a snapshot
|
---|
8548 | without affecting the current machine state.
|
---|
8549 |
|
---|
8550 | This does not change the machine, but instead frees the resources
|
---|
8551 | allocated when the snapshot was taken: the settings and machine state
|
---|
8552 | is deleted (if any), and the snapshot's differencing image for each
|
---|
8553 | of the machine's media gets merged with its parent image.
|
---|
8554 |
|
---|
8555 | Neither the current machine state nor other snapshots are affected
|
---|
8556 | by this operation, except that parent media will be modified
|
---|
8557 | to contain the disk data associated with the snapshot being deleted.
|
---|
8558 | </li>
|
---|
8559 | </ul>
|
---|
8560 |
|
---|
8561 | Each snapshot contains the settings of the virtual machine (hardware
|
---|
8562 | configuration etc.). In addition, if the machine was running when the
|
---|
8563 | snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
|
---|
8564 | the current VM state is saved in the snapshot (similarly to what happens
|
---|
8565 | when a VM's state is saved). The snapshot is then said to
|
---|
8566 | be <i>online</i> because when restoring it, the VM will be running.
|
---|
8567 |
|
---|
8568 | If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
|
---|
8569 | receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
|
---|
8570 |
|
---|
8571 | Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
|
---|
8572 | or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
|
---|
8573 | it then contains a so-called "zero execution state", representing a
|
---|
8574 | machine that is powered off.
|
---|
8575 |
|
---|
8576 | <h3>Snapshot branches and the "current" snapshot</h3>
|
---|
8577 |
|
---|
8578 | Snapshots can be chained, whereby every next snapshot is based on the
|
---|
8579 | previous one. This chaining is related to medium branching
|
---|
8580 | (see the <link to="IMedium"/> description) in that every time
|
---|
8581 | a new snapshot is created, a new differencing medium is implicitly
|
---|
8582 | created for all normal media attached to the machine.
|
---|
8583 |
|
---|
8584 | Each virtual machine has a "current snapshot", identified by
|
---|
8585 | <link to="IMachine::currentSnapshot"/>. Presently, this is always set
|
---|
8586 | to the last snapshot in the chain. In a future version of VirtualBox,
|
---|
8587 | it will be possible to reset a machine's current state to that of an
|
---|
8588 | earlier snapshot without discarding the current state so that it will be
|
---|
8589 | possible to create alternative snapshot paths in a snapshot tree.
|
---|
8590 |
|
---|
8591 | In the current implementation, multiple snapshot branches within one
|
---|
8592 | virtual machine are not allowed. Every machine has a single branch,
|
---|
8593 | and <link to="IConsole::takeSnapshot"/> operation adds a new
|
---|
8594 | snapshot to the top of that branch.
|
---|
8595 | </desc>
|
---|
8596 |
|
---|
8597 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8598 | <desc>UUID of the snapshot.</desc>
|
---|
8599 | </attribute>
|
---|
8600 |
|
---|
8601 | <attribute name="name" type="wstring">
|
---|
8602 | <desc>Short name of the snapshot.</desc>
|
---|
8603 | </attribute>
|
---|
8604 |
|
---|
8605 | <attribute name="description" type="wstring">
|
---|
8606 | <desc>Optional description of the snapshot.</desc>
|
---|
8607 | </attribute>
|
---|
8608 |
|
---|
8609 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
8610 | <desc>
|
---|
8611 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
8612 | </desc>
|
---|
8613 | </attribute>
|
---|
8614 |
|
---|
8615 | <attribute name="online" type="boolean" readonly="yes">
|
---|
8616 | <desc>
|
---|
8617 | @c true if this snapshot is an online snapshot and @c false otherwise.
|
---|
8618 |
|
---|
8619 | When this attribute is @c true, the
|
---|
8620 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8621 | <link to="#machine"/> object associated with this snapshot
|
---|
8622 | will point to the saved state file. Otherwise, it will be
|
---|
8623 | an empty string.
|
---|
8624 | </desc>
|
---|
8625 | </attribute>
|
---|
8626 |
|
---|
8627 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8628 | <desc>
|
---|
8629 | Virtual machine this snapshot is taken on. This object
|
---|
8630 | stores all settings the machine had when taking this snapshot.
|
---|
8631 | <note>
|
---|
8632 | The returned machine object is immutable, i.e. no
|
---|
8633 | any settings can be changed.
|
---|
8634 | </note>
|
---|
8635 | </desc>
|
---|
8636 | </attribute>
|
---|
8637 |
|
---|
8638 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8639 | <desc>
|
---|
8640 | Parent snapshot (a snapshot this one is based on), or
|
---|
8641 | @c null if the snapshot has no parent (i.e. is the first snapshot).
|
---|
8642 | </desc>
|
---|
8643 | </attribute>
|
---|
8644 |
|
---|
8645 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8646 | <desc>
|
---|
8647 | Child snapshots (all snapshots having this one as a parent).
|
---|
8648 | </desc>
|
---|
8649 | </attribute>
|
---|
8650 |
|
---|
8651 | </interface>
|
---|
8652 |
|
---|
8653 |
|
---|
8654 | <!--
|
---|
8655 | // IMedium
|
---|
8656 | /////////////////////////////////////////////////////////////////////////
|
---|
8657 | -->
|
---|
8658 |
|
---|
8659 | <enum
|
---|
8660 | name="MediumState"
|
---|
8661 | uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
|
---|
8662 | >
|
---|
8663 | <desc>
|
---|
8664 | Virtual medium state.
|
---|
8665 | <see>IMedium</see>
|
---|
8666 | </desc>
|
---|
8667 |
|
---|
8668 | <const name="NotCreated" value="0">
|
---|
8669 | <desc>
|
---|
8670 | Associated medium storage does not exist (either was not created yet or
|
---|
8671 | was deleted).
|
---|
8672 | </desc>
|
---|
8673 | </const>
|
---|
8674 | <const name="Created" value="1">
|
---|
8675 | <desc>
|
---|
8676 | Associated storage exists and accessible; this gets set if the
|
---|
8677 | accessibility check performed by <link to="IMedium::refreshState" />
|
---|
8678 | was successful.
|
---|
8679 | </desc>
|
---|
8680 | </const>
|
---|
8681 | <const name="LockedRead" value="2">
|
---|
8682 | <desc>
|
---|
8683 | Medium is locked for reading (see <link to="IMedium::lockRead"/>),
|
---|
8684 | no data modification is possible.
|
---|
8685 | </desc>
|
---|
8686 | </const>
|
---|
8687 | <const name="LockedWrite" value="3">
|
---|
8688 | <desc>
|
---|
8689 | Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
|
---|
8690 | no concurrent data reading or modification is possible.
|
---|
8691 | </desc>
|
---|
8692 | </const>
|
---|
8693 | <const name="Inaccessible" value="4">
|
---|
8694 | <desc>
|
---|
8695 | Medium accessiblity check (see <link to="IMedium::refreshState" />) has
|
---|
8696 | not yet been performed, or else, associated medium storage is not
|
---|
8697 | accessible. In the first case, <link to="IMedium::lastAccessError"/>
|
---|
8698 | is empty, in the second case, it describes the error that occured.
|
---|
8699 | </desc>
|
---|
8700 | </const>
|
---|
8701 | <const name="Creating" value="5">
|
---|
8702 | <desc>
|
---|
8703 | Associated medium storage is being created.
|
---|
8704 | </desc>
|
---|
8705 | </const>
|
---|
8706 | <const name="Deleting" value="6">
|
---|
8707 | <desc>
|
---|
8708 | Associated medium storage is being deleted.
|
---|
8709 | </desc>
|
---|
8710 | </const>
|
---|
8711 | </enum>
|
---|
8712 |
|
---|
8713 | <enum
|
---|
8714 | name="MediumType"
|
---|
8715 | uuid="11f6f7a5-0327-409a-9d42-7db6a0cec578"
|
---|
8716 | >
|
---|
8717 | <desc>
|
---|
8718 | Virtual medium type.
|
---|
8719 | <see>IMedium</see>
|
---|
8720 | </desc>
|
---|
8721 |
|
---|
8722 | <const name="Normal" value="0">
|
---|
8723 | <desc>
|
---|
8724 | Normal medium (attached directly or indirectly, preserved
|
---|
8725 | when taking snapshots).
|
---|
8726 | </desc>
|
---|
8727 | </const>
|
---|
8728 | <const name="Immutable" value="1">
|
---|
8729 | <desc>
|
---|
8730 | Immutable medium (attached indirectly, changes are wiped out
|
---|
8731 | the next time the virtual machine is started).
|
---|
8732 | </desc>
|
---|
8733 | </const>
|
---|
8734 | <const name="Writethrough" value="2">
|
---|
8735 | <desc>
|
---|
8736 | Write through medium (attached directly, ignored when
|
---|
8737 | taking snapshots).
|
---|
8738 | </desc>
|
---|
8739 | </const>
|
---|
8740 | </enum>
|
---|
8741 |
|
---|
8742 | <enum
|
---|
8743 | name="MediumVariant"
|
---|
8744 | uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
|
---|
8745 | >
|
---|
8746 | <desc>
|
---|
8747 | Virtual medium image variant. More than one flag may be set.
|
---|
8748 | <see>IMedium</see>
|
---|
8749 | </desc>
|
---|
8750 |
|
---|
8751 | <const name="Standard" value="0">
|
---|
8752 | <desc>
|
---|
8753 | No particular variant requested, results in using the backend default.
|
---|
8754 | </desc>
|
---|
8755 | </const>
|
---|
8756 | <const name="VmdkSplit2G" value="0x01">
|
---|
8757 | <desc>
|
---|
8758 | VMDK image split in chunks of less than 2GByte.
|
---|
8759 | </desc>
|
---|
8760 | </const>
|
---|
8761 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
8762 | <desc>
|
---|
8763 | VMDK streamOptimized image. Special import/export format which is
|
---|
8764 | read-only/append-only.
|
---|
8765 | </desc>
|
---|
8766 | </const>
|
---|
8767 | <const name="VmdkESX" value="0x08">
|
---|
8768 | <desc>
|
---|
8769 | VMDK format variant used on ESX products.
|
---|
8770 | </desc>
|
---|
8771 | </const>
|
---|
8772 | <const name="Fixed" value="0x10000">
|
---|
8773 | <desc>
|
---|
8774 | Fixed image. Only allowed for base images.
|
---|
8775 | </desc>
|
---|
8776 | </const>
|
---|
8777 | <const name="Diff" value="0x20000">
|
---|
8778 | <desc>
|
---|
8779 | Fixed image. Only allowed for base images.
|
---|
8780 | </desc>
|
---|
8781 | </const>
|
---|
8782 | </enum>
|
---|
8783 |
|
---|
8784 | <interface
|
---|
8785 | name="IMediumAttachment" extends="$unknown"
|
---|
8786 | uuid="e58eb3eb-8627-428b-bdf8-34487c848de5"
|
---|
8787 | wsmap="struct"
|
---|
8788 | >
|
---|
8789 | <desc>
|
---|
8790 | The IMediumAttachment interface represents the attachment
|
---|
8791 | of a storage medium to a virtual machine. Each machine contains
|
---|
8792 | an array of its medium attachments in <link to="IMachine::mediumAttachments"/>.
|
---|
8793 |
|
---|
8794 | Each medium attachment specifies a storage controller as well as a port
|
---|
8795 | and device number. Fixed media (hard disks) will always also specify
|
---|
8796 | an instance of IMedium in <link to="#medium" />, referring to the hard disk
|
---|
8797 | medium. For removeable media, the IMedia instance is optional; it can be
|
---|
8798 | @c null if no media is mounted (see <link to="IMachine::mountMedium" />).
|
---|
8799 | </desc>
|
---|
8800 |
|
---|
8801 | <attribute name="medium" type="IMedium" readonly="yes">
|
---|
8802 | <desc>Medium object associated with this attachment; it
|
---|
8803 | can be @c null for removable devices.</desc>
|
---|
8804 | </attribute>
|
---|
8805 |
|
---|
8806 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
8807 | <desc>Name of the storage controller of this attachment; this
|
---|
8808 | refers to one of the controllers in <link to="IMachine::storageControllers" />
|
---|
8809 | by name.</desc>
|
---|
8810 | </attribute>
|
---|
8811 |
|
---|
8812 | <attribute name="port" type="long" readonly="yes">
|
---|
8813 | <desc>Port number of this attachment.</desc>
|
---|
8814 | </attribute>
|
---|
8815 |
|
---|
8816 | <attribute name="device" type="long" readonly="yes">
|
---|
8817 | <desc>Device slot number of this attachment.</desc>
|
---|
8818 | </attribute>
|
---|
8819 |
|
---|
8820 | <attribute name="type" type="DeviceType" readonly="yes">
|
---|
8821 | <desc>Device type of this attachment.</desc>
|
---|
8822 | </attribute>
|
---|
8823 |
|
---|
8824 | <attribute name="passthrough" type="boolean" readonly="yes">
|
---|
8825 | <desc>Pass I/O requests through to a device on the host.</desc>
|
---|
8826 | </attribute>
|
---|
8827 |
|
---|
8828 | </interface>
|
---|
8829 |
|
---|
8830 | <interface
|
---|
8831 | name="IMedium" extends="$unknown"
|
---|
8832 | uuid="aa8167ba-df72-4738-b740-9b84377ba9f1"
|
---|
8833 | wsmap="managed"
|
---|
8834 | >
|
---|
8835 | <desc>
|
---|
8836 | The IMedium interface represents virtual storage for a machine's
|
---|
8837 | hard disks, CD/DVD or floppy drives. It will typically represent
|
---|
8838 | a disk image on the host, for example a VDI or VMDK file representing
|
---|
8839 | a virtual hard disk, or an ISO or RAW file representing virtual
|
---|
8840 | removable media, but can also point to a network location (e.g.
|
---|
8841 | for iSCSI targets).
|
---|
8842 |
|
---|
8843 | Instances of IMedium are connected to virtual machines by way of
|
---|
8844 | medium attachments (see <link to="IMediumAttachment" />), which link
|
---|
8845 | the storage medium to a particular device slot of a storage controller
|
---|
8846 | of the virtual machine.
|
---|
8847 | In the VirtualBox API, virtual storage is therefore always represented
|
---|
8848 | by the following chain of object links:
|
---|
8849 |
|
---|
8850 | <ul>
|
---|
8851 | <li><link to="IMachine::storageControllers"/> contains an array of
|
---|
8852 | storage controllers (IDE, SATA, SCSI or a floppy controller;
|
---|
8853 | these are instances of <link to="IStorageController"/>).</li>
|
---|
8854 | <li><link to="IMachine::mediumAttachments"/> contains an array of
|
---|
8855 | medium attachments (instances of <link to="IMediumAttachment"/>),
|
---|
8856 | each containing a storage controller from the above array, a
|
---|
8857 | port/device specification, and an instance of IMedium representing
|
---|
8858 | the medium storage (image file).
|
---|
8859 |
|
---|
8860 | For removable media, the storage medium is optional; a medium
|
---|
8861 | attachment with no medium represents a CD/DVD or floppy drive
|
---|
8862 | with no medium inserted. By contrast, hard disk attachments
|
---|
8863 | will always have an IMedium object attached.</li>
|
---|
8864 | <li>Each IMedium in turn points to a storage unit (such as a file
|
---|
8865 | on the host computer or a network resource) that holds actual
|
---|
8866 | data. This location is represented by the <link to="#location"/>
|
---|
8867 | attribute.</li>
|
---|
8868 | </ul>
|
---|
8869 |
|
---|
8870 | Existing media are opened using the following methods, depending on the
|
---|
8871 | media type:
|
---|
8872 | <ul>
|
---|
8873 | <li><link to="IVirtualBox::openHardDisk"/></li>
|
---|
8874 | <li><link to="IVirtualBox::openDVDImage"/></li>
|
---|
8875 | <li><link to="IVirtualBox::openFloppyImage"/></li>
|
---|
8876 | </ul>
|
---|
8877 |
|
---|
8878 | New hard disk media can be created with the VirtualBox API using the
|
---|
8879 | <link to="IVirtualBox::createHardDisk"/> method.
|
---|
8880 |
|
---|
8881 | CD/DVD and floppy images (ISO and RAW files) are usually created outside
|
---|
8882 | VirtualBox, e.g. by storing a copy of the real medium of the corresponding
|
---|
8883 | type in a regular file.
|
---|
8884 |
|
---|
8885 | Only for CD/DVDs and floppies, an IMedium instance can also represent a host
|
---|
8886 | drive; in that case the <link to="#id" /> attribute contains the UUID of
|
---|
8887 | one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
|
---|
8888 |
|
---|
8889 | <h3>Known media</h3>
|
---|
8890 |
|
---|
8891 | When an existing medium is opened for the first time, it is automatically
|
---|
8892 | remembered by the given VirtualBox installation or, in other words, becomes
|
---|
8893 | a <i>known medium</i>. Known media are stored in the media
|
---|
8894 | registry transparently maintained by VirtualBox and stored in settings
|
---|
8895 | files so that this registry is preserved when VirtualBox is not running.
|
---|
8896 |
|
---|
8897 | Newly created virtual media are remembered only when the associated
|
---|
8898 | storage unit is actually created.
|
---|
8899 |
|
---|
8900 | All known media can be enumerated using
|
---|
8901 | <link to="IVirtualBox::hardDisks"/>,
|
---|
8902 | <link to="IVirtualBox::DVDImages"/> and
|
---|
8903 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
8904 | quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
|
---|
8905 | and similar methods or by location using
|
---|
8906 | <link to="IVirtualBox::findHardDisk"/> and similar methods.
|
---|
8907 |
|
---|
8908 | Only known media can be attached to virtual machines.
|
---|
8909 |
|
---|
8910 | Removing known media from the media registry is performed when the given
|
---|
8911 | medium is closed using the <link to="#close"/> method or when its
|
---|
8912 | associated storage unit is deleted.
|
---|
8913 |
|
---|
8914 | <h3>Accessibility checks</h3>
|
---|
8915 |
|
---|
8916 | VirtualBox defers media accessibility checks until the <link to="#refreshState" />
|
---|
8917 | method is called explicitly on a medium. This is done to make the VirtualBox object
|
---|
8918 | ready for serving requests as fast as possible and let the end-user
|
---|
8919 | application decide if it needs to check media accessibility right away or not.
|
---|
8920 |
|
---|
8921 | As a result, when VirtualBox starts up (e.g. the VirtualBox
|
---|
8922 | object gets created for the first time), all known media are in the
|
---|
8923 | "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
|
---|
8924 | attribute is an empty string because no actual accessibility check has
|
---|
8925 | been made yet.
|
---|
8926 |
|
---|
8927 | After calling <link to="#refreshState" />, a medium is considered
|
---|
8928 | <i>accessible</i> if its storage unit can be read. In that case, the
|
---|
8929 | <link to="#state"/> attribute has a value of "Created". If the storage
|
---|
8930 | unit cannot be read (for example, because it is located on a disconnected
|
---|
8931 | network resource, or was accidentally deleted outside VirtualBox),
|
---|
8932 | the medium is considered <i>inaccessible</i>, which is indicated by the
|
---|
8933 | "Inaccessible" state. The exact reason why the medium is inaccessible can be
|
---|
8934 | obtained by reading the <link to="#lastAccessError"/> attribute.
|
---|
8935 |
|
---|
8936 | <h3>Medium types</h3>
|
---|
8937 |
|
---|
8938 | There are three types of medium behavior (see <link to="MediumType" />):
|
---|
8939 | "normal", "immutable" and "writethrough", represented by the
|
---|
8940 | <link to="#type"/> attribute. The type of the medium defines how the
|
---|
8941 | medium is attached to a virtual machine and what happens when a
|
---|
8942 | <link to="ISnapshot">snapshot</link> of the virtual machine with the
|
---|
8943 | attached medium is taken. At the moment DVD and floppy media are always
|
---|
8944 | of type "writethrough".
|
---|
8945 |
|
---|
8946 | All media can be also divided in two groups: <i>base</i> media and
|
---|
8947 | <i>differencing</i> media. A base medium contains all sectors of the
|
---|
8948 | medium data in its own storage and therefore can be used independently.
|
---|
8949 | In contrast, a differencing mediun is a "delta" to some other medium and
|
---|
8950 | contains only those sectors which differ from that other medium, which is
|
---|
8951 | then called a <i>parent</i>. The differencing medium is said to be
|
---|
8952 | <i>linked to</i> that parent. The parent may be itself a differencing
|
---|
8953 | medium, thus forming a chain of linked media. The last element in that
|
---|
8954 | chain must always be a base medium. Note that several differencing
|
---|
8955 | media may be linked to the same parent medium.
|
---|
8956 |
|
---|
8957 | Differencing media can be distinguished from base media by querying the
|
---|
8958 | <link to="#parent"/> attribute: base media do not have parents they would
|
---|
8959 | depend on, so the value of this attribute is always @c null for them.
|
---|
8960 | Using this attribute, it is possible to walk up the medium tree (from the
|
---|
8961 | child medium to its parent). It is also possible to walk down the tree
|
---|
8962 | using the <link to="#children"/> attribute.
|
---|
8963 |
|
---|
8964 | Note that the type of all differencing media is "Normal"; all other
|
---|
8965 | values are meaningless for them. Base media may be of any type.
|
---|
8966 |
|
---|
8967 | <h3>Creating hard disks</h3>
|
---|
8968 |
|
---|
8969 | New base hard disks are created using
|
---|
8970 | <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
|
---|
8971 | opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
|
---|
8972 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
8973 | also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
8974 |
|
---|
8975 | After the hard disk is successfully created (including the storage unit)
|
---|
8976 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
8977 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
8978 | through <link to="IVirtualBox::getHardDisk"/> and
|
---|
8979 | <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
|
---|
8980 | <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
|
---|
8981 |
|
---|
8982 | The following methods, besides <link to="IMedium::close"/>,
|
---|
8983 | automatically remove the hard disk from the media registry:
|
---|
8984 | <ul>
|
---|
8985 | <li><link to="#deleteStorage"/></li>
|
---|
8986 | <li><link to="#mergeTo"/></li>
|
---|
8987 | </ul>
|
---|
8988 |
|
---|
8989 | If the storage unit of the hard disk is a regular file in the host's
|
---|
8990 | file system then the rules stated in the description of the
|
---|
8991 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
8992 | addition, a plain file name without any path may be given, in which case
|
---|
8993 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
8994 | folder</link> will be prepended to it.
|
---|
8995 |
|
---|
8996 | <h4>Automatic composition of the file name part</h4>
|
---|
8997 |
|
---|
8998 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
8999 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
9000 | the file name part of the location using the UUID of the hard disk. This
|
---|
9001 | applies only to hard disks in <link to="MediumState_NotCreated"/> state,
|
---|
9002 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
9003 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
9004 | specification which only contains the path specification but not the file
|
---|
9005 | name part and ends with either a forward slash or a backslash character.
|
---|
9006 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
9007 | compose the file name using the following pattern:
|
---|
9008 | <pre>
|
---|
9009 | <path>/{<uuid>}.<ext>
|
---|
9010 | </pre>
|
---|
9011 | where <tt><path></tt> is the supplied path specification,
|
---|
9012 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
9013 | is the default extension for the storage format of this hard disk. After
|
---|
9014 | that, you may call any of the methods that create a new hard disk storage
|
---|
9015 | unit and they will use the generated UUID and file name.
|
---|
9016 |
|
---|
9017 | <h3>Attaching Hard Disks</h3>
|
---|
9018 |
|
---|
9019 | Hard disks are attached to virtual machines using the
|
---|
9020 | <link to="IMachine::attachDevice"/> method and detached using the
|
---|
9021 | <link to="IMachine::detachDevice"/> method. Depending on their
|
---|
9022 | <link to="#type"/>, hard disks are attached either
|
---|
9023 | <i>directly</i> or <i>indirectly</i>.
|
---|
9024 |
|
---|
9025 | When a hard disk is being attached directly, it is associated with the
|
---|
9026 | virtual machine and used for hard disk operations when the machine is
|
---|
9027 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
9028 | hard disk linked to it is implicitly created and this differencing hard
|
---|
9029 | disk is associated with the machine and used for hard disk operations.
|
---|
9030 | This also means that if <link to="IMachine::attachDevice"/> performs
|
---|
9031 | a direct attachment then the same hard disk will be returned in response
|
---|
9032 | to the subsequent <link to="IMachine::getMedium"/> call; however if
|
---|
9033 | an indirect attachment is performed then
|
---|
9034 | <link to="IMachine::getMedium"/> will return the implicitly created
|
---|
9035 | differencing hard disk, not the original one passed to <link
|
---|
9036 | to="IMachine::attachDevice"/>. In detail:
|
---|
9037 |
|
---|
9038 | <ul>
|
---|
9039 | <li><b>Normal base</b> hard disks that do not have children (i.e.
|
---|
9040 | differencing hard disks linked to them) and that are not already
|
---|
9041 | attached to virtual machines in snapshots are attached <b>directly</b>.
|
---|
9042 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
9043 | dependent children or being part of the snapshot makes it impossible
|
---|
9044 | to modify hard disk contents without breaking the integrity of the
|
---|
9045 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
9046 | quickly determine the kind of the attachment for the given hard
|
---|
9047 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
9048 | attached to a virtual machine with snapshots then a special
|
---|
9049 | procedure called <i>smart attachment</i> is performed (see below).</li>
|
---|
9050 | <li><b>Normal differencing</b> hard disks are like normal base hard disks:
|
---|
9051 | they are attached <b>directly</b> if they do not have children and are
|
---|
9052 | not attached to virtual machines in snapshots, and <b>indirectly</b>
|
---|
9053 | otherwise. Note that the smart attachment procedure is never performed
|
---|
9054 | for differencing hard disks.</li>
|
---|
9055 | <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
|
---|
9056 | they are designed to be non-writable. If an immutable hard disk is
|
---|
9057 | attached to a virtual machine with snapshots then a special
|
---|
9058 | procedure called smart attachment is performed (see below).</li>
|
---|
9059 | <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
|
---|
9060 | also as designed. This also means that writethrough hard disks cannot
|
---|
9061 | have other hard disks linked to them at all.</li>
|
---|
9062 | </ul>
|
---|
9063 |
|
---|
9064 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
9065 | more than one virtual machine at a time. In this case, the machine that is
|
---|
9066 | started first gains exclusive access to the hard disk and attempts to
|
---|
9067 | start other machines having this hard disk attached will fail until the
|
---|
9068 | first machine is powered down.
|
---|
9069 |
|
---|
9070 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
9071 | that the given hard disk remains associated with the given machine after a
|
---|
9072 | successful <link to="IMachine::detachDevice"/> call until
|
---|
9073 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
9074 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
9075 | the hard disk configuration may be restored at any time by a call to
|
---|
9076 | <link to="IMachine::discardSettings"/> before the settings
|
---|
9077 | are saved (committed).
|
---|
9078 |
|
---|
9079 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
9080 | indirectly attaching some hard disks to the machine but before a call to
|
---|
9081 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
9082 | all differencing hard disks implicitly created by
|
---|
9083 | <link to="IMachine::attachDevice"/> for these indirect attachments.
|
---|
9084 | Such implicitly created hard disks will also be immediately deleted when
|
---|
9085 | detached explicitly using the <link to="IMachine::detachDevice"/>
|
---|
9086 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
9087 | implicit deletion is safe because newly created differencing hard
|
---|
9088 | disks do not contain any user data.
|
---|
9089 |
|
---|
9090 | However, keep in mind that detaching differencing hard disks that were
|
---|
9091 | implicitly created by <link to="IMachine::attachDevice"/>
|
---|
9092 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
9093 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
9094 | (for example, as a result of virtual machine execution). If these hard
|
---|
9095 | disks are no more necessary, the caller can always delete them explicitly
|
---|
9096 | using <link to="#deleteStorage"/> after they are actually de-associated
|
---|
9097 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
9098 |
|
---|
9099 | <h3>Smart Attachment</h3>
|
---|
9100 |
|
---|
9101 | When normal base or immutable hard disks are indirectly attached to a
|
---|
9102 | virtual machine then some additional steps are performed to make sure the
|
---|
9103 | virtual machine will have the most recent "view" of the hard disk being
|
---|
9104 | attached. These steps include walking through the machine's snapshots
|
---|
9105 | starting from the current one and going through ancestors up to the first
|
---|
9106 | snapshot. Hard disks attached to the virtual machine in all
|
---|
9107 | of the encountered snapshots are checked whether they are descendants of
|
---|
9108 | the given normal base or immutable hard disk. The first found child (which
|
---|
9109 | is the differencing hard disk) will be used instead of the normal base or
|
---|
9110 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
9111 | that will be actually attached to the machine. And only if no descendants
|
---|
9112 | are found or if the virtual machine does not have any snapshots then the
|
---|
9113 | normal base or immutable hard disk will be used itself as a parent for
|
---|
9114 | this differencing hard disk.
|
---|
9115 |
|
---|
9116 | It is easier to explain what smart attachment does using the
|
---|
9117 | following example:
|
---|
9118 | <pre>
|
---|
9119 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
9120 |
|
---|
9121 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
9122 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
9123 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
9124 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
9125 | CurState (none) CurState (D3->D2.vdi)
|
---|
9126 |
|
---|
9127 | NOT
|
---|
9128 | ...
|
---|
9129 | CurState (D3->B.vdi)
|
---|
9130 | </pre>
|
---|
9131 | The first column is the virtual machine configuration before the base hard
|
---|
9132 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
9133 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
9134 | mean that the hard disk that is actually attached to the machine is a
|
---|
9135 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
9136 | another hard disk, <tt>B.vdi</tt>.
|
---|
9137 |
|
---|
9138 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
9139 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
9140 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
9141 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
9142 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
9143 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
9144 | attachment procedure, the new differencing hard disk
|
---|
9145 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
9146 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
9147 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
9148 | machine.
|
---|
9149 |
|
---|
9150 | Note that if there is more than one descendant hard disk of the given base
|
---|
9151 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
9152 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
9153 | descendant will be picked up.
|
---|
9154 |
|
---|
9155 | There is one more important aspect of the smart attachment procedure which
|
---|
9156 | is not related to snapshots at all. Before walking through the snapshots
|
---|
9157 | as described above, the backup copy of the current list of hard disk
|
---|
9158 | attachment is searched for descendants. This backup copy is created when
|
---|
9159 | the hard disk configuration is changed for the first time after the last
|
---|
9160 | <link to="IMachine::saveSettings"/> call and used by
|
---|
9161 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
9162 | changes. When such a descendant is found in this backup copy, it will be
|
---|
9163 | simply re-attached back, without creating a new differencing hard disk for
|
---|
9164 | it. This optimization is necessary to make it possible to re-attach the
|
---|
9165 | base or immutable hard disk to a different bus, channel or device slot
|
---|
9166 | without losing the contents of the differencing hard disk actually
|
---|
9167 | attached to the machine in place of it.
|
---|
9168 | </desc>
|
---|
9169 |
|
---|
9170 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
9171 | <desc>
|
---|
9172 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
9173 | generated UUID.
|
---|
9174 |
|
---|
9175 | <note>
|
---|
9176 | For media in one of MediumState_NotCreated, MediumState_Creating or
|
---|
9177 | MediumState_Deleting states, the value of this property is undefined
|
---|
9178 | and will most likely be an empty UUID.
|
---|
9179 | </note>
|
---|
9180 | </desc>
|
---|
9181 | </attribute>
|
---|
9182 |
|
---|
9183 | <attribute name="description" type="wstring">
|
---|
9184 | <desc>
|
---|
9185 | Optional description of the medium. For a newly created medium the value
|
---|
9186 | of this attribute is an empty string.
|
---|
9187 |
|
---|
9188 | Medium types that don't support this attribute will return E_NOTIMPL in
|
---|
9189 | attempt to get or set this attribute's value.
|
---|
9190 |
|
---|
9191 | <note>
|
---|
9192 | For some storage types, reading this attribute may return an outdated
|
---|
9193 | (last known) value when <link to="#state"/> is <link
|
---|
9194 | to="MediumState_Inaccessible"/> or <link
|
---|
9195 | to="MediumState_LockedWrite"/> because the value of this attribute is
|
---|
9196 | stored within the storage unit itself. Also note that changing the
|
---|
9197 | attribute value is not possible in such case, as well as when the
|
---|
9198 | medium is the <link to="MediumState_LockedRead"/> state.
|
---|
9199 | </note>
|
---|
9200 | </desc>
|
---|
9201 | </attribute>
|
---|
9202 |
|
---|
9203 | <attribute name="state" type="MediumState" readonly="yes">
|
---|
9204 | <desc>
|
---|
9205 | Returns the current medium state, which is the last state set by
|
---|
9206 | the accessibility check performed by <link to="#refreshState"/>.
|
---|
9207 | If that method has not yet been called on the medium, the state
|
---|
9208 | is "Inaccessible"; as opposed to truly inaccessible media, the
|
---|
9209 | value of <link to="#lastAccessError"/> will be an empty string in
|
---|
9210 | that case.
|
---|
9211 |
|
---|
9212 | <note>As of version 3.1, this no longer performs an accessibility check
|
---|
9213 | automatically; call <link to="#refreshState"/> for that.
|
---|
9214 | </note>
|
---|
9215 | </desc>
|
---|
9216 | </attribute>
|
---|
9217 |
|
---|
9218 | <attribute name="location" type="wstring">
|
---|
9219 | <desc>
|
---|
9220 | Location of the storage unit holding medium data.
|
---|
9221 |
|
---|
9222 | The format of the location string is medium type specific. For medium
|
---|
9223 | types using regular files in a host's file system, the location
|
---|
9224 | string is the full file name.
|
---|
9225 |
|
---|
9226 | Some medium types may support changing the storage unit location by
|
---|
9227 | simply changing the value of this property. If this operation is not
|
---|
9228 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
9229 | this attribute's value.
|
---|
9230 |
|
---|
9231 | When setting a value of the location attribute which is a regular file
|
---|
9232 | in the host's file system, the given file name may be either relative to
|
---|
9233 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
9234 | absolute. Note that if the given location specification does not contain
|
---|
9235 | the file extension part then a proper default extension will be
|
---|
9236 | automatically appended by the implementation depending on the medium type.
|
---|
9237 | </desc>
|
---|
9238 | </attribute>
|
---|
9239 |
|
---|
9240 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9241 | <desc>
|
---|
9242 | Name of the storage unit holding medium data.
|
---|
9243 |
|
---|
9244 | The returned string is a short version of the <link to="#location"/>
|
---|
9245 | attribute that is suitable for representing the medium in situations
|
---|
9246 | where the full location specification is too long (such as lists
|
---|
9247 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
9248 | to sort the media list alphabetically when needed.
|
---|
9249 |
|
---|
9250 | For example, for locations that are regular files in the host's file
|
---|
9251 | system, the value of this attribute is just the file name (+ extension),
|
---|
9252 | without the path specification.
|
---|
9253 |
|
---|
9254 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
9255 | attribute will not necessary be unique for a list of media of the
|
---|
9256 | given type and format.
|
---|
9257 | </desc>
|
---|
9258 | </attribute>
|
---|
9259 |
|
---|
9260 | <attribute name="deviceType" type="DeviceType" readonly="yes">
|
---|
9261 | <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
|
---|
9262 | medium.</desc>
|
---|
9263 | </attribute>
|
---|
9264 |
|
---|
9265 | <attribute name="hostDrive" type="boolean" readonly="yes">
|
---|
9266 | <desc>True if this corresponds to a drive on the host.</desc>
|
---|
9267 | </attribute>
|
---|
9268 |
|
---|
9269 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
9270 | <desc>
|
---|
9271 | Physical size of the storage unit used to hold medium data (in bytes).
|
---|
9272 |
|
---|
9273 | <note>
|
---|
9274 | For media whose <link to="#state"/> is <link
|
---|
9275 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9276 | last known size. For <link to="MediumState_NotCreated"/> media,
|
---|
9277 | the returned value is zero.
|
---|
9278 | </note>
|
---|
9279 | </desc>
|
---|
9280 | </attribute>
|
---|
9281 |
|
---|
9282 | <attribute name="format" type="wstring" readonly="yes">
|
---|
9283 | <desc>
|
---|
9284 | Storage format of this medium.
|
---|
9285 |
|
---|
9286 | The value of this attribute is a string that specifies a backend used
|
---|
9287 | to store medium data. The storage format is defined when you create a
|
---|
9288 | new medium or automatically detected when you open an existing medium,
|
---|
9289 | and cannot be changed later.
|
---|
9290 |
|
---|
9291 | The list of all storage formats supported by this VirtualBox
|
---|
9292 | installation can be obtained using
|
---|
9293 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
9294 | </desc>
|
---|
9295 | </attribute>
|
---|
9296 |
|
---|
9297 | <attribute name="type" type="MediumType">
|
---|
9298 | <desc>
|
---|
9299 | Type (role) of this medium.
|
---|
9300 |
|
---|
9301 | The following constraints apply when changing the value of this
|
---|
9302 | attribute:
|
---|
9303 | <ul>
|
---|
9304 | <li>If a medium is attached to a virtual machine (either in the
|
---|
9305 | current state or in one of the snapshots), its type cannot be
|
---|
9306 | changed.
|
---|
9307 | </li>
|
---|
9308 | <li>As long as the medium has children, its type cannot be set
|
---|
9309 | to <link to="MediumType_Writethrough"/>.
|
---|
9310 | </li>
|
---|
9311 | <li>The type of all differencing media is
|
---|
9312 | <link to="MediumType_Normal"/> and cannot be changed.
|
---|
9313 | </li>
|
---|
9314 | </ul>
|
---|
9315 |
|
---|
9316 | The type of a newly created or opened medium is set to
|
---|
9317 | <link to="MediumType_Normal"/>, except for DVD and floppy media,
|
---|
9318 | which have a type of <link to="MediumType_Writethrough"/>.
|
---|
9319 | </desc>
|
---|
9320 | </attribute>
|
---|
9321 |
|
---|
9322 | <attribute name="parent" type="IMedium" readonly="yes">
|
---|
9323 | <desc>
|
---|
9324 | Parent of this medium (the medium this medium is directly based
|
---|
9325 | on).
|
---|
9326 |
|
---|
9327 | Only differencing media have parents. For base (non-differencing)
|
---|
9328 | media, @c null is returned.
|
---|
9329 | </desc>
|
---|
9330 | </attribute>
|
---|
9331 |
|
---|
9332 | <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
|
---|
9333 | <desc>
|
---|
9334 | Children of this medium (all differencing media directly based
|
---|
9335 | on this medium). A @c null array is returned if this medium
|
---|
9336 | does not have any children.
|
---|
9337 | </desc>
|
---|
9338 | </attribute>
|
---|
9339 |
|
---|
9340 | <attribute name="base" type="IMedium" readonly="yes">
|
---|
9341 | <desc>
|
---|
9342 | Base medium of this medium.
|
---|
9343 |
|
---|
9344 | If this is a differencing medium, its base medium is the medium
|
---|
9345 | the given medium branch starts from. For all other types of media, this
|
---|
9346 | property returns the medium object itself (i.e. the same object this
|
---|
9347 | property is read on).
|
---|
9348 | </desc>
|
---|
9349 | </attribute>
|
---|
9350 |
|
---|
9351 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
9352 | <desc>
|
---|
9353 | Returns @c true if this medium is read-only and @c false otherwise.
|
---|
9354 |
|
---|
9355 | A medium is considered to be read-only when its contents cannot be
|
---|
9356 | modified without breaking the integrity of other parties that depend on
|
---|
9357 | this medium such as its child media or snapshots of virtual machines
|
---|
9358 | where this medium is attached to these machines. If there are no
|
---|
9359 | children and no such snapshots then there is no dependency and the
|
---|
9360 | medium is not read-only.
|
---|
9361 |
|
---|
9362 | The value of this attribute can be used to determine the kind of the
|
---|
9363 | attachment that will take place when attaching this medium to a
|
---|
9364 | virtual machine. If the value is @c false then the medium will
|
---|
9365 | be attached directly. If the value is @c true then the medium
|
---|
9366 | will be attached indirectly by creating a new differencing child
|
---|
9367 | medium for that. See the interface description for more information.
|
---|
9368 |
|
---|
9369 | Note that all <link to="MediumType_Immutable">Immutable</link> media
|
---|
9370 | are always read-only while all
|
---|
9371 | <link to="MediumType_Writethrough">Writethrough</link> media are
|
---|
9372 | always not.
|
---|
9373 |
|
---|
9374 | <note>
|
---|
9375 | The read-only condition represented by this attribute is related to
|
---|
9376 | the medium type and usage, not to the current
|
---|
9377 | <link to="IMedium::state">medium state</link> and not to the read-only
|
---|
9378 | state of the storage unit.
|
---|
9379 | </note>
|
---|
9380 | </desc>
|
---|
9381 | </attribute>
|
---|
9382 |
|
---|
9383 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
9384 | <desc>
|
---|
9385 | Logical size of this medium (in megabytes), as reported to the
|
---|
9386 | guest OS running inside the virtual machine this medium is
|
---|
9387 | attached to. The logical size is defined when the medium is created
|
---|
9388 | and cannot be changed later.
|
---|
9389 |
|
---|
9390 | <note>
|
---|
9391 | Reading this property on a differencing medium will return the size
|
---|
9392 | of its <link to="#base"/> medium.
|
---|
9393 | </note>
|
---|
9394 | <note>
|
---|
9395 | For media whose state is <link to="#state"/> is <link
|
---|
9396 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9397 | last known logical size. For <link to="MediumaState_NotCreated"/>
|
---|
9398 | media, the returned value is zero.
|
---|
9399 | </note>
|
---|
9400 | </desc>
|
---|
9401 | </attribute>
|
---|
9402 |
|
---|
9403 | <attribute name="autoReset" type="boolean">
|
---|
9404 | <desc>
|
---|
9405 | Whether this differencing medium will be automatically reset each
|
---|
9406 | time a virtual machine it is attached to is powered up. This
|
---|
9407 | attribute is automatically set to @c true for the last
|
---|
9408 | differencing image of an "immutable" medium (see
|
---|
9409 | <link to="MediumType" />).
|
---|
9410 |
|
---|
9411 | See <link to="#reset"/> for more information about resetting
|
---|
9412 | differencing media.
|
---|
9413 |
|
---|
9414 | <note>
|
---|
9415 | Reading this property on a base (non-differencing) medium will
|
---|
9416 | always @c false. Changing the value of this property in this
|
---|
9417 | case is not supported.
|
---|
9418 | </note>
|
---|
9419 |
|
---|
9420 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9421 | This is not a differencing medium (when changing the attribute
|
---|
9422 | value).
|
---|
9423 | </result>
|
---|
9424 | </desc>
|
---|
9425 | </attribute>
|
---|
9426 |
|
---|
9427 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
9428 | <desc>
|
---|
9429 | Text message that represents the result of the last accessibility
|
---|
9430 | check performed by <link to="#refreshState"/>.
|
---|
9431 |
|
---|
9432 | An empty string is returned if the last accessibility check
|
---|
9433 | was successful or has not yet been called. As a result, if
|
---|
9434 | <link to="#state" /> is "Inaccessible" and this attribute is empty,
|
---|
9435 | then <link to="#refreshState"/> has yet to be called; this is the
|
---|
9436 | default value of media after VirtualBox initialization.
|
---|
9437 | A non-empty string indicates a failure and should normally describe
|
---|
9438 | a reason of the failure (for example, a file read error).
|
---|
9439 | </desc>
|
---|
9440 | </attribute>
|
---|
9441 |
|
---|
9442 | <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
|
---|
9443 | <desc>
|
---|
9444 | Array of UUIDs of all machines this medium is attached to.
|
---|
9445 |
|
---|
9446 | A @c null array is returned if this medium is not attached to any
|
---|
9447 | machine or to any machine's snapshot.
|
---|
9448 |
|
---|
9449 | <note>
|
---|
9450 | The returned array will include a machine even if this medium is not
|
---|
9451 | attached to that machine in the current state but attached to it in
|
---|
9452 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
9453 | details.
|
---|
9454 | </note>
|
---|
9455 | </desc>
|
---|
9456 | </attribute>
|
---|
9457 |
|
---|
9458 | <method name="refreshState">
|
---|
9459 | <desc>
|
---|
9460 | If the current medium state (see <link to="MediumState"/>) is one of
|
---|
9461 | "Created", "Inaccessible" or "LockedRead", then this performs an
|
---|
9462 | accessibility check on the medium and sets the value of the <link to="#state"/>
|
---|
9463 | attribute accordingly; that value is also returned for convenience.
|
---|
9464 |
|
---|
9465 | For all other state values, this does not perform a refresh but returns
|
---|
9466 | the state only.
|
---|
9467 |
|
---|
9468 | The refresh, if performed, may take a long time (several seconds or even
|
---|
9469 | minutes, depending on the storage unit location and format) because it performs an
|
---|
9470 | accessibility check of the storage unit. This check may cause a significant
|
---|
9471 | delay if the storage unit of the given medium is, for example, a file located
|
---|
9472 | on a network share which is not currently accessible due to connectivity
|
---|
9473 | problems. In that case, the call will not return until a timeout
|
---|
9474 | interval defined by the host OS for this operation expires. For this reason,
|
---|
9475 | it is recommended to never read this attribute on the main UI thread to avoid
|
---|
9476 | making the UI unresponsive.
|
---|
9477 |
|
---|
9478 | If the last known state of the medium is "Created" and the accessibility
|
---|
9479 | check fails, then the state would be set to "Inaccessible", and
|
---|
9480 | <link to="#lastAccessError"/> may be used to get more details about the
|
---|
9481 | failure. If the state of the medium is "LockedRead", then it remains the
|
---|
9482 | same, and a non-empty value of <link to="#lastAccessError"/> will
|
---|
9483 | indicate a failed accessibility check in this case.
|
---|
9484 |
|
---|
9485 | Note that not all medium states are applicable to all medium types.
|
---|
9486 | </desc>
|
---|
9487 | <param name="state" type="MediumState" dir="return">
|
---|
9488 | <desc>
|
---|
9489 | New medium state.
|
---|
9490 | </desc>
|
---|
9491 | </param>
|
---|
9492 | </method>
|
---|
9493 |
|
---|
9494 | <method name="getSnapshotIds">
|
---|
9495 | <desc>
|
---|
9496 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
9497 | this medium is attached to.
|
---|
9498 |
|
---|
9499 | If the medium is attached to the machine in the current state, then the
|
---|
9500 | first element in the array will always be the ID of the queried machine
|
---|
9501 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
9502 | snapshot IDs (if any).
|
---|
9503 |
|
---|
9504 | If the medium is not attached to the machine in the current state, then
|
---|
9505 | the array will contain only snapshot IDs.
|
---|
9506 |
|
---|
9507 | The returned array may be @c null if this medium is not attached
|
---|
9508 | to the given machine at all, neither in the current state nor in one of
|
---|
9509 | the snapshots.
|
---|
9510 | </desc>
|
---|
9511 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
9512 | <desc>
|
---|
9513 | UUID of the machine to query.
|
---|
9514 | </desc>
|
---|
9515 | </param>
|
---|
9516 | <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
|
---|
9517 | <desc>
|
---|
9518 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
9519 | </desc>
|
---|
9520 | </param>
|
---|
9521 | </method>
|
---|
9522 |
|
---|
9523 | <method name="lockRead">
|
---|
9524 | <desc>
|
---|
9525 | Locks this medium for reading.
|
---|
9526 |
|
---|
9527 | A read lock is shared: many clients can simultaneously lock the
|
---|
9528 | same medium for reading unless it is already locked for writing (see
|
---|
9529 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
9530 |
|
---|
9531 | When the medium is locked for reading, it cannot be modified
|
---|
9532 | from within VirtualBox. This means that any method that changes
|
---|
9533 | the properties of this medium or contents of the storage unit
|
---|
9534 | will return an error (unless explicitly stated otherwise). That
|
---|
9535 | includes an attempt to start a virtual machine that wants to
|
---|
9536 | write to the the medium.
|
---|
9537 |
|
---|
9538 | When the virtual machine is started up, it locks for reading all
|
---|
9539 | media it uses in read-only mode. If some medium cannot be locked
|
---|
9540 | for reading, the startup procedure will fail.
|
---|
9541 | A medium is typically locked for reading while it is used by a running
|
---|
9542 | virtual machine but has a depending differencing image that receives
|
---|
9543 | the actual write operations. This way one base medium can have
|
---|
9544 | multiple child differencing images which can be written to
|
---|
9545 | simultaneously. Read-only media such as DVD and floppy images are
|
---|
9546 | also locked for reading only (so they can be in use by multiple
|
---|
9547 | machines simultaneously).
|
---|
9548 |
|
---|
9549 | A medium is also locked for reading when it is the source of a
|
---|
9550 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9551 |
|
---|
9552 | The medium locked for reading must be unlocked using the <link
|
---|
9553 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
9554 | can be nested and must be followed by the same number of paired
|
---|
9555 | <link to="#unlockRead"/> calls.
|
---|
9556 |
|
---|
9557 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9558 | "LockedRead" on success. The medium's previous state must be
|
---|
9559 | one of "Created", "Inaccessible" or "LockedRead".
|
---|
9560 |
|
---|
9561 | Locking an inaccessible medium is not an error; this method performs
|
---|
9562 | a logical lock that prevents modifications of this medium through
|
---|
9563 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9564 | storage unit.
|
---|
9565 |
|
---|
9566 | This method returns the current state of the medium
|
---|
9567 | <i>before</i> the operation.
|
---|
9568 |
|
---|
9569 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9570 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9571 | creating, deleting).
|
---|
9572 | </result>
|
---|
9573 |
|
---|
9574 | </desc>
|
---|
9575 | <param name="state" type="MediumState" dir="return">
|
---|
9576 | <desc>
|
---|
9577 | State of the medium after the operation.
|
---|
9578 | </desc>
|
---|
9579 | </param>
|
---|
9580 | </method>
|
---|
9581 |
|
---|
9582 | <method name="unlockRead">
|
---|
9583 | <desc>
|
---|
9584 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
9585 |
|
---|
9586 | For both success and failure, this method returns the current state
|
---|
9587 | of the medium <i>after</i> the operation.
|
---|
9588 |
|
---|
9589 | See <link to="#lockRead"/> for more details.
|
---|
9590 |
|
---|
9591 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9592 | Medium not locked for reading.
|
---|
9593 | </result>
|
---|
9594 |
|
---|
9595 | </desc>
|
---|
9596 | <param name="state" type="MediumState" dir="return">
|
---|
9597 | <desc>
|
---|
9598 | State of the medium after the operation.
|
---|
9599 | </desc>
|
---|
9600 | </param>
|
---|
9601 | </method>
|
---|
9602 |
|
---|
9603 | <method name="lockWrite">
|
---|
9604 | <desc>
|
---|
9605 | Locks this medium for writing.
|
---|
9606 |
|
---|
9607 | A write lock, as opposed to <link to="#lockRead"/>, is
|
---|
9608 | exclusive: there may be only one client holding a write lock,
|
---|
9609 | and there may be no read locks while the write lock is held.
|
---|
9610 | As a result, read-locking fails if a write lock is held, and
|
---|
9611 | write-locking fails if either a read or another write lock is held.
|
---|
9612 |
|
---|
9613 | When a medium is locked for writing, it cannot be modified
|
---|
9614 | from within VirtualBox, and it is not guaranteed that the values
|
---|
9615 | of its properties are up-to-date. Any method that changes the
|
---|
9616 | properties of this medium or contents of the storage unit will
|
---|
9617 | return an error (unless explicitly stated otherwise).
|
---|
9618 |
|
---|
9619 | When a virtual machine is started up, it locks for writing all
|
---|
9620 | media it uses to write data to. If any medium could not be locked
|
---|
9621 | for writing, the startup procedure will fail. If a medium has
|
---|
9622 | differencing images, then while the machine is running, only
|
---|
9623 | the last ("leaf") differencing image is locked for writing,
|
---|
9624 | whereas its parents are locked for reading only.
|
---|
9625 |
|
---|
9626 | A medium is also locked for writing when it is the target of a
|
---|
9627 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9628 |
|
---|
9629 | The medium locked for writing must be unlocked using the <link
|
---|
9630 | to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
|
---|
9631 |
|
---|
9632 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9633 | "LockedWrite" on success. The medium's previous state must be
|
---|
9634 | either "Created" or "Inaccessible".
|
---|
9635 |
|
---|
9636 | Locking an inaccessible medium is not an error; this method performs
|
---|
9637 | a logical lock that prevents modifications of this medium through
|
---|
9638 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9639 | storage unit.
|
---|
9640 |
|
---|
9641 | For both, success and failure, this method returns the current
|
---|
9642 | state of the medium <i>before</i> the operation.
|
---|
9643 |
|
---|
9644 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9645 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9646 | creating, deleting).
|
---|
9647 | </result>
|
---|
9648 |
|
---|
9649 | </desc>
|
---|
9650 | <param name="state" type="MediumState" dir="return">
|
---|
9651 | <desc>
|
---|
9652 | State of the medium after the operation.
|
---|
9653 | </desc>
|
---|
9654 | </param>
|
---|
9655 | </method>
|
---|
9656 |
|
---|
9657 | <method name="unlockWrite">
|
---|
9658 | <desc>
|
---|
9659 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
9660 |
|
---|
9661 | For both success and failure, this method returns the current
|
---|
9662 | state of the medium <i>after</i> the operation.
|
---|
9663 |
|
---|
9664 | See <link to="#lockWrite"/> for more details.
|
---|
9665 |
|
---|
9666 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9667 | Medium not locked for writing.
|
---|
9668 | </result>
|
---|
9669 |
|
---|
9670 | </desc>
|
---|
9671 | <param name="state" type="MediumState" dir="return">
|
---|
9672 | <desc>
|
---|
9673 | State of the medium after the operation.
|
---|
9674 | </desc>
|
---|
9675 | </param>
|
---|
9676 | </method>
|
---|
9677 |
|
---|
9678 | <method name="close">
|
---|
9679 | <desc>
|
---|
9680 | Closes this medium.
|
---|
9681 |
|
---|
9682 | The medium must not be attached to any known virtual machine
|
---|
9683 | and must not have any known child media, otherwise the
|
---|
9684 | operation will fail.
|
---|
9685 |
|
---|
9686 | When the medium is successfully closed, it gets removed from
|
---|
9687 | the list of remembered media, but its storage unit is not
|
---|
9688 | deleted. In particular, this means that this medium can be
|
---|
9689 | later opened again using the <link
|
---|
9690 | to="IVirtualBox::openHardDisk"/> call.
|
---|
9691 |
|
---|
9692 | Note that after this method successfully returns, the given medium
|
---|
9693 | object becomes uninitialized. This means that any attempt
|
---|
9694 | to call any of its methods or attributes will fail with the
|
---|
9695 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
9696 |
|
---|
9697 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9698 | Invalid medium state (other than not created, created or
|
---|
9699 | inaccessible).
|
---|
9700 | </result>
|
---|
9701 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9702 | Medium attached to virtual machine.
|
---|
9703 | </result>
|
---|
9704 | <result name="VBOX_E_FILE_ERROR">
|
---|
9705 | Settings file not accessible.
|
---|
9706 | </result>
|
---|
9707 | <result name="VBOX_E_XML_ERROR">
|
---|
9708 | Could not parse the settings file.
|
---|
9709 | </result>
|
---|
9710 |
|
---|
9711 | </desc>
|
---|
9712 | </method>
|
---|
9713 |
|
---|
9714 | <!-- storage methods -->
|
---|
9715 |
|
---|
9716 | <method name="getProperty">
|
---|
9717 | <desc>
|
---|
9718 | Returns the value of the custom medium property with the given name.
|
---|
9719 |
|
---|
9720 | The list of all properties supported by the given medium format can
|
---|
9721 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
9722 |
|
---|
9723 | Note that if this method returns an empty string in @a value, the
|
---|
9724 | requested property is supported but currently not assigned any value.
|
---|
9725 |
|
---|
9726 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9727 | Requested property does not exist (not supported by the format).
|
---|
9728 | </result>
|
---|
9729 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9730 | </desc>
|
---|
9731 | <param name="name" type="wstring" dir="in">
|
---|
9732 | <desc>Name of the property to get.</desc>
|
---|
9733 | </param>
|
---|
9734 | <param name="value" type="wstring" dir="return">
|
---|
9735 | <desc>Current property value.</desc>
|
---|
9736 | </param>
|
---|
9737 | </method>
|
---|
9738 |
|
---|
9739 | <method name="setProperty">
|
---|
9740 | <desc>
|
---|
9741 | Sets the value of the custom medium property with the given name.
|
---|
9742 |
|
---|
9743 | The list of all properties supported by the given medium format can
|
---|
9744 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
9745 |
|
---|
9746 | Note that setting the property value to @c null or an empty string is
|
---|
9747 | equivalent to deleting the existing value. A default value (if it is
|
---|
9748 | defined for this property) will be used by the format backend in this
|
---|
9749 | case.
|
---|
9750 |
|
---|
9751 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9752 | Requested property does not exist (not supported by the format).
|
---|
9753 | </result>
|
---|
9754 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9755 | </desc>
|
---|
9756 | <param name="name" type="wstring" dir="in">
|
---|
9757 | <desc>Name of the property to set.</desc>
|
---|
9758 | </param>
|
---|
9759 | <param name="value" type="wstring" dir="in">
|
---|
9760 | <desc>Property value to set.</desc>
|
---|
9761 | </param>
|
---|
9762 | </method>
|
---|
9763 |
|
---|
9764 | <method name="getProperties">
|
---|
9765 | <desc>
|
---|
9766 | Returns values for a group of properties in one call.
|
---|
9767 |
|
---|
9768 | The names of the properties to get are specified using the @a names
|
---|
9769 | argument which is a list of comma-separated property names or
|
---|
9770 | an empty string if all properties are to be returned. Note that currently
|
---|
9771 | the value of this argument is ignored and the method always returns all
|
---|
9772 | existing properties.
|
---|
9773 |
|
---|
9774 | The list of all properties supported by the given medium format can
|
---|
9775 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
9776 |
|
---|
9777 | The method returns two arrays, the array of property names corresponding
|
---|
9778 | to the @a names argument and the current values of these properties.
|
---|
9779 | Both arrays have the same number of elements with each elemend at the
|
---|
9780 | given index in the first array corresponds to an element at the same
|
---|
9781 | index in the second array.
|
---|
9782 |
|
---|
9783 | Note that for properties that do not have assigned values,
|
---|
9784 | an empty string is returned at the appropriate index in the
|
---|
9785 | @a returnValues array.
|
---|
9786 |
|
---|
9787 | </desc>
|
---|
9788 | <param name="names" type="wstring" dir="in">
|
---|
9789 | <desc>
|
---|
9790 | Names of properties to get.
|
---|
9791 | </desc>
|
---|
9792 | </param>
|
---|
9793 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
9794 | <desc>Names of returned properties.</desc>
|
---|
9795 | </param>
|
---|
9796 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
9797 | <desc>Values of returned properties.</desc>
|
---|
9798 | </param>
|
---|
9799 | </method>
|
---|
9800 |
|
---|
9801 | <method name="setProperties">
|
---|
9802 | <desc>
|
---|
9803 | Sets values for a group of properties in one call.
|
---|
9804 |
|
---|
9805 | The names of the properties to set are passed in the @a names
|
---|
9806 | array along with the new values for them in the @a values array. Both
|
---|
9807 | arrays have the same number of elements with each elemend at the given
|
---|
9808 | index in the first array corresponding to an element at the same index
|
---|
9809 | in the second array.
|
---|
9810 |
|
---|
9811 | If there is at least one property name in @a names that is not valid,
|
---|
9812 | the method will fail before changing the values of any other properties
|
---|
9813 | from the @a names array.
|
---|
9814 |
|
---|
9815 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
9816 | need to set several properties at once since it will result into less
|
---|
9817 | IPC calls.
|
---|
9818 |
|
---|
9819 | The list of all properties supported by the given medium format can
|
---|
9820 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
9821 |
|
---|
9822 | Note that setting the property value to @c null or an empty string is
|
---|
9823 | equivalent to deleting the existing value. A default value (if it is
|
---|
9824 | defined for this property) will be used by the format backend in this
|
---|
9825 | case.
|
---|
9826 | </desc>
|
---|
9827 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
9828 | <desc>Names of properties to set.</desc>
|
---|
9829 | </param>
|
---|
9830 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
9831 | <desc>Values of properties to set.</desc>
|
---|
9832 | </param>
|
---|
9833 | </method>
|
---|
9834 |
|
---|
9835 | <!-- storage methods -->
|
---|
9836 |
|
---|
9837 | <method name="createBaseStorage">
|
---|
9838 | <desc>
|
---|
9839 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
9840 | to the variant flags) in in the background. The previous storage unit
|
---|
9841 | created for this object, if any, must first be deleted using
|
---|
9842 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
9843 |
|
---|
9844 | Before the operation starts, the medium is placed in
|
---|
9845 | <link to="MediumState_Creating"/> state. If the create operation
|
---|
9846 | fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
|
---|
9847 | state.
|
---|
9848 |
|
---|
9849 | After the returned progress object reports that the operation has
|
---|
9850 | successfully completed, the medium state will be set to <link
|
---|
9851 | to="MediumState_Created"/>, the medium will be remembered by this
|
---|
9852 | VirtualBox installation and may be attached to virtual machines.
|
---|
9853 |
|
---|
9854 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9855 | The variant of storage creation operation is not supported. See <link
|
---|
9856 | to="IMediumFormat::capabilities"/>.
|
---|
9857 | </result>
|
---|
9858 | </desc>
|
---|
9859 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
9860 | <desc>Maximum logical size of the medium in megabytes.</desc>
|
---|
9861 | </param>
|
---|
9862 | <param name="variant" type="MediumVariant" dir="in">
|
---|
9863 | <desc>Exact image variant which should be created.</desc>
|
---|
9864 | </param>
|
---|
9865 | <param name="progress" type="IProgress" dir="return">
|
---|
9866 | <desc>Progress object to track the operation completion.</desc>
|
---|
9867 | </param>
|
---|
9868 | </method>
|
---|
9869 |
|
---|
9870 | <method name="deleteStorage">
|
---|
9871 | <desc>
|
---|
9872 | Starts deleting the storage unit of this medium.
|
---|
9873 |
|
---|
9874 | The medium must not be attached to any known virtual machine and must
|
---|
9875 | not have any known child media, otherwise the operation will fail.
|
---|
9876 | It will also fail if there is no storage unit to delete or if deletion
|
---|
9877 | is already in progress, or if the medium is being in use (locked for
|
---|
9878 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
9879 | this operation to succeed is <link to="MediumState_Created"/>.
|
---|
9880 |
|
---|
9881 | Before the operation starts, the medium is placed in
|
---|
9882 | <link to="MediumState_Deleting"/> state and gets removed from the list
|
---|
9883 | of remembered hard disks (media registry). If the delete operation
|
---|
9884 | fails, the medium will be remembered again and placed back to
|
---|
9885 | <link to="MediumState_Created"/> state.
|
---|
9886 |
|
---|
9887 | After the returned progress object reports that the operation is
|
---|
9888 | complete, the medium state will be set to
|
---|
9889 | <link to="MediumState_NotCreated"/> and you will be able to use one of
|
---|
9890 | the storage creation methods to create it again.
|
---|
9891 |
|
---|
9892 | <see>#close()</see>
|
---|
9893 |
|
---|
9894 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9895 | Medium is attached to a virtual machine.
|
---|
9896 | </result>
|
---|
9897 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9898 | Storage deletion is not allowed because neither of storage creation
|
---|
9899 | operations are supported. See
|
---|
9900 | <link to="IMediumFormat::capabilities"/>.
|
---|
9901 | </result>
|
---|
9902 |
|
---|
9903 | <note>
|
---|
9904 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
9905 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
9906 | to answer this question.
|
---|
9907 | </note>
|
---|
9908 | </desc>
|
---|
9909 | <param name="progress" type="IProgress" dir="return">
|
---|
9910 | <desc>Progress object to track the operation completion.</desc>
|
---|
9911 | </param>
|
---|
9912 | </method>
|
---|
9913 |
|
---|
9914 | <!-- diff methods -->
|
---|
9915 |
|
---|
9916 | <method name="createDiffStorage">
|
---|
9917 | <desc>
|
---|
9918 | Starts creating an empty differencing storage unit based on this
|
---|
9919 | medium in the format and at the location defined by the @a target
|
---|
9920 | argument.
|
---|
9921 |
|
---|
9922 | The target medium must be in <link to="MediumState_NotCreated"/>
|
---|
9923 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
9924 | completion, this operation will set the type of the target medium to
|
---|
9925 | <link to="MediumType_Normal"/> and create a storage unit necessary to
|
---|
9926 | represent the differencing medium data in the given format (according
|
---|
9927 | to the storage format of the target object).
|
---|
9928 |
|
---|
9929 | After the returned progress object reports that the operation is
|
---|
9930 | successfully complete, the target medium gets remembered by this
|
---|
9931 | VirtualBox installation and may be attached to virtual machines.
|
---|
9932 |
|
---|
9933 | <note>
|
---|
9934 | The medium will be set to <link to="MediumState_LockedRead"/>
|
---|
9935 | state for the duration of this operation.
|
---|
9936 | </note>
|
---|
9937 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9938 | Medium not in @c NotCreated state.
|
---|
9939 | </result>
|
---|
9940 | </desc>
|
---|
9941 | <param name="target" type="IMedium" dir="in">
|
---|
9942 | <desc>Target medium.</desc>
|
---|
9943 | </param>
|
---|
9944 | <param name="variant" type="MediumVariant" dir="in">
|
---|
9945 | <desc>Exact image variant which should be created.</desc>
|
---|
9946 | </param>
|
---|
9947 | <param name="progress" type="IProgress" dir="return">
|
---|
9948 | <desc>Progress object to track the operation completion.</desc>
|
---|
9949 | </param>
|
---|
9950 | </method>
|
---|
9951 |
|
---|
9952 | <method name="mergeTo">
|
---|
9953 | <desc>
|
---|
9954 | Starts merging the contents of this medium and all intermediate
|
---|
9955 | differencing media in the chain to the given target medium.
|
---|
9956 |
|
---|
9957 | The target medium must be either a descendant of this medium or
|
---|
9958 | its ancestor (otherwise this method will immediately return a failure).
|
---|
9959 | It follows that there are two logical directions of the merge operation:
|
---|
9960 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
9961 | ancestor (<i>backward merge</i>). Let us consider the following medium
|
---|
9962 | chain:
|
---|
9963 |
|
---|
9964 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
9965 |
|
---|
9966 | Here, calling this method on the <tt>Base</tt> medium object with
|
---|
9967 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
9968 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
9969 | merge. Note that in both cases the contents of the resulting medium
|
---|
9970 | will be the same, the only difference is the medium object that takes
|
---|
9971 | the result of the merge operation. In case of the forward merge in the
|
---|
9972 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
9973 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
9974 | other words, the result of the operation is always stored in the target
|
---|
9975 | medium.
|
---|
9976 |
|
---|
9977 | Upon successful operation completion, the storage units of all media in
|
---|
9978 | the chain between this (source) medium and the target medium, including
|
---|
9979 | the source medium itself, will be automatically deleted and the
|
---|
9980 | relevant medium objects (including this medium) will become
|
---|
9981 | uninitialized. This means that any attempt to call any of
|
---|
9982 | their methods or attributes will fail with the
|
---|
9983 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
9984 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
9985 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
|
---|
9986 | Note that <tt>Diff_2</tt> in this case will become a base medium
|
---|
9987 | itself since it will no longer be based on any other medium.
|
---|
9988 |
|
---|
9989 | Considering the above, all of the following conditions must be met in
|
---|
9990 | order for the merge operation to succeed:
|
---|
9991 | <ul>
|
---|
9992 | <li>
|
---|
9993 | Neither this (source) medium nor any intermediate
|
---|
9994 | differencing medium in the chain between it and the target
|
---|
9995 | medium is attached to any virtual machine.
|
---|
9996 | </li>
|
---|
9997 | <li>
|
---|
9998 | Neither the source medium nor the target medium is an
|
---|
9999 | <link to="MediumType_Immutable"/> medium.
|
---|
10000 | </li>
|
---|
10001 | <li>
|
---|
10002 | The part of the medium tree from the source medium to the
|
---|
10003 | target medium is a linear chain, i.e. all medium in this
|
---|
10004 | chain have exactly one child which is the next medium in this
|
---|
10005 | chain. The only exception from this rule is the target medium in
|
---|
10006 | the forward merge operation; it is allowed to have any number of
|
---|
10007 | child media because the merge operation will not change its
|
---|
10008 | logical contents (as it is seen by the guest OS or by children).
|
---|
10009 | </li>
|
---|
10010 | <li>
|
---|
10011 | None of the involved media are in
|
---|
10012 | <link to="MediumState_LockedRead"/> or
|
---|
10013 | <link to="MediumState_LockedWrite"/> state.
|
---|
10014 | </li>
|
---|
10015 | </ul>
|
---|
10016 |
|
---|
10017 | <note>
|
---|
10018 | This (source) medium and all intermediates will be placed to <link
|
---|
10019 | to="MediumState_Deleting"/> state and the target medium will be
|
---|
10020 | placed to <link to="MediumState_LockedWrite"/> state and for the
|
---|
10021 | duration of this operation.
|
---|
10022 | </note>
|
---|
10023 | </desc>
|
---|
10024 | <param name="targetId" type="uuid" mod="string" dir="in">
|
---|
10025 | <desc>UUID of the target ancestor or descendant medium.</desc>
|
---|
10026 | </param>
|
---|
10027 | <param name="progress" type="IProgress" dir="return">
|
---|
10028 | <desc>Progress object to track the operation completion.</desc>
|
---|
10029 | </param>
|
---|
10030 | </method>
|
---|
10031 |
|
---|
10032 | <!-- clone method -->
|
---|
10033 |
|
---|
10034 | <method name="cloneTo">
|
---|
10035 | <desc>
|
---|
10036 | Starts creating a clone of this medium in the format and at the
|
---|
10037 | location defined by the @a target argument.
|
---|
10038 |
|
---|
10039 | The target medium must be either in <link to="MediumState_NotCreated"/>
|
---|
10040 | state (i.e. must not have an existing storage unit) or in
|
---|
10041 | <link to="MediumState_Created"/> state (i.e. created and not locked, and
|
---|
10042 | big enough to hold the data or else the copy will be partial). Upon
|
---|
10043 | successful completion, the cloned medium will contain exactly the
|
---|
10044 | same sector data as the medium being cloned, except that in the
|
---|
10045 | first case a new UUID for the clone will be randomly generated, and in
|
---|
10046 | the second case the UUID will remain unchanged.
|
---|
10047 |
|
---|
10048 | The @a parent argument defines which medium will be the parent
|
---|
10049 | of the clone. Passing a @c null reference indicates that the clone will
|
---|
10050 | be a base image, i.e. completely independent. It is possible to specify
|
---|
10051 | an arbitrary medium for this parameter, including the parent of the
|
---|
10052 | medium which is being cloned. Even cloning to a child of the source
|
---|
10053 | medium is possible. Note that when cloning to an existing image, the
|
---|
10054 | @a parent irgument is ignored.
|
---|
10055 |
|
---|
10056 | After the returned progress object reports that the operation is
|
---|
10057 | successfully complete, the target medium gets remembered by this
|
---|
10058 | VirtualBox installation and may be attached to virtual machines.
|
---|
10059 |
|
---|
10060 | <note>
|
---|
10061 | This medium will be placed to <link to="MediumState_LockedRead"/>
|
---|
10062 | state for the duration of this operation.
|
---|
10063 | </note>
|
---|
10064 | <result name="E_NOTIMPL">
|
---|
10065 | The specified cloning variant is not supported at the moment.
|
---|
10066 | </result>
|
---|
10067 | </desc>
|
---|
10068 | <param name="target" type="IMedium" dir="in">
|
---|
10069 | <desc>Target medium.</desc>
|
---|
10070 | </param>
|
---|
10071 | <param name="variant" type="MediumVariant" dir="in">
|
---|
10072 | <desc>Exact image variant which should be created.</desc>
|
---|
10073 | </param>
|
---|
10074 | <param name="parent" type="IMedium" dir="in">
|
---|
10075 | <desc>Parent of the cloned medium.</desc>
|
---|
10076 | </param>
|
---|
10077 | <param name="progress" type="IProgress" dir="return">
|
---|
10078 | <desc>Progress object to track the operation completion.</desc>
|
---|
10079 | </param>
|
---|
10080 | </method>
|
---|
10081 |
|
---|
10082 | <!-- other methods -->
|
---|
10083 |
|
---|
10084 | <method name="compact">
|
---|
10085 | <desc>
|
---|
10086 | Starts compacting of this medium. This means that the medium is
|
---|
10087 | transformed into a possibly more compact storage representation.
|
---|
10088 | This potentially creates temporary images, which can require a
|
---|
10089 | substantial amount of additional disk space.
|
---|
10090 |
|
---|
10091 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10092 | state and all its parent media (if any) will be placed to
|
---|
10093 | <link to="MediumState_LockedRead"/> state for the duration of this
|
---|
10094 | operation.
|
---|
10095 |
|
---|
10096 | Please note that the results can be either returned straight away,
|
---|
10097 | or later as the result of the background operation via the object
|
---|
10098 | returned via the @a progress parameter.
|
---|
10099 |
|
---|
10100 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10101 | Medium format does not support compacting (but potentially
|
---|
10102 | needs it).
|
---|
10103 | </result>
|
---|
10104 | </desc>
|
---|
10105 | <param name="progress" type="IProgress" dir="return">
|
---|
10106 | <desc>Progress object to track the operation completion.</desc>
|
---|
10107 | </param>
|
---|
10108 | </method>
|
---|
10109 |
|
---|
10110 | <method name="resize">
|
---|
10111 | <desc>
|
---|
10112 | Starts resizing this medium. This means that the nominal size of the
|
---|
10113 | medium is set to the new value. Both increasing and decreasing the
|
---|
10114 | size is possible, and there are no safety checks, since VirtualBox
|
---|
10115 | does not make any assumptions about the medium contents.
|
---|
10116 |
|
---|
10117 | Resizing usually needs additional disk space, and possibly also
|
---|
10118 | some temporary disk space. Note that resize does not create a full
|
---|
10119 | temporary copy of the medium, so the additional disk space requirement
|
---|
10120 | is usually much lower than using the clone operation.
|
---|
10121 |
|
---|
10122 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10123 | state for the duration of this operation.
|
---|
10124 |
|
---|
10125 | Please note that the results can be either returned straight away,
|
---|
10126 | or later as the result of the background operation via the object
|
---|
10127 | returned via the @a progress parameter.
|
---|
10128 |
|
---|
10129 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10130 | Medium format does not support resizing.
|
---|
10131 | </result>
|
---|
10132 | </desc>
|
---|
10133 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
10134 | <desc>New nominal capacity of the medium in megabytes.</desc>
|
---|
10135 | </param>
|
---|
10136 | <param name="progress" type="IProgress" dir="return">
|
---|
10137 | <desc>Progress object to track the operation completion.</desc>
|
---|
10138 | </param>
|
---|
10139 | </method>
|
---|
10140 |
|
---|
10141 | <method name="reset">
|
---|
10142 | <desc>
|
---|
10143 | Starts erasing the contents of this differencing medium.
|
---|
10144 |
|
---|
10145 | This operation will reset the differencing medium to its initial
|
---|
10146 | state when it does not contain any sector data and any read operation is
|
---|
10147 | redirected to its parent medium. This automatically gets called
|
---|
10148 | during VM power-up for every medium whose <link to="#autoReset" />
|
---|
10149 | attribute is @c true.
|
---|
10150 |
|
---|
10151 | The medium will be write-locked for the duration of this operation (see
|
---|
10152 | <link to="#lockWrite" />).
|
---|
10153 |
|
---|
10154 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10155 | This is not a differencing medium.
|
---|
10156 | </result>
|
---|
10157 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10158 | Medium is not in <link to="MediumState_Created"/> or
|
---|
10159 | <link to="MediumState_Inaccessible"/> state.
|
---|
10160 | </result>
|
---|
10161 | </desc>
|
---|
10162 | <param name="progress" type="IProgress" dir="return">
|
---|
10163 | <desc>Progress object to track the operation completion.</desc>
|
---|
10164 | </param>
|
---|
10165 | </method>
|
---|
10166 |
|
---|
10167 | </interface>
|
---|
10168 |
|
---|
10169 |
|
---|
10170 | <!--
|
---|
10171 | // IMediumFormat
|
---|
10172 | /////////////////////////////////////////////////////////////////////////
|
---|
10173 | -->
|
---|
10174 |
|
---|
10175 | <enum
|
---|
10176 | name="DataType"
|
---|
10177 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
10178 | >
|
---|
10179 | <const name="Int32" value="0"/>
|
---|
10180 | <const name="Int8" value="1"/>
|
---|
10181 | <const name="String" value="2"/>
|
---|
10182 | </enum>
|
---|
10183 |
|
---|
10184 | <enum
|
---|
10185 | name="DataFlags"
|
---|
10186 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
10187 | >
|
---|
10188 | <const name="None" value="0x00"/>
|
---|
10189 | <const name="Mandatory" value="0x01"/>
|
---|
10190 | <const name="Expert" value="0x02"/>
|
---|
10191 | <const name="Array" value="0x04"/>
|
---|
10192 | <const name="FlagMask" value="0x07"/>
|
---|
10193 | </enum>
|
---|
10194 |
|
---|
10195 | <enum
|
---|
10196 | name="MediumFormatCapabilities"
|
---|
10197 | uuid="70fcf810-99e8-4edc-aee4-7f51d489e657"
|
---|
10198 | >
|
---|
10199 | <desc>
|
---|
10200 | Medium format capability flags.
|
---|
10201 | </desc>
|
---|
10202 |
|
---|
10203 | <const name="Uuid" value="0x01">
|
---|
10204 | <desc>
|
---|
10205 | Supports UUIDs as expected by VirtualBox code.
|
---|
10206 | </desc>
|
---|
10207 | </const>
|
---|
10208 |
|
---|
10209 | <const name="CreateFixed" value="0x02">
|
---|
10210 | <desc>
|
---|
10211 | Supports creating fixed size images, allocating all space instantly.
|
---|
10212 | </desc>
|
---|
10213 | </const>
|
---|
10214 |
|
---|
10215 | <const name="CreateDynamic" value="0x04">
|
---|
10216 | <desc>
|
---|
10217 | Supports creating dynamically growing images, allocating space on
|
---|
10218 | demand.
|
---|
10219 | </desc>
|
---|
10220 | </const>
|
---|
10221 |
|
---|
10222 | <const name="CreateSplit2G" value="0x08">
|
---|
10223 | <desc>
|
---|
10224 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
10225 | </desc>
|
---|
10226 | </const>
|
---|
10227 |
|
---|
10228 | <const name="Differencing" value="0x10">
|
---|
10229 | <desc>
|
---|
10230 | Supports being used as a format for differencing media (see <link
|
---|
10231 | to="IMedium::createDiffStorage"/>).
|
---|
10232 | </desc>
|
---|
10233 | </const>
|
---|
10234 |
|
---|
10235 | <const name="Asynchronous" value="0x20">
|
---|
10236 | <desc>
|
---|
10237 | Supports asynchronous I/O operations for at least some configurations.
|
---|
10238 | </desc>
|
---|
10239 | </const>
|
---|
10240 |
|
---|
10241 | <const name="File" value="0x40">
|
---|
10242 | <desc>
|
---|
10243 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
10244 | attribute of the medium specifies a file used to store medium
|
---|
10245 | data; for a list of supported file extensions see
|
---|
10246 | <link to="IMediumFormat::fileExtensions"/>).
|
---|
10247 | </desc>
|
---|
10248 | </const>
|
---|
10249 |
|
---|
10250 | <const name="Properties" value="0x80">
|
---|
10251 | <desc>
|
---|
10252 | The format backend uses the property interface to configure the storage
|
---|
10253 | location and properties (the <link to="IMediumFormat::describeProperties"/>
|
---|
10254 | method is used to get access to properties supported by the given medium format).
|
---|
10255 | </desc>
|
---|
10256 | </const>
|
---|
10257 |
|
---|
10258 | <const name="CapabilityMask" value="0xFF"/>
|
---|
10259 | </enum>
|
---|
10260 |
|
---|
10261 | <interface
|
---|
10262 | name="IMediumFormat" extends="$unknown"
|
---|
10263 | uuid="89f52554-d469-4799-9fad-1705e86a08b1"
|
---|
10264 | wsmap="managed"
|
---|
10265 | >
|
---|
10266 | <desc>
|
---|
10267 | The IMediumFormat interface represents a medium format.
|
---|
10268 |
|
---|
10269 | Each medium format has an associated backend which is used to handle
|
---|
10270 | media stored in this format. This interface provides information
|
---|
10271 | about the properties of the associated backend.
|
---|
10272 |
|
---|
10273 | Each medium format is identified by a string represented by the
|
---|
10274 | <link to="#id"/> attribute. This string is used in calls like
|
---|
10275 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
10276 | format.
|
---|
10277 |
|
---|
10278 | The list of all supported medium formats can be obtained using
|
---|
10279 | <link to="ISystemProperties::mediaFormats"/>.
|
---|
10280 |
|
---|
10281 | <see>IMedium</see>
|
---|
10282 | </desc>
|
---|
10283 |
|
---|
10284 | <attribute name="id" type="wstring" readonly="yes">
|
---|
10285 | <desc>
|
---|
10286 | Identifier of this format.
|
---|
10287 |
|
---|
10288 | The format identifier is a non-@c null non-empty ASCII string. Note that
|
---|
10289 | this string is case-insensitive. This means that, for example, all of
|
---|
10290 | the following strings:
|
---|
10291 | <pre>
|
---|
10292 | "VDI"
|
---|
10293 | "vdi"
|
---|
10294 | "VdI"</pre>
|
---|
10295 | refer to the same medium format.
|
---|
10296 |
|
---|
10297 | This string is used in methods of other interfaces where it is necessary
|
---|
10298 | to specify a medium format, such as
|
---|
10299 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
10300 | </desc>
|
---|
10301 | </attribute>
|
---|
10302 |
|
---|
10303 | <attribute name="name" type="wstring" readonly="yes">
|
---|
10304 | <desc>
|
---|
10305 | Human readable description of this format.
|
---|
10306 |
|
---|
10307 | Mainly for use in file open dialogs.
|
---|
10308 | </desc>
|
---|
10309 | </attribute>
|
---|
10310 |
|
---|
10311 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
10312 | <desc>
|
---|
10313 | Array of strings containing the supported file extensions.
|
---|
10314 |
|
---|
10315 | The first extension in the array is the extension preferred by the
|
---|
10316 | backend. It is recommended to use this extension when specifying a
|
---|
10317 | location of the storage unit for a new medium.
|
---|
10318 |
|
---|
10319 | Note that some backends do not work on files, so this array may be
|
---|
10320 | empty.
|
---|
10321 |
|
---|
10322 | <see>IMediumFormat::capabilities</see>
|
---|
10323 | </desc>
|
---|
10324 | </attribute>
|
---|
10325 |
|
---|
10326 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
10327 | <desc>
|
---|
10328 | Capabilities of the format as a set of bit flags.
|
---|
10329 |
|
---|
10330 | For the meaning of individual capability flags see
|
---|
10331 | <link to="MediumFormatCapabilities"/>.
|
---|
10332 | </desc>
|
---|
10333 | </attribute>
|
---|
10334 |
|
---|
10335 | <method name="describeProperties">
|
---|
10336 | <desc>
|
---|
10337 | Returns several arrays describing the properties supported by this
|
---|
10338 | format.
|
---|
10339 |
|
---|
10340 | An element with the given index in each array describes one
|
---|
10341 | property. Thus, the number of elements in each returned array is the
|
---|
10342 | same and corresponds to the number of supported properties.
|
---|
10343 |
|
---|
10344 | The returned arrays are filled in only if the
|
---|
10345 | <link to="MediumFormatCapabilities_Properties"/> flag is set.
|
---|
10346 | All arguments must be non-@c null.
|
---|
10347 |
|
---|
10348 | <see>DataType</see>
|
---|
10349 | <see>DataFlags</see>
|
---|
10350 | </desc>
|
---|
10351 |
|
---|
10352 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
10353 | <desc>Array of property names.</desc>
|
---|
10354 | </param>
|
---|
10355 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
10356 | <desc>Array of property descriptions.</desc>
|
---|
10357 | </param>
|
---|
10358 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
10359 | <desc>Array of property types.</desc>
|
---|
10360 | </param>
|
---|
10361 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
10362 | <desc>Array of property flags.</desc>
|
---|
10363 | </param>
|
---|
10364 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
10365 | <desc>Array of default property values.</desc>
|
---|
10366 | </param>
|
---|
10367 | </method>
|
---|
10368 |
|
---|
10369 | </interface>
|
---|
10370 |
|
---|
10371 |
|
---|
10372 | <!--
|
---|
10373 | // IKeyboard
|
---|
10374 | /////////////////////////////////////////////////////////////////////////
|
---|
10375 | -->
|
---|
10376 |
|
---|
10377 | <interface
|
---|
10378 | name="IKeyboard" extends="$unknown"
|
---|
10379 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
10380 | wsmap="managed"
|
---|
10381 | >
|
---|
10382 | <desc>
|
---|
10383 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
10384 | in <link to="IConsole::keyboard"/>.
|
---|
10385 |
|
---|
10386 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
10387 | to the virtual machine.
|
---|
10388 |
|
---|
10389 | </desc>
|
---|
10390 | <method name="putScancode">
|
---|
10391 | <desc>Sends a scancode to the keyboard.
|
---|
10392 |
|
---|
10393 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10394 | Could not send scan code to virtual keyboard.
|
---|
10395 | </result>
|
---|
10396 |
|
---|
10397 | </desc>
|
---|
10398 | <param name="scancode" type="long" dir="in"/>
|
---|
10399 | </method>
|
---|
10400 |
|
---|
10401 | <method name="putScancodes">
|
---|
10402 | <desc>Sends an array of scancodes to the keyboard.
|
---|
10403 |
|
---|
10404 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10405 | Could not send all scan codes to virtual keyboard.
|
---|
10406 | </result>
|
---|
10407 |
|
---|
10408 | </desc>
|
---|
10409 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
10410 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
10411 | </method>
|
---|
10412 |
|
---|
10413 | <method name="putCAD">
|
---|
10414 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
10415 | function is nothing special, it is just a convenience function
|
---|
10416 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
10417 |
|
---|
10418 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10419 | Could not send all scan codes to virtual keyboard.
|
---|
10420 | </result>
|
---|
10421 |
|
---|
10422 | </desc>
|
---|
10423 | </method>
|
---|
10424 |
|
---|
10425 | </interface>
|
---|
10426 |
|
---|
10427 |
|
---|
10428 | <!--
|
---|
10429 | // IMouse
|
---|
10430 | /////////////////////////////////////////////////////////////////////////
|
---|
10431 | -->
|
---|
10432 |
|
---|
10433 | <enum
|
---|
10434 | name="MouseButtonState"
|
---|
10435 | uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
|
---|
10436 | >
|
---|
10437 | <desc>
|
---|
10438 | Mouse button state.
|
---|
10439 | </desc>
|
---|
10440 |
|
---|
10441 | <const name="LeftButton" value="0x01"/>
|
---|
10442 | <const name="RightButton" value="0x02"/>
|
---|
10443 | <const name="MiddleButton" value="0x04"/>
|
---|
10444 | <const name="WheelUp" value="0x08"/>
|
---|
10445 | <const name="WheelDown" value="0x10"/>
|
---|
10446 | <const name="XButton1" value="0x20"/>
|
---|
10447 | <const name="XButton2" value="0x40"/>
|
---|
10448 | <const name="MouseStateMask" value="0x7F"/>
|
---|
10449 | </enum>
|
---|
10450 |
|
---|
10451 | <interface
|
---|
10452 | name="IMouse" extends="$unknown"
|
---|
10453 | uuid="7c0f2eae-f92d-498c-b802-e1a3763774dc"
|
---|
10454 | wsmap="managed"
|
---|
10455 | >
|
---|
10456 | <desc>
|
---|
10457 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
10458 | <link to="IConsole::mouse"/>.
|
---|
10459 |
|
---|
10460 | Through this interface, the virtual machine's virtual mouse can be
|
---|
10461 | controlled.
|
---|
10462 | </desc>
|
---|
10463 |
|
---|
10464 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
10465 | <desc>
|
---|
10466 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
10467 | or not.
|
---|
10468 | <note>
|
---|
10469 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
10470 | in order to enable absolute mouse positioning support.
|
---|
10471 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10472 | callback to be instantly informed about changes of this attribute
|
---|
10473 | during virtual machine execution.
|
---|
10474 | </note>
|
---|
10475 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
10476 | </desc>
|
---|
10477 | </attribute>
|
---|
10478 |
|
---|
10479 | <method name="putMouseEvent">
|
---|
10480 | <desc>
|
---|
10481 | Initiates a mouse event using relative pointer movements
|
---|
10482 | along x and y axis.
|
---|
10483 |
|
---|
10484 | <result name="E_ACCESSDENIED">
|
---|
10485 | Console not powered up.
|
---|
10486 | </result>
|
---|
10487 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10488 | Could not send mouse event to virtual mouse.
|
---|
10489 | </result>
|
---|
10490 |
|
---|
10491 | </desc>
|
---|
10492 |
|
---|
10493 | <param name="dx" type="long" dir="in">
|
---|
10494 | <desc>
|
---|
10495 | Amount of pixels the mouse should move to the right.
|
---|
10496 | Negative values move the mouse to the left.
|
---|
10497 | </desc>
|
---|
10498 | </param>
|
---|
10499 | <param name="dy" type="long" dir="in">
|
---|
10500 | <desc>
|
---|
10501 | Amount of pixels the mouse should move downwards.
|
---|
10502 | Negative values move the mouse upwards.
|
---|
10503 | </desc>
|
---|
10504 | </param>
|
---|
10505 | <param name="dz" type="long" dir="in">
|
---|
10506 | <desc>
|
---|
10507 | Amount of mouse wheel moves.
|
---|
10508 | Positive values describe clockwise wheel rotations,
|
---|
10509 | negative values describe counterclockwise rotations.
|
---|
10510 | </desc>
|
---|
10511 | </param>
|
---|
10512 | <param name="dw" type="long" dir="in">
|
---|
10513 | <desc>
|
---|
10514 | Amount of horizontal mouse wheel moves.
|
---|
10515 | Positive values describe a movement to the left,
|
---|
10516 | negative values describe a movement to the right.
|
---|
10517 | </desc>
|
---|
10518 | </param>
|
---|
10519 | <param name="buttonState" type="long" dir="in">
|
---|
10520 | <desc>
|
---|
10521 | The current state of mouse buttons. Every bit represents
|
---|
10522 | a mouse button as follows:
|
---|
10523 | <table>
|
---|
10524 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10525 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10526 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10527 | </table>
|
---|
10528 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10529 | otherwise it is released.
|
---|
10530 | </desc>
|
---|
10531 | </param>
|
---|
10532 | </method>
|
---|
10533 |
|
---|
10534 | <method name="putMouseEventAbsolute">
|
---|
10535 | <desc>
|
---|
10536 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10537 | These coordinates are expressed in pixels and
|
---|
10538 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10539 | corner of the virtual display.
|
---|
10540 |
|
---|
10541 | <result name="E_ACCESSDENIED">
|
---|
10542 | Console not powered up.
|
---|
10543 | </result>
|
---|
10544 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10545 | Could not send mouse event to virtual mouse.
|
---|
10546 | </result>
|
---|
10547 |
|
---|
10548 | <note>
|
---|
10549 | This method will have effect only if absolute mouse
|
---|
10550 | positioning is supported by the guest OS.
|
---|
10551 | </note>
|
---|
10552 |
|
---|
10553 | <see><link to="#absoluteSupported"/></see>
|
---|
10554 | </desc>
|
---|
10555 |
|
---|
10556 | <param name="x" type="long" dir="in">
|
---|
10557 | <desc>
|
---|
10558 | X coordinate of the pointer in pixels, starting from @c 1.
|
---|
10559 | </desc>
|
---|
10560 | </param>
|
---|
10561 | <param name="y" type="long" dir="in">
|
---|
10562 | <desc>
|
---|
10563 | Y coordinate of the pointer in pixels, starting from @c 1.
|
---|
10564 | </desc>
|
---|
10565 | </param>
|
---|
10566 | <param name="dz" type="long" dir="in">
|
---|
10567 | <desc>
|
---|
10568 | Amount of mouse wheel moves.
|
---|
10569 | Positive values describe clockwise wheel rotations,
|
---|
10570 | negative values describe counterclockwise rotations.
|
---|
10571 | </desc>
|
---|
10572 | </param>
|
---|
10573 | <param name="dw" type="long" dir="in">
|
---|
10574 | <desc>
|
---|
10575 | Amount of horizontal mouse wheel moves.
|
---|
10576 | Positive values describe a movement to the left,
|
---|
10577 | negative values describe a movement to the right.
|
---|
10578 | </desc>
|
---|
10579 | </param>
|
---|
10580 | <param name="buttonState" type="long" dir="in">
|
---|
10581 | <desc>
|
---|
10582 | The current state of mouse buttons. Every bit represents
|
---|
10583 | a mouse button as follows:
|
---|
10584 | <table>
|
---|
10585 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10586 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10587 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10588 | </table>
|
---|
10589 | A value of @c 1 means the corresponding button is pressed.
|
---|
10590 | otherwise it is released.
|
---|
10591 | </desc>
|
---|
10592 | </param>
|
---|
10593 | </method>
|
---|
10594 |
|
---|
10595 | </interface>
|
---|
10596 |
|
---|
10597 | <!--
|
---|
10598 | // IDisplay
|
---|
10599 | /////////////////////////////////////////////////////////////////////////
|
---|
10600 | -->
|
---|
10601 |
|
---|
10602 | <enum
|
---|
10603 | name="FramebufferPixelFormat"
|
---|
10604 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10605 | >
|
---|
10606 | <desc>
|
---|
10607 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10608 | be used to test for particular values of <link
|
---|
10609 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10610 | to="IFramebuffer::requestResize"/>.
|
---|
10611 |
|
---|
10612 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10613 | </desc>
|
---|
10614 |
|
---|
10615 | <const name="Opaque" value="0">
|
---|
10616 | <desc>
|
---|
10617 | Unknown buffer format (the user may not assume any particular format of
|
---|
10618 | the buffer).
|
---|
10619 | </desc>
|
---|
10620 | </const>
|
---|
10621 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10622 | <desc>
|
---|
10623 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10624 | bit layout).
|
---|
10625 | </desc>
|
---|
10626 | </const>
|
---|
10627 | </enum>
|
---|
10628 |
|
---|
10629 | <interface
|
---|
10630 | name="IFramebuffer" extends="$unknown"
|
---|
10631 | uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
|
---|
10632 | wsmap="suppress"
|
---|
10633 | >
|
---|
10634 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
10635 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
10636 | </attribute>
|
---|
10637 |
|
---|
10638 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10639 | <desc>Frame buffer width, in pixels.</desc>
|
---|
10640 | </attribute>
|
---|
10641 |
|
---|
10642 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10643 | <desc>Frame buffer height, in pixels.</desc>
|
---|
10644 | </attribute>
|
---|
10645 |
|
---|
10646 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10647 | <desc>
|
---|
10648 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
10649 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
10650 | are: 8, 15, 16, 24 and 32.
|
---|
10651 | </desc>
|
---|
10652 | </attribute>
|
---|
10653 |
|
---|
10654 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
10655 | <desc>
|
---|
10656 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
10657 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
10658 | size of the scan line must be aligned to 32 bits.
|
---|
10659 | </desc>
|
---|
10660 | </attribute>
|
---|
10661 |
|
---|
10662 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
10663 | <desc>
|
---|
10664 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
10665 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
10666 | <note>
|
---|
10667 | This attribute must never return <link
|
---|
10668 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
10669 | <link to="#address"/> points to must be always known.
|
---|
10670 | </note>
|
---|
10671 | </desc>
|
---|
10672 | </attribute>
|
---|
10673 |
|
---|
10674 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
10675 | <desc>
|
---|
10676 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
10677 | buffer (guest VRAM) directly or not. See <link
|
---|
10678 | to="IFramebuffer::requestResize"/> for more information.
|
---|
10679 | </desc>
|
---|
10680 | </attribute>
|
---|
10681 |
|
---|
10682 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
10683 | <desc>
|
---|
10684 | Hint from the frame buffer about how much of the standard
|
---|
10685 | screen height it wants to use for itself. This information is
|
---|
10686 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
10687 | so that it can use it for determining its video mode table. It
|
---|
10688 | is not guaranteed that the guest respects the value.
|
---|
10689 | </desc>
|
---|
10690 | </attribute>
|
---|
10691 |
|
---|
10692 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
10693 | <desc>
|
---|
10694 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
10695 | The initial purpose is to allow the display of icons providing
|
---|
10696 | information about the VM state, including disk activity, in front
|
---|
10697 | ends which do not have other means of doing that. The overlay is
|
---|
10698 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
10699 | of its own, and any changes made to it are not guaranteed to be
|
---|
10700 | visible until the affected portion of IFramebuffer is updated. The
|
---|
10701 | overlay can be created lazily the first time it is requested. This
|
---|
10702 | attribute can also return @c null to signal that the overlay is not
|
---|
10703 | implemented.
|
---|
10704 | </desc>
|
---|
10705 | </attribute>
|
---|
10706 |
|
---|
10707 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
10708 | <desc>
|
---|
10709 | Platform-dependent identifier of the window where context of this
|
---|
10710 | frame buffer is drawn, or zero if there's no such window.
|
---|
10711 | </desc>
|
---|
10712 | </attribute>
|
---|
10713 |
|
---|
10714 | <method name="lock">
|
---|
10715 | <desc>
|
---|
10716 | Locks the frame buffer.
|
---|
10717 | Gets called by the IDisplay object where this frame buffer is
|
---|
10718 | bound to.
|
---|
10719 | </desc>
|
---|
10720 | </method>
|
---|
10721 |
|
---|
10722 | <method name="unlock">
|
---|
10723 | <desc>
|
---|
10724 | Unlocks the frame buffer.
|
---|
10725 | Gets called by the IDisplay object where this frame buffer is
|
---|
10726 | bound to.
|
---|
10727 | </desc>
|
---|
10728 | </method>
|
---|
10729 |
|
---|
10730 | <method name="notifyUpdate">
|
---|
10731 | <desc>
|
---|
10732 | Informs about an update.
|
---|
10733 | Gets called by the display object where this buffer is
|
---|
10734 | registered.
|
---|
10735 | </desc>
|
---|
10736 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10737 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10738 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10739 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10740 | </method>
|
---|
10741 |
|
---|
10742 | <method name="requestResize">
|
---|
10743 | <desc>
|
---|
10744 | Requests a size and pixel format change.
|
---|
10745 |
|
---|
10746 | There are two modes of working with the video buffer of the virtual
|
---|
10747 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
10748 | implementation allocates a memory buffer for the requested display mode
|
---|
10749 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
10750 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
10751 | by the virtual machine. This buffer represents the video memory of the
|
---|
10752 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
10753 | usually faster because the implementation gets a raw pointer to the
|
---|
10754 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
10755 | of the virtual display, as opposed to the indirect mode where the
|
---|
10756 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
10757 | the implementation every time a display update occurs.
|
---|
10758 |
|
---|
10759 | It is important to note that the direct mode is really fast only when
|
---|
10760 | the implementation uses the given guest VRAM buffer directly, for
|
---|
10761 | example, by blitting it to the window representing the virtual machine's
|
---|
10762 | display, which saves at least one copy operation comparing to the
|
---|
10763 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
10764 | always possible: the format and the color depth of this buffer may be
|
---|
10765 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
10766 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
10767 | the indirect mode (that is always available) should be used as a
|
---|
10768 | fallback: when the guest VRAM contents are copied to the
|
---|
10769 | implementation-provided memory buffer, color and format conversion is
|
---|
10770 | done automatically by the underlying code.
|
---|
10771 |
|
---|
10772 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
10773 | available or not. If @a pixelFormat is <link
|
---|
10774 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
10775 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
10776 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
10777 | the indirect mode (where it provides its own buffer in one of the
|
---|
10778 | supported formats). In all other cases, @a pixelFormat together with
|
---|
10779 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
10780 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
10781 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
10782 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
10783 | attribute must return @c true and <link to="#address"/> must
|
---|
10784 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
10785 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
10786 | chosen.
|
---|
10787 |
|
---|
10788 | The @a width and @a height parameters represent the size of the
|
---|
10789 | requested display mode in both modes. In case of indirect mode, the
|
---|
10790 | provided memory buffer should be big enough to store data of the given
|
---|
10791 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
10792 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
10793 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
10794 | to="#height"/> attributes must return exactly the same values as
|
---|
10795 | passed to this method after the resize is completed (see below).
|
---|
10796 |
|
---|
10797 | The @a finished output parameter determines if the implementation has
|
---|
10798 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
10799 | resize cannot be finished immediately during this call, @a finished
|
---|
10800 | must be set to @c false, and the implementation must call
|
---|
10801 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
10802 | this method as soon as possible. If @a finished is @c false, the
|
---|
10803 | machine will not call any frame buffer methods until
|
---|
10804 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10805 |
|
---|
10806 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
10807 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
10808 | this frame buffer must return exactly the same values as specified in the
|
---|
10809 | parameters of this method, after the resize is completed. If the
|
---|
10810 | indirect mode is chosen, these attributes must return values describing
|
---|
10811 | the format of the implementation's own memory buffer <link
|
---|
10812 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
10813 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
10814 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
10815 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
10816 |
|
---|
10817 | <note>
|
---|
10818 | This method is called by the IDisplay object under the
|
---|
10819 | <link to="#lock"/> provided by this IFramebuffer
|
---|
10820 | implementation. If this method returns @c false in @a finished, then
|
---|
10821 | this lock is not released until
|
---|
10822 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10823 | </note>
|
---|
10824 | </desc>
|
---|
10825 | <param name="screenId" type="unsigned long" dir="in">
|
---|
10826 | <desc>
|
---|
10827 | Logical screen number. Must be used in the corresponding call to
|
---|
10828 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
10829 | </desc>
|
---|
10830 | </param>
|
---|
10831 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
10832 | <desc>
|
---|
10833 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
10834 | See also <link to="FramebufferPixelFormat"/>.
|
---|
10835 | </desc>
|
---|
10836 | </param>
|
---|
10837 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
10838 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
10839 | </param>
|
---|
10840 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
10841 | <desc>Color depth, bits per pixel.</desc>
|
---|
10842 | </param>
|
---|
10843 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
10844 | <desc>Size of one scan line, in bytes.</desc>
|
---|
10845 | </param>
|
---|
10846 | <param name="width" type="unsigned long" dir="in">
|
---|
10847 | <desc>Width of the guest display, in pixels.</desc>
|
---|
10848 | </param>
|
---|
10849 | <param name="height" type="unsigned long" dir="in">
|
---|
10850 | <desc>Height of the guest display, in pixels.</desc>
|
---|
10851 | </param>
|
---|
10852 | <param name="finished" type="boolean" dir="return">
|
---|
10853 | <desc>
|
---|
10854 | Can the VM start using the new frame buffer immediately
|
---|
10855 | after this method returns or it should wait for
|
---|
10856 | <link to="IDisplay::resizeCompleted"/>.
|
---|
10857 | </desc>
|
---|
10858 | </param>
|
---|
10859 | </method>
|
---|
10860 |
|
---|
10861 | <method name="videoModeSupported">
|
---|
10862 | <desc>
|
---|
10863 | Returns whether the frame buffer implementation is willing to
|
---|
10864 | support a given video mode. In case it is not able to render
|
---|
10865 | the video mode (or for some reason not willing), it should
|
---|
10866 | return @c false. Usually this method is called when the guest
|
---|
10867 | asks the VMM device whether a given video mode is supported
|
---|
10868 | so the information returned is directly exposed to the guest.
|
---|
10869 | It is important that this method returns very quickly.
|
---|
10870 | </desc>
|
---|
10871 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10872 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10873 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
10874 | <param name="supported" type="boolean" dir="return"/>
|
---|
10875 | </method>
|
---|
10876 |
|
---|
10877 | <method name="getVisibleRegion">
|
---|
10878 | <desc>
|
---|
10879 | Returns the visible region of this frame buffer.
|
---|
10880 |
|
---|
10881 | If the @a rectangles parameter is @c null then the value of the
|
---|
10882 | @a count parameter is ignored and the number of elements necessary to
|
---|
10883 | describe the current visible region is returned in @a countCopied.
|
---|
10884 |
|
---|
10885 | If @a rectangles is not @c null but @a count is less
|
---|
10886 | than the required number of elements to store region data, the method
|
---|
10887 | will report a failure. If @a count is equal or greater than the
|
---|
10888 | required number of elements, then the actual number of elements copied
|
---|
10889 | to the provided array will be returned in @a countCopied.
|
---|
10890 |
|
---|
10891 | <note>
|
---|
10892 | The address of the provided array must be in the process space of
|
---|
10893 | this IFramebuffer object.
|
---|
10894 | </note>
|
---|
10895 | <note>
|
---|
10896 | Method not yet implemented.
|
---|
10897 | </note>
|
---|
10898 | </desc>
|
---|
10899 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10900 | <desc>Pointer to the @c RTRECT array to receive region data.</desc>
|
---|
10901 | </param>
|
---|
10902 | <param name="count" type="unsigned long" dir="in">
|
---|
10903 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10904 | </param>
|
---|
10905 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
10906 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
10907 | </param>
|
---|
10908 | </method>
|
---|
10909 |
|
---|
10910 | <method name="setVisibleRegion">
|
---|
10911 | <desc>
|
---|
10912 | Suggests a new visible region to this frame buffer. This region
|
---|
10913 | represents the area of the VM display which is a union of regions of
|
---|
10914 | all top-level windows of the guest operating system running inside the
|
---|
10915 | VM (if the Guest Additions for this system support this
|
---|
10916 | functionality). This information may be used by the frontends to
|
---|
10917 | implement the seamless desktop integration feature.
|
---|
10918 |
|
---|
10919 | <note>
|
---|
10920 | The address of the provided array must be in the process space of
|
---|
10921 | this IFramebuffer object.
|
---|
10922 | </note>
|
---|
10923 | <note>
|
---|
10924 | The IFramebuffer implementation must make a copy of the provided
|
---|
10925 | array of rectangles.
|
---|
10926 | </note>
|
---|
10927 | <note>
|
---|
10928 | Method not yet implemented.
|
---|
10929 | </note>
|
---|
10930 | </desc>
|
---|
10931 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10932 | <desc>Pointer to the @c RTRECT array.</desc>
|
---|
10933 | </param>
|
---|
10934 | <param name="count" type="unsigned long" dir="in">
|
---|
10935 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10936 | </param>
|
---|
10937 | </method>
|
---|
10938 |
|
---|
10939 | <method name="processVHWACommand">
|
---|
10940 | <desc>
|
---|
10941 | Posts a Video HW Acceleration Command to the frame buffer for processing.
|
---|
10942 | The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
|
---|
10943 | are posted from quest to the host to be processed by the host hardware.
|
---|
10944 |
|
---|
10945 | <note>
|
---|
10946 | The address of the provided command must be in the process space of
|
---|
10947 | this IFramebuffer object.
|
---|
10948 | </note>
|
---|
10949 | </desc>
|
---|
10950 |
|
---|
10951 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
10952 | <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
|
---|
10953 | </param>
|
---|
10954 | </method>
|
---|
10955 |
|
---|
10956 | </interface>
|
---|
10957 |
|
---|
10958 | <interface
|
---|
10959 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
10960 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
10961 | wsmap="suppress"
|
---|
10962 | >
|
---|
10963 | <desc>
|
---|
10964 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
10965 | for displaying status icons above an IFramebuffer. It is always created
|
---|
10966 | not visible, so that it must be explicitly shown. It only covers a
|
---|
10967 | portion of the IFramebuffer, determined by its width, height and
|
---|
10968 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
10969 | that order) format, and may be written to directly. Do re-read the
|
---|
10970 | width though, after setting it, as it may be adjusted (increased) to
|
---|
10971 | make it more suitable for the front end.
|
---|
10972 | </desc>
|
---|
10973 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
10974 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
10975 | </attribute>
|
---|
10976 |
|
---|
10977 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
10978 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
10979 | </attribute>
|
---|
10980 |
|
---|
10981 | <attribute name="visible" type="boolean" readonly="no">
|
---|
10982 | <desc>
|
---|
10983 | Whether the overlay is currently visible.
|
---|
10984 | </desc>
|
---|
10985 | </attribute>
|
---|
10986 |
|
---|
10987 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
10988 | <desc>
|
---|
10989 | The global alpha value for the overlay. This may or may not be
|
---|
10990 | supported by a given front end.
|
---|
10991 | </desc>
|
---|
10992 | </attribute>
|
---|
10993 |
|
---|
10994 | <method name="move">
|
---|
10995 | <desc>
|
---|
10996 | Changes the overlay's position relative to the IFramebuffer.
|
---|
10997 | </desc>
|
---|
10998 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10999 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11000 | </method>
|
---|
11001 |
|
---|
11002 | </interface>
|
---|
11003 |
|
---|
11004 | <interface
|
---|
11005 | name="IDisplay" extends="$unknown"
|
---|
11006 | uuid="e2a38ebc-d854-4a3e-bc2e-fdf5ac4a0000"
|
---|
11007 | wsmap="managed"
|
---|
11008 | >
|
---|
11009 | <desc>
|
---|
11010 | The IDisplay interface represents the virtual machine's display.
|
---|
11011 |
|
---|
11012 | The object implementing this interface is contained in each
|
---|
11013 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
11014 | output of the virtual machine.
|
---|
11015 |
|
---|
11016 | The virtual display supports pluggable output targets represented by the
|
---|
11017 | IFramebuffer interface. Examples of the output target are a window on
|
---|
11018 | the host computer or an RDP session's display on a remote computer.
|
---|
11019 | </desc>
|
---|
11020 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
11021 | <desc>Current display width.</desc>
|
---|
11022 | </attribute>
|
---|
11023 |
|
---|
11024 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
11025 | <desc>Current display height.</desc>
|
---|
11026 | </attribute>
|
---|
11027 |
|
---|
11028 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
11029 | <desc>
|
---|
11030 | Current guest display color depth. Note that this may differ
|
---|
11031 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
11032 | </desc>
|
---|
11033 | </attribute>
|
---|
11034 |
|
---|
11035 | <method name="setFramebuffer">
|
---|
11036 | <desc>
|
---|
11037 | Sets the framebuffer for given screen.
|
---|
11038 | </desc>
|
---|
11039 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11040 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
11041 | </method>
|
---|
11042 |
|
---|
11043 | <method name="getFramebuffer">
|
---|
11044 | <desc>
|
---|
11045 | Queries the framebuffer for given screen.
|
---|
11046 | </desc>
|
---|
11047 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11048 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
11049 | <param name="xOrigin" type="long" dir="out"/>
|
---|
11050 | <param name="yOrigin" type="long" dir="out"/>
|
---|
11051 | </method>
|
---|
11052 |
|
---|
11053 | <method name="setVideoModeHint">
|
---|
11054 | <desc>
|
---|
11055 | Asks VirtualBox to request the given video mode from
|
---|
11056 | the guest. This is just a hint and it cannot be guaranteed
|
---|
11057 | that the requested resolution will be used. Guest Additions
|
---|
11058 | are required for the request to be seen by guests. The caller
|
---|
11059 | should issue the request and wait for a resolution change and
|
---|
11060 | after a timeout retry.
|
---|
11061 |
|
---|
11062 | Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
|
---|
11063 | parameters means that the corresponding values should be taken from the
|
---|
11064 | current video mode (i.e. left unchanged).
|
---|
11065 |
|
---|
11066 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
11067 | parameter specifies the number of the guest display to send the hint to:
|
---|
11068 | @c 0 is the primary display, @c 1 is the first secondary and
|
---|
11069 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
11070 | must be @c 0.
|
---|
11071 |
|
---|
11072 | <result name="E_INVALIDARG">
|
---|
11073 | The @a display is not associated with any monitor.
|
---|
11074 | </result>
|
---|
11075 |
|
---|
11076 | </desc>
|
---|
11077 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11078 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11079 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
11080 | <param name="display" type="unsigned long" dir="in"/>
|
---|
11081 | </method>
|
---|
11082 |
|
---|
11083 | <method name="setSeamlessMode">
|
---|
11084 | <desc>
|
---|
11085 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
11086 | integration) mode.
|
---|
11087 | <note>
|
---|
11088 | Calling this method has no effect if <link
|
---|
11089 | to="IGuest::supportsSeamless"/> returns @c false.
|
---|
11090 | </note>
|
---|
11091 | </desc>
|
---|
11092 | <param name="enabled" type="boolean" dir="in"/>
|
---|
11093 | </method>
|
---|
11094 |
|
---|
11095 | <method name="takeScreenShot">
|
---|
11096 | <desc>
|
---|
11097 | Takes a screen shot of the requested size and copies it to the
|
---|
11098 | 32-bpp buffer allocated by the caller and pointed to by @a address.
|
---|
11099 | A pixel consists of 4 bytes in order: B, G, R, 0.
|
---|
11100 |
|
---|
11101 | <note>This API can be used only by the COM/XPCOM C++ API as it
|
---|
11102 | requires pointer support. Use <link to="#takeScreenShotSlow" />
|
---|
11103 | with other language bindings.
|
---|
11104 | </note>
|
---|
11105 |
|
---|
11106 | <result name="E_NOTIMPL">
|
---|
11107 | Feature not implemented.
|
---|
11108 | </result>
|
---|
11109 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11110 | Could not take a screenshot.
|
---|
11111 | </result>
|
---|
11112 |
|
---|
11113 | </desc>
|
---|
11114 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
11115 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11116 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11117 | </method>
|
---|
11118 |
|
---|
11119 | <method name="takeScreenShotSlow">
|
---|
11120 | <desc>
|
---|
11121 | Takes a guest screen shot of the requested size and returns it as
|
---|
11122 | an array of bytes in uncompressed 32-bit RGBA format.
|
---|
11123 | A pixel consists of 4 bytes in order: R, G, B, 0xFF.
|
---|
11124 |
|
---|
11125 | This API is slow, but could be the only option to get guest screenshot
|
---|
11126 | for scriptable languages not allowed to manipulate with addresses
|
---|
11127 | directly.
|
---|
11128 |
|
---|
11129 | <result name="E_NOTIMPL">
|
---|
11130 | Feature not implemented.
|
---|
11131 | </result>
|
---|
11132 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11133 | Could not take a screenshot.
|
---|
11134 | </result>
|
---|
11135 | </desc>
|
---|
11136 | <param name="width" type="unsigned long" dir="in">
|
---|
11137 | <desc>
|
---|
11138 | Desired image width.
|
---|
11139 | </desc>
|
---|
11140 | </param>
|
---|
11141 | <param name="height" type="unsigned long" dir="in">
|
---|
11142 | <desc>
|
---|
11143 | Desired image height.
|
---|
11144 | </desc>
|
---|
11145 | </param>
|
---|
11146 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
11147 | <desc>
|
---|
11148 | Array with resulting screen data.
|
---|
11149 | </desc>
|
---|
11150 | </param>
|
---|
11151 | </method>
|
---|
11152 |
|
---|
11153 | <method name="drawToScreen">
|
---|
11154 | <desc>
|
---|
11155 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
11156 | to the given point on the VM display.
|
---|
11157 |
|
---|
11158 | <result name="E_NOTIMPL">
|
---|
11159 | Feature not implemented.
|
---|
11160 | </result>
|
---|
11161 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11162 | Could not draw to screen.
|
---|
11163 | </result>
|
---|
11164 |
|
---|
11165 | </desc>
|
---|
11166 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
11167 | <param name="x" type="unsigned long" dir="in"/>
|
---|
11168 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11169 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11170 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11171 | </method>
|
---|
11172 |
|
---|
11173 | <method name="invalidateAndUpdate">
|
---|
11174 | <desc>
|
---|
11175 | Does a full invalidation of the VM display and instructs the VM
|
---|
11176 | to update it.
|
---|
11177 |
|
---|
11178 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11179 | Could not invalidate and update screen.
|
---|
11180 | </result>
|
---|
11181 |
|
---|
11182 | </desc>
|
---|
11183 | </method>
|
---|
11184 |
|
---|
11185 | <method name="resizeCompleted">
|
---|
11186 | <desc>
|
---|
11187 | Signals that a framebuffer has completed the resize operation.
|
---|
11188 |
|
---|
11189 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
11190 | Operation only valid for external frame buffers.
|
---|
11191 | </result>
|
---|
11192 |
|
---|
11193 | </desc>
|
---|
11194 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11195 | </method>
|
---|
11196 |
|
---|
11197 | <method name="updateCompleted">
|
---|
11198 | <desc>
|
---|
11199 | Signals that a framebuffer has completed the update operation.
|
---|
11200 |
|
---|
11201 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
11202 | Operation only valid for external frame buffers.
|
---|
11203 | </result>
|
---|
11204 |
|
---|
11205 | </desc>
|
---|
11206 | </method>
|
---|
11207 |
|
---|
11208 | <method name="completeVHWACommand">
|
---|
11209 | <desc>
|
---|
11210 | Signals that the Video HW Acceleration command has completed.
|
---|
11211 | </desc>
|
---|
11212 |
|
---|
11213 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
11214 | <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
|
---|
11215 | </param>
|
---|
11216 | </method>
|
---|
11217 |
|
---|
11218 | </interface>
|
---|
11219 |
|
---|
11220 | <!--
|
---|
11221 | // INetworkAdapter
|
---|
11222 | /////////////////////////////////////////////////////////////////////////
|
---|
11223 | -->
|
---|
11224 |
|
---|
11225 | <enum
|
---|
11226 | name="NetworkAttachmentType"
|
---|
11227 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
11228 | >
|
---|
11229 | <desc>
|
---|
11230 | Network attachment type.
|
---|
11231 | </desc>
|
---|
11232 |
|
---|
11233 | <const name="Null" value="0">
|
---|
11234 | <desc>Null value, also means "not attached".</desc>
|
---|
11235 | </const>
|
---|
11236 | <const name="NAT" value="1"/>
|
---|
11237 | <const name="Bridged" value="2"/>
|
---|
11238 | <const name="Internal" value="3"/>
|
---|
11239 | <const name="HostOnly" value="4"/>
|
---|
11240 | </enum>
|
---|
11241 |
|
---|
11242 | <enum
|
---|
11243 | name="NetworkAdapterType"
|
---|
11244 | uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
|
---|
11245 | >
|
---|
11246 | <desc>
|
---|
11247 | Network adapter type.
|
---|
11248 | </desc>
|
---|
11249 |
|
---|
11250 | <const name="Null" value="0">
|
---|
11251 | <desc>Null value (never used by the API).</desc>
|
---|
11252 | </const>
|
---|
11253 | <const name="Am79C970A" value="1">
|
---|
11254 | <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
|
---|
11255 | </const>
|
---|
11256 | <const name="Am79C973" value="2">
|
---|
11257 | <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
|
---|
11258 | </const>
|
---|
11259 | <const name="I82540EM" value="3">
|
---|
11260 | <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
|
---|
11261 | </const>
|
---|
11262 | <const name="I82543GC" value="4">
|
---|
11263 | <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
|
---|
11264 | </const>
|
---|
11265 | <const name="I82545EM" value="5">
|
---|
11266 | <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
|
---|
11267 | </const>
|
---|
11268 | <const name="Virtio" value="6">
|
---|
11269 | <desc>Virtio network device.</desc>
|
---|
11270 | </const>
|
---|
11271 | </enum>
|
---|
11272 |
|
---|
11273 | <interface
|
---|
11274 | name="INetworkAdapter" extends="$unknown"
|
---|
11275 | uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
---|
11276 | wsmap="managed"
|
---|
11277 | >
|
---|
11278 | <desc>
|
---|
11279 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
11280 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
11281 | instance of this attached to each of them. Call
|
---|
11282 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
11283 | is attached to a given slot in a given machine.
|
---|
11284 |
|
---|
11285 | Each network adapter can be in one of five attachment modes, which are
|
---|
11286 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
11287 | see the <link to="#attachmentType" /> attribute.
|
---|
11288 | </desc>
|
---|
11289 |
|
---|
11290 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
11291 | <desc>
|
---|
11292 | Type of the virtual network adapter. Depending on this value,
|
---|
11293 | VirtualBox will provide a different virtual network hardware
|
---|
11294 | to the guest.
|
---|
11295 | </desc>
|
---|
11296 | </attribute>
|
---|
11297 |
|
---|
11298 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11299 | <desc>
|
---|
11300 | Slot number this adapter is plugged into. Corresponds to
|
---|
11301 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
11302 | to obtain this instance.
|
---|
11303 | </desc>
|
---|
11304 | </attribute>
|
---|
11305 |
|
---|
11306 | <attribute name="enabled" type="boolean">
|
---|
11307 | <desc>
|
---|
11308 | Flag whether the network adapter is present in the
|
---|
11309 | guest system. If disabled, the virtual guest hardware will
|
---|
11310 | not contain this network adapter. Can only be changed when
|
---|
11311 | the VM is not running.
|
---|
11312 | </desc>
|
---|
11313 | </attribute>
|
---|
11314 |
|
---|
11315 | <attribute name="MACAddress" type="wstring">
|
---|
11316 | <desc>
|
---|
11317 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
11318 | it to @c null or an empty string, VirtualBox will generate a unique MAC address.
|
---|
11319 | </desc>
|
---|
11320 | </attribute>
|
---|
11321 |
|
---|
11322 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
11323 |
|
---|
11324 | <attribute name="hostInterface" type="wstring">
|
---|
11325 | <desc>
|
---|
11326 | Name of the host network interface the VM is attached to.
|
---|
11327 | </desc>
|
---|
11328 | </attribute>
|
---|
11329 |
|
---|
11330 | <attribute name="internalNetwork" type="wstring">
|
---|
11331 | <desc>
|
---|
11332 | Name of the internal network the VM is attached to.
|
---|
11333 | </desc>
|
---|
11334 | </attribute>
|
---|
11335 |
|
---|
11336 | <attribute name="NATNetwork" type="wstring">
|
---|
11337 | <desc>
|
---|
11338 | Name of the NAT network the VM is attached to.
|
---|
11339 | </desc>
|
---|
11340 | </attribute>
|
---|
11341 |
|
---|
11342 | <attribute name="cableConnected" type="boolean">
|
---|
11343 | <desc>
|
---|
11344 | Flag whether the adapter reports the cable as connected or not.
|
---|
11345 | It can be used to report offline situations to a VM.
|
---|
11346 | </desc>
|
---|
11347 | </attribute>
|
---|
11348 |
|
---|
11349 | <attribute name="lineSpeed" type="unsigned long">
|
---|
11350 | <desc>
|
---|
11351 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
11352 | </desc>
|
---|
11353 | </attribute>
|
---|
11354 |
|
---|
11355 | <attribute name="traceEnabled" type="boolean">
|
---|
11356 | <desc>
|
---|
11357 | Flag whether network traffic from/to the network card should be traced.
|
---|
11358 | Can only be toggled when the VM is turned off.
|
---|
11359 | </desc>
|
---|
11360 | </attribute>
|
---|
11361 |
|
---|
11362 | <attribute name="traceFile" type="wstring">
|
---|
11363 | <desc>
|
---|
11364 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
11365 | will be used.
|
---|
11366 | </desc>
|
---|
11367 | </attribute>
|
---|
11368 |
|
---|
11369 | <method name="attachToNAT">
|
---|
11370 | <desc>
|
---|
11371 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
11372 | </desc>
|
---|
11373 | </method>
|
---|
11374 |
|
---|
11375 | <method name="attachToBridgedInterface">
|
---|
11376 | <desc>
|
---|
11377 | Attach the network adapter to a bridged host interface.
|
---|
11378 | </desc>
|
---|
11379 | </method>
|
---|
11380 |
|
---|
11381 | <method name="attachToInternalNetwork">
|
---|
11382 | <desc>
|
---|
11383 | Attach the network adapter to an internal network.
|
---|
11384 | </desc>
|
---|
11385 | </method>
|
---|
11386 |
|
---|
11387 | <method name="attachToHostOnlyInterface">
|
---|
11388 | <desc>
|
---|
11389 | Attach the network adapter to the host-only network.
|
---|
11390 | </desc>
|
---|
11391 | </method>
|
---|
11392 |
|
---|
11393 | <method name="detach">
|
---|
11394 | <desc>
|
---|
11395 | Detach the network adapter
|
---|
11396 | </desc>
|
---|
11397 | </method>
|
---|
11398 | </interface>
|
---|
11399 |
|
---|
11400 |
|
---|
11401 | <!--
|
---|
11402 | // ISerialPort
|
---|
11403 | /////////////////////////////////////////////////////////////////////////
|
---|
11404 | -->
|
---|
11405 |
|
---|
11406 | <enum
|
---|
11407 | name="PortMode"
|
---|
11408 | uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
|
---|
11409 | >
|
---|
11410 | <desc>
|
---|
11411 | The PortMode enumeration represents possible communication modes for
|
---|
11412 | the virtual serial port device.
|
---|
11413 | </desc>
|
---|
11414 |
|
---|
11415 | <const name="Disconnected" value="0">
|
---|
11416 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
11417 | </const>
|
---|
11418 | <const name="HostPipe" value="1">
|
---|
11419 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
11420 | </const>
|
---|
11421 | <const name="HostDevice" value="2">
|
---|
11422 | <desc>Virtual device is attached to a host device.</desc>
|
---|
11423 | </const>
|
---|
11424 | <const name="RawFile" value="3">
|
---|
11425 | <desc>Virtual device is attached to a raw file.</desc>
|
---|
11426 | </const>
|
---|
11427 | </enum>
|
---|
11428 |
|
---|
11429 | <interface
|
---|
11430 | name="ISerialPort" extends="$unknown"
|
---|
11431 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
11432 | wsmap="managed"
|
---|
11433 | >
|
---|
11434 |
|
---|
11435 | <desc>
|
---|
11436 | The ISerialPort interface represents the virtual serial port device.
|
---|
11437 |
|
---|
11438 | The virtual serial port device acts like an ordinary serial port
|
---|
11439 | inside the virtual machine. This device communicates to the real
|
---|
11440 | serial port hardware in one of two modes: host pipe or host device.
|
---|
11441 |
|
---|
11442 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
11443 | the host computer that represents a serial port. The #server attribute
|
---|
11444 | determines if this pipe is created by the virtual machine process at
|
---|
11445 | machine startup or it must already exist before starting machine
|
---|
11446 | execution.
|
---|
11447 |
|
---|
11448 | In host device mode, the #path attribute specifies the name of the
|
---|
11449 | serial port device on the host computer.
|
---|
11450 |
|
---|
11451 | There is also a third communication mode: the disconnected mode. In this
|
---|
11452 | mode, the guest OS running inside the virtual machine will be able to
|
---|
11453 | detect the serial port, but all port write operations will be discarded
|
---|
11454 | and all port read operations will return no data.
|
---|
11455 |
|
---|
11456 | <see>IMachine::getSerialPort</see>
|
---|
11457 | </desc>
|
---|
11458 |
|
---|
11459 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11460 | <desc>
|
---|
11461 | Slot number this serial port is plugged into. Corresponds to
|
---|
11462 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
11463 | to obtain this instance.
|
---|
11464 | </desc>
|
---|
11465 | </attribute>
|
---|
11466 |
|
---|
11467 | <attribute name="enabled" type="boolean">
|
---|
11468 | <desc>
|
---|
11469 | Flag whether the serial port is enabled. If disabled,
|
---|
11470 | the serial port will not be reported to the guest OS.
|
---|
11471 | </desc>
|
---|
11472 | </attribute>
|
---|
11473 |
|
---|
11474 | <attribute name="IOBase" type="unsigned long">
|
---|
11475 | <desc>Base I/O address of the serial port.</desc>
|
---|
11476 | </attribute>
|
---|
11477 |
|
---|
11478 | <attribute name="IRQ" type="unsigned long">
|
---|
11479 | <desc>IRQ number of the serial port.</desc>
|
---|
11480 | </attribute>
|
---|
11481 |
|
---|
11482 | <attribute name="hostMode" type="PortMode">
|
---|
11483 | <desc>
|
---|
11484 | How is this port connected to the host.
|
---|
11485 | <note>
|
---|
11486 | Changing this attribute may fail if the conditions for
|
---|
11487 | <link to="#path"/> are not met.
|
---|
11488 | </note>
|
---|
11489 | </desc>
|
---|
11490 | </attribute>
|
---|
11491 |
|
---|
11492 | <attribute name="server" type="boolean">
|
---|
11493 | <desc>
|
---|
11494 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
11495 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
11496 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
11497 | </desc>
|
---|
11498 | </attribute>
|
---|
11499 |
|
---|
11500 | <attribute name="path" type="wstring">
|
---|
11501 | <desc>
|
---|
11502 | Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
|
---|
11503 | PortMode_HostPipe, or the host serial device name when
|
---|
11504 | <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
|
---|
11505 | cases, setting a @c null or empty string as the attribute's value
|
---|
11506 | is an error. Otherwise, the value of this property is ignored.
|
---|
11507 | </desc>
|
---|
11508 | </attribute>
|
---|
11509 |
|
---|
11510 | </interface>
|
---|
11511 |
|
---|
11512 | <!--
|
---|
11513 | // IParallelPort
|
---|
11514 | /////////////////////////////////////////////////////////////////////////
|
---|
11515 | -->
|
---|
11516 |
|
---|
11517 | <interface
|
---|
11518 | name="IParallelPort" extends="$unknown"
|
---|
11519 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11520 | wsmap="managed"
|
---|
11521 | >
|
---|
11522 |
|
---|
11523 | <desc>
|
---|
11524 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11525 |
|
---|
11526 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11527 | inside the virtual machine. This device communicates to the real
|
---|
11528 | parallel port hardware using the name of the parallel device on the host
|
---|
11529 | computer specified in the #path attribute.
|
---|
11530 |
|
---|
11531 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11532 | IRQ number that will be reported to the guest operating system and used
|
---|
11533 | to operate the given parallel port from within the virtual machine.
|
---|
11534 |
|
---|
11535 | <see>IMachine::getParallelPort</see>
|
---|
11536 | </desc>
|
---|
11537 |
|
---|
11538 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11539 | <desc>
|
---|
11540 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11541 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11542 | to obtain this instance.
|
---|
11543 | </desc>
|
---|
11544 | </attribute>
|
---|
11545 |
|
---|
11546 | <attribute name="enabled" type="boolean">
|
---|
11547 | <desc>
|
---|
11548 | Flag whether the parallel port is enabled. If disabled,
|
---|
11549 | the parallel port will not be reported to the guest OS.
|
---|
11550 | </desc>
|
---|
11551 | </attribute>
|
---|
11552 |
|
---|
11553 | <attribute name="IOBase" type="unsigned long">
|
---|
11554 | <desc>Base I/O address of the parallel port.</desc>
|
---|
11555 | </attribute>
|
---|
11556 |
|
---|
11557 | <attribute name="IRQ" type="unsigned long">
|
---|
11558 | <desc>IRQ number of the parallel port.</desc>
|
---|
11559 | </attribute>
|
---|
11560 |
|
---|
11561 | <attribute name="path" type="wstring">
|
---|
11562 | <desc>
|
---|
11563 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
11564 | @c null or an empty string as this attribute's value will result into
|
---|
11565 | an error.
|
---|
11566 | </desc>
|
---|
11567 | </attribute>
|
---|
11568 |
|
---|
11569 | </interface>
|
---|
11570 |
|
---|
11571 |
|
---|
11572 | <!--
|
---|
11573 | // IMachineDebugger
|
---|
11574 | /////////////////////////////////////////////////////////////////////////
|
---|
11575 | -->
|
---|
11576 |
|
---|
11577 | <interface
|
---|
11578 | name="IMachineDebugger" extends="$unknown"
|
---|
11579 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
11580 | wsmap="suppress"
|
---|
11581 | >
|
---|
11582 | <method name="resetStats">
|
---|
11583 | <desc>
|
---|
11584 | Reset VM statistics.
|
---|
11585 | </desc>
|
---|
11586 | <param name="pattern" type="wstring" dir="in">
|
---|
11587 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11588 | </param>
|
---|
11589 | </method>
|
---|
11590 |
|
---|
11591 | <method name="dumpStats">
|
---|
11592 | <desc>
|
---|
11593 | Dumps VM statistics.
|
---|
11594 | </desc>
|
---|
11595 | <param name="pattern" type="wstring" dir="in">
|
---|
11596 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11597 | </param>
|
---|
11598 | </method>
|
---|
11599 |
|
---|
11600 | <method name="getStats">
|
---|
11601 | <desc>
|
---|
11602 | Get the VM statistics in a XMLish format.
|
---|
11603 | </desc>
|
---|
11604 | <param name="pattern" type="wstring" dir="in">
|
---|
11605 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11606 | </param>
|
---|
11607 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
11608 | <desc>Whether to include the descriptions.</desc>
|
---|
11609 | </param>
|
---|
11610 | <param name="stats" type="wstring" dir="out">
|
---|
11611 | <desc>The XML document containing the statistics.</desc>
|
---|
11612 | </param>
|
---|
11613 | </method>
|
---|
11614 |
|
---|
11615 | <method name="injectNMI">
|
---|
11616 | <desc>
|
---|
11617 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
11618 | </desc>
|
---|
11619 | </method>
|
---|
11620 |
|
---|
11621 | <attribute name="singlestep" type="boolean">
|
---|
11622 | <desc>Switch for enabling singlestepping.</desc>
|
---|
11623 | </attribute>
|
---|
11624 |
|
---|
11625 | <attribute name="recompileUser" type="boolean">
|
---|
11626 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
11627 | </attribute>
|
---|
11628 |
|
---|
11629 | <attribute name="recompileSupervisor" type="boolean">
|
---|
11630 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
11631 | </attribute>
|
---|
11632 |
|
---|
11633 | <attribute name="PATMEnabled" type="boolean">
|
---|
11634 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
11635 | </attribute>
|
---|
11636 |
|
---|
11637 | <attribute name="CSAMEnabled" type="boolean">
|
---|
11638 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
11639 | </attribute>
|
---|
11640 |
|
---|
11641 | <attribute name="logEnabled" type="boolean">
|
---|
11642 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
11643 | </attribute>
|
---|
11644 |
|
---|
11645 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
11646 | <desc>
|
---|
11647 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
11648 | virtualization extensions.
|
---|
11649 | </desc>
|
---|
11650 | </attribute>
|
---|
11651 |
|
---|
11652 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
11653 | <desc>
|
---|
11654 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
11655 | CPU hardware virtualization extension.
|
---|
11656 | </desc>
|
---|
11657 | </attribute>
|
---|
11658 |
|
---|
11659 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
11660 | <desc>
|
---|
11661 | Flag indicating whether the VM is currently making use of the VPID
|
---|
11662 | VT-x extension.
|
---|
11663 | </desc>
|
---|
11664 | </attribute>
|
---|
11665 |
|
---|
11666 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
11667 | <desc>
|
---|
11668 | Flag indicating whether the VM is currently making use of the Physical
|
---|
11669 | Address Extension CPU feature.
|
---|
11670 | </desc>
|
---|
11671 | </attribute>
|
---|
11672 |
|
---|
11673 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
11674 | <desc>
|
---|
11675 | The rate at which the virtual time runs expressed as a percentage.
|
---|
11676 | The accepted range is 2% to 20000%.
|
---|
11677 | </desc>
|
---|
11678 | </attribute>
|
---|
11679 |
|
---|
11680 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
11681 |
|
---|
11682 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
11683 | <desc>
|
---|
11684 | Gets the VM handle. This is only for internal use while
|
---|
11685 | we carve the details of this interface.
|
---|
11686 | </desc>
|
---|
11687 | </attribute>
|
---|
11688 |
|
---|
11689 | </interface>
|
---|
11690 |
|
---|
11691 | <!--
|
---|
11692 | // IUSBController
|
---|
11693 | /////////////////////////////////////////////////////////////////////////
|
---|
11694 | -->
|
---|
11695 |
|
---|
11696 | <interface
|
---|
11697 | name="IUSBController" extends="$unknown"
|
---|
11698 | uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
|
---|
11699 | wsmap="managed"
|
---|
11700 | >
|
---|
11701 | <attribute name="enabled" type="boolean">
|
---|
11702 | <desc>
|
---|
11703 | Flag whether the USB controller is present in the
|
---|
11704 | guest system. If disabled, the virtual guest hardware will
|
---|
11705 | not contain any USB controller. Can only be changed when
|
---|
11706 | the VM is powered off.
|
---|
11707 | </desc>
|
---|
11708 | </attribute>
|
---|
11709 |
|
---|
11710 | <attribute name="enabledEhci" type="boolean">
|
---|
11711 | <desc>
|
---|
11712 | Flag whether the USB EHCI controller is present in the
|
---|
11713 | guest system. If disabled, the virtual guest hardware will
|
---|
11714 | not contain a USB EHCI controller. Can only be changed when
|
---|
11715 | the VM is powered off.
|
---|
11716 | </desc>
|
---|
11717 | </attribute>
|
---|
11718 |
|
---|
11719 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
11720 | <desc>
|
---|
11721 | USB standard version which the controller implements.
|
---|
11722 | This is a BCD which means that the major version is in the
|
---|
11723 | high byte and minor version is in the low byte.
|
---|
11724 | </desc>
|
---|
11725 | </attribute>
|
---|
11726 |
|
---|
11727 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
11728 | <desc>
|
---|
11729 | List of USB device filters associated with the machine.
|
---|
11730 |
|
---|
11731 | If the machine is currently running, these filters are activated
|
---|
11732 | every time a new (supported) USB device is attached to the host
|
---|
11733 | computer that was not ignored by global filters
|
---|
11734 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
11735 |
|
---|
11736 | These filters are also activated when the machine is powered up.
|
---|
11737 | They are run against a list of all currently available USB
|
---|
11738 | devices (in states
|
---|
11739 | <link to="USBDeviceState_Available"/>,
|
---|
11740 | <link to="USBDeviceState_Busy"/>,
|
---|
11741 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
11742 | ignored by global filters.
|
---|
11743 |
|
---|
11744 | If at least one filter matches the USB device in question, this
|
---|
11745 | device is automatically captured (attached to) the virtual USB
|
---|
11746 | controller of this machine.
|
---|
11747 |
|
---|
11748 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
11749 | </desc>
|
---|
11750 | </attribute>
|
---|
11751 |
|
---|
11752 | <method name="createDeviceFilter">
|
---|
11753 | <desc>
|
---|
11754 | Creates a new USB device filter. All attributes except
|
---|
11755 | the filter name are set to empty (any match),
|
---|
11756 | <i>active</i> is @c false (the filter is not active).
|
---|
11757 |
|
---|
11758 | The created filter can then be added to the list of filters using
|
---|
11759 | <link to="#insertDeviceFilter"/>.
|
---|
11760 |
|
---|
11761 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11762 | The virtual machine is not mutable.
|
---|
11763 | </result>
|
---|
11764 |
|
---|
11765 | <see>#deviceFilters</see>
|
---|
11766 | </desc>
|
---|
11767 | <param name="name" type="wstring" dir="in">
|
---|
11768 | <desc>
|
---|
11769 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
11770 | for more info.
|
---|
11771 | </desc>
|
---|
11772 | </param>
|
---|
11773 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11774 | <desc>Created filter object.</desc>
|
---|
11775 | </param>
|
---|
11776 | </method>
|
---|
11777 |
|
---|
11778 | <method name="insertDeviceFilter">
|
---|
11779 | <desc>
|
---|
11780 | Inserts the given USB device to the specified position
|
---|
11781 | in the list of filters.
|
---|
11782 |
|
---|
11783 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
11784 | position is equal to or greater than the number of elements in
|
---|
11785 | the list, the filter is added to the end of the collection.
|
---|
11786 |
|
---|
11787 | <note>
|
---|
11788 | Duplicates are not allowed, so an attempt to insert a
|
---|
11789 | filter that is already in the collection, will return an
|
---|
11790 | error.
|
---|
11791 | </note>
|
---|
11792 |
|
---|
11793 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11794 | Virtual machine is not mutable.
|
---|
11795 | </result>
|
---|
11796 | <result name="E_INVALIDARG">
|
---|
11797 | USB device filter not created within this VirtualBox instance.
|
---|
11798 | </result>
|
---|
11799 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
11800 | USB device filter already in list.
|
---|
11801 | </result>
|
---|
11802 |
|
---|
11803 | <see>#deviceFilters</see>
|
---|
11804 | </desc>
|
---|
11805 | <param name="position" type="unsigned long" dir="in">
|
---|
11806 | <desc>Position to insert the filter to.</desc>
|
---|
11807 | </param>
|
---|
11808 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
11809 | <desc>USB device filter to insert.</desc>
|
---|
11810 | </param>
|
---|
11811 | </method>
|
---|
11812 |
|
---|
11813 | <method name="removeDeviceFilter">
|
---|
11814 | <desc>
|
---|
11815 | Removes a USB device filter from the specified position in the
|
---|
11816 | list of filters.
|
---|
11817 |
|
---|
11818 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
11819 | position equal to or greater than the number of elements in
|
---|
11820 | the list will produce an error.
|
---|
11821 |
|
---|
11822 | <see>#deviceFilters</see>
|
---|
11823 |
|
---|
11824 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11825 | Virtual machine is not mutable.
|
---|
11826 | </result>
|
---|
11827 | <result name="E_INVALIDARG">
|
---|
11828 | USB device filter list empty or invalid @a position.
|
---|
11829 | </result>
|
---|
11830 |
|
---|
11831 | </desc>
|
---|
11832 | <param name="position" type="unsigned long" dir="in">
|
---|
11833 | <desc>Position to remove the filter from.</desc>
|
---|
11834 | </param>
|
---|
11835 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11836 | <desc>Removed USB device filter.</desc>
|
---|
11837 | </param>
|
---|
11838 | </method>
|
---|
11839 |
|
---|
11840 | </interface>
|
---|
11841 |
|
---|
11842 |
|
---|
11843 | <!--
|
---|
11844 | // IUSBDevice
|
---|
11845 | /////////////////////////////////////////////////////////////////////////
|
---|
11846 | -->
|
---|
11847 |
|
---|
11848 | <interface
|
---|
11849 | name="IUSBDevice" extends="$unknown"
|
---|
11850 | uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
|
---|
11851 | wsmap="managed"
|
---|
11852 | >
|
---|
11853 | <desc>
|
---|
11854 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
11855 | virtual machine.
|
---|
11856 |
|
---|
11857 | A collection of objects implementing this interface is stored in the
|
---|
11858 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
11859 | attached to a running virtual machine's USB controller.
|
---|
11860 | </desc>
|
---|
11861 |
|
---|
11862 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
11863 | <desc>
|
---|
11864 | Unique USB device ID. This ID is built from #vendorId,
|
---|
11865 | #productId, #revision and #serialNumber.
|
---|
11866 | </desc>
|
---|
11867 | </attribute>
|
---|
11868 |
|
---|
11869 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
11870 | <desc>Vendor ID.</desc>
|
---|
11871 | </attribute>
|
---|
11872 |
|
---|
11873 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
11874 | <desc>Product ID.</desc>
|
---|
11875 | </attribute>
|
---|
11876 |
|
---|
11877 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
11878 | <desc>
|
---|
11879 | Product revision number. This is a packed BCD represented as
|
---|
11880 | unsigned short. The high byte is the integer part and the low
|
---|
11881 | byte is the decimal.
|
---|
11882 | </desc>
|
---|
11883 | </attribute>
|
---|
11884 |
|
---|
11885 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
11886 | <desc>Manufacturer string.</desc>
|
---|
11887 | </attribute>
|
---|
11888 |
|
---|
11889 | <attribute name="product" type="wstring" readonly="yes">
|
---|
11890 | <desc>Product string.</desc>
|
---|
11891 | </attribute>
|
---|
11892 |
|
---|
11893 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
11894 | <desc>Serial number string.</desc>
|
---|
11895 | </attribute>
|
---|
11896 |
|
---|
11897 | <attribute name="address" type="wstring" readonly="yes">
|
---|
11898 | <desc>Host specific address of the device.</desc>
|
---|
11899 | </attribute>
|
---|
11900 |
|
---|
11901 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
11902 | <desc>
|
---|
11903 | Host USB port number the device is physically
|
---|
11904 | connected to.
|
---|
11905 | </desc>
|
---|
11906 | </attribute>
|
---|
11907 |
|
---|
11908 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
11909 | <desc>
|
---|
11910 | The major USB version of the device - 1 or 2.
|
---|
11911 | </desc>
|
---|
11912 | </attribute>
|
---|
11913 |
|
---|
11914 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
11915 | <desc>
|
---|
11916 | The major USB version of the host USB port the device is
|
---|
11917 | physically connected to - 1 or 2. For devices not connected to
|
---|
11918 | anything this will have the same value as the version attribute.
|
---|
11919 | </desc>
|
---|
11920 | </attribute>
|
---|
11921 |
|
---|
11922 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
11923 | <desc>
|
---|
11924 | Whether the device is physically connected to a remote VRDP
|
---|
11925 | client or to a local host machine.
|
---|
11926 | </desc>
|
---|
11927 | </attribute>
|
---|
11928 |
|
---|
11929 | </interface>
|
---|
11930 |
|
---|
11931 |
|
---|
11932 | <!--
|
---|
11933 | // IUSBDeviceFilter
|
---|
11934 | /////////////////////////////////////////////////////////////////////////
|
---|
11935 | -->
|
---|
11936 |
|
---|
11937 | <interface
|
---|
11938 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
11939 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
11940 | wsmap="managed"
|
---|
11941 | >
|
---|
11942 | <desc>
|
---|
11943 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
11944 | to perform actions on a group of USB devices.
|
---|
11945 |
|
---|
11946 | This type of filters is used by running virtual machines to
|
---|
11947 | automatically capture selected USB devices once they are physically
|
---|
11948 | attached to the host computer.
|
---|
11949 |
|
---|
11950 | A USB device is matched to the given device filter if and only if all
|
---|
11951 | attributes of the device match the corresponding attributes of the
|
---|
11952 | filter (that is, attributes are joined together using the logical AND
|
---|
11953 | operation). On the other hand, all together, filters in the list of
|
---|
11954 | filters carry the semantics of the logical OR operation. So if it is
|
---|
11955 | desirable to create a match like "this vendor id OR this product id",
|
---|
11956 | one needs to create two filters and specify "any match" (see below)
|
---|
11957 | for unused attributes.
|
---|
11958 |
|
---|
11959 | All filter attributes used for matching are strings. Each string
|
---|
11960 | is an expression representing a set of values of the corresponding
|
---|
11961 | device attribute, that will match the given filter. Currently, the
|
---|
11962 | following filtering expressions are supported:
|
---|
11963 |
|
---|
11964 | <ul>
|
---|
11965 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
11966 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
11967 | The format of the string is:
|
---|
11968 |
|
---|
11969 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
11970 |
|
---|
11971 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
11972 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
11973 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
11974 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
11975 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
11976 | possible integer is assumed.
|
---|
11977 | </li>
|
---|
11978 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
11979 | boolean device attributes. The format of the string is:
|
---|
11980 |
|
---|
11981 | <tt>true|false|yes|no|0|1</tt>
|
---|
11982 |
|
---|
11983 | </li>
|
---|
11984 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
11985 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
11986 | represents the exact match. String device attributes are compared to
|
---|
11987 | this string including case of symbols. Integer attributes are first
|
---|
11988 | converted to a string (see individual filter attributes) and then
|
---|
11989 | compared ignoring case.
|
---|
11990 |
|
---|
11991 | </li>
|
---|
11992 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
11993 | will match the given filter. An empty or @c null string is
|
---|
11994 | used to construct this type of filtering expressions.
|
---|
11995 |
|
---|
11996 | </li>
|
---|
11997 | </ul>
|
---|
11998 |
|
---|
11999 | <note>
|
---|
12000 | On the Windows host platform, interval filters are not currently
|
---|
12001 | available. Also all string filter attributes
|
---|
12002 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
12003 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
12004 | <i>any match</i> no matter what string expression is specified.
|
---|
12005 | </note>
|
---|
12006 |
|
---|
12007 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
12008 | </desc>
|
---|
12009 |
|
---|
12010 | <attribute name="name" type="wstring">
|
---|
12011 | <desc>
|
---|
12012 | Visible name for this filter.
|
---|
12013 | This name is used to visually distinguish one filter from another,
|
---|
12014 | so it can neither be @c null nor an empty string.
|
---|
12015 | </desc>
|
---|
12016 | </attribute>
|
---|
12017 |
|
---|
12018 | <attribute name="active" type="boolean">
|
---|
12019 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
12020 | </attribute>
|
---|
12021 |
|
---|
12022 | <attribute name="vendorId" type="wstring">
|
---|
12023 | <desc>
|
---|
12024 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
12025 | The string representation for the <i>exact matching</i>
|
---|
12026 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12027 | (including leading zeroes).
|
---|
12028 | </desc>
|
---|
12029 | </attribute>
|
---|
12030 |
|
---|
12031 | <attribute name="productId" type="wstring">
|
---|
12032 | <desc>
|
---|
12033 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
12034 | The string representation for the <i>exact matching</i>
|
---|
12035 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12036 | (including leading zeroes).
|
---|
12037 | </desc>
|
---|
12038 | </attribute>
|
---|
12039 |
|
---|
12040 | <attribute name="revision" type="wstring">
|
---|
12041 | <desc>
|
---|
12042 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
12043 | filter. The string representation for the <i>exact matching</i>
|
---|
12044 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
12045 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
12046 | decimal digit of its fractional part (including leading and
|
---|
12047 | trailing zeros).
|
---|
12048 | Note that for interval filters, it's best to use the hexadecimal
|
---|
12049 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
12050 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
12051 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
12052 | </desc>
|
---|
12053 | </attribute>
|
---|
12054 |
|
---|
12055 | <attribute name="manufacturer" type="wstring">
|
---|
12056 | <desc>
|
---|
12057 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
12058 | </desc>
|
---|
12059 | </attribute>
|
---|
12060 |
|
---|
12061 | <attribute name="product" type="wstring">
|
---|
12062 | <desc>
|
---|
12063 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
12064 | </desc>
|
---|
12065 | </attribute>
|
---|
12066 |
|
---|
12067 | <attribute name="serialNumber" type="wstring">
|
---|
12068 | <desc>
|
---|
12069 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
12070 | </desc>
|
---|
12071 | </attribute>
|
---|
12072 |
|
---|
12073 | <attribute name="port" type="wstring">
|
---|
12074 | <desc>
|
---|
12075 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
12076 | </desc>
|
---|
12077 | </attribute>
|
---|
12078 |
|
---|
12079 | <attribute name="remote" type="wstring">
|
---|
12080 | <desc>
|
---|
12081 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
12082 | <note>
|
---|
12083 | This filter makes sense only for machine USB filters,
|
---|
12084 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
12085 | </note>
|
---|
12086 | </desc>
|
---|
12087 | </attribute>
|
---|
12088 |
|
---|
12089 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
12090 | <desc>
|
---|
12091 | This is an advanced option for hiding one or more USB interfaces
|
---|
12092 | from the guest. The value is a bit mask where the bits that are set
|
---|
12093 | means the corresponding USB interface should be hidden, masked off
|
---|
12094 | if you like.
|
---|
12095 | This feature only works on Linux hosts.
|
---|
12096 | </desc>
|
---|
12097 | </attribute>
|
---|
12098 |
|
---|
12099 | </interface>
|
---|
12100 |
|
---|
12101 |
|
---|
12102 | <!--
|
---|
12103 | // IHostUSBDevice
|
---|
12104 | /////////////////////////////////////////////////////////////////////////
|
---|
12105 | -->
|
---|
12106 |
|
---|
12107 | <enum
|
---|
12108 | name="USBDeviceState"
|
---|
12109 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
12110 | >
|
---|
12111 | <desc>
|
---|
12112 | USB device state. This enumeration represents all possible states
|
---|
12113 | of the USB device physically attached to the host computer regarding
|
---|
12114 | its state on the host computer and availability to guest computers
|
---|
12115 | (all currently running virtual machines).
|
---|
12116 |
|
---|
12117 | Once a supported USB device is attached to the host, global USB
|
---|
12118 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
12119 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
12120 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
12121 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
12122 | activated that can put it to USBDeviceState_Captured state.
|
---|
12123 |
|
---|
12124 | If the device was ignored by global filters, or didn't match
|
---|
12125 | any filters at all (including guest ones), it is handled by the host
|
---|
12126 | in a normal way. In this case, the device state is determined by
|
---|
12127 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
12128 | or USBDeviceState_Available, depending on the current device usage.
|
---|
12129 |
|
---|
12130 | Besides auto-capturing based on filters, the device can be manually
|
---|
12131 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
12132 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
12133 | USBDeviceState_Held.
|
---|
12134 |
|
---|
12135 | <note>
|
---|
12136 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
12137 | states USBDeviceState_Busy and USBDeviceState_vailable are applicable
|
---|
12138 | only to the Linux version of the product. This also means that (<link
|
---|
12139 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
12140 | device state is USBDeviceState_Held.
|
---|
12141 | </note>
|
---|
12142 |
|
---|
12143 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
12144 | </desc>
|
---|
12145 |
|
---|
12146 | <const name="NotSupported" value="0">
|
---|
12147 | <desc>
|
---|
12148 | Not supported by the VirtualBox server, not available to guests.
|
---|
12149 | </desc>
|
---|
12150 | </const>
|
---|
12151 | <const name="Unavailable" value="1">
|
---|
12152 | <desc>
|
---|
12153 | Being used by the host computer exclusively,
|
---|
12154 | not available to guests.
|
---|
12155 | </desc>
|
---|
12156 | </const>
|
---|
12157 | <const name="Busy" value="2">
|
---|
12158 | <desc>
|
---|
12159 | Being used by the host computer, potentially available to guests.
|
---|
12160 | </desc>
|
---|
12161 | </const>
|
---|
12162 | <const name="Available" value="3">
|
---|
12163 | <desc>
|
---|
12164 | Not used by the host computer, available to guests (the host computer
|
---|
12165 | can also start using the device at any time).
|
---|
12166 | </desc>
|
---|
12167 | </const>
|
---|
12168 | <const name="Held" value="4">
|
---|
12169 | <desc>
|
---|
12170 | Held by the VirtualBox server (ignored by the host computer),
|
---|
12171 | available to guests.
|
---|
12172 | </desc>
|
---|
12173 | </const>
|
---|
12174 | <const name="Captured" value="5">
|
---|
12175 | <desc>
|
---|
12176 | Captured by one of the guest computers, not available
|
---|
12177 | to anybody else.
|
---|
12178 | </desc>
|
---|
12179 | </const>
|
---|
12180 | </enum>
|
---|
12181 |
|
---|
12182 | <interface
|
---|
12183 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
12184 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
12185 | wsmap="managed"
|
---|
12186 | >
|
---|
12187 | <desc>
|
---|
12188 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
12189 | to the host computer.
|
---|
12190 |
|
---|
12191 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
12192 | <link to="#state"/> property that holds the current state of the USB
|
---|
12193 | device.
|
---|
12194 |
|
---|
12195 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
12196 | </desc>
|
---|
12197 |
|
---|
12198 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
12199 | <desc>
|
---|
12200 | Current state of the device.
|
---|
12201 | </desc>
|
---|
12202 | </attribute>
|
---|
12203 |
|
---|
12204 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
12205 |
|
---|
12206 | </interface>
|
---|
12207 |
|
---|
12208 |
|
---|
12209 | <!--
|
---|
12210 | // IHostUSBDeviceFilter
|
---|
12211 | /////////////////////////////////////////////////////////////////////////
|
---|
12212 | -->
|
---|
12213 |
|
---|
12214 | <enum
|
---|
12215 | name="USBDeviceFilterAction"
|
---|
12216 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
12217 | >
|
---|
12218 | <desc>
|
---|
12219 | Actions for host USB device filters.
|
---|
12220 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
12221 | </desc>
|
---|
12222 |
|
---|
12223 | <const name="Null" value="0">
|
---|
12224 | <desc>Null value (never used by the API).</desc>
|
---|
12225 | </const>
|
---|
12226 | <const name="Ignore" value="1">
|
---|
12227 | <desc>Ignore the matched USB device.</desc>
|
---|
12228 | </const>
|
---|
12229 | <const name="Hold" value="2">
|
---|
12230 | <desc>Hold the matched USB device.</desc>
|
---|
12231 | </const>
|
---|
12232 | </enum>
|
---|
12233 |
|
---|
12234 | <interface
|
---|
12235 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
12236 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
12237 | wsmap="managed"
|
---|
12238 | >
|
---|
12239 | <desc>
|
---|
12240 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
12241 | physical USB device used by the host computer. Used indirectly in
|
---|
12242 | <link to="IHost::USBDeviceFilters"/>.
|
---|
12243 |
|
---|
12244 | Using filters of this type, the host computer determines the initial
|
---|
12245 | state of the USB device after it is physically attached to the
|
---|
12246 | host's USB controller.
|
---|
12247 |
|
---|
12248 | <note>
|
---|
12249 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
12250 | filters, because it makes sense only for
|
---|
12251 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
12252 | </note>
|
---|
12253 |
|
---|
12254 | <see>IHost::USBDeviceFilters</see>
|
---|
12255 | </desc>
|
---|
12256 |
|
---|
12257 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
12258 | <desc>
|
---|
12259 | Action performed by the host when an attached USB device
|
---|
12260 | matches this filter.
|
---|
12261 | </desc>
|
---|
12262 | </attribute>
|
---|
12263 |
|
---|
12264 | </interface>
|
---|
12265 |
|
---|
12266 | <!--
|
---|
12267 | // IAudioAdapter
|
---|
12268 | /////////////////////////////////////////////////////////////////////////
|
---|
12269 | -->
|
---|
12270 |
|
---|
12271 | <enum
|
---|
12272 | name="AudioDriverType"
|
---|
12273 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
12274 | >
|
---|
12275 | <desc>
|
---|
12276 | Host audio driver type.
|
---|
12277 | </desc>
|
---|
12278 |
|
---|
12279 | <const name="Null" value="0">
|
---|
12280 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
12281 | </const>
|
---|
12282 | <const name="WinMM" value="1">
|
---|
12283 | <desc>Windows multimedia (Windows hosts only).</desc>
|
---|
12284 | </const>
|
---|
12285 | <const name="OSS" value="2">
|
---|
12286 | <desc>Open Sound System (Linux hosts only).</desc>
|
---|
12287 | </const>
|
---|
12288 | <const name="ALSA" value="3">
|
---|
12289 | <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
|
---|
12290 | </const>
|
---|
12291 | <const name="DirectSound" value="4">
|
---|
12292 | <desc>DirectSound (Windows hosts only).</desc>
|
---|
12293 | </const>
|
---|
12294 | <const name="CoreAudio" value="5">
|
---|
12295 | <desc>CoreAudio (Mac hosts only).</desc>
|
---|
12296 | </const>
|
---|
12297 | <const name="MMPM" value="6">
|
---|
12298 | <desc>Reserved for historical reasons.</desc>
|
---|
12299 | </const>
|
---|
12300 | <const name="Pulse" value="7">
|
---|
12301 | <desc>PulseAudio (Linux hosts only).</desc>
|
---|
12302 | </const>
|
---|
12303 | <const name="SolAudio" value="8">
|
---|
12304 | <desc>Solaris audio (Solaris hosts only).</desc>
|
---|
12305 | </const>
|
---|
12306 | </enum>
|
---|
12307 |
|
---|
12308 | <enum
|
---|
12309 | name="AudioControllerType"
|
---|
12310 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
12311 | >
|
---|
12312 | <desc>
|
---|
12313 | Virtual audio controller type.
|
---|
12314 | </desc>
|
---|
12315 |
|
---|
12316 | <const name="AC97" value="0"/>
|
---|
12317 | <const name="SB16" value="1"/>
|
---|
12318 | </enum>
|
---|
12319 |
|
---|
12320 | <interface
|
---|
12321 | name="IAudioAdapter" extends="$unknown"
|
---|
12322 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
12323 | wsmap="managed"
|
---|
12324 | >
|
---|
12325 | <desc>
|
---|
12326 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
12327 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
12328 | </desc>
|
---|
12329 | <attribute name="enabled" type="boolean">
|
---|
12330 | <desc>
|
---|
12331 | Flag whether the audio adapter is present in the
|
---|
12332 | guest system. If disabled, the virtual guest hardware will
|
---|
12333 | not contain any audio adapter. Can only be changed when
|
---|
12334 | the VM is not running.
|
---|
12335 | </desc>
|
---|
12336 | </attribute>
|
---|
12337 | <attribute name="audioController" type="AudioControllerType">
|
---|
12338 | <desc>
|
---|
12339 | The audio hardware we emulate.
|
---|
12340 | </desc>
|
---|
12341 | </attribute>
|
---|
12342 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
12343 | <desc>
|
---|
12344 | Audio driver the adapter is connected to. This setting
|
---|
12345 | can only be changed when the VM is not running.
|
---|
12346 | </desc>
|
---|
12347 | </attribute>
|
---|
12348 | </interface>
|
---|
12349 |
|
---|
12350 | <!--
|
---|
12351 | // IVRDPServer
|
---|
12352 | /////////////////////////////////////////////////////////////////////////
|
---|
12353 | -->
|
---|
12354 |
|
---|
12355 | <enum
|
---|
12356 | name="VRDPAuthType"
|
---|
12357 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
12358 | >
|
---|
12359 | <desc>
|
---|
12360 | VRDP authentication type.
|
---|
12361 | </desc>
|
---|
12362 |
|
---|
12363 | <const name="Null" value="0">
|
---|
12364 | <desc>Null value, also means "no authentication".</desc>
|
---|
12365 | </const>
|
---|
12366 | <const name="External" value="1"/>
|
---|
12367 | <const name="Guest" value="2"/>
|
---|
12368 | </enum>
|
---|
12369 |
|
---|
12370 | <interface
|
---|
12371 | name="IVRDPServer" extends="$unknown"
|
---|
12372 | uuid="72e671bc-1712-4052-ad6b-e45e76d9d3e4"
|
---|
12373 | wsmap="managed"
|
---|
12374 | >
|
---|
12375 | <attribute name="enabled" type="boolean">
|
---|
12376 | <desc>VRDP server status.</desc>
|
---|
12377 | </attribute>
|
---|
12378 |
|
---|
12379 | <attribute name="ports" type="wstring">
|
---|
12380 | <desc>
|
---|
12381 | VRDP server port numbers. The server will try to bind to one of free ports from the list.
|
---|
12382 | <note>
|
---|
12383 | This is a string of comma separated TCP port numbers or port number ranges.
|
---|
12384 | Example <tt>5000,5010-5012,5015</tt>
|
---|
12385 | </note>
|
---|
12386 | </desc>
|
---|
12387 | </attribute>
|
---|
12388 |
|
---|
12389 | <attribute name="netAddress" type="wstring">
|
---|
12390 | <desc>VRDP server address.</desc>
|
---|
12391 | </attribute>
|
---|
12392 |
|
---|
12393 | <attribute name="authType" type="VRDPAuthType">
|
---|
12394 | <desc>VRDP authentication method.</desc>
|
---|
12395 | </attribute>
|
---|
12396 |
|
---|
12397 | <attribute name="authTimeout" type="unsigned long">
|
---|
12398 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
12399 | </attribute>
|
---|
12400 |
|
---|
12401 | <attribute name="allowMultiConnection" type="boolean">
|
---|
12402 | <desc>
|
---|
12403 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
12404 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
12405 | </desc>
|
---|
12406 | </attribute>
|
---|
12407 |
|
---|
12408 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
12409 | <desc>
|
---|
12410 | Flag whether the existing connection must be dropped and a new connection
|
---|
12411 | must be established by the VRDP server, when a new client connects in single
|
---|
12412 | connection mode.
|
---|
12413 | </desc>
|
---|
12414 | </attribute>
|
---|
12415 |
|
---|
12416 | </interface>
|
---|
12417 |
|
---|
12418 |
|
---|
12419 | <!--
|
---|
12420 | // ISharedFolder
|
---|
12421 | /////////////////////////////////////////////////////////////////////////
|
---|
12422 | -->
|
---|
12423 |
|
---|
12424 | <interface
|
---|
12425 | name="ISharedFolder" extends="$unknown"
|
---|
12426 | uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
|
---|
12427 | wsmap="struct"
|
---|
12428 | >
|
---|
12429 | <desc>
|
---|
12430 | The ISharedFolder interface represents a folder in the host computer's
|
---|
12431 | file system accessible from the guest OS running inside a virtual
|
---|
12432 | machine using an associated logical name.
|
---|
12433 |
|
---|
12434 | There are three types of shared folders:
|
---|
12435 | <ul>
|
---|
12436 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
12437 | folders available to all virtual machines.</li>
|
---|
12438 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
12439 | VM-specific shared folders available to the given virtual machine at
|
---|
12440 | startup.</li>
|
---|
12441 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
12442 | VM-specific shared folders created in the session context (for
|
---|
12443 | example, when the virtual machine is running) and automatically
|
---|
12444 | discarded when the session is closed (the VM is powered off).</li>
|
---|
12445 | </ul>
|
---|
12446 |
|
---|
12447 | Logical names of shared folders must be unique within the given scope
|
---|
12448 | (global, permanent or transient). However, they do not need to be unique
|
---|
12449 | across scopes. In this case, the definition of the shared folder in a
|
---|
12450 | more specific scope takes precedence over definitions in all other
|
---|
12451 | scopes. The order of precedence is (more specific to more general):
|
---|
12452 | <ol>
|
---|
12453 | <li>Transient definitions</li>
|
---|
12454 | <li>Permanent definitions</li>
|
---|
12455 | <li>Global definitions</li>
|
---|
12456 | </ol>
|
---|
12457 |
|
---|
12458 | For example, if MyMachine has a shared folder named
|
---|
12459 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
12460 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
12461 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
12462 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
12463 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
12464 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
12465 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
12466 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
12467 | to <tt>C:\\</tt> if it still exists.
|
---|
12468 |
|
---|
12469 | Note that permanent and transient shared folders of different machines
|
---|
12470 | are in different name spaces, so they don't overlap and don't need to
|
---|
12471 | have unique logical names.
|
---|
12472 |
|
---|
12473 | <note>
|
---|
12474 | Global shared folders are not implemented in the current version of the
|
---|
12475 | product.
|
---|
12476 | </note>
|
---|
12477 | </desc>
|
---|
12478 |
|
---|
12479 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12480 | <desc>Logical name of the shared folder.</desc>
|
---|
12481 | </attribute>
|
---|
12482 |
|
---|
12483 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
12484 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
12485 | </attribute>
|
---|
12486 |
|
---|
12487 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
12488 | <desc>
|
---|
12489 | Whether the folder defined by the host path is currently
|
---|
12490 | accessible or not.
|
---|
12491 | For example, the folder can be unaccessible if it is placed
|
---|
12492 | on the network share that is not available by the time
|
---|
12493 | this property is read.
|
---|
12494 | </desc>
|
---|
12495 | </attribute>
|
---|
12496 |
|
---|
12497 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
12498 | <desc>
|
---|
12499 | Whether the folder defined by the host path is writable or
|
---|
12500 | not.
|
---|
12501 | </desc>
|
---|
12502 | </attribute>
|
---|
12503 |
|
---|
12504 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
12505 | <desc>
|
---|
12506 | Text message that represents the result of the last accessibility
|
---|
12507 | check.
|
---|
12508 |
|
---|
12509 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
12510 | attribute is read. An empty string is returned if the last
|
---|
12511 | accessibility check was successful. A non-empty string indicates a
|
---|
12512 | failure and should normally describe a reason of the failure (for
|
---|
12513 | example, a file read error).
|
---|
12514 | </desc>
|
---|
12515 | </attribute>
|
---|
12516 |
|
---|
12517 | </interface>
|
---|
12518 |
|
---|
12519 | <!--
|
---|
12520 | // ISession
|
---|
12521 | /////////////////////////////////////////////////////////////////////////
|
---|
12522 | -->
|
---|
12523 |
|
---|
12524 | <interface
|
---|
12525 | name="IInternalSessionControl" extends="$unknown"
|
---|
12526 | uuid="f9aac6d0-41b3-46b7-bea4-6370b4036de6"
|
---|
12527 | internal="yes"
|
---|
12528 | wsmap="suppress"
|
---|
12529 | >
|
---|
12530 | <method name="getPID">
|
---|
12531 | <desc>PID of the process that has created this Session object.
|
---|
12532 | </desc>
|
---|
12533 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
12534 | </method>
|
---|
12535 |
|
---|
12536 | <method name="getRemoteConsole">
|
---|
12537 | <desc>
|
---|
12538 | Returns the console object suitable for remote control.
|
---|
12539 |
|
---|
12540 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12541 | Session state prevents operation.
|
---|
12542 | </result>
|
---|
12543 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12544 | Session type prevents operation.
|
---|
12545 | </result>
|
---|
12546 |
|
---|
12547 | </desc>
|
---|
12548 | <param name="console" type="IConsole" dir="return"/>
|
---|
12549 | </method>
|
---|
12550 |
|
---|
12551 | <method name="assignMachine">
|
---|
12552 | <desc>
|
---|
12553 | Assigns the machine object associated with this direct-type
|
---|
12554 | session or informs the session that it will be a remote one
|
---|
12555 | (if @a machine == @c null).
|
---|
12556 |
|
---|
12557 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12558 | Session state prevents operation.
|
---|
12559 | </result>
|
---|
12560 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12561 | Session type prevents operation.
|
---|
12562 | </result>
|
---|
12563 |
|
---|
12564 | </desc>
|
---|
12565 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12566 | </method>
|
---|
12567 |
|
---|
12568 | <method name="assignRemoteMachine">
|
---|
12569 | <desc>
|
---|
12570 | Assigns the machine and the (remote) console object associated with
|
---|
12571 | this remote-type session.
|
---|
12572 |
|
---|
12573 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12574 | Session state prevents operation.
|
---|
12575 | </result>
|
---|
12576 |
|
---|
12577 | </desc>
|
---|
12578 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12579 | <param name="console" type="IConsole" dir="in"/>
|
---|
12580 | </method>
|
---|
12581 |
|
---|
12582 | <method name="updateMachineState">
|
---|
12583 | <desc>
|
---|
12584 | Updates the machine state in the VM process.
|
---|
12585 | Must be called only in certain cases
|
---|
12586 | (see the method implementation).
|
---|
12587 |
|
---|
12588 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12589 | Session state prevents operation.
|
---|
12590 | </result>
|
---|
12591 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12592 | Session type prevents operation.
|
---|
12593 | </result>
|
---|
12594 |
|
---|
12595 | </desc>
|
---|
12596 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
12597 | </method>
|
---|
12598 |
|
---|
12599 | <method name="uninitialize">
|
---|
12600 | <desc>
|
---|
12601 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
12602 | the corresponding remote session when the direct session dies
|
---|
12603 | or gets closed.
|
---|
12604 |
|
---|
12605 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12606 | Session state prevents operation.
|
---|
12607 | </result>
|
---|
12608 |
|
---|
12609 | </desc>
|
---|
12610 | </method>
|
---|
12611 |
|
---|
12612 | <method name="onNetworkAdapterChange">
|
---|
12613 | <desc>
|
---|
12614 | Triggered when settings of a network adapter of the
|
---|
12615 | associated virtual machine have changed.
|
---|
12616 |
|
---|
12617 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12618 | Session state prevents operation.
|
---|
12619 | </result>
|
---|
12620 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12621 | Session type prevents operation.
|
---|
12622 | </result>
|
---|
12623 |
|
---|
12624 | </desc>
|
---|
12625 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
12626 | <param name="changeAdapter" type="boolean" dir="in"/>
|
---|
12627 | </method>
|
---|
12628 |
|
---|
12629 | <method name="onSerialPortChange">
|
---|
12630 | <desc>
|
---|
12631 | Triggered when settings of a serial port of the
|
---|
12632 | associated virtual machine have changed.
|
---|
12633 |
|
---|
12634 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12635 | Session state prevents operation.
|
---|
12636 | </result>
|
---|
12637 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12638 | Session type prevents operation.
|
---|
12639 | </result>
|
---|
12640 |
|
---|
12641 | </desc>
|
---|
12642 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
12643 | </method>
|
---|
12644 |
|
---|
12645 | <method name="onParallelPortChange">
|
---|
12646 | <desc>
|
---|
12647 | Triggered when settings of a parallel port of the
|
---|
12648 | associated virtual machine have changed.
|
---|
12649 |
|
---|
12650 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12651 | Session state prevents operation.
|
---|
12652 | </result>
|
---|
12653 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12654 | Session type prevents operation.
|
---|
12655 | </result>
|
---|
12656 |
|
---|
12657 | </desc>
|
---|
12658 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
12659 | </method>
|
---|
12660 |
|
---|
12661 | <method name="onStorageControllerChange">
|
---|
12662 | <desc>
|
---|
12663 | Triggered when settings of a storage controller of the
|
---|
12664 | associated virtual machine have changed.
|
---|
12665 |
|
---|
12666 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12667 | Session state prevents operation.
|
---|
12668 | </result>
|
---|
12669 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12670 | Session type prevents operation.
|
---|
12671 | </result>
|
---|
12672 |
|
---|
12673 | </desc>
|
---|
12674 | </method>
|
---|
12675 |
|
---|
12676 | <method name="onMediumChange">
|
---|
12677 | <desc>
|
---|
12678 | Triggered when attached media of the
|
---|
12679 | associated virtual machine have changed.
|
---|
12680 |
|
---|
12681 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12682 | Session state prevents operation.
|
---|
12683 | </result>
|
---|
12684 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12685 | Session type prevents operation.
|
---|
12686 | </result>
|
---|
12687 |
|
---|
12688 | </desc>
|
---|
12689 |
|
---|
12690 | <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
|
---|
12691 | <param name="force" type="boolean" dir="in"/>
|
---|
12692 | </method>
|
---|
12693 |
|
---|
12694 | <method name="onVRDPServerChange">
|
---|
12695 | <desc>
|
---|
12696 | Triggered when settings of the VRDP server object of the
|
---|
12697 | associated virtual machine have changed.
|
---|
12698 |
|
---|
12699 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12700 | Session state prevents operation.
|
---|
12701 | </result>
|
---|
12702 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12703 | Session type prevents operation.
|
---|
12704 | </result>
|
---|
12705 |
|
---|
12706 | </desc>
|
---|
12707 | </method>
|
---|
12708 |
|
---|
12709 | <method name="onUSBControllerChange">
|
---|
12710 | <desc>
|
---|
12711 | Triggered when settings of the USB controller object of the
|
---|
12712 | associated virtual machine have changed.
|
---|
12713 |
|
---|
12714 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12715 | Session state prevents operation.
|
---|
12716 | </result>
|
---|
12717 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12718 | Session type prevents operation.
|
---|
12719 | </result>
|
---|
12720 |
|
---|
12721 | </desc>
|
---|
12722 | </method>
|
---|
12723 |
|
---|
12724 | <method name="onSharedFolderChange">
|
---|
12725 | <desc>
|
---|
12726 | Triggered when a permanent (global or machine) shared folder has been
|
---|
12727 | created or removed.
|
---|
12728 | <note>
|
---|
12729 | We don't pass shared folder parameters in this notification because
|
---|
12730 | the order in which parallel notifications are delivered is not defined,
|
---|
12731 | therefore it could happen that these parameters were outdated by the
|
---|
12732 | time of processing this notification.
|
---|
12733 | </note>
|
---|
12734 |
|
---|
12735 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12736 | Session state prevents operation.
|
---|
12737 | </result>
|
---|
12738 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12739 | Session type prevents operation.
|
---|
12740 | </result>
|
---|
12741 |
|
---|
12742 | </desc>
|
---|
12743 | <param name="global" type="boolean" dir="in"/>
|
---|
12744 | </method>
|
---|
12745 |
|
---|
12746 | <method name="onUSBDeviceAttach">
|
---|
12747 | <desc>
|
---|
12748 | Triggered when a request to capture a USB device (as a result
|
---|
12749 | of matched USB filters or direct call to
|
---|
12750 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
12751 | A @c null @a error object means success, otherwise it
|
---|
12752 | describes a failure.
|
---|
12753 |
|
---|
12754 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12755 | Session state prevents operation.
|
---|
12756 | </result>
|
---|
12757 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12758 | Session type prevents operation.
|
---|
12759 | </result>
|
---|
12760 |
|
---|
12761 | </desc>
|
---|
12762 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
12763 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12764 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
12765 | </method>
|
---|
12766 |
|
---|
12767 | <method name="onUSBDeviceDetach">
|
---|
12768 | <desc>
|
---|
12769 | Triggered when a request to release the USB device (as a result
|
---|
12770 | of machine termination or direct call to
|
---|
12771 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
12772 | A @c null @a error object means success, otherwise it
|
---|
12773 | describes a failure.
|
---|
12774 |
|
---|
12775 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12776 | Session state prevents operation.
|
---|
12777 | </result>
|
---|
12778 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12779 | Session type prevents operation.
|
---|
12780 | </result>
|
---|
12781 |
|
---|
12782 | </desc>
|
---|
12783 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
12784 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12785 | </method>
|
---|
12786 |
|
---|
12787 | <method name="onShowWindow">
|
---|
12788 | <desc>
|
---|
12789 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
12790 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
12791 | console callbacks
|
---|
12792 | <link to="IConsoleCallback::onCanShowWindow"/>
|
---|
12793 | and <link to="IConsoleCallback::onShowWindow"/>.
|
---|
12794 |
|
---|
12795 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12796 | Session type prevents operation.
|
---|
12797 | </result>
|
---|
12798 |
|
---|
12799 | </desc>
|
---|
12800 | <param name="check" type="boolean" dir="in"/>
|
---|
12801 | <param name="canShow" type="boolean" dir="out"/>
|
---|
12802 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
12803 | </method>
|
---|
12804 |
|
---|
12805 | <method name="accessGuestProperty">
|
---|
12806 | <desc>
|
---|
12807 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
12808 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
12809 | modify guest properties.
|
---|
12810 |
|
---|
12811 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12812 | Machine session is not open.
|
---|
12813 | </result>
|
---|
12814 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12815 | Session type is not direct.
|
---|
12816 | </result>
|
---|
12817 |
|
---|
12818 | </desc>
|
---|
12819 | <param name="name" type="wstring" dir="in"/>
|
---|
12820 | <param name="value" type="wstring" dir="in"/>
|
---|
12821 | <param name="flags" type="wstring" dir="in"/>
|
---|
12822 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
12823 | <param name="retValue" type="wstring" dir="out"/>
|
---|
12824 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
12825 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
12826 | </method>
|
---|
12827 |
|
---|
12828 | <method name="enumerateGuestProperties">
|
---|
12829 | <desc>
|
---|
12830 | Return a list of the guest properties matching a set of patterns along
|
---|
12831 | with their values, time stamps and flags.
|
---|
12832 |
|
---|
12833 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12834 | Machine session is not open.
|
---|
12835 | </result>
|
---|
12836 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12837 | Session type is not direct.
|
---|
12838 | </result>
|
---|
12839 |
|
---|
12840 | </desc>
|
---|
12841 | <param name="patterns" type="wstring" dir="in">
|
---|
12842 | <desc>
|
---|
12843 | The patterns to match the properties against as a comma-separated
|
---|
12844 | string. If this is empty, all properties currently set will be
|
---|
12845 | returned.
|
---|
12846 | </desc>
|
---|
12847 | </param>
|
---|
12848 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
12849 | <desc>
|
---|
12850 | The key names of the properties returned.
|
---|
12851 | </desc>
|
---|
12852 | </param>
|
---|
12853 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
12854 | <desc>
|
---|
12855 | The values of the properties returned. The array entries match the
|
---|
12856 | corresponding entries in the @a key array.
|
---|
12857 | </desc>
|
---|
12858 | </param>
|
---|
12859 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
12860 | <desc>
|
---|
12861 | The time stamps of the properties returned. The array entries match
|
---|
12862 | the corresponding entries in the @a key array.
|
---|
12863 | </desc>
|
---|
12864 | </param>
|
---|
12865 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
12866 | <desc>
|
---|
12867 | The flags of the properties returned. The array entries match the
|
---|
12868 | corresponding entries in the @a key array.
|
---|
12869 | </desc>
|
---|
12870 | </param>
|
---|
12871 | </method>
|
---|
12872 |
|
---|
12873 | </interface>
|
---|
12874 |
|
---|
12875 | <interface
|
---|
12876 | name="ISession" extends="$dispatched"
|
---|
12877 | uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
|
---|
12878 | wsmap="managed"
|
---|
12879 | >
|
---|
12880 | <desc>
|
---|
12881 | The ISession interface represents a serialization primitive for virtual
|
---|
12882 | machines.
|
---|
12883 |
|
---|
12884 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
12885 | (e.g. change its settings or start execution), a session object is
|
---|
12886 | required. Such an object must be passed to one of the session methods
|
---|
12887 | that open the given session, which then initiates the machine manipulation.
|
---|
12888 |
|
---|
12889 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
12890 | code which process is currently working with the virtual machine, and it ensures
|
---|
12891 | that there are no incompatible requests from several processes for the
|
---|
12892 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
12893 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
12894 | several processes.
|
---|
12895 |
|
---|
12896 | How sessions objects are used depends on whether you use the Main API
|
---|
12897 | via COM or via the webservice:
|
---|
12898 |
|
---|
12899 | <ul>
|
---|
12900 | <li>When using the COM API directly, an object of the Session class from the
|
---|
12901 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
12902 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
12903 | This object will then act as a local session object in further calls to open
|
---|
12904 | a session.
|
---|
12905 | </li>
|
---|
12906 |
|
---|
12907 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
12908 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
12909 | is called. A managed object reference to that session object can be retrieved by
|
---|
12910 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
12911 | reference can then be used to open sessions.
|
---|
12912 | </li>
|
---|
12913 | </ul>
|
---|
12914 |
|
---|
12915 | Sessions are mainly used in two variations:
|
---|
12916 |
|
---|
12917 | <ul>
|
---|
12918 | <li>
|
---|
12919 | To start a virtual machine in a separate process, one would call
|
---|
12920 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
12921 | object as its first parameter. This session then identifies the caller
|
---|
12922 | and lets him control the started machine (for example, pause machine
|
---|
12923 | execution or power it down) as well as be notified about machine
|
---|
12924 | execution state changes.
|
---|
12925 | </li>
|
---|
12926 |
|
---|
12927 | <li>To alter machine settings, or to start machine execution within the
|
---|
12928 | current process, one needs to open a direct session for the machine first by
|
---|
12929 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
12930 | is open within one process, no any other process may open another direct
|
---|
12931 | session for the same machine. This prevents the machine from being changed
|
---|
12932 | by other processes while it is running or while the machine is being configured.
|
---|
12933 | </li>
|
---|
12934 | </ul>
|
---|
12935 |
|
---|
12936 | One also can attach to an existing direct session already opened by
|
---|
12937 | another process (for example, in order to send a control request to the
|
---|
12938 | virtual machine such as the pause or the reset request). This is done by
|
---|
12939 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
12940 |
|
---|
12941 | <note>
|
---|
12942 | Unless you are trying to write a new VirtualBox front-end that
|
---|
12943 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
12944 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
12945 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
12946 | session only to change virtual machine settings. If you simply want to
|
---|
12947 | start virtual machine execution using one of the existing front-ends
|
---|
12948 | (for example the VirtualBox GUI or headless server), simply use
|
---|
12949 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
12950 | will power up the machine automatically for you.
|
---|
12951 | </note>
|
---|
12952 | </desc>
|
---|
12953 |
|
---|
12954 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
12955 | <desc>Current state of this session.</desc>
|
---|
12956 | </attribute>
|
---|
12957 |
|
---|
12958 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
12959 | <desc>
|
---|
12960 | Type of this session. The value of this attribute is valid only
|
---|
12961 | if the session is currently open (i.e. its #state is
|
---|
12962 | SessionType_SessionOpen), otherwise an error will be returned.
|
---|
12963 | </desc>
|
---|
12964 | </attribute>
|
---|
12965 |
|
---|
12966 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
12967 | <desc>Machine object associated with this session.</desc>
|
---|
12968 | </attribute>
|
---|
12969 |
|
---|
12970 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
12971 | <desc>Console object associated with this session.</desc>
|
---|
12972 | </attribute>
|
---|
12973 |
|
---|
12974 | <method name="close">
|
---|
12975 | <desc>
|
---|
12976 | Closes a session that was previously opened.
|
---|
12977 |
|
---|
12978 | It is recommended that every time an "open session" method (such as
|
---|
12979 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
12980 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
12981 | manipulate a virtual machine, the caller invoke
|
---|
12982 | ISession::close() when it's done doing so. Since sessions are
|
---|
12983 | serialization primitives much like ordinary mutexes, they are
|
---|
12984 | best used the same way: for each "open" call, there should be
|
---|
12985 | a matching "close" call, even when errors occur.
|
---|
12986 |
|
---|
12987 | Otherwise, if a direct session for a machine opened with
|
---|
12988 | <link to="IVirtualBox::openSession"/> is not explicitly closed
|
---|
12989 | when the application terminates, the state of the machine will
|
---|
12990 | be set to <link to="MachineState_Aborted" /> on the server.
|
---|
12991 |
|
---|
12992 | Generally, it is recommended to close all open sessions explicitly
|
---|
12993 | before terminating the application (regardless of the reason for
|
---|
12994 | the termination).
|
---|
12995 |
|
---|
12996 | <note>
|
---|
12997 | Do not expect the session state (<link to="ISession::state" />
|
---|
12998 | to return to "Closed" immediately after you invoke
|
---|
12999 | ISession::close(), particularly if you have started a remote
|
---|
13000 | session to execute the VM in a new process. The session state will
|
---|
13001 | automatically return to "Closed" once the VM is no longer executing,
|
---|
13002 | which can of course take a very long time.
|
---|
13003 | </note>
|
---|
13004 |
|
---|
13005 | <result name="E_UNEXPECTED">
|
---|
13006 | Session is not open.
|
---|
13007 | </result>
|
---|
13008 |
|
---|
13009 | </desc>
|
---|
13010 | </method>
|
---|
13011 |
|
---|
13012 | </interface>
|
---|
13013 |
|
---|
13014 | <!--
|
---|
13015 | // IStorageController
|
---|
13016 | /////////////////////////////////////////////////////////////////////////
|
---|
13017 | -->
|
---|
13018 |
|
---|
13019 | <enum
|
---|
13020 | name="StorageBus"
|
---|
13021 | uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
|
---|
13022 | >
|
---|
13023 | <desc>
|
---|
13024 | The bus type of the storage controller (IDE, SATA, SCSI or Floppy);
|
---|
13025 | see <link to="IStorageController::bus" />.
|
---|
13026 | </desc>
|
---|
13027 | <const name="Null" value="0">
|
---|
13028 | <desc>@c null value. Never used by the API.</desc>
|
---|
13029 | </const>
|
---|
13030 | <const name="IDE" value="1"/>
|
---|
13031 | <const name="SATA" value="2"/>
|
---|
13032 | <const name="SCSI" value="3"/>
|
---|
13033 | <const name="Floppy" value="4"/>
|
---|
13034 | </enum>
|
---|
13035 |
|
---|
13036 | <enum
|
---|
13037 | name="StorageControllerType"
|
---|
13038 | uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
|
---|
13039 | >
|
---|
13040 | <desc>
|
---|
13041 | The exact variant of storage controller hardware presented
|
---|
13042 | to the guest; see <link to="IStorageController::controllerType" />.
|
---|
13043 | </desc>
|
---|
13044 |
|
---|
13045 | <const name="Null" value="0">
|
---|
13046 | <desc>@c null value. Never used by the API.</desc>
|
---|
13047 | </const>
|
---|
13048 | <const name="LsiLogic" value="1">
|
---|
13049 | <desc>A SCSI controller of the LsiLogic variant.</desc>
|
---|
13050 | </const>
|
---|
13051 | <const name="BusLogic" value="2">
|
---|
13052 | <desc>A SCSI controller of the BusLogic variant.</desc>
|
---|
13053 | </const>
|
---|
13054 | <const name="IntelAhci" value="3">
|
---|
13055 | <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
|
---|
13056 | </const>
|
---|
13057 | <const name="PIIX3" value="4">
|
---|
13058 | <desc>An IDE controller of the PIIX3 variant.</desc>
|
---|
13059 | </const>
|
---|
13060 | <const name="PIIX4" value="5">
|
---|
13061 | <desc>An IDE controller of the PIIX4 variant.</desc>
|
---|
13062 | </const>
|
---|
13063 | <const name="ICH6" value="6">
|
---|
13064 | <desc>An IDE controller of the ICH6 variant.</desc>
|
---|
13065 | </const>
|
---|
13066 | <const name="I82078" value="7">
|
---|
13067 | <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
|
---|
13068 | </const>
|
---|
13069 | </enum>
|
---|
13070 |
|
---|
13071 | <interface
|
---|
13072 | name="IStorageController" extends="$unknown"
|
---|
13073 | uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
|
---|
13074 | wsmap="managed"
|
---|
13075 | >
|
---|
13076 | <desc>
|
---|
13077 | Represents a storage controller that is attached to a virtual machine
|
---|
13078 | (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
|
---|
13079 | attached to storage controllers in a real computer, virtual drives
|
---|
13080 | (represented by <link to="IMediumAttachment" />) are attached to virtual
|
---|
13081 | storage controllers, represented by this interface.
|
---|
13082 |
|
---|
13083 | As opposed to physical hardware, VirtualBox has a very generic concept
|
---|
13084 | of a storage controller, and for purposes of the Main API, all virtual
|
---|
13085 | storage is attached to virtual machines via instances of this interface.
|
---|
13086 | There are four types of such virtual storage controllers: IDE, SCSI, SATA
|
---|
13087 | and Floppy (see <link to="#bus" />). Depending on which of these four is
|
---|
13088 | used, certain sub-types may be available and can be selected in
|
---|
13089 | <link to="#controllerType" />.
|
---|
13090 |
|
---|
13091 | Depending on these settings, the guest operating system might see
|
---|
13092 | significantly different virtual hardware.
|
---|
13093 | </desc>
|
---|
13094 |
|
---|
13095 | <attribute name="name" type="wstring" readonly="yes">
|
---|
13096 | <desc>
|
---|
13097 | Name of the storage controller, as originally specified with
|
---|
13098 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
13099 | identifies this controller with other method calls such as
|
---|
13100 | <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
|
---|
13101 | </desc>
|
---|
13102 | </attribute>
|
---|
13103 |
|
---|
13104 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
13105 | <desc>
|
---|
13106 | Maximum number of devices which can be attached to one port.
|
---|
13107 | </desc>
|
---|
13108 | </attribute>
|
---|
13109 |
|
---|
13110 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
13111 | <desc>
|
---|
13112 | Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
13113 | </desc>
|
---|
13114 | </attribute>
|
---|
13115 |
|
---|
13116 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
13117 | <desc>
|
---|
13118 | Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
13119 | </desc>
|
---|
13120 | </attribute>
|
---|
13121 |
|
---|
13122 | <attribute name="instance" type="unsigned long">
|
---|
13123 | <desc>
|
---|
13124 | The instance number of the device in the running VM.
|
---|
13125 | </desc>
|
---|
13126 | </attribute>
|
---|
13127 |
|
---|
13128 | <attribute name="portCount" type="unsigned long">
|
---|
13129 | <desc>
|
---|
13130 | The number of currently usable ports on the controller.
|
---|
13131 | The minimum and maximum number of ports for one controller are
|
---|
13132 | stored in <link to="IStorageController::minPortCount"/>
|
---|
13133 | and <link to="IStorageController::maxPortCount"/>.
|
---|
13134 | </desc>
|
---|
13135 | </attribute>
|
---|
13136 |
|
---|
13137 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
13138 | <desc>
|
---|
13139 | The bus type of the storage controller (IDE, SATA, SCSI or Floppy).
|
---|
13140 | </desc>
|
---|
13141 | </attribute>
|
---|
13142 |
|
---|
13143 | <attribute name="controllerType" type="StorageControllerType">
|
---|
13144 | <desc>
|
---|
13145 | The exact variant of storage controller hardware presented
|
---|
13146 | to the guest.
|
---|
13147 | Depending on this value, VirtualBox will provide a different
|
---|
13148 | virtual storage controller hardware to the guest.
|
---|
13149 | For SATA and floppy controllers, only one variant is available,
|
---|
13150 | but for IDE and SCSI, there are several.
|
---|
13151 |
|
---|
13152 | For SCSI controllers, the default type is LsiLogic.
|
---|
13153 | </desc>
|
---|
13154 | </attribute>
|
---|
13155 |
|
---|
13156 | <method name="GetIDEEmulationPort">
|
---|
13157 | <desc>
|
---|
13158 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
13159 | Works only with SATA controllers.
|
---|
13160 |
|
---|
13161 | <result name="E_INVALIDARG">
|
---|
13162 | The @a devicePosition is not in the range 0 to 3.
|
---|
13163 | </result>
|
---|
13164 | <result name="E_NOTIMPL">
|
---|
13165 | The storage controller type is not SATAIntelAhci.
|
---|
13166 | </result>
|
---|
13167 |
|
---|
13168 | </desc>
|
---|
13169 | <param name="devicePosition" type="long" dir="in"/>
|
---|
13170 | <param name="portNumber" type="long" dir="return"/>
|
---|
13171 | </method>
|
---|
13172 |
|
---|
13173 | <method name="SetIDEEmulationPort">
|
---|
13174 | <desc>
|
---|
13175 | Sets the port number which is emulated as an IDE device.
|
---|
13176 | Works only with SATA controllers.
|
---|
13177 |
|
---|
13178 | <result name="E_INVALIDARG">
|
---|
13179 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
13180 | @a portNumber is not in the range 0 to 29.
|
---|
13181 | </result>
|
---|
13182 | <result name="E_NOTIMPL">
|
---|
13183 | The storage controller type is not SATAIntelAhci.
|
---|
13184 | </result>
|
---|
13185 |
|
---|
13186 | </desc>
|
---|
13187 | <param name="devicePosition" type="long" dir="in"/>
|
---|
13188 | <param name="portNumber" type="long" dir="in"/>
|
---|
13189 | </method>
|
---|
13190 |
|
---|
13191 | </interface>
|
---|
13192 |
|
---|
13193 | <if target="wsdl">
|
---|
13194 |
|
---|
13195 | <!--
|
---|
13196 | // IManagedObjectRef
|
---|
13197 | /////////////////////////////////////////////////////////////////////////
|
---|
13198 | -->
|
---|
13199 |
|
---|
13200 | <interface
|
---|
13201 | name="IManagedObjectRef" extends="$unknown"
|
---|
13202 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
13203 | internal="yes"
|
---|
13204 | wsmap="managed"
|
---|
13205 | wscpp="hardcoded"
|
---|
13206 | >
|
---|
13207 | <desc>
|
---|
13208 | Managed object reference.
|
---|
13209 |
|
---|
13210 | Only within the webservice, a managed object reference (which is really
|
---|
13211 | an opaque number) allows a webservice client to address an object
|
---|
13212 | that lives in the address space of the webservice server.
|
---|
13213 |
|
---|
13214 | Behind each managed object reference, there is a COM object that lives
|
---|
13215 | in the webservice server's address space. The COM object is not freed
|
---|
13216 | until the managed object reference is released, either by an explicit
|
---|
13217 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
13218 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
13219 | all objects created during the webservice session.
|
---|
13220 |
|
---|
13221 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
13222 | webservice representation of that method will instead return a
|
---|
13223 | managed object reference, which can then be used to invoke methods
|
---|
13224 | on that object.
|
---|
13225 | </desc>
|
---|
13226 |
|
---|
13227 | <method name="getInterfaceName">
|
---|
13228 | <desc>
|
---|
13229 | Returns the name of the interface that this managed object represents,
|
---|
13230 | for example, "IMachine", as a string.
|
---|
13231 | </desc>
|
---|
13232 | <param name="return" type="wstring" dir="return"/>
|
---|
13233 | </method>
|
---|
13234 |
|
---|
13235 | <method name="release">
|
---|
13236 | <desc>
|
---|
13237 | Releases this managed object reference and frees the resources that
|
---|
13238 | were allocated for it in the webservice server process. After calling
|
---|
13239 | this method, the identifier of the reference can no longer be used.
|
---|
13240 | </desc>
|
---|
13241 | </method>
|
---|
13242 |
|
---|
13243 | </interface>
|
---|
13244 |
|
---|
13245 | <!--
|
---|
13246 | // IWebsessionManager
|
---|
13247 | /////////////////////////////////////////////////////////////////////////
|
---|
13248 | -->
|
---|
13249 |
|
---|
13250 | <interface
|
---|
13251 | name="IWebsessionManager" extends="$unknown"
|
---|
13252 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
13253 | internal="yes"
|
---|
13254 | wsmap="global"
|
---|
13255 | wscpp="hardcoded"
|
---|
13256 | >
|
---|
13257 | <desc>
|
---|
13258 | Websession manager. This provides essential services
|
---|
13259 | to webservice clients.
|
---|
13260 | </desc>
|
---|
13261 | <method name="logon">
|
---|
13262 | <desc>
|
---|
13263 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
13264 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
13265 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
13266 | interface, in one way or the other.
|
---|
13267 | </desc>
|
---|
13268 | <param name="username" type="wstring" dir="in"/>
|
---|
13269 | <param name="password" type="wstring" dir="in"/>
|
---|
13270 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
13271 | </method>
|
---|
13272 |
|
---|
13273 | <method name="getSessionObject">
|
---|
13274 | <desc>
|
---|
13275 | Returns a managed object reference to the internal ISession object that was created
|
---|
13276 | for this web service session when the client logged on.
|
---|
13277 |
|
---|
13278 | <see>ISession</see>
|
---|
13279 | </desc>
|
---|
13280 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
13281 | <param name="return" type="ISession" dir="return"/>
|
---|
13282 | </method>
|
---|
13283 |
|
---|
13284 | <method name="logoff">
|
---|
13285 | <desc>
|
---|
13286 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
13287 | and destroys all resources associated with the session (most importantly, all
|
---|
13288 | managed objects created in the server while the session was active).
|
---|
13289 | </desc>
|
---|
13290 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
13291 | </method>
|
---|
13292 |
|
---|
13293 | </interface>
|
---|
13294 |
|
---|
13295 | </if>
|
---|
13296 |
|
---|
13297 | <!--
|
---|
13298 | // IPerformanceCollector & friends
|
---|
13299 | /////////////////////////////////////////////////////////////////////////
|
---|
13300 | -->
|
---|
13301 |
|
---|
13302 | <interface
|
---|
13303 | name="IPerformanceMetric" extends="$unknown"
|
---|
13304 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
13305 | >
|
---|
13306 | <desc>
|
---|
13307 | The IPerformanceMetric interface represents parameters of the given
|
---|
13308 | performance metric.
|
---|
13309 | </desc>
|
---|
13310 |
|
---|
13311 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
13312 | <desc>
|
---|
13313 | Name of the metric.
|
---|
13314 | </desc>
|
---|
13315 | </attribute>
|
---|
13316 |
|
---|
13317 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
13318 | <desc>
|
---|
13319 | Object this metric belongs to.
|
---|
13320 | </desc>
|
---|
13321 | </attribute>
|
---|
13322 |
|
---|
13323 | <attribute name="description" type="wstring" readonly="yes">
|
---|
13324 | <desc>
|
---|
13325 | Textual description of the metric.
|
---|
13326 | </desc>
|
---|
13327 | </attribute>
|
---|
13328 |
|
---|
13329 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
13330 | <desc>
|
---|
13331 | Time interval between samples, measured in seconds.
|
---|
13332 | </desc>
|
---|
13333 | </attribute>
|
---|
13334 |
|
---|
13335 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
13336 | <desc>
|
---|
13337 | Number of recent samples retained by the performance collector for this
|
---|
13338 | metric.
|
---|
13339 |
|
---|
13340 | When the collected sample count exceeds this number, older samples
|
---|
13341 | are discarded.
|
---|
13342 | </desc>
|
---|
13343 | </attribute>
|
---|
13344 |
|
---|
13345 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
13346 | <desc>
|
---|
13347 | Unit of measurement.
|
---|
13348 | </desc>
|
---|
13349 | </attribute>
|
---|
13350 |
|
---|
13351 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
13352 | <desc>
|
---|
13353 | Minimum possible value of this metric.
|
---|
13354 | </desc>
|
---|
13355 | </attribute>
|
---|
13356 |
|
---|
13357 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
13358 | <desc>
|
---|
13359 | Maximum possible value of this metric.
|
---|
13360 | </desc>
|
---|
13361 | </attribute>
|
---|
13362 | </interface>
|
---|
13363 |
|
---|
13364 | <interface
|
---|
13365 | name="IPerformanceCollector" extends="$unknown"
|
---|
13366 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
13367 | wsmap="managed"
|
---|
13368 | >
|
---|
13369 | <desc>
|
---|
13370 | The IPerformanceCollector interface represents a service that collects and
|
---|
13371 | stores performance metrics data.
|
---|
13372 |
|
---|
13373 | Performance metrics are associated with objects of interfaces like IHost and
|
---|
13374 | IMachine. Each object has a distinct set of performance metrics.
|
---|
13375 | The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
13376 |
|
---|
13377 | Metric data is collected at the specified intervals and is retained
|
---|
13378 | internally. The interval and the number of retained samples can be set
|
---|
13379 | with <link to="IPerformanceCollector::setupMetrics" />.
|
---|
13380 |
|
---|
13381 | Metrics are organized hierarchically, with each level separated by a
|
---|
13382 | slash (/) character. Generally, the scheme for metric names is like this:
|
---|
13383 |
|
---|
13384 | <tt>Category/Metric[/SubMetric][:aggregation]</tt>
|
---|
13385 |
|
---|
13386 | "Category/Metric" together form the base metric name. A base metric is the
|
---|
13387 | smallest unit for which a sampling interval and the number of retained
|
---|
13388 | samples can be set. Only base metrics can be enabled and disabled. All
|
---|
13389 | sub-metrics are collected when their base metric is collected.
|
---|
13390 | Collected values for any set of sub-metrics can be queried with
|
---|
13391 | <link to="IPerformanceCollector::queryMetricsData" />.
|
---|
13392 |
|
---|
13393 | For example "CPU/Load/User:avg"
|
---|
13394 | metric name stands for the "CPU" category, "Load" metric, "User" submetric,
|
---|
13395 | "average" aggregate. An aggregate function is computed over all retained
|
---|
13396 | data. Valid aggregate functions are:
|
---|
13397 |
|
---|
13398 | <ul>
|
---|
13399 | <li>avg -- average</li>
|
---|
13400 | <li>min -- minimum</li>
|
---|
13401 | <li>max -- maximum</li>
|
---|
13402 | </ul>
|
---|
13403 |
|
---|
13404 | When setting up
|
---|
13405 | metric parameters, querying metric data, enabling or disabling metrics
|
---|
13406 | wildcards can be used in metric names to specify a subset of metrics. For
|
---|
13407 | example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
|
---|
13408 | averages can be queried using <tt>*:avg</tt> and so on. To query metric
|
---|
13409 | values without aggregates <tt>*:</tt> can be used.
|
---|
13410 |
|
---|
13411 | The valid names for base metrics are:
|
---|
13412 |
|
---|
13413 | <ul>
|
---|
13414 | <li>CPU/Load</li>
|
---|
13415 | <li>CPU/MHz</li>
|
---|
13416 | <li>RAM/Usage</li>
|
---|
13417 | </ul>
|
---|
13418 |
|
---|
13419 | The general sequence for collecting and retrieving the metrics is:
|
---|
13420 | <ul>
|
---|
13421 | <li>
|
---|
13422 | Obtain an instance of IPerformanceCollector with
|
---|
13423 | <link to="IVirtualBox::performanceCollector" />
|
---|
13424 | </li>
|
---|
13425 | <li>
|
---|
13426 | Allocate and populate an array with references to objects the metrics
|
---|
13427 | will be collected for. Use references to IHost and IMachine objects.
|
---|
13428 | </li>
|
---|
13429 | <li>
|
---|
13430 | Allocate and populate an array with base metric names the data will be
|
---|
13431 | collected for.
|
---|
13432 | </li>
|
---|
13433 | <li>
|
---|
13434 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
|
---|
13435 | metric data will be collected and stored.
|
---|
13436 | </li>
|
---|
13437 | <li>
|
---|
13438 | Wait for the data to get collected.
|
---|
13439 | </li>
|
---|
13440 | <li>
|
---|
13441 | Allocate and populate an array with references to objects the metric
|
---|
13442 | values will be queried for. You can re-use the object array used for
|
---|
13443 | setting base metrics.
|
---|
13444 | </li>
|
---|
13445 | <li>
|
---|
13446 | Allocate and populate an array with metric names the data will be
|
---|
13447 | collected for. Note that metric names differ from base metric names.
|
---|
13448 | </li>
|
---|
13449 | <li>
|
---|
13450 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
|
---|
13451 | have been collected so far are returned. Note that the values are still
|
---|
13452 | retained internally and data collection continues.
|
---|
13453 | </li>
|
---|
13454 | </ul>
|
---|
13455 |
|
---|
13456 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
13457 | <ul>
|
---|
13458 | <li>
|
---|
13459 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
13460 | </li>
|
---|
13461 | <li>
|
---|
13462 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
13463 | </li>
|
---|
13464 | </ul>
|
---|
13465 | </desc>
|
---|
13466 |
|
---|
13467 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
13468 | <desc>
|
---|
13469 | Array of unique names of metrics.
|
---|
13470 |
|
---|
13471 | This array represents all metrics supported by the performance
|
---|
13472 | collector. Individual objects do not necessarily support all of them.
|
---|
13473 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
13474 | list of supported metrics for a particular object.
|
---|
13475 | </desc>
|
---|
13476 | </attribute>
|
---|
13477 |
|
---|
13478 | <method name="getMetrics">
|
---|
13479 | <desc>
|
---|
13480 | Returns parameters of specified metrics for a set of objects.
|
---|
13481 | <note>
|
---|
13482 | @c Null metrics array means all metrics. @c Null object array means
|
---|
13483 | all existing objects.
|
---|
13484 | </note>
|
---|
13485 | </desc>
|
---|
13486 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13487 | <desc>
|
---|
13488 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
13489 | is supported.
|
---|
13490 | </desc>
|
---|
13491 | </param>
|
---|
13492 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13493 | <desc>
|
---|
13494 | Set of objects to return metric parameters for.
|
---|
13495 | </desc>
|
---|
13496 | </param>
|
---|
13497 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13498 | <desc>
|
---|
13499 | Array of returned metric parameters.
|
---|
13500 | </desc>
|
---|
13501 | </param>
|
---|
13502 | </method>
|
---|
13503 |
|
---|
13504 | <method name="setupMetrics">
|
---|
13505 | <desc>
|
---|
13506 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
13507 | an array of <link to="IPerformanceMetric" /> describing the metrics have
|
---|
13508 | been affected.
|
---|
13509 | <note>
|
---|
13510 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13511 | object array means all existing objects. If metric name array contains
|
---|
13512 | a single element and object array contains many, the single metric
|
---|
13513 | name array element is applied to each object array element to form
|
---|
13514 | metric/object pairs.
|
---|
13515 | </note>
|
---|
13516 | </desc>
|
---|
13517 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13518 | <desc>
|
---|
13519 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13520 | support.
|
---|
13521 | </desc>
|
---|
13522 | </param>
|
---|
13523 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13524 | <desc>
|
---|
13525 | Set of objects to setup metric parameters for.
|
---|
13526 | </desc>
|
---|
13527 | </param>
|
---|
13528 | <param name="period" type="unsigned long" dir="in">
|
---|
13529 | <desc>
|
---|
13530 | Time interval in seconds between two consecutive samples of performance
|
---|
13531 | data.
|
---|
13532 | </desc>
|
---|
13533 | </param>
|
---|
13534 | <param name="count" type="unsigned long" dir="in">
|
---|
13535 | <desc>
|
---|
13536 | Number of samples to retain in performance data history. Older samples
|
---|
13537 | get discarded.
|
---|
13538 | </desc>
|
---|
13539 | </param>
|
---|
13540 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13541 | <desc>
|
---|
13542 | Array of metrics that have been modified by the call to this method.
|
---|
13543 | </desc>
|
---|
13544 | </param>
|
---|
13545 | </method>
|
---|
13546 |
|
---|
13547 | <method name="enableMetrics">
|
---|
13548 | <desc>
|
---|
13549 | Turns on collecting specified base metrics. Returns an array of
|
---|
13550 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13551 | affected.
|
---|
13552 | <note>
|
---|
13553 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13554 | object array means all existing objects. If metric name array contains
|
---|
13555 | a single element and object array contains many, the single metric
|
---|
13556 | name array element is applied to each object array element to form
|
---|
13557 | metric/object pairs.
|
---|
13558 | </note>
|
---|
13559 | </desc>
|
---|
13560 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13561 | <desc>
|
---|
13562 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13563 | support.
|
---|
13564 | </desc>
|
---|
13565 | </param>
|
---|
13566 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13567 | <desc>
|
---|
13568 | Set of objects to enable metrics for.
|
---|
13569 | </desc>
|
---|
13570 | </param>
|
---|
13571 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13572 | <desc>
|
---|
13573 | Array of metrics that have been modified by the call to this method.
|
---|
13574 | </desc>
|
---|
13575 | </param>
|
---|
13576 | </method>
|
---|
13577 |
|
---|
13578 | <method name="disableMetrics">
|
---|
13579 | <desc>
|
---|
13580 | Turns off collecting specified base metrics. Returns an array of
|
---|
13581 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13582 | affected.
|
---|
13583 | <note>
|
---|
13584 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13585 | object array means all existing objects. If metric name array contains
|
---|
13586 | a single element and object array contains many, the single metric
|
---|
13587 | name array element is applied to each object array element to form
|
---|
13588 | metric/object pairs.
|
---|
13589 | </note>
|
---|
13590 | </desc>
|
---|
13591 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13592 | <desc>
|
---|
13593 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13594 | support.
|
---|
13595 | </desc>
|
---|
13596 | </param>
|
---|
13597 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13598 | <desc>
|
---|
13599 | Set of objects to disable metrics for.
|
---|
13600 | </desc>
|
---|
13601 | </param>
|
---|
13602 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13603 | <desc>
|
---|
13604 | Array of metrics that have been modified by the call to this method.
|
---|
13605 | </desc>
|
---|
13606 | </param>
|
---|
13607 | </method>
|
---|
13608 |
|
---|
13609 | <method name="queryMetricsData">
|
---|
13610 | <desc>
|
---|
13611 | Queries collected metrics data for a set of objects.
|
---|
13612 |
|
---|
13613 | The data itself and related metric information are returned in seven
|
---|
13614 | parallel and one flattened array of arrays. Elements of
|
---|
13615 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
13616 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
13617 | the same index describe one set of values corresponding to a single
|
---|
13618 | metric.
|
---|
13619 |
|
---|
13620 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
13621 | start and length of a sub-array is indicated by
|
---|
13622 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
13623 | value for metric <tt>metricNames[i]</tt> is at
|
---|
13624 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
13625 |
|
---|
13626 | <note>
|
---|
13627 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13628 | object array means all existing objects. If metric name array contains
|
---|
13629 | a single element and object array contains many, the single metric
|
---|
13630 | name array element is applied to each object array element to form
|
---|
13631 | metric/object pairs.
|
---|
13632 | </note>
|
---|
13633 | <note>
|
---|
13634 | Data collection continues behind the scenes after call to
|
---|
13635 | @c queryMetricsData. The return data can be seen as the snapshot of
|
---|
13636 | the current state at the time of @c queryMetricsData call. The
|
---|
13637 | internally kept metric values are not cleared by the call. This makes
|
---|
13638 | possible querying different subsets of metrics or aggregates with
|
---|
13639 | subsequent calls. If periodic querying is needed it is highly
|
---|
13640 | suggested to query the values with @c interval*count period to avoid
|
---|
13641 | confusion. This way a completely new set of data values will be
|
---|
13642 | provided by each query.
|
---|
13643 | </note>
|
---|
13644 | </desc>
|
---|
13645 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13646 | <desc>
|
---|
13647 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13648 | support.
|
---|
13649 | </desc>
|
---|
13650 | </param>
|
---|
13651 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13652 | <desc>
|
---|
13653 | Set of objects to query metrics for.
|
---|
13654 | </desc>
|
---|
13655 | </param>
|
---|
13656 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
13657 | <desc>
|
---|
13658 | Names of metrics returned in @c returnData.
|
---|
13659 | </desc>
|
---|
13660 | </param>
|
---|
13661 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
13662 | <desc>
|
---|
13663 | Objects associated with metrics returned in @c returnData.
|
---|
13664 | </desc>
|
---|
13665 | </param>
|
---|
13666 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
13667 | <desc>
|
---|
13668 | Units of measurement for each returned metric.
|
---|
13669 | </desc>
|
---|
13670 | </param>
|
---|
13671 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
13672 | <desc>
|
---|
13673 | Divisor that should be applied to return values in order to get
|
---|
13674 | floating point values. For example:
|
---|
13675 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
13676 | will retrieve the floating point value of i-th sample of the first
|
---|
13677 | metric.
|
---|
13678 | </desc>
|
---|
13679 | </param>
|
---|
13680 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
13681 | <desc>
|
---|
13682 | Sequence numbers of the first elements of value sequences of particular metrics
|
---|
13683 | returned in @c returnData. For aggregate metrics it is the sequence number of
|
---|
13684 | the sample the aggregate started calculation from.
|
---|
13685 | </desc>
|
---|
13686 | </param>
|
---|
13687 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
13688 | <desc>
|
---|
13689 | Indices of the first elements of value sequences of particular metrics
|
---|
13690 | returned in @c returnData.
|
---|
13691 | </desc>
|
---|
13692 | </param>
|
---|
13693 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
13694 | <desc>
|
---|
13695 | Lengths of value sequences of particular metrics.
|
---|
13696 | </desc>
|
---|
13697 | </param>
|
---|
13698 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
13699 | <desc>
|
---|
13700 | Flattened array of all metric data containing sequences of values for
|
---|
13701 | each metric.
|
---|
13702 | </desc>
|
---|
13703 | </param>
|
---|
13704 | </method>
|
---|
13705 |
|
---|
13706 | </interface>
|
---|
13707 |
|
---|
13708 | <module name="VBoxSVC" context="LocalServer">
|
---|
13709 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
13710 | namespace="virtualbox.org">
|
---|
13711 | <interface name="IVirtualBox" default="yes"/>
|
---|
13712 | </class>
|
---|
13713 | </module>
|
---|
13714 |
|
---|
13715 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
13716 | <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
|
---|
13717 | namespace="virtualbox.org">
|
---|
13718 | <interface name="ISession" default="yes"/>
|
---|
13719 | </class>
|
---|
13720 | <class name="CallbackWrapper" uuid="49EE8561-5563-4715-B18C-A4B1A490DAFE"
|
---|
13721 | namespace="virtualbox.org">
|
---|
13722 | <interface name="ILocalOwner" default="yes"/>
|
---|
13723 | <interface name="IVirtualBoxCallback"/>
|
---|
13724 | <interface name="IConsoleCallback"/>
|
---|
13725 | </class>
|
---|
13726 | </module>
|
---|
13727 |
|
---|
13728 | </library>
|
---|
13729 |
|
---|
13730 | </idl>
|
---|
13731 |
|
---|
13732 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|