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 |
|
---|
130 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
131 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
132 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
133 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
134 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
135 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
136 | #endif
|
---|
137 |
|
---|
138 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
139 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
140 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
141 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
142 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
143 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
144 | #endif
|
---|
145 |
|
---|
146 | #ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
147 | # define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
148 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
149 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
150 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
151 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
152 | NS_INTERFACE_MAP_END
|
---|
153 | #endif
|
---|
154 |
|
---|
155 | #ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
156 | # define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
157 | _i2, _ic2) \
|
---|
158 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
159 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
160 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
161 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
162 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
163 | NS_INTERFACE_MAP_END
|
---|
164 | #endif
|
---|
165 |
|
---|
166 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
167 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
168 |
|
---|
169 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
|
---|
170 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
171 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
172 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
173 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
174 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
|
---|
175 | #endif
|
---|
176 |
|
---|
177 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
|
---|
178 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
179 | _i2, _ic2) \
|
---|
180 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
181 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
182 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
183 | _i2, _ic2) \
|
---|
184 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
185 | #endif
|
---|
186 | </cpp>
|
---|
187 | </if>
|
---|
188 |
|
---|
189 | <library
|
---|
190 | name="VirtualBox"
|
---|
191 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
192 | version="1.3"
|
---|
193 | desc="VirtualBox Type Library"
|
---|
194 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
195 | supportsErrorInfo="yes"
|
---|
196 | >
|
---|
197 |
|
---|
198 |
|
---|
199 | <!--
|
---|
200 | // COM result codes for VirtualBox
|
---|
201 | /////////////////////////////////////////////////////////////////////////
|
---|
202 | -->
|
---|
203 |
|
---|
204 | <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
|
---|
205 | <desc>
|
---|
206 | This section describes all VirtualBox-specific COM result codes that may
|
---|
207 | be returned by methods of VirtualBox COM interfaces in addition to
|
---|
208 | standard COM result codes.
|
---|
209 |
|
---|
210 | Note that along with the result code, every VirtualBox method returns
|
---|
211 | extended error information through the IVirtualBoxErrorInfo interface on
|
---|
212 | failure. This interface is a preferred way to present the error to the end
|
---|
213 | user because it contains a human readable description of the error. Raw
|
---|
214 | result codes, both standard and described in this section, are intended to
|
---|
215 | be used by programs to analyze the reason of a failure and select an
|
---|
216 | appropriate course of action without involving the end user (for example,
|
---|
217 | retry the operation later or make a different call).
|
---|
218 |
|
---|
219 | The standard COM result codes that may originate from our methods include:
|
---|
220 |
|
---|
221 | <table>
|
---|
222 | <tr><td>E_INVALIDARG</td>
|
---|
223 | <td>
|
---|
224 | Returned when the value of the method's argument is not within the range
|
---|
225 | of valid values. This should not be confused with situations when the
|
---|
226 | value is within the range but simply doesn't suit the current object
|
---|
227 | state and there is a possibility that it will be accepted later (in such
|
---|
228 | cases VirtualBox-specific codes are returned, for example,
|
---|
229 | <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
|
---|
230 | </td>
|
---|
231 | </tr>
|
---|
232 | <tr><td>E_POINTER</td>
|
---|
233 | <td>
|
---|
234 | Returned if a memory pointer for the output argument is invalid (for
|
---|
235 | example, <tt>NULL</tt>). Note that when pointers representing input
|
---|
236 | arguments (such as strings) are invalid, E_INVALIDARG is returned.
|
---|
237 | </td>
|
---|
238 | </tr>
|
---|
239 | <tr><td>E_ACCESSDENIED</td>
|
---|
240 | <td>
|
---|
241 | Returned when the called object is not ready. Since the lifetime of a
|
---|
242 | public COM object cannot be fully controlled by the implementation,
|
---|
243 | VirtualBox maintains the readiness state for all objects it creates and
|
---|
244 | returns this code in response to any method call on the object that was
|
---|
245 | deactivated by VirtualBox and is not functioning any more.
|
---|
246 | </td>
|
---|
247 | </tr>
|
---|
248 | <tr><td>E_OUTOFMEMORY</td>
|
---|
249 | <td>
|
---|
250 | Returned when a memory allocation operation fails.
|
---|
251 | </td>
|
---|
252 | </tr>
|
---|
253 | </table>
|
---|
254 | </desc>
|
---|
255 | </descGroup>
|
---|
256 |
|
---|
257 | <!--
|
---|
258 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
259 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
260 | the matter of the error code in the first sentence and keep it short.
|
---|
261 | -->
|
---|
262 |
|
---|
263 | <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
|
---|
264 | <desc>
|
---|
265 | Object corresponding to the supplied arguments does not exist.
|
---|
266 | </desc>
|
---|
267 | </result>
|
---|
268 |
|
---|
269 | <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
|
---|
270 | <desc>
|
---|
271 | Current virtual machine state prevents the operation.
|
---|
272 | </desc>
|
---|
273 | </result>
|
---|
274 |
|
---|
275 | <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
|
---|
276 | <desc>
|
---|
277 | Virtual machine error occurred attempting the operation.
|
---|
278 | </desc>
|
---|
279 | </result>
|
---|
280 |
|
---|
281 | <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
|
---|
282 | <desc>
|
---|
283 | File not accessible or erroneous file contents.
|
---|
284 | </desc>
|
---|
285 | </result>
|
---|
286 |
|
---|
287 | <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
|
---|
288 | <desc>
|
---|
289 | Runtime subsystem error.
|
---|
290 | </desc>
|
---|
291 | </result>
|
---|
292 |
|
---|
293 | <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
|
---|
294 | <desc>
|
---|
295 | Pluggable Device Manager error.
|
---|
296 | </desc>
|
---|
297 | </result>
|
---|
298 |
|
---|
299 | <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
|
---|
300 | <desc>
|
---|
301 | Current object state prohibits operation.
|
---|
302 | </desc>
|
---|
303 | </result>
|
---|
304 |
|
---|
305 | <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
|
---|
306 | <desc>
|
---|
307 | Host operating system related error.
|
---|
308 | </desc>
|
---|
309 | </result>
|
---|
310 |
|
---|
311 | <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
|
---|
312 | <desc>
|
---|
313 | Requested operation is not supported.
|
---|
314 | </desc>
|
---|
315 | </result>
|
---|
316 |
|
---|
317 | <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
|
---|
318 | <desc>
|
---|
319 | Invalid XML found.
|
---|
320 | </desc>
|
---|
321 | </result>
|
---|
322 |
|
---|
323 | <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
|
---|
324 | <desc>
|
---|
325 | Current session state prohibits operation.
|
---|
326 | </desc>
|
---|
327 | </result>
|
---|
328 |
|
---|
329 | <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
|
---|
330 | <desc>
|
---|
331 | Object being in use prohibits operation.
|
---|
332 | </desc>
|
---|
333 | </result>
|
---|
334 |
|
---|
335 | <!--
|
---|
336 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
337 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
338 | the matter of the error code in the first sentence and keep it short.
|
---|
339 | -->
|
---|
340 |
|
---|
341 | <descGroup/>
|
---|
342 |
|
---|
343 | <!--
|
---|
344 | // all common enums
|
---|
345 | /////////////////////////////////////////////////////////////////////////
|
---|
346 | -->
|
---|
347 |
|
---|
348 | <enum
|
---|
349 | name="TSBool"
|
---|
350 | uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
|
---|
351 | >
|
---|
352 | <desc>
|
---|
353 | Boolean variable having a third state, default.
|
---|
354 | </desc>
|
---|
355 |
|
---|
356 | <const name="False" value="0"/>
|
---|
357 | <const name="True" value="1"/>
|
---|
358 | <const name="Default" value="2"/>
|
---|
359 | </enum>
|
---|
360 |
|
---|
361 | <enum
|
---|
362 | name="AccessMode"
|
---|
363 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
364 | >
|
---|
365 | <desc>
|
---|
366 | Access mode for opening files.
|
---|
367 | </desc>
|
---|
368 |
|
---|
369 | <const name="ReadOnly" value="1"/>
|
---|
370 | <const name="ReadWrite" value="2"/>
|
---|
371 | </enum>
|
---|
372 |
|
---|
373 | <enum
|
---|
374 | name="MachineState"
|
---|
375 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
376 | >
|
---|
377 | <desc>
|
---|
378 | Virtual machine execution state.
|
---|
379 |
|
---|
380 | This enumeration represents possible values of the <link
|
---|
381 | to="IMachine::state"/> attribute.
|
---|
382 |
|
---|
383 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
384 | changes during virtual machine execution. The text in square braces shows
|
---|
385 | a method of the IConsole interface that performs the given state
|
---|
386 | transition.
|
---|
387 |
|
---|
388 | <pre>
|
---|
389 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
390 | V |
|
---|
391 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
392 | | | | | V |
|
---|
393 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
394 | | | ^ | ^ |
|
---|
395 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
396 | | ^ | | | |
|
---|
397 | | | +-----------------------------------------+-|-------------------+ +
|
---|
398 | | | | | |
|
---|
399 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
400 | | | | |
|
---|
401 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
402 | | | |
|
---|
403 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
404 | </pre>
|
---|
405 |
|
---|
406 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
407 | above diagram are called <i>online VM states</i>. These states
|
---|
408 | represent the virtual machine which is being executed in a dedicated
|
---|
409 | process (usually with a GUI window attached to it where you can see the
|
---|
410 | activity of the virtual machine and interact with it). There are two
|
---|
411 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
412 | relational expressions to detect if the given machine state is online or
|
---|
413 | not:
|
---|
414 |
|
---|
415 | <pre>
|
---|
416 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
417 | machine.GetState() <= MachineState_LastOnline)
|
---|
418 | {
|
---|
419 | ...the machine is being executed...
|
---|
420 | }
|
---|
421 | </pre>
|
---|
422 |
|
---|
423 | When the virtual machine is in one of the online VM states (that is, being
|
---|
424 | executed), only a few machine settings can be modified. Methods working
|
---|
425 | with such settings contain an explicit note about that. An attempt to
|
---|
426 | change any oter setting or perform a modifying operation during this time
|
---|
427 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
428 |
|
---|
429 | All online states except Running, Paused and Stuck are transitional: they
|
---|
430 | represent temporary conditions of the virtual machine that will last as
|
---|
431 | long as the operation that initiated such a condition.
|
---|
432 |
|
---|
433 | The Stuck state is a special case. It means that execution of the machine
|
---|
434 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
435 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
436 | result of either an unhandled low-level virtual hardware exception or one
|
---|
437 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
438 | condition).
|
---|
439 |
|
---|
440 | Note also that any online VM state may transit to the Aborted state. This
|
---|
441 | happens if the process that is executing the virtual machine terminates
|
---|
442 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
443 | equivalent to PoweredOff.
|
---|
444 |
|
---|
445 | There are also a few additional state diagrams that do not deal with
|
---|
446 | virtual machine execution and therefore are shown separately. The states
|
---|
447 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
448 | PoweredOff, Aborted and Saved too).
|
---|
449 |
|
---|
450 | The first diagram shows what happens when a lengthy setup operation is
|
---|
451 | being executed (such as <link to="IMachine::attachHardDisk"/>).
|
---|
452 |
|
---|
453 | <pre>
|
---|
454 | +-----------------------------------(same sate as before the call)------+
|
---|
455 | | |
|
---|
456 | +-> PoweredOff --+ |
|
---|
457 | | | |
|
---|
458 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
459 | | |
|
---|
460 | +-> Saved -------+
|
---|
461 | </pre>
|
---|
462 |
|
---|
463 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
464 | powered off virtual machine and performing one of the "discard..."
|
---|
465 | operations, respectively.
|
---|
466 |
|
---|
467 | <pre>
|
---|
468 | +-----------------------------------(same sate as before the call)------+
|
---|
469 | | |
|
---|
470 | +-> PoweredOff --+ |
|
---|
471 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
472 | +-> Aborted -----+
|
---|
473 |
|
---|
474 | +-> PoweredOff --+
|
---|
475 | | |
|
---|
476 | | Aborted -----+-->[discardSnapshot() ]-------------> Discarding --+
|
---|
477 | | | [discardCurrentState()] |
|
---|
478 | +-> Saved -------+ [discardCurrentSnapshotAndState()] |
|
---|
479 | | |
|
---|
480 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
481 | </pre>
|
---|
482 |
|
---|
483 | Note that the Saving state is present in both the offline state group and
|
---|
484 | online state group. Currently, the only way to determine what group is
|
---|
485 | assumed in a particular case is to remember the previous machine state: if
|
---|
486 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
487 | an offline state. This inconsistency may be removed in one of the future
|
---|
488 | versions of VirtualBox by adding a new state.
|
---|
489 |
|
---|
490 | <note internal="yes">
|
---|
491 | For whoever decides to touch this enum: In order to keep the
|
---|
492 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
493 | the numeric values of these states must be correspondingly updated if
|
---|
494 | needed: for any online VM state, the condition
|
---|
495 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
496 | <tt>true</tt>. The same relates to transient states for which
|
---|
497 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
498 | <tt>true</tt>.
|
---|
499 | </note>
|
---|
500 | </desc>
|
---|
501 |
|
---|
502 | <const name="Null" value="0">
|
---|
503 | <desc>Null value (nver used by the API).</desc>
|
---|
504 | </const>
|
---|
505 | <const name="PoweredOff" value="1">
|
---|
506 | <desc>
|
---|
507 | The machine is not running.
|
---|
508 | </desc>
|
---|
509 | </const>
|
---|
510 | <const name="Saved" value="2">
|
---|
511 | <desc>
|
---|
512 | The machine is not currently running, but the execution state of the machine
|
---|
513 | has been saved to an external file when it was running.
|
---|
514 | </desc>
|
---|
515 | </const>
|
---|
516 | <const name="Aborted" value="3">
|
---|
517 | <desc>
|
---|
518 | The process running the machine has terminated abnormally.
|
---|
519 | </desc>
|
---|
520 | </const>
|
---|
521 | <const name="Running" value="4">
|
---|
522 | <desc>
|
---|
523 | The machine is currently being executed.
|
---|
524 | <note internal="yes">
|
---|
525 | For whoever decides to touch this enum: In order to keep the
|
---|
526 | comparisons in the old source code valid, this state must immediately
|
---|
527 | precede the Paused state.
|
---|
528 | </note>
|
---|
529 | </desc>
|
---|
530 | </const>
|
---|
531 | <const name="Paused" value="5">
|
---|
532 | <desc>
|
---|
533 | Execution of the machine has been paused.
|
---|
534 | <note internal="yes">
|
---|
535 | For whoever decides to touch this enum: In order to keep the
|
---|
536 | comparisons in the old source code valid, this state must immediately
|
---|
537 | follow the Running state.
|
---|
538 | </note>
|
---|
539 | </desc>
|
---|
540 | </const>
|
---|
541 | <const name="Stuck" value="6">
|
---|
542 | <desc>
|
---|
543 | Execution of the machine has reached the "Guru Meditation"
|
---|
544 | condition.
|
---|
545 | </desc>
|
---|
546 | </const>
|
---|
547 | <const name="Starting" value="7">
|
---|
548 | <desc>
|
---|
549 | Machine is being started after powering it on from a
|
---|
550 | zero execution state.
|
---|
551 | </desc>
|
---|
552 | </const>
|
---|
553 | <const name="Stopping" value="8">
|
---|
554 | <desc>
|
---|
555 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
556 | has initiated a shutdown sequence.
|
---|
557 | </desc>
|
---|
558 | </const>
|
---|
559 | <const name="Saving" value="9">
|
---|
560 | <desc>
|
---|
561 | Machine is saving its execution state to a file or an online
|
---|
562 | snapshot of the machine is being taken.
|
---|
563 | </desc>
|
---|
564 | </const>
|
---|
565 | <const name="Restoring" value="10">
|
---|
566 | <desc>
|
---|
567 | Execution state of the machine is being restored from a file
|
---|
568 | after powering it on from the saved execution state.
|
---|
569 | </desc>
|
---|
570 | </const>
|
---|
571 | <const name="Discarding" value="11">
|
---|
572 | <desc>
|
---|
573 | Snapshot of the machine is being discarded.
|
---|
574 | </desc>
|
---|
575 | </const>
|
---|
576 | <const name="SettingUp" value="12">
|
---|
577 | <desc>
|
---|
578 | Lengthy setup operation is in progress.
|
---|
579 | </desc>
|
---|
580 | </const>
|
---|
581 |
|
---|
582 | <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
|
---|
583 | <desc>
|
---|
584 | Pseudo-state: first online state (for use in relational expressions).
|
---|
585 | </desc>
|
---|
586 | </const>
|
---|
587 | <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
|
---|
588 | <desc>
|
---|
589 | Pseudo-state: last online state (for use in relational expressions).
|
---|
590 | </desc>
|
---|
591 | </const>
|
---|
592 |
|
---|
593 | <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
|
---|
594 | <desc>
|
---|
595 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
596 | </desc>
|
---|
597 | </const>
|
---|
598 | <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
|
---|
599 | <desc>
|
---|
600 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
601 | </desc>
|
---|
602 | </const>
|
---|
603 |
|
---|
604 | </enum>
|
---|
605 |
|
---|
606 | <enum
|
---|
607 | name="SessionState"
|
---|
608 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
609 | >
|
---|
610 | <desc>
|
---|
611 | Session state. This enumeration represents possible values of
|
---|
612 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
613 | attributes. See individual enumerator descriptions for the meaning for
|
---|
614 | every value.
|
---|
615 | </desc>
|
---|
616 |
|
---|
617 | <const name="Null" value="0">
|
---|
618 | <desc>Null value (never used by the API).</desc>
|
---|
619 | </const>
|
---|
620 | <const name="Closed" value="1">
|
---|
621 | <desc>
|
---|
622 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
623 | the session is closed (<link to="ISession::state"/>)
|
---|
624 | </desc>
|
---|
625 | </const>
|
---|
626 | <const name="Open" value="2">
|
---|
627 | <desc>
|
---|
628 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
629 | the session is open (<link to="ISession::state"/>)
|
---|
630 | </desc>
|
---|
631 | </const>
|
---|
632 | <const name="Spawning" value="3">
|
---|
633 | <desc>
|
---|
634 | A new (direct) session is being opened for the machine
|
---|
635 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
636 | call (<link to="IMachine::sessionState"/>);
|
---|
637 | the session is currently being opened
|
---|
638 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
639 | call (<link to="ISession::state"/>)
|
---|
640 | </desc>
|
---|
641 | </const>
|
---|
642 | <const name="Closing" value="4">
|
---|
643 | <desc>
|
---|
644 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
645 | the session is being closed (<link to="ISession::state"/>)
|
---|
646 | </desc>
|
---|
647 | </const>
|
---|
648 | </enum>
|
---|
649 |
|
---|
650 | <enum
|
---|
651 | name="SessionType"
|
---|
652 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
653 | >
|
---|
654 | <desc>
|
---|
655 | Session type. This enumeration represents possible values of the
|
---|
656 | <link to="ISession::type"/> attribute.
|
---|
657 | </desc>
|
---|
658 |
|
---|
659 | <const name="Null" value="0">
|
---|
660 | <desc>Null value (never used by the API).</desc>
|
---|
661 | </const>
|
---|
662 | <const name="Direct" value="1">
|
---|
663 | <desc>
|
---|
664 | Direct session
|
---|
665 | (opened by <link to="IVirtualBox::openSession"/>)
|
---|
666 | </desc>
|
---|
667 | </const>
|
---|
668 | <const name="Remote" value="2">
|
---|
669 | <desc>
|
---|
670 | Remote session
|
---|
671 | (opened by <link to="IVirtualBox::openRemoteSession"/>)
|
---|
672 | </desc>
|
---|
673 | </const>
|
---|
674 | <const name="Existing" value="3">
|
---|
675 | <desc>
|
---|
676 | Existing session
|
---|
677 | (opened by <link to="IVirtualBox::openExistingSession"/>)
|
---|
678 | </desc>
|
---|
679 | </const>
|
---|
680 | </enum>
|
---|
681 |
|
---|
682 | <enum
|
---|
683 | name="DeviceType"
|
---|
684 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
685 | >
|
---|
686 | <desc>
|
---|
687 | Device type.
|
---|
688 | </desc>
|
---|
689 | <const name="Null" value="0">
|
---|
690 | <desc>
|
---|
691 | Null value, may also mean "no device" (not allowed for
|
---|
692 | <link to="IConsole::getDeviceActivity"/>).
|
---|
693 | </desc>
|
---|
694 | </const>
|
---|
695 | <const name="Floppy" value="1">
|
---|
696 | <desc>Floppy device.</desc>
|
---|
697 | </const>
|
---|
698 | <const name="DVD" value="2">
|
---|
699 | <desc>CD/DVD-ROM device.</desc>
|
---|
700 | </const>
|
---|
701 | <const name="HardDisk" value="3">
|
---|
702 | <desc>Hard disk device.</desc>
|
---|
703 | </const>
|
---|
704 | <const name="Network" value="4">
|
---|
705 | <desc>Network device.</desc>
|
---|
706 | </const>
|
---|
707 | <const name="USB" value="5">
|
---|
708 | <desc>USB device.</desc>
|
---|
709 | </const>
|
---|
710 | <const name="SharedFolder" value="6">
|
---|
711 | <desc>Shared folder device.</desc>
|
---|
712 | </const>
|
---|
713 | </enum>
|
---|
714 |
|
---|
715 | <enum
|
---|
716 | name="DeviceActivity"
|
---|
717 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
718 | >
|
---|
719 | <desc>
|
---|
720 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
721 | </desc>
|
---|
722 |
|
---|
723 | <const name="Null" value="0"/>
|
---|
724 | <const name="Idle" value="1"/>
|
---|
725 | <const name="Reading" value="2"/>
|
---|
726 | <const name="Writing" value="3"/>
|
---|
727 | </enum>
|
---|
728 |
|
---|
729 | <enum
|
---|
730 | name="ClipboardMode"
|
---|
731 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
732 | >
|
---|
733 | <desc>
|
---|
734 | Host-Guest clipboard interchange mode.
|
---|
735 | </desc>
|
---|
736 |
|
---|
737 | <const name="Disabled" value="0"/>
|
---|
738 | <const name="HostToGuest" value="1"/>
|
---|
739 | <const name="GuestToHost" value="2"/>
|
---|
740 | <const name="Bidirectional" value="3"/>
|
---|
741 | </enum>
|
---|
742 |
|
---|
743 | <enum
|
---|
744 | name="Scope"
|
---|
745 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
746 | >
|
---|
747 | <desc>
|
---|
748 | Scope of the operation.
|
---|
749 |
|
---|
750 | A generic enumeration used in various methods to define the action or
|
---|
751 | argument scope.
|
---|
752 | </desc>
|
---|
753 |
|
---|
754 | <const name="Global" value="0"/>
|
---|
755 | <const name="Machine" value="1"/>
|
---|
756 | <const name="Session" value="2"/>
|
---|
757 | </enum>
|
---|
758 |
|
---|
759 | <enum
|
---|
760 | name="GuestStatisticType"
|
---|
761 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
762 | >
|
---|
763 | <desc>
|
---|
764 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
765 | </desc>
|
---|
766 |
|
---|
767 | <const name="CPULoad_Idle" value="0">
|
---|
768 | <desc>
|
---|
769 | Idle CPU load (0-100%) for last interval.
|
---|
770 | </desc>
|
---|
771 | </const>
|
---|
772 | <const name="CPULoad_Kernel" value="1">
|
---|
773 | <desc>
|
---|
774 | Kernel CPU load (0-100%) for last interval.
|
---|
775 | </desc>
|
---|
776 | </const>
|
---|
777 | <const name="CPULoad_User" value="2">
|
---|
778 | <desc>
|
---|
779 | User CPU load (0-100%) for last interval.
|
---|
780 | </desc>
|
---|
781 | </const>
|
---|
782 | <const name="Threads" value="3">
|
---|
783 | <desc>
|
---|
784 | Total number of threads in the system.
|
---|
785 | </desc>
|
---|
786 | </const>
|
---|
787 | <const name="Processes" value="4">
|
---|
788 | <desc>
|
---|
789 | Total number of processes in the system.
|
---|
790 | </desc>
|
---|
791 | </const>
|
---|
792 | <const name="Handles" value="5">
|
---|
793 | <desc>
|
---|
794 | Total number of handles in the system.
|
---|
795 | </desc>
|
---|
796 | </const>
|
---|
797 | <const name="MemoryLoad" value="6">
|
---|
798 | <desc>
|
---|
799 | Memory load (0-100%).
|
---|
800 | </desc>
|
---|
801 | </const>
|
---|
802 | <const name="PhysMemTotal" value="7">
|
---|
803 | <desc>
|
---|
804 | Total physical memory in megabytes.
|
---|
805 | </desc>
|
---|
806 | </const>
|
---|
807 | <const name="PhysMemAvailable" value="8">
|
---|
808 | <desc>
|
---|
809 | Free physical memory in megabytes.
|
---|
810 | </desc>
|
---|
811 | </const>
|
---|
812 | <const name="PhysMemBalloon" value="9">
|
---|
813 | <desc>
|
---|
814 | Ballooned physical memory in megabytes.
|
---|
815 | </desc>
|
---|
816 | </const>
|
---|
817 | <const name="MemCommitTotal" value="10">
|
---|
818 | <desc>
|
---|
819 | Total amount of memory in the committed state in megabytes.
|
---|
820 | </desc>
|
---|
821 | </const>
|
---|
822 | <const name="MemKernelTotal" value="11">
|
---|
823 | <desc>
|
---|
824 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
825 | </desc>
|
---|
826 | </const>
|
---|
827 | <const name="MemKernelPaged" value="12">
|
---|
828 | <desc>
|
---|
829 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
830 | </desc>
|
---|
831 | </const>
|
---|
832 | <const name="MemKernelNonpaged" value="13">
|
---|
833 | <desc>
|
---|
834 | Total amount of non-paged memory used by the guest OS's kernel in megabytes.
|
---|
835 | </desc>
|
---|
836 | </const>
|
---|
837 | <const name="MemSystemCache" value="14">
|
---|
838 | <desc>
|
---|
839 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
840 | </desc>
|
---|
841 | </const>
|
---|
842 | <const name="PageFileSize" value="15">
|
---|
843 | <desc>
|
---|
844 | Pagefile size in megabytes.
|
---|
845 | </desc>
|
---|
846 | </const>
|
---|
847 | <const name="SampleNumber" value="16">
|
---|
848 | <desc>
|
---|
849 | Statistics sample number
|
---|
850 | </desc>
|
---|
851 | </const>
|
---|
852 | <const name="MaxVal" value="17"/>
|
---|
853 | </enum>
|
---|
854 |
|
---|
855 | <enum
|
---|
856 | name="BIOSBootMenuMode"
|
---|
857 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
858 | >
|
---|
859 | <desc>
|
---|
860 | BIOS boot menu mode.
|
---|
861 | </desc>
|
---|
862 |
|
---|
863 | <const name="Disabled" value="0"/>
|
---|
864 | <const name="MenuOnly" value="1"/>
|
---|
865 | <const name="MessageAndMenu" value="2"/>
|
---|
866 | </enum>
|
---|
867 |
|
---|
868 | <enum
|
---|
869 | name="DriveState"
|
---|
870 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
871 | >
|
---|
872 | <const name="Null" value="0">
|
---|
873 | <desc>Null value (never used by the API).</desc>
|
---|
874 | </const>
|
---|
875 | <const name="NotMounted" value="1"/>
|
---|
876 | <const name="ImageMounted" value="2"/>
|
---|
877 | <const name="HostDriveCaptured" value="3"/>
|
---|
878 | </enum>
|
---|
879 |
|
---|
880 | <enum
|
---|
881 | name="ProcessorFeature"
|
---|
882 | uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
|
---|
883 | >
|
---|
884 | <desc>
|
---|
885 | CPU features.
|
---|
886 | </desc>
|
---|
887 |
|
---|
888 | <const name="HWVirtEx" value="0"/>
|
---|
889 | <const name="PAE" value="1"/>
|
---|
890 | <const name="LongMode" value="2"/>
|
---|
891 | </enum>
|
---|
892 |
|
---|
893 |
|
---|
894 | <!--
|
---|
895 | // IVirtualBoxErrorInfo
|
---|
896 | /////////////////////////////////////////////////////////////////////////
|
---|
897 | -->
|
---|
898 |
|
---|
899 | <interface
|
---|
900 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
901 | uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
|
---|
902 | supportsErrorInfo="no"
|
---|
903 | wsmap="suppress"
|
---|
904 | >
|
---|
905 | <desc>
|
---|
906 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
907 |
|
---|
908 | Extended error information can be set by VirtualBox components after
|
---|
909 | unsuccessful or partially successful method invocation. This information
|
---|
910 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
911 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
912 |
|
---|
913 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
914 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
915 | it provides a set of common attributes to retrieve error
|
---|
916 | information.
|
---|
917 |
|
---|
918 | Sometimes invocation of some component's method may involve methods of
|
---|
919 | other components that may also fail (independently of this method's
|
---|
920 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
921 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
922 | information about all errors happened during method invocation and deliver
|
---|
923 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
924 | specifically for this purpose and allows to represent a chain of errors
|
---|
925 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
926 |
|
---|
927 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
928 | initial error object you query right after method invocation is the last
|
---|
929 | error set by the callee, the object it points to in the @a next attribute
|
---|
930 | is the previous error and so on, up to the first error (which is the last
|
---|
931 | in the chain).
|
---|
932 | </desc>
|
---|
933 |
|
---|
934 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
935 | <desc>
|
---|
936 | Result code of the error.
|
---|
937 | Usually, it will be the same as the result code returned
|
---|
938 | by the method that provided this error information, but not
|
---|
939 | always. For example, on Win32, CoCreateInstance() will most
|
---|
940 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
941 | instantiation attempt, but not the value the component factory
|
---|
942 | returned.
|
---|
943 | <note>
|
---|
944 | In MS COM, there is no equivalent.
|
---|
945 | In XPCOM, it is the same as nsIException::result.
|
---|
946 | </note>
|
---|
947 | </desc>
|
---|
948 | </attribute>
|
---|
949 |
|
---|
950 | <attribute name="interfaceID" type="uuid" readonly="yes">
|
---|
951 | <desc>
|
---|
952 | UUID of the interface that defined the error.
|
---|
953 | <note>
|
---|
954 | In MS COM, it is the same as IErrorInfo::GetGUID.
|
---|
955 | In XPCOM, there is no equivalent.
|
---|
956 | </note>
|
---|
957 | </desc>
|
---|
958 | </attribute>
|
---|
959 |
|
---|
960 | <attribute name="component" type="wstring" readonly="yes">
|
---|
961 | <desc>
|
---|
962 | Name of the component that generated the error.
|
---|
963 | <note>
|
---|
964 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
965 | In XPCOM, there is no equivalent.
|
---|
966 | </note>
|
---|
967 | </desc>
|
---|
968 | </attribute>
|
---|
969 |
|
---|
970 | <attribute name="text" type="wstring" readonly="yes">
|
---|
971 | <desc>
|
---|
972 | Text description of the error.
|
---|
973 | <note>
|
---|
974 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
975 | In XPCOM, it is the same as nsIException::message.
|
---|
976 | </note>
|
---|
977 | </desc>
|
---|
978 | </attribute>
|
---|
979 |
|
---|
980 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
981 | <desc>
|
---|
982 | Next error object if there is any, or @c null otherwise.
|
---|
983 | <note>
|
---|
984 | In MS COM, there is no equivalent.
|
---|
985 | In XPCOM, it is the same as nsIException::inner.
|
---|
986 | </note>
|
---|
987 | </desc>
|
---|
988 | </attribute>
|
---|
989 |
|
---|
990 | </interface>
|
---|
991 |
|
---|
992 |
|
---|
993 | <!--
|
---|
994 | // IVirtualBox
|
---|
995 | /////////////////////////////////////////////////////////////////////////
|
---|
996 | -->
|
---|
997 |
|
---|
998 | <interface
|
---|
999 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
1000 | uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
|
---|
1001 | wsmap="suppress"
|
---|
1002 | >
|
---|
1003 | <method name="onMachineStateChange">
|
---|
1004 | <desc>
|
---|
1005 | The execution state of the given machine has changed.
|
---|
1006 | <see>IMachine::state</see>
|
---|
1007 | </desc>
|
---|
1008 | <param name="machineId" type="uuid" dir="in">
|
---|
1009 | <desc>ID of the machine this event relates to.</desc>
|
---|
1010 | </param>
|
---|
1011 | <param name="state" type="MachineState" dir="in">
|
---|
1012 | <desc>New execution state.</desc>
|
---|
1013 | </param>
|
---|
1014 | </method>
|
---|
1015 |
|
---|
1016 | <method name="onMachineDataChange">
|
---|
1017 | <desc>
|
---|
1018 | Any of the settings of the given machine has changed.
|
---|
1019 | </desc>
|
---|
1020 | <param name="machineId" type="uuid" dir="in">
|
---|
1021 | <desc>ID of the machine this event relates to.</desc>
|
---|
1022 | </param>
|
---|
1023 | </method>
|
---|
1024 |
|
---|
1025 | <method name="onExtraDataCanChange">
|
---|
1026 | <desc>
|
---|
1027 | Notification when someone tries to change extra data for
|
---|
1028 | either the given machine or (if null) global extra data.
|
---|
1029 | This gives the chance to veto against changes.
|
---|
1030 | </desc>
|
---|
1031 | <param name="machineId" type="uuid" dir="in">
|
---|
1032 | <desc>
|
---|
1033 | ID of the machine this event relates to
|
---|
1034 | (null ID for global extra data change requests).
|
---|
1035 | </desc>
|
---|
1036 | </param>
|
---|
1037 | <param name="key" type="wstring" dir="in">
|
---|
1038 | <desc>
|
---|
1039 | Extra data key for the attempted write.
|
---|
1040 | </desc>
|
---|
1041 | </param>
|
---|
1042 | <param name="value" type="wstring" dir="in">
|
---|
1043 | <desc>
|
---|
1044 | Extra data value for the given key.
|
---|
1045 | </desc>
|
---|
1046 | </param>
|
---|
1047 | <param name="error" type="wstring" dir="out">
|
---|
1048 | <desc>
|
---|
1049 | Optional error message describing the reason of the
|
---|
1050 | veto (ignored if this notification returns @c true).
|
---|
1051 | </desc>
|
---|
1052 | </param>
|
---|
1053 | <param name="allowChange" type="boolean" dir="return">
|
---|
1054 | <desc>
|
---|
1055 | Flag to indicate whether the callee agrees (@c true)
|
---|
1056 | or vetoes against the change (@c false).
|
---|
1057 | </desc>
|
---|
1058 | </param>
|
---|
1059 | </method>
|
---|
1060 |
|
---|
1061 | <method name="onExtraDataChange">
|
---|
1062 | <desc>
|
---|
1063 | Notification when machine specific or global extra data
|
---|
1064 | has changed.
|
---|
1065 | </desc>
|
---|
1066 | <param name="machineId" type="uuid" dir="in">
|
---|
1067 | <desc>
|
---|
1068 | ID of the machine this event relates to.
|
---|
1069 | Null for global extra data changes.
|
---|
1070 | </desc>
|
---|
1071 | </param>
|
---|
1072 | <param name="key" type="wstring" dir="in">
|
---|
1073 | <desc>
|
---|
1074 | Extra data key that has changed.
|
---|
1075 | </desc>
|
---|
1076 | </param>
|
---|
1077 | <param name="value" type="wstring" dir="in">
|
---|
1078 | <desc>
|
---|
1079 | Extra data value for the given key.
|
---|
1080 | </desc>
|
---|
1081 | </param>
|
---|
1082 | </method>
|
---|
1083 |
|
---|
1084 | <method name="onMediaRegistered">
|
---|
1085 | <desc>
|
---|
1086 | The given media was registered or unregistered
|
---|
1087 | within this VirtualBox installation.
|
---|
1088 |
|
---|
1089 | The @a mediaType parameter describes what type of
|
---|
1090 | media the specified @a mediaId refers to. Possible
|
---|
1091 | values are:
|
---|
1092 |
|
---|
1093 | <ul>
|
---|
1094 | <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
|
---|
1095 | that, if registered, can be obtained using the
|
---|
1096 | <link to="IVirtualBox::getHardDisk"/> call.</li>
|
---|
1097 | <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
|
---|
1098 | that, if registered, can be obtained using the
|
---|
1099 | <link to="IVirtualBox::getDVDImage"/> call.</li>
|
---|
1100 | <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
|
---|
1101 | that, if registered, can be obtained using the
|
---|
1102 | <link to="IVirtualBox::getFloppyImage"/> call.</li>
|
---|
1103 | </ul>
|
---|
1104 |
|
---|
1105 | Note that if this is a deregistration notification,
|
---|
1106 | there is no way to access the object representing the
|
---|
1107 | unregistered media. It is supposed that the
|
---|
1108 | application will do required cleanup based on the
|
---|
1109 | @a mediaId value.
|
---|
1110 | </desc>
|
---|
1111 | <param name="mediaId" type="uuid" dir="in">
|
---|
1112 | <desc>ID of the media this event relates to.</desc>
|
---|
1113 | </param>
|
---|
1114 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
1115 | <desc>Type of the media this event relates to.</desc>
|
---|
1116 | </param>
|
---|
1117 | <param name="registered" type="boolean" dir="in">
|
---|
1118 | <desc>
|
---|
1119 | If true, the media was registered, otherwise it was
|
---|
1120 | unregistered.
|
---|
1121 | </desc>
|
---|
1122 | </param>
|
---|
1123 | </method>
|
---|
1124 |
|
---|
1125 | <method name="onMachineRegistered">
|
---|
1126 | <desc>
|
---|
1127 | The given machine was registered or unregistered
|
---|
1128 | within this VirtualBox installation.
|
---|
1129 | </desc>
|
---|
1130 | <param name="machineId" type="uuid" dir="in">
|
---|
1131 | <desc>ID of the machine this event relates to.</desc>
|
---|
1132 | </param>
|
---|
1133 | <param name="registered" type="boolean" dir="in">
|
---|
1134 | <desc>
|
---|
1135 | If true, the machine was registered, otherwise it was
|
---|
1136 | unregistered.
|
---|
1137 | </desc>
|
---|
1138 | </param>
|
---|
1139 | </method>
|
---|
1140 |
|
---|
1141 | <method name="onSessionStateChange">
|
---|
1142 | <desc>
|
---|
1143 | The state of the session for the given machine was changed.
|
---|
1144 | <see>IMachine::sessionState</see>
|
---|
1145 | </desc>
|
---|
1146 | <param name="machineId" type="uuid" dir="in">
|
---|
1147 | <desc>ID of the machine this event relates to.</desc>
|
---|
1148 | </param>
|
---|
1149 | <param name="state" type="SessionState" dir="in">
|
---|
1150 | <desc>New session state.</desc>
|
---|
1151 | </param>
|
---|
1152 | </method>
|
---|
1153 |
|
---|
1154 | <method name="onSnapshotTaken">
|
---|
1155 | <desc>
|
---|
1156 | A new snapshot of the machine has been taken.
|
---|
1157 | <see>ISnapshot</see>
|
---|
1158 | </desc>
|
---|
1159 | <param name="machineId" type="uuid" dir="in">
|
---|
1160 | <desc>ID of the machine this event relates to.</desc>
|
---|
1161 | </param>
|
---|
1162 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1163 | <desc>ID of the new snapshot.</desc>
|
---|
1164 | </param>
|
---|
1165 | </method>
|
---|
1166 |
|
---|
1167 | <method name="onSnapshotDiscarded">
|
---|
1168 | <desc>
|
---|
1169 | Snapshot of the given machine has been discarded.
|
---|
1170 |
|
---|
1171 | <note>
|
---|
1172 | This notification is delivered <b>after</b> the snapshot
|
---|
1173 | object has been uninitialized on the server (so that any
|
---|
1174 | attempt to call its methods will return an error).
|
---|
1175 | </note>
|
---|
1176 |
|
---|
1177 | <see>ISnapshot</see>
|
---|
1178 | </desc>
|
---|
1179 | <param name="machineId" type="uuid" dir="in">
|
---|
1180 | <desc>ID of the machine this event relates to.</desc>
|
---|
1181 | </param>
|
---|
1182 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1183 | <desc>
|
---|
1184 | ID of the discarded snapshot. <tt>null</tt> means the
|
---|
1185 | current machine state has been discarded (restored from
|
---|
1186 | the current snapshot).
|
---|
1187 | </desc>
|
---|
1188 | </param>
|
---|
1189 | </method>
|
---|
1190 |
|
---|
1191 | <method name="onSnapshotChange">
|
---|
1192 | <desc>
|
---|
1193 | Snapshot properties (name and/or description) have been changed.
|
---|
1194 | <see>ISnapshot</see>
|
---|
1195 | </desc>
|
---|
1196 | <param name="machineId" type="uuid" dir="in">
|
---|
1197 | <desc>ID of the machine this event relates to.</desc>
|
---|
1198 | </param>
|
---|
1199 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1200 | <desc>ID of the changed snapshot.</desc>
|
---|
1201 | </param>
|
---|
1202 | </method>
|
---|
1203 |
|
---|
1204 | <method name="onGuestPropertyChange">
|
---|
1205 | <desc>
|
---|
1206 | Notification when a guest property has changed.
|
---|
1207 | </desc>
|
---|
1208 | <param name="machineId" type="uuid" dir="in">
|
---|
1209 | <desc>
|
---|
1210 | ID of the machine this event relates to.
|
---|
1211 | </desc>
|
---|
1212 | </param>
|
---|
1213 | <param name="name" type="wstring" dir="in">
|
---|
1214 | <desc>
|
---|
1215 | The name of the property that has changed.
|
---|
1216 | </desc>
|
---|
1217 | </param>
|
---|
1218 | <param name="value" type="wstring" dir="in">
|
---|
1219 | <desc>
|
---|
1220 | The new property value.
|
---|
1221 | </desc>
|
---|
1222 | </param>
|
---|
1223 | <param name="flags" type="wstring" dir="in">
|
---|
1224 | <desc>
|
---|
1225 | The new property flags.
|
---|
1226 | </desc>
|
---|
1227 | </param>
|
---|
1228 | </method>
|
---|
1229 |
|
---|
1230 | </interface>
|
---|
1231 |
|
---|
1232 | <interface
|
---|
1233 | name="IDHCPServer" extends="$unknown"
|
---|
1234 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1235 | wsmap="managed"
|
---|
1236 | >
|
---|
1237 | <desc>
|
---|
1238 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1239 |
|
---|
1240 | To enumerate all the dhcp servers on the host, use the
|
---|
1241 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1242 | </desc>
|
---|
1243 |
|
---|
1244 | <attribute name="enabled" type="boolean">
|
---|
1245 | <desc>
|
---|
1246 | specifies if the dhcp server is enabled
|
---|
1247 | </desc>
|
---|
1248 | </attribute>
|
---|
1249 |
|
---|
1250 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1251 | <desc>
|
---|
1252 | specifies server IP
|
---|
1253 | </desc>
|
---|
1254 | </attribute>
|
---|
1255 |
|
---|
1256 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1257 | <desc>
|
---|
1258 | specifies server network mask
|
---|
1259 | </desc>
|
---|
1260 | </attribute>
|
---|
1261 |
|
---|
1262 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1263 | <desc>
|
---|
1264 | specifies internal network name the server is used for
|
---|
1265 | </desc>
|
---|
1266 | </attribute>
|
---|
1267 |
|
---|
1268 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1269 | <desc>
|
---|
1270 | specifies from IP adrres in server address range
|
---|
1271 | </desc>
|
---|
1272 | </attribute>
|
---|
1273 |
|
---|
1274 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1275 | <desc>
|
---|
1276 | specifies to IP adrres in server address range
|
---|
1277 | </desc>
|
---|
1278 | </attribute>
|
---|
1279 |
|
---|
1280 | <method name="setConfiguration">
|
---|
1281 | <desc>
|
---|
1282 | configures the server
|
---|
1283 | <result name="E_INVALIDARG">
|
---|
1284 | invalid configuration supplied
|
---|
1285 | </result>
|
---|
1286 | </desc>
|
---|
1287 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1288 | <desc>
|
---|
1289 | server IP address
|
---|
1290 | </desc>
|
---|
1291 | </param>
|
---|
1292 | <param name="networkMask" type="wstring" dir="in">
|
---|
1293 | <desc>
|
---|
1294 | server network mask
|
---|
1295 | </desc>
|
---|
1296 | </param>
|
---|
1297 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1298 | <desc>
|
---|
1299 | server From IP address for address range
|
---|
1300 | </desc>
|
---|
1301 | </param>
|
---|
1302 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1303 | <desc>
|
---|
1304 | server To IP address for address range
|
---|
1305 | </desc>
|
---|
1306 | </param>
|
---|
1307 | </method>
|
---|
1308 |
|
---|
1309 | <method name="start">
|
---|
1310 | <desc>
|
---|
1311 | Starts DHCP server process.
|
---|
1312 | <result name="E_FAIL">
|
---|
1313 | Failed to start the process.
|
---|
1314 | </result>
|
---|
1315 | </desc>
|
---|
1316 | <param name="networkName" type="wstring" dir="in">
|
---|
1317 | <desc>
|
---|
1318 | Name of internal network DHCP server should attach to.
|
---|
1319 | </desc>
|
---|
1320 | </param>
|
---|
1321 | <param name="trunkName" type="wstring" dir="in">
|
---|
1322 | <desc>
|
---|
1323 | Name of internal network trunk.
|
---|
1324 | </desc>
|
---|
1325 | </param>
|
---|
1326 | <param name="trunkType" type="wstring" dir="in">
|
---|
1327 | <desc>
|
---|
1328 | Type of internal network trunk.
|
---|
1329 | </desc>
|
---|
1330 | </param>
|
---|
1331 | </method>
|
---|
1332 |
|
---|
1333 | <method name="stop">
|
---|
1334 | <desc>
|
---|
1335 | Stops DHCP server process.
|
---|
1336 | <result name="E_FAIL">
|
---|
1337 | Failed to stop the process.
|
---|
1338 | </result>
|
---|
1339 | </desc>
|
---|
1340 | </method>
|
---|
1341 | </interface>
|
---|
1342 |
|
---|
1343 | <interface
|
---|
1344 | name="IVirtualBox" extends="$dispatched"
|
---|
1345 | uuid="779264f4-65ed-48ed-be39-518ca549e296"
|
---|
1346 | wsmap="managed"
|
---|
1347 | >
|
---|
1348 | <desc>
|
---|
1349 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1350 | product that provides virtual machine management.
|
---|
1351 |
|
---|
1352 | An instance of IVirtualBox is required for the product to do anything
|
---|
1353 | useful. Even though the interface does not expose this, internally,
|
---|
1354 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1355 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1356 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1357 | host, regardless of which frontend started them.
|
---|
1358 |
|
---|
1359 | To enumerate all the virtual machines on the host, use the
|
---|
1360 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1361 | </desc>
|
---|
1362 |
|
---|
1363 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1364 | <desc>
|
---|
1365 | A string representing the version number of the product. The
|
---|
1366 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1367 | last number represents the build number and will frequently change.
|
---|
1368 | </desc>
|
---|
1369 | </attribute>
|
---|
1370 |
|
---|
1371 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1372 | <desc>
|
---|
1373 | The internal build revision number of the product.
|
---|
1374 | </desc>
|
---|
1375 | </attribute>
|
---|
1376 |
|
---|
1377 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1378 | <desc>
|
---|
1379 | A string representing the package type of this product. The
|
---|
1380 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1381 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1382 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1383 | this.
|
---|
1384 | </desc>
|
---|
1385 | </attribute>
|
---|
1386 |
|
---|
1387 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1388 | <desc>
|
---|
1389 | Full path to the directory where the global settings file,
|
---|
1390 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1391 |
|
---|
1392 | In this version of VirtualBox, the value of this property is
|
---|
1393 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1394 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1395 | as determined by the host OS), and cannot be changed.
|
---|
1396 |
|
---|
1397 | This path is also used as the base to resolve relative paths in
|
---|
1398 | places where relative paths are allowed (unless otherwise
|
---|
1399 | expressly indicated).
|
---|
1400 | </desc>
|
---|
1401 | </attribute>
|
---|
1402 |
|
---|
1403 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1404 | <desc>
|
---|
1405 | Full name of the global settings file.
|
---|
1406 | The value of this property corresponds to the value of
|
---|
1407 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1408 | </desc>
|
---|
1409 | </attribute>
|
---|
1410 |
|
---|
1411 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
1412 | <desc>
|
---|
1413 | Current version of the format of the global VirtualBox settings file
|
---|
1414 | (<tt>VirtualBox.xml</tt>).
|
---|
1415 |
|
---|
1416 | The version string has the following format:
|
---|
1417 | <pre>
|
---|
1418 | x.y-platform
|
---|
1419 | </pre>
|
---|
1420 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
1421 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
1422 |
|
---|
1423 | The current version usually matches the value of the
|
---|
1424 | <link to="#settingsFormatVersion"/> attribute unless the
|
---|
1425 | settings file was created by an older version of VirtualBox and there
|
---|
1426 | was a change of the settings file format since then.
|
---|
1427 |
|
---|
1428 | Note that VirtualBox automatically converts settings files from older
|
---|
1429 | versions to the most recent version when reading them (usually at
|
---|
1430 | VirtualBox startup) but it doesn't save the changes back until
|
---|
1431 | you call a method that implicitly saves settings (such as
|
---|
1432 | <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
|
---|
1433 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
1434 | value of <link to="#settingsFormatVersion"/>, then it
|
---|
1435 | means that the settings file was converted but the result of the
|
---|
1436 | conversion is not yet saved to disk.
|
---|
1437 |
|
---|
1438 | The above feature may be used by interactive front-ends to inform users
|
---|
1439 | about the settings file format change and offer them to explicitly save
|
---|
1440 | all converted settings files (the global and VM-specific ones),
|
---|
1441 | optionally create backup copies of the old settings files before saving,
|
---|
1442 | etc.
|
---|
1443 |
|
---|
1444 | <see>settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
1445 | </desc>
|
---|
1446 | </attribute>
|
---|
1447 |
|
---|
1448 | <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
|
---|
1449 | <desc>
|
---|
1450 | Most recent version of the settings file format.
|
---|
1451 |
|
---|
1452 | The version string has the following format:
|
---|
1453 | <pre>
|
---|
1454 | x.y-platform
|
---|
1455 | </pre>
|
---|
1456 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
1457 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
1458 |
|
---|
1459 | VirtualBox uses this version of the format when saving settings files
|
---|
1460 | (either as a result of method calls that require to save settings or as
|
---|
1461 | a result of an explicit call to <link to="#saveSettings"/>).
|
---|
1462 |
|
---|
1463 | <see>settingsFileVersion</see>
|
---|
1464 | </desc>
|
---|
1465 | </attribute>
|
---|
1466 |
|
---|
1467 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1468 | <desc>Associated host object.</desc>
|
---|
1469 | </attribute>
|
---|
1470 |
|
---|
1471 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1472 | <desc>Associated system information object.</desc>
|
---|
1473 | </attribute>
|
---|
1474 |
|
---|
1475 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1476 | <desc>
|
---|
1477 | Array of machine objects registered within this VirtualBox instance.
|
---|
1478 | </desc>
|
---|
1479 | </attribute>
|
---|
1480 |
|
---|
1481 | <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
|
---|
1482 | <desc>
|
---|
1483 | Array of hard disk objects known to this VirtualBox installation.
|
---|
1484 |
|
---|
1485 | This array contains only base (root) hard disks. All differencing
|
---|
1486 | hard disks of the given base hard disk can be enumerated using
|
---|
1487 | <link to="IHardDisk::children"/>.
|
---|
1488 | </desc>
|
---|
1489 | </attribute>
|
---|
1490 |
|
---|
1491 | <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
|
---|
1492 | <desc>
|
---|
1493 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1494 | </desc>
|
---|
1495 | </attribute>
|
---|
1496 |
|
---|
1497 | <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
|
---|
1498 | <desc>
|
---|
1499 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1500 | </desc>
|
---|
1501 | </attribute>
|
---|
1502 |
|
---|
1503 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1504 |
|
---|
1505 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1506 |
|
---|
1507 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1508 | <desc>
|
---|
1509 | Collection of global shared folders. Global shared folders are
|
---|
1510 | available to all virtual machines.
|
---|
1511 |
|
---|
1512 | New shared folders are added to the collection using
|
---|
1513 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1514 | removed using <link to="#removeSharedFolder"/>.
|
---|
1515 |
|
---|
1516 | <note>
|
---|
1517 | In the current version of the product, global shared folders are not
|
---|
1518 | implemented and therefore this collection is always empty.
|
---|
1519 | </note>
|
---|
1520 | </desc>
|
---|
1521 | </attribute>
|
---|
1522 |
|
---|
1523 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1524 | <desc>
|
---|
1525 | Associated performance collector object.
|
---|
1526 | </desc>
|
---|
1527 | </attribute>
|
---|
1528 |
|
---|
1529 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1530 | <desc>
|
---|
1531 | dhcp server settings.
|
---|
1532 | </desc>
|
---|
1533 | </attribute>
|
---|
1534 |
|
---|
1535 | <method name="createMachine">
|
---|
1536 | <desc>
|
---|
1537 | Creates a new virtual machine.
|
---|
1538 |
|
---|
1539 | The new machine is created unregistered, with the initial configuration
|
---|
1540 | set according to the specified guest OS type. A typical sequence of
|
---|
1541 | actions to create a new virtual machine is as follows:
|
---|
1542 |
|
---|
1543 | <ol>
|
---|
1544 | <li>
|
---|
1545 | Call this method to have a new machine created. The returned machine
|
---|
1546 | object will be "mutable" allowing to change any machine property.
|
---|
1547 | </li>
|
---|
1548 |
|
---|
1549 | <li>
|
---|
1550 | Configure the machine using the appropriate attributes and methods.
|
---|
1551 | </li>
|
---|
1552 |
|
---|
1553 | <li>
|
---|
1554 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1555 | to the machine's XML settings file. The configuration of the newly
|
---|
1556 | created machine will not be saved to disk until this method is
|
---|
1557 | called.
|
---|
1558 | </li>
|
---|
1559 |
|
---|
1560 | <li>
|
---|
1561 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1562 | of machines known to VirtualBox.
|
---|
1563 | </li>
|
---|
1564 | </ol>
|
---|
1565 |
|
---|
1566 | You should specify valid name for the newly created machine when calling
|
---|
1567 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1568 | for more details about the machine name.
|
---|
1569 |
|
---|
1570 | The specified guest OS type identifier must match an ID of one of known
|
---|
1571 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1572 | array.
|
---|
1573 |
|
---|
1574 | Every machine has a <i>settings file</i> that is used to store
|
---|
1575 | the machine configuration. This file is stored in a directory called the
|
---|
1576 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1577 | will have a name that corresponds to the name of the virtual machine.
|
---|
1578 | You can specify where to create the machine setting subfolder using the
|
---|
1579 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1580 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1581 | directory</link>.
|
---|
1582 |
|
---|
1583 | If @a baseFolder is a null or empty string (which is recommended), the
|
---|
1584 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1585 | settings folder</link> will be used as a base folder for the created
|
---|
1586 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1587 | the full path to the resulting settings file has the following
|
---|
1588 | structure:
|
---|
1589 | <pre>
|
---|
1590 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1591 | </pre>
|
---|
1592 |
|
---|
1593 | Note that if the resulting settings file already exists, this method
|
---|
1594 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1595 |
|
---|
1596 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1597 | However, this is not recommended and you should normally pass an empty
|
---|
1598 | (null) UUID to this method so that a new UUID will be automatically
|
---|
1599 | generated for every created machine. You can use UUID
|
---|
1600 | 00000000-0000-0000-0000-000000000000 as null value.
|
---|
1601 |
|
---|
1602 | <note>
|
---|
1603 | There is no way to change the name of the settings file or
|
---|
1604 | subfolder of the created machine directly.
|
---|
1605 | </note>
|
---|
1606 |
|
---|
1607 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1608 | @a osTypeId is invalid.
|
---|
1609 | </result>
|
---|
1610 | <result name="VBOX_E_FILE_ERROR">
|
---|
1611 | Resulting settings file name is invalid or the settings file already
|
---|
1612 | exists or could not be created due to an I/O error.
|
---|
1613 | </result>
|
---|
1614 | <result name="E_INVALIDARG">
|
---|
1615 | @a name is empty or null.
|
---|
1616 | </result>
|
---|
1617 | </desc>
|
---|
1618 |
|
---|
1619 | <param name="name" type="wstring" dir="in">
|
---|
1620 | <desc>Machine name.</desc>
|
---|
1621 | </param>
|
---|
1622 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1623 | <desc>Guest OS Type ID.</desc>
|
---|
1624 | </param>
|
---|
1625 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1626 | <desc>Base machine folder (optional).</desc>
|
---|
1627 | </param>
|
---|
1628 | <param name="id" type="uuid" dir="in">
|
---|
1629 | <desc>Machine UUID (optional).</desc>
|
---|
1630 | </param>
|
---|
1631 | <param name="machine" type="IMachine" dir="return">
|
---|
1632 | <desc>Created machine object.</desc>
|
---|
1633 | </param>
|
---|
1634 | </method>
|
---|
1635 |
|
---|
1636 | <method name="createLegacyMachine">
|
---|
1637 | <desc>
|
---|
1638 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1639 | settings file to store machine settings.
|
---|
1640 |
|
---|
1641 | As opposed to machines created by <link to="#createMachine"/>,
|
---|
1642 | the settings file of the machine created in "legacy" mode is not
|
---|
1643 | automatically renamed when the machine name is changed -- it will always
|
---|
1644 | remain the same as specified in this method call.
|
---|
1645 |
|
---|
1646 | The specified settings file name can be absolute (full path) or relative
|
---|
1647 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1648 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1649 | default extension (.xml) will be appended.
|
---|
1650 |
|
---|
1651 | Note that the configuration of the newly created machine is not
|
---|
1652 | saved to disk (and therefore no settings file is created)
|
---|
1653 | until <link to="IMachine::saveSettings"/> is called. If the
|
---|
1654 | specified settings file already exists, this method
|
---|
1655 | will fail with <link to="VBOX_E_FILE_ERROR"/>..
|
---|
1656 |
|
---|
1657 | See <link to="#createMachine"/> for more information.
|
---|
1658 |
|
---|
1659 | @deprecated This method may be removed later. Use <link
|
---|
1660 | to="IVirtualBox::createMachine"/> instead.
|
---|
1661 |
|
---|
1662 | <note>
|
---|
1663 | There is no way to change the name of the settings file
|
---|
1664 | of the machine created in "legacy" mode.
|
---|
1665 | </note>
|
---|
1666 |
|
---|
1667 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1668 | @a osTypeId is invalid.
|
---|
1669 | </result>
|
---|
1670 | <result name="VBOX_E_FILE_ERROR">
|
---|
1671 | @a settingsFile is invalid or the settings file already exists or
|
---|
1672 | could not be created due to an I/O error.
|
---|
1673 | </result>
|
---|
1674 | <result name="E_INVALIDARG">
|
---|
1675 | @a name or @a settingsFile is empty or null.
|
---|
1676 | </result>
|
---|
1677 | </desc>
|
---|
1678 |
|
---|
1679 | <param name="name" type="wstring" dir="in">
|
---|
1680 | <desc>Machine name.</desc>
|
---|
1681 | </param>
|
---|
1682 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1683 | <desc>Machine OS Type ID.</desc>
|
---|
1684 | </param>
|
---|
1685 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1686 | <desc>Name of the machine settings file.</desc>
|
---|
1687 | </param>
|
---|
1688 | <param name="id" type="uuid" dir="in">
|
---|
1689 | <desc>Machine UUID (optional).</desc>
|
---|
1690 | </param>
|
---|
1691 | <param name="machine" type="IMachine" dir="return">
|
---|
1692 | <desc>Created machine object.</desc>
|
---|
1693 | </param>
|
---|
1694 | </method>
|
---|
1695 |
|
---|
1696 | <method name="openMachine">
|
---|
1697 | <desc>
|
---|
1698 | Opens a virtual machine from the existing settings file.
|
---|
1699 | The opened machine remains unregistered until you call
|
---|
1700 | <link to="#registerMachine"/>.
|
---|
1701 |
|
---|
1702 | The specified settings file name can be absolute
|
---|
1703 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1704 | VirtualBox home directory</link>. This file must exist
|
---|
1705 | and must be a valid machine settings file whose contents
|
---|
1706 | will be used to construct the machine object.
|
---|
1707 |
|
---|
1708 | @deprecated Will be removed soon.
|
---|
1709 | <result name="VBOX_E_FILE_ERROR">
|
---|
1710 | Settings file name invalid, not found or sharing violation.
|
---|
1711 | </result>
|
---|
1712 | </desc>
|
---|
1713 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1714 | <desc>
|
---|
1715 | Name of the machine settings file.
|
---|
1716 | </desc>
|
---|
1717 | </param>
|
---|
1718 | <param name="machine" type="IMachine" dir="return">
|
---|
1719 | <desc>Opened machine object.</desc>
|
---|
1720 | </param>
|
---|
1721 | <note>
|
---|
1722 | <link to="IMachine::settingsModified"/> will return
|
---|
1723 | false for the created machine, until any of machine settings
|
---|
1724 | are changed.
|
---|
1725 | </note>
|
---|
1726 | </method>
|
---|
1727 |
|
---|
1728 | <method name="registerMachine">
|
---|
1729 | <desc>
|
---|
1730 |
|
---|
1731 | Registers the machine previously created using
|
---|
1732 | <link to="#createMachine"/> or opened using
|
---|
1733 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1734 | successful method invocation, the
|
---|
1735 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1736 | to all registered callbacks.
|
---|
1737 |
|
---|
1738 | <note>
|
---|
1739 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1740 | to save all current machine settings before registering it.
|
---|
1741 | </note>
|
---|
1742 |
|
---|
1743 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1744 | No matching virtual machine found.
|
---|
1745 | </result>
|
---|
1746 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1747 | Virtual machine was not created within this VirtualBox instance.
|
---|
1748 | </result>
|
---|
1749 |
|
---|
1750 | </desc>
|
---|
1751 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1752 | </method>
|
---|
1753 |
|
---|
1754 | <method name="getMachine">
|
---|
1755 | <desc>
|
---|
1756 | Attempts to find a virtual machine given its UUID.
|
---|
1757 | To look up a machine by name, use <link to="IVirtualBox::findMachine" />
|
---|
1758 | instead.
|
---|
1759 |
|
---|
1760 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1761 | Could not find registered machine matching @a id.
|
---|
1762 | </result>
|
---|
1763 |
|
---|
1764 | </desc>
|
---|
1765 | <param name="id" type="uuid" dir="in"/>
|
---|
1766 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1767 | </method>
|
---|
1768 |
|
---|
1769 | <method name="findMachine">
|
---|
1770 | <desc>
|
---|
1771 | Attempts to find a virtual machine given its name.
|
---|
1772 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
|
---|
1773 | instead.
|
---|
1774 |
|
---|
1775 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1776 | Could not find registered machine matching @a name.
|
---|
1777 | </result>
|
---|
1778 |
|
---|
1779 | </desc>
|
---|
1780 | <param name="name" type="wstring" dir="in"/>
|
---|
1781 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1782 | </method>
|
---|
1783 |
|
---|
1784 | <method name="unregisterMachine">
|
---|
1785 | <desc>
|
---|
1786 |
|
---|
1787 | Unregisters the machine previously registered using
|
---|
1788 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1789 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1790 | to all registered callbacks.
|
---|
1791 |
|
---|
1792 | <note>
|
---|
1793 | The specified machine must not be in the Saved state, have an open
|
---|
1794 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1795 | have hard disks attached.
|
---|
1796 | </note>
|
---|
1797 |
|
---|
1798 | <note>
|
---|
1799 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1800 | save all current machine settings before unregistering it.
|
---|
1801 | </note>
|
---|
1802 |
|
---|
1803 | <note>
|
---|
1804 | If the given machine is inaccessible (see
|
---|
1805 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1806 | fully uninitialized right afterwards. As a result, the returned
|
---|
1807 | machine object will be unusable and an attempt to call
|
---|
1808 | <b>any</b> method will return the "Object not ready" error.
|
---|
1809 | </note>
|
---|
1810 |
|
---|
1811 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1812 | Could not find registered machine matching @a id.
|
---|
1813 | </result>
|
---|
1814 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
1815 | Machine is in Saved state.
|
---|
1816 | </result>
|
---|
1817 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1818 | Machine has snapshot or open session or hard disk attached.
|
---|
1819 | </result>
|
---|
1820 |
|
---|
1821 | </desc>
|
---|
1822 | <param name="id" type="uuid" dir="in">
|
---|
1823 | <desc>UUID of the machine to unregister.</desc>
|
---|
1824 | </param>
|
---|
1825 | <param name="machine" type="IMachine" dir="return">
|
---|
1826 | <desc>Unregistered machine object.</desc>
|
---|
1827 | </param>
|
---|
1828 | </method>
|
---|
1829 |
|
---|
1830 | <method name="createAppliance">
|
---|
1831 | <desc>
|
---|
1832 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
1833 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
1834 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
1835 | </desc>
|
---|
1836 | <param name="appliance" type="IAppliance" dir="return">
|
---|
1837 | <desc>New appliance.</desc>
|
---|
1838 | </param>
|
---|
1839 | </method>
|
---|
1840 |
|
---|
1841 | <method name="createHardDisk">
|
---|
1842 | <desc>
|
---|
1843 | Creates a new base hard disk object that will use the given storage
|
---|
1844 | format and location for hard disk data.
|
---|
1845 |
|
---|
1846 | Note that the actual storage unit is not created by this method. In
|
---|
1847 | order to do it, and before you are able to attach the created hard disk
|
---|
1848 | to virtual machines, you must call one of the following methods to
|
---|
1849 | allocate a format-specific storage unit at the specified location:
|
---|
1850 | <ul>
|
---|
1851 | <li><link to="IHardDisk::createBaseStorage"/></li>
|
---|
1852 | <li><link to="IHardDisk::createDiffStorage"/></li>
|
---|
1853 | </ul>
|
---|
1854 |
|
---|
1855 | Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
|
---|
1856 | remain uninitialized until the hard disk storage unit is successfully
|
---|
1857 | created by one of the above methods.
|
---|
1858 |
|
---|
1859 | After the storage unit is successfully created, the hard disk gets
|
---|
1860 | remembered by this VirtualBox installation and will be accessible
|
---|
1861 | through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
|
---|
1862 | methods. Remembered root (base) hard disks are also returned as part of
|
---|
1863 | the <link to="#hardDisks"/> array. See IHardDisk for more details.
|
---|
1864 |
|
---|
1865 | The list of all storage formats supported by this VirtualBox
|
---|
1866 | installation can be obtained using
|
---|
1867 | <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
|
---|
1868 | attribute is empty or <tt>null</tt> then the default storage format
|
---|
1869 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
1870 | be used for creating a storage unit of the hard disk.
|
---|
1871 |
|
---|
1872 | Note that the format of the location string is storage format specific.
|
---|
1873 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1874 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1875 |
|
---|
1876 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1877 | @a format identifier is invalid. See
|
---|
1878 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
1879 | </result>
|
---|
1880 | <result name="VBOX_E_FILE_ERROR">
|
---|
1881 | @a location is a not valid file name (for file-based formats only).
|
---|
1882 | </result>
|
---|
1883 | <result name="E_INVALIDARG">
|
---|
1884 | @a format is a null or empty string.
|
---|
1885 | </result>
|
---|
1886 | </desc>
|
---|
1887 | <param name="format" type="wstring" dir="in">
|
---|
1888 | <desc>
|
---|
1889 | Identifier of the storage format to use for the new hard disk.
|
---|
1890 | </desc>
|
---|
1891 | </param>
|
---|
1892 | <param name="location" type="wstring" dir="in">
|
---|
1893 | <desc>
|
---|
1894 | Location of the storage unit for the new hard disk.
|
---|
1895 | </desc>
|
---|
1896 | </param>
|
---|
1897 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1898 | <desc>Created hard disk object.</desc>
|
---|
1899 | </param>
|
---|
1900 | </method>
|
---|
1901 |
|
---|
1902 | <method name="openHardDisk">
|
---|
1903 | <desc>
|
---|
1904 | Opens a hard disk from an existing location.
|
---|
1905 |
|
---|
1906 | After the hard disk is successfully opened by this method, it gets
|
---|
1907 | remembered by (known to) this VirtualBox installation and will be
|
---|
1908 | accessible through <link to="#getHardDisk"/> and
|
---|
1909 | <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
|
---|
1910 | are also returned as part of the <link to="#hardDisks"/> array and can
|
---|
1911 | be attached to virtual machines. See IHardDisk for more details.
|
---|
1912 |
|
---|
1913 | If a differencing hard disk is to be opened by this method, the
|
---|
1914 | operation will succeed only if its parent hard disk and all ancestors,
|
---|
1915 | if any, are already known to this VirtualBox installation (for example,
|
---|
1916 | were opened by this method before).
|
---|
1917 |
|
---|
1918 | This method tries to guess the storage format of the specified hard disk
|
---|
1919 | by reading hard disk data at the specified location.
|
---|
1920 |
|
---|
1921 | If @a write is ReadWrite (which it should be), the image is opened for
|
---|
1922 | read/write access and must have according permissions, as VirtualBox
|
---|
1923 | may actually write status information into the disk's metadata sections.
|
---|
1924 |
|
---|
1925 | Note that write access is required for all typical image usage in VirtualBox,
|
---|
1926 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
1927 | The only exception is opening a source image temporarily for copying and
|
---|
1928 | cloning when the image will quickly be closed again.
|
---|
1929 |
|
---|
1930 | Note that the format of the location string is storage format specific.
|
---|
1931 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1932 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1933 |
|
---|
1934 | <result name="VBOX_E_FILE_ERROR">
|
---|
1935 | Invalid hard disk storage file location.
|
---|
1936 | </result>
|
---|
1937 | <result name="VBOX_E_IPRT_ERROR">
|
---|
1938 | Could not get hard disk storage format.
|
---|
1939 | </result>
|
---|
1940 | <result name="E_INVALIDARG">
|
---|
1941 | Invalid hard disk storage format.
|
---|
1942 | </result>
|
---|
1943 |
|
---|
1944 | </desc>
|
---|
1945 | <param name="location" type="wstring" dir="in">
|
---|
1946 | <desc>
|
---|
1947 | Location of the storage unit that contains hard disk data in one of
|
---|
1948 | the supported storage formats.
|
---|
1949 | </desc>
|
---|
1950 | </param>
|
---|
1951 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
1952 | <desc>
|
---|
1953 | Determines whether to open the image in read/write or read-only mode.
|
---|
1954 | </desc>
|
---|
1955 | </param>
|
---|
1956 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1957 | <desc>Opened hard disk object.</desc>
|
---|
1958 | </param>
|
---|
1959 | </method>
|
---|
1960 |
|
---|
1961 | <method name="getHardDisk" const="yes">
|
---|
1962 | <desc>
|
---|
1963 | Returns a hard disk with the given UUID.
|
---|
1964 |
|
---|
1965 | The hard disk with the given UUID must be known to this VirtualBox
|
---|
1966 | installation, i.e. it must be previously created by
|
---|
1967 | <link to="#createHardDisk"/> or opened by <link
|
---|
1968 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
1969 |
|
---|
1970 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1971 | No hard disk object matching @a id found.
|
---|
1972 | </result>
|
---|
1973 |
|
---|
1974 | </desc>
|
---|
1975 | <param name="id" type="uuid" dir="in">
|
---|
1976 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1977 | </param>
|
---|
1978 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1979 | <desc>Found hard disk object.</desc>
|
---|
1980 | </param>
|
---|
1981 | </method>
|
---|
1982 |
|
---|
1983 | <method name="findHardDisk">
|
---|
1984 | <desc>
|
---|
1985 | Returns a hard disk that uses the given location to store hard
|
---|
1986 | disk data.
|
---|
1987 |
|
---|
1988 | The given hard disk must be known to this VirtualBox installation, i.e.
|
---|
1989 | it must be previously created by
|
---|
1990 | <link to="#createHardDisk"/> or opened by <link
|
---|
1991 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
1992 |
|
---|
1993 | The search is done by comparing the value of the @a location argument to
|
---|
1994 | the <link to="IHardDisk::location"/> attribute of each known hard
|
---|
1995 | disk.
|
---|
1996 |
|
---|
1997 | For locations represented by file names in the host's file system, the
|
---|
1998 | requested location can be a path relative to the
|
---|
1999 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2000 | only a file name without any path is given, the
|
---|
2001 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2002 | folder</link> will be prepended to the file name before searching. Note
|
---|
2003 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2004 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2005 |
|
---|
2006 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2007 | No hard disk object matching @a location found.
|
---|
2008 | </result>
|
---|
2009 |
|
---|
2010 | </desc>
|
---|
2011 | <param name="location" type="wstring" dir="in">
|
---|
2012 | <desc>Location string to search for.</desc>
|
---|
2013 | </param>
|
---|
2014 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
2015 | <desc>Found hard disk object.</desc>
|
---|
2016 | </param>
|
---|
2017 | </method>
|
---|
2018 |
|
---|
2019 | <method name="openDVDImage">
|
---|
2020 | <desc>
|
---|
2021 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
2022 | format and assigns it the given UUID.
|
---|
2023 |
|
---|
2024 | After the image is successfully opened by this method, it gets
|
---|
2025 | remembered by (known to) this VirtualBox installation and will be
|
---|
2026 | accessible through <link to="#getDVDImage"/> and
|
---|
2027 | <link to="#findDVDImage"/> methods. Remembered images are also
|
---|
2028 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
2029 | to virtual machines. See IMedium for more details.
|
---|
2030 |
|
---|
2031 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2032 | of the location string.
|
---|
2033 |
|
---|
2034 | <note>
|
---|
2035 | Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
|
---|
2036 | </note>
|
---|
2037 |
|
---|
2038 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2039 | CD/DVD image already exists in the media registry.
|
---|
2040 | </result>
|
---|
2041 |
|
---|
2042 | </desc>
|
---|
2043 | <param name="location" type="wstring" dir="in">
|
---|
2044 | <desc>
|
---|
2045 | Full path to the file that contains a valid CD/DVD image.
|
---|
2046 | </desc>
|
---|
2047 | </param>
|
---|
2048 | <param name="id" type="uuid" dir="in">
|
---|
2049 | <desc>
|
---|
2050 | UUID to assign to the given image within this VirtualBox installation.
|
---|
2051 | If an empty (null) UUID is specified, the system will randomly
|
---|
2052 | generate a new UUID.
|
---|
2053 | </desc>
|
---|
2054 | </param>
|
---|
2055 | <param name="image" type="IDVDImage" dir="return">
|
---|
2056 | <desc>Opened CD/DVD image object.</desc>
|
---|
2057 | </param>
|
---|
2058 | </method>
|
---|
2059 |
|
---|
2060 | <method name="getDVDImage">
|
---|
2061 | <desc>
|
---|
2062 | Returns a CD/DVD image with the given UUID.
|
---|
2063 |
|
---|
2064 | The image with the given UUID must be known to this VirtualBox
|
---|
2065 | installation, i.e. it must be previously opened by <link
|
---|
2066 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2067 |
|
---|
2068 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2069 | No matching DVD image found in the media registry.
|
---|
2070 | </result>
|
---|
2071 |
|
---|
2072 | </desc>
|
---|
2073 | <param name="id" type="uuid" dir="in">
|
---|
2074 | <desc>UUID of the image to look for.</desc>
|
---|
2075 | </param>
|
---|
2076 | <param name="image" type="IDVDImage" dir="return">
|
---|
2077 | <desc>Found CD/DVD image object.</desc>
|
---|
2078 | </param>
|
---|
2079 | </method>
|
---|
2080 |
|
---|
2081 | <method name="findDVDImage">
|
---|
2082 | <desc>
|
---|
2083 | Returns a CD/DVD image with the given image location.
|
---|
2084 |
|
---|
2085 | The image with the given UUID must be known to this VirtualBox
|
---|
2086 | installation, i.e. it must be previously opened by <link
|
---|
2087 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2088 |
|
---|
2089 | The search is done by comparing the value of the @a location argument to
|
---|
2090 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
2091 |
|
---|
2092 | The requested location can be a path relative to the
|
---|
2093 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2094 | only a file name without any path is given, the
|
---|
2095 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2096 | folder</link> will be prepended to the file name before searching. Note
|
---|
2097 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2098 | performed, otherwise the case in the file path is ignored.
|
---|
2099 |
|
---|
2100 | <result name="VBOX_E_FILE_ERROR">
|
---|
2101 | Invalid image file location.
|
---|
2102 | </result>
|
---|
2103 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2104 | No matching DVD image found in the media registry.
|
---|
2105 | </result>
|
---|
2106 |
|
---|
2107 | </desc>
|
---|
2108 | <param name="location" type="wstring" dir="in">
|
---|
2109 | <desc>CD/DVD image file path to look for.</desc>
|
---|
2110 | </param>
|
---|
2111 | <param name="image" type="IDVDImage" dir="return">
|
---|
2112 | <desc>Found CD/DVD image object.</desc>
|
---|
2113 | </param>
|
---|
2114 | </method>
|
---|
2115 |
|
---|
2116 | <method name="openFloppyImage">
|
---|
2117 | <desc>
|
---|
2118 | Opens a floppy image contained in the specified file of the supported
|
---|
2119 | format and assigns it the given UUID.
|
---|
2120 |
|
---|
2121 | After the image is successfully opened by this method, it gets
|
---|
2122 | remembered by (known to) this VirtualBox installation and will be
|
---|
2123 | accessible through <link to="#getFloppyImage"/> and
|
---|
2124 | <link to="#findFloppyImage"/> methods. Remembered images are also
|
---|
2125 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
2126 | mounted to virtual machines. See IMedium for more details.
|
---|
2127 |
|
---|
2128 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2129 | of the location string.
|
---|
2130 |
|
---|
2131 | <result name="VBOX_E_FILE_ERROR">
|
---|
2132 | Floppy image specified by @a location not accessible.
|
---|
2133 | </result>
|
---|
2134 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2135 | Floppy image already exists in the media registry.
|
---|
2136 | </result>
|
---|
2137 |
|
---|
2138 | <note>
|
---|
2139 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
2140 | </note>
|
---|
2141 | </desc>
|
---|
2142 | <param name="location" type="wstring" dir="in">
|
---|
2143 | <desc>
|
---|
2144 | Full path to the file that contains a valid floppy image.
|
---|
2145 | </desc>
|
---|
2146 | </param>
|
---|
2147 | <param name="id" type="uuid" dir="in">
|
---|
2148 | <desc>
|
---|
2149 | UUID to assign to the given image file within this VirtualBox
|
---|
2150 | installation. If an empty (null) UUID is specified, the system will
|
---|
2151 | randomly generate a new UUID.
|
---|
2152 | </desc>
|
---|
2153 | </param>
|
---|
2154 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2155 | <desc>Opened floppy image object.</desc>
|
---|
2156 | </param>
|
---|
2157 | </method>
|
---|
2158 |
|
---|
2159 | <method name="getFloppyImage">
|
---|
2160 | <desc>
|
---|
2161 | Returns a floppy image with the given UUID.
|
---|
2162 |
|
---|
2163 | The image with the given UUID must be known to this VirtualBox
|
---|
2164 | installation, i.e. it must be previously opened by <link
|
---|
2165 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2166 |
|
---|
2167 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2168 | No matching floppy image found in the media registry.
|
---|
2169 | </result>
|
---|
2170 |
|
---|
2171 | </desc>
|
---|
2172 | <param name="id" type="uuid" dir="in">
|
---|
2173 | <desc>UUID of the image to look for.</desc>
|
---|
2174 | </param>
|
---|
2175 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2176 | <desc>Found floppy image object.</desc>
|
---|
2177 | </param>
|
---|
2178 | </method>
|
---|
2179 |
|
---|
2180 | <method name="findFloppyImage">
|
---|
2181 | <desc>
|
---|
2182 | Returns a floppy image with the given image location.
|
---|
2183 |
|
---|
2184 | The image with the given UUID must be known to this VirtualBox
|
---|
2185 | installation, i.e. it must be previously opened by <link
|
---|
2186 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2187 |
|
---|
2188 | The search is done by comparing the value of the @a location argument to
|
---|
2189 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
2190 |
|
---|
2191 | The requested location can be a path relative to the
|
---|
2192 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2193 | only a file name without any path is given, the
|
---|
2194 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2195 | folder</link> will be prepended to the file name before searching. Note
|
---|
2196 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2197 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2198 |
|
---|
2199 | <result name="VBOX_E_FILE_ERROR">
|
---|
2200 | Invalid image file location.
|
---|
2201 | </result>
|
---|
2202 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2203 | No matching floppy image found in the media registry.
|
---|
2204 | </result>
|
---|
2205 |
|
---|
2206 | </desc>
|
---|
2207 | <param name="location" type="wstring" dir="in">
|
---|
2208 | <desc>Floppy image file path to look for.</desc>
|
---|
2209 | </param>
|
---|
2210 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2211 | <desc>Found floppy image object.</desc>
|
---|
2212 | </param>
|
---|
2213 | </method>
|
---|
2214 |
|
---|
2215 | <method name="getGuestOSType">
|
---|
2216 | <desc>
|
---|
2217 | Returns an object describing the specified guest OS type.
|
---|
2218 |
|
---|
2219 | The requested guest OS type is specified using a string which is a
|
---|
2220 | mnemonic identifier of the guest operating system, such as
|
---|
2221 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
2222 | particular virtual machine can be read or set using the
|
---|
2223 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
2224 |
|
---|
2225 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
2226 | available guest OS type objects. Each object has an
|
---|
2227 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
2228 | the guest OS this object describes.
|
---|
2229 |
|
---|
2230 | <result name="E_INVALIDARG">
|
---|
2231 | @a id is not a valid Guest OS type.
|
---|
2232 | </result>
|
---|
2233 |
|
---|
2234 | </desc>
|
---|
2235 | <param name="id" type="wstring" dir="in">
|
---|
2236 | <desc>Guest OS type ID string.</desc>
|
---|
2237 | </param>
|
---|
2238 | <param name="type" type="IGuestOSType" dir="return">
|
---|
2239 | <desc>Guest OS type object.</desc>
|
---|
2240 | </param>
|
---|
2241 | </method>
|
---|
2242 |
|
---|
2243 | <method name="createSharedFolder">
|
---|
2244 | <desc>
|
---|
2245 | Creates a new global shared folder by associating the given logical
|
---|
2246 | name with the given host path, adds it to the collection of shared
|
---|
2247 | folders and starts sharing it. Refer to the description of
|
---|
2248 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
2249 | <note>
|
---|
2250 | In the current implementation, this operation is not
|
---|
2251 | implemented.
|
---|
2252 | </note>
|
---|
2253 | </desc>
|
---|
2254 | <param name="name" type="wstring" dir="in">
|
---|
2255 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2256 | </param>
|
---|
2257 | <param name="hostPath" type="wstring" dir="in">
|
---|
2258 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2259 | </param>
|
---|
2260 | <param name="writable" type="boolean" dir="in">
|
---|
2261 | <desc>Whether the share is writable or readonly</desc>
|
---|
2262 | </param>
|
---|
2263 | </method>
|
---|
2264 |
|
---|
2265 | <method name="removeSharedFolder">
|
---|
2266 | <desc>
|
---|
2267 | Removes the global shared folder with the given name previously
|
---|
2268 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
2269 | shared folders and stops sharing it.
|
---|
2270 | <note>
|
---|
2271 | In the current implementation, this operation is not
|
---|
2272 | implemented.
|
---|
2273 | </note>
|
---|
2274 | </desc>
|
---|
2275 | <param name="name" type="wstring" dir="in">
|
---|
2276 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2277 | </param>
|
---|
2278 | </method>
|
---|
2279 |
|
---|
2280 | <method name="getNextExtraDataKey">
|
---|
2281 | <desc>
|
---|
2282 | Returns the global extra data key name following the supplied key.
|
---|
2283 |
|
---|
2284 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
2285 | returned in @a nextKey if the supplied key is the last key. When
|
---|
2286 | supplying @c NULL or an empty string for the @a key, the first key item
|
---|
2287 | is returned in @a nextKey (if there is any). @a nextValue is an optional
|
---|
2288 | parameter and if supplied, the next key's value is returned in it.
|
---|
2289 |
|
---|
2290 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2291 | Extra data @a key not found.
|
---|
2292 | </result>
|
---|
2293 |
|
---|
2294 | </desc>
|
---|
2295 | <param name="key" type="wstring" dir="in">
|
---|
2296 | <desc>Name of the data key to follow.</desc>
|
---|
2297 | </param>
|
---|
2298 | <param name="nextKey" type="wstring" dir="out">
|
---|
2299 | <desc>Name of the next data key.</desc>
|
---|
2300 | </param>
|
---|
2301 | <param name="nextValue" type="wstring" dir="out">
|
---|
2302 | <desc>Value of the next data key.</desc>
|
---|
2303 | </param>
|
---|
2304 | </method>
|
---|
2305 |
|
---|
2306 | <method name="getExtraData">
|
---|
2307 | <desc>
|
---|
2308 | Returns associated global extra data.
|
---|
2309 |
|
---|
2310 | If the requested data @a key does not exist, this function will
|
---|
2311 | succeed and return @c NULL in the @a value argument.
|
---|
2312 |
|
---|
2313 | <result name="VBOX_E_FILE_ERROR">
|
---|
2314 | Settings file not accessible.
|
---|
2315 | </result>
|
---|
2316 | <result name="VBOX_E_XML_ERROR">
|
---|
2317 | Could not parse the settings file.
|
---|
2318 | </result>
|
---|
2319 |
|
---|
2320 | </desc>
|
---|
2321 | <param name="key" type="wstring" dir="in">
|
---|
2322 | <desc>Name of the data key to get.</desc>
|
---|
2323 | </param>
|
---|
2324 | <param name="value" type="wstring" dir="return">
|
---|
2325 | <desc>Value of the requested data key.</desc>
|
---|
2326 | </param>
|
---|
2327 | </method>
|
---|
2328 |
|
---|
2329 | <method name="setExtraData">
|
---|
2330 | <desc>
|
---|
2331 | Sets associated global extra data.
|
---|
2332 |
|
---|
2333 | If you pass @c NULL as a key @a value, the given @a key will be
|
---|
2334 | deleted.
|
---|
2335 |
|
---|
2336 | <note>
|
---|
2337 | Before performing the actual data change, this method will ask all
|
---|
2338 | registered callbacks using the
|
---|
2339 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
2340 | notification for a permission. If one of the callbacks refuses the
|
---|
2341 | new value, the change will not be performed.
|
---|
2342 | </note>
|
---|
2343 | <note>
|
---|
2344 | On success, the
|
---|
2345 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
2346 | is called to inform all registered callbacks about a successful data
|
---|
2347 | change.
|
---|
2348 | </note>
|
---|
2349 |
|
---|
2350 | <result name="VBOX_E_FILE_ERROR">
|
---|
2351 | Settings file not accessible.
|
---|
2352 | </result>
|
---|
2353 | <result name="VBOX_E_XML_ERROR">
|
---|
2354 | Could not parse the settings file.
|
---|
2355 | </result>
|
---|
2356 | <result name="E_ACCESSDENIED">
|
---|
2357 | Modification request refused.
|
---|
2358 | </result>
|
---|
2359 |
|
---|
2360 | </desc>
|
---|
2361 | <param name="key" type="wstring" dir="in">
|
---|
2362 | <desc>Name of the data key to set.</desc>
|
---|
2363 | </param>
|
---|
2364 | <param name="value" type="wstring" dir="in">
|
---|
2365 | <desc>Value to assign to the key.</desc>
|
---|
2366 | </param>
|
---|
2367 | </method>
|
---|
2368 |
|
---|
2369 | <method name="openSession">
|
---|
2370 | <desc>
|
---|
2371 | Opens a new direct session with the given virtual machine.
|
---|
2372 |
|
---|
2373 | A direct session acts as a local lock on the given VM.
|
---|
2374 | There can be only one direct session open at a time for every
|
---|
2375 | virtual machine, protecting the VM from being manipulated by
|
---|
2376 | conflicting actions from different processes. Only after a
|
---|
2377 | direct session has been opened, one can change all VM settings
|
---|
2378 | and execute the VM in the process space of the session object.
|
---|
2379 |
|
---|
2380 | Sessions therefore can be compared to mutex semaphores that
|
---|
2381 | lock a given VM for modification and execution.
|
---|
2382 | See <link to="ISession">ISession</link> for details.
|
---|
2383 |
|
---|
2384 | <note>Unless you are writing a new VM frontend, you will not
|
---|
2385 | want to execute a VM in the current process. To spawn a new
|
---|
2386 | process that executes a VM, use
|
---|
2387 | <link to="IVirtualBox::openRemoteSession" />
|
---|
2388 | instead.</note>
|
---|
2389 |
|
---|
2390 | Upon successful return, the session object can be used to
|
---|
2391 | get access to the machine and to the VM console.
|
---|
2392 |
|
---|
2393 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2394 | a session has been opened. Note that the "mutable" machine
|
---|
2395 | object, on which you may invoke IMachine methods to change its
|
---|
2396 | settings, will be a different object from the immutable IMachine
|
---|
2397 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2398 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2399 | use the <link to="ISession::machine" /> attribute.
|
---|
2400 |
|
---|
2401 | One must always call <link to="ISession::close" /> to release the
|
---|
2402 | lock on the machine, or the machine's state will eventually be
|
---|
2403 | set to "Aborted".
|
---|
2404 |
|
---|
2405 | In other words, to change settings on a machine, the following
|
---|
2406 | sequence is typically performed:
|
---|
2407 |
|
---|
2408 | <ol>
|
---|
2409 | <li>Call this method (openSession) to have a machine locked for
|
---|
2410 | the current session.</li>
|
---|
2411 |
|
---|
2412 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2413 |
|
---|
2414 | <li>Change the settings of the machine.</li>
|
---|
2415 |
|
---|
2416 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2417 |
|
---|
2418 | <li>Close the session by calling <link to="ISession::close"/>.</li>
|
---|
2419 | </ol>
|
---|
2420 |
|
---|
2421 | <result name="E_UNEXPECTED">
|
---|
2422 | Virtual machine not registered.
|
---|
2423 | </result>
|
---|
2424 | <result name="E_ACCESSDENIED">
|
---|
2425 | Process not started by OpenRemoteSession.
|
---|
2426 | </result>
|
---|
2427 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2428 | No matching virtual machine found.
|
---|
2429 | </result>
|
---|
2430 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2431 | Session already open or being opened.
|
---|
2432 | </result>
|
---|
2433 | <result name="VBOX_E_VM_ERROR">
|
---|
2434 | Failed to assign machine to session.
|
---|
2435 | </result>
|
---|
2436 |
|
---|
2437 | </desc>
|
---|
2438 | <param name="session" type="ISession" dir="in">
|
---|
2439 | <desc>
|
---|
2440 | Session object that will represent the opened session after
|
---|
2441 | successful method invocation. This object must not represent
|
---|
2442 | the already open session.
|
---|
2443 | <note>
|
---|
2444 | This session will be automatically closed if the
|
---|
2445 | VirtualBox server is terminated for some reason.
|
---|
2446 | </note>
|
---|
2447 | </desc>
|
---|
2448 | </param>
|
---|
2449 | <param name="machineId" type="uuid" dir="in">
|
---|
2450 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2451 | </param>
|
---|
2452 | </method>
|
---|
2453 |
|
---|
2454 | <method name="openRemoteSession">
|
---|
2455 | <desc>
|
---|
2456 | Spawns a new process that executes a virtual machine (called a
|
---|
2457 | "remote session").
|
---|
2458 |
|
---|
2459 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2460 | process that opens a direct session with the given VM. As a result, the
|
---|
2461 | VM is locked by that direct session in the new process, preventing
|
---|
2462 | conflicting changes from other processes. Since sessions act as locks
|
---|
2463 | that prevent conflicting changes, one cannot open a remote session
|
---|
2464 | for a VM that already has another open session (direct or remote), or
|
---|
2465 | is currently in the process of opening one (see <link
|
---|
2466 | to="IMachine::sessionState"/>).
|
---|
2467 |
|
---|
2468 | While the remote session still provides some level of control over the
|
---|
2469 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2470 | not all VM settings are available for modification within the remote
|
---|
2471 | session context.
|
---|
2472 |
|
---|
2473 | This operation can take some time (a new VM is started in a new process,
|
---|
2474 | for which memory and other resources need to be set up). Because of this,
|
---|
2475 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2476 | asynchronous operation to be completed. Until then, the remote session
|
---|
2477 | object remains in the closed state, and accessing the machine or its
|
---|
2478 | console through it is invalid. It is recommended to use
|
---|
2479 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2480 | completion.
|
---|
2481 |
|
---|
2482 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2483 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2484 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2485 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2486 | until the VM is no longer running). In that case, however, the state of
|
---|
2487 | the session will automatically change back to "Closed".
|
---|
2488 |
|
---|
2489 | Currently supported session types (values of the @a type
|
---|
2490 | argument) are:
|
---|
2491 | <ul>
|
---|
2492 | <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
|
---|
2493 | <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
|
---|
2494 | </ul>
|
---|
2495 |
|
---|
2496 | The @a environment argument is a string containing definitions of
|
---|
2497 | environment variables in the following format:
|
---|
2498 | @code
|
---|
2499 | NAME[=VALUE]\n
|
---|
2500 | NAME[=VALUE]\n
|
---|
2501 | ...
|
---|
2502 | @endcode
|
---|
2503 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2504 | variables will be appended to the environment of the VirtualBox server
|
---|
2505 | process. If an environment variable exists both in the server process
|
---|
2506 | and in this list, the value from this list takes precedence over the
|
---|
2507 | server's variable. If the value of the environment variable is
|
---|
2508 | omitted, this variable will be removed from the resulting environment.
|
---|
2509 | If the environment string is @c null, the server environment is
|
---|
2510 | inherited by the started process as is.
|
---|
2511 |
|
---|
2512 | <see>openExistingSession</see>
|
---|
2513 |
|
---|
2514 | <result name="E_UNEXPECTED">
|
---|
2515 | Virtual machine not registered.
|
---|
2516 | </result>
|
---|
2517 | <result name="E_INVALIDARG">
|
---|
2518 | Invalid session type @a type.
|
---|
2519 | </result>
|
---|
2520 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2521 | No machine matching @a machineId found.
|
---|
2522 | </result>
|
---|
2523 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2524 | Session already open or being opened.
|
---|
2525 | </result>
|
---|
2526 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2527 | Launching process for machine failed.
|
---|
2528 | </result>
|
---|
2529 | <result name="VBOX_E_VM_ERROR">
|
---|
2530 | Failed to assign machine to session.
|
---|
2531 | </result>
|
---|
2532 |
|
---|
2533 | </desc>
|
---|
2534 | <param name="session" type="ISession" dir="in">
|
---|
2535 | <desc>
|
---|
2536 | Session object that will represent the opened remote session
|
---|
2537 | after successful method invocation (this object must not
|
---|
2538 | represent an already open session).
|
---|
2539 | </desc>
|
---|
2540 | </param>
|
---|
2541 | <param name="machineId" type="uuid" dir="in">
|
---|
2542 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2543 | </param>
|
---|
2544 | <param name="type" type="wstring" dir="in">
|
---|
2545 | <desc>
|
---|
2546 | Type of the remote session (case sensitive).
|
---|
2547 | </desc>
|
---|
2548 | </param>
|
---|
2549 | <param name="environment" type="wstring" dir="in">
|
---|
2550 | <desc>
|
---|
2551 | Environment to pass to the opened session (may be @c null).
|
---|
2552 | </desc>
|
---|
2553 | </param>
|
---|
2554 | <param name="progress" type="IProgress" dir="return">
|
---|
2555 | <desc>Progress object to track the operation completion.</desc>
|
---|
2556 | </param>
|
---|
2557 | </method>
|
---|
2558 |
|
---|
2559 | <method name="openExistingSession">
|
---|
2560 | <desc>
|
---|
2561 | Opens a new remote session with the virtual machine for
|
---|
2562 | which a direct session is already open.
|
---|
2563 |
|
---|
2564 | The remote session provides some level of control over the VM
|
---|
2565 | execution (using the IConsole interface) to the caller; however,
|
---|
2566 | within the remote session context, not all VM settings are available
|
---|
2567 | for modification.
|
---|
2568 |
|
---|
2569 | As opposed to <link to="#openRemoteSession"/>, the number of
|
---|
2570 | remote sessions opened this way is not limited by the API
|
---|
2571 |
|
---|
2572 | <note>
|
---|
2573 | It is an error to open a remote session with the machine that
|
---|
2574 | doesn't have an open direct session.
|
---|
2575 | </note>
|
---|
2576 |
|
---|
2577 | <result name="E_UNEXPECTED">
|
---|
2578 | Virtual machine not registered.
|
---|
2579 | </result>
|
---|
2580 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2581 | No machine matching @a machineId found.
|
---|
2582 | </result>
|
---|
2583 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2584 | Session already open or being opened.
|
---|
2585 | </result>
|
---|
2586 | <result name="VBOX_E_INVALID_SESSION_STATE">
|
---|
2587 | Direct session state not Open.
|
---|
2588 | </result>
|
---|
2589 | <result name="VBOX_E_VM_ERROR">
|
---|
2590 | Failed to get console object from direct session or assign
|
---|
2591 | machine to session.
|
---|
2592 | </result>
|
---|
2593 |
|
---|
2594 | <see>openRemoteSession</see>
|
---|
2595 | </desc>
|
---|
2596 | <param name="session" type="ISession" dir="in">
|
---|
2597 | <desc>
|
---|
2598 | Session object that will represent the open remote session
|
---|
2599 | after successful method invocation. This object must not
|
---|
2600 | represent an already open session.
|
---|
2601 | <note>
|
---|
2602 | This session will be automatically closed when the peer
|
---|
2603 | (direct) session dies or gets closed.
|
---|
2604 | </note>
|
---|
2605 | </desc>
|
---|
2606 | </param>
|
---|
2607 | <param name="machineId" type="uuid" dir="in">
|
---|
2608 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2609 | </param>
|
---|
2610 | </method>
|
---|
2611 |
|
---|
2612 | <method name="registerCallback">
|
---|
2613 | <desc>
|
---|
2614 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2615 | callback object will be called by VirtualBox when an appropriate
|
---|
2616 | event occurs.
|
---|
2617 |
|
---|
2618 | <result name="E_INVALIDARG">
|
---|
2619 | A @c NULL callback cannot be registered.
|
---|
2620 | </result>
|
---|
2621 |
|
---|
2622 | </desc>
|
---|
2623 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2624 | <desc>Callback object to register.</desc>
|
---|
2625 | </param>
|
---|
2626 | </method>
|
---|
2627 |
|
---|
2628 | <method name="unregisterCallback">
|
---|
2629 | <desc>
|
---|
2630 | Unregisters the previously registered global VirtualBox callback.
|
---|
2631 |
|
---|
2632 | <result name="E_INVALIDARG">
|
---|
2633 | Specified @a callback not registered.
|
---|
2634 | </result>
|
---|
2635 |
|
---|
2636 | </desc>
|
---|
2637 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2638 | <desc>Callback object to unregister.</desc>
|
---|
2639 | </param>
|
---|
2640 | </method>
|
---|
2641 |
|
---|
2642 | <method name="waitForPropertyChange">
|
---|
2643 | <desc>
|
---|
2644 | Blocks the caller until any of the properties represented by the
|
---|
2645 | @a what argument changes the value or until the given timeout interval
|
---|
2646 | expires.
|
---|
2647 |
|
---|
2648 | The @a what argument is a comma separated list of property masks that
|
---|
2649 | describe properties the caller is interested in. The property mask is
|
---|
2650 | a string in the following format:
|
---|
2651 |
|
---|
2652 | <pre>
|
---|
2653 | [[group.]subgroup.]name
|
---|
2654 | </pre>
|
---|
2655 |
|
---|
2656 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2657 | or more property group specifiers. Each element (group or name) in
|
---|
2658 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2659 | (@c "*") which is used to match any string for the given element. A
|
---|
2660 | property mask that doesn't contain asterisk symbols represents a
|
---|
2661 | single fully qualified property name.
|
---|
2662 |
|
---|
2663 | Groups in the fully qualified property name go from more generic (the
|
---|
2664 | left-most part) to more specific (the right-most part). The first
|
---|
2665 | element is usually a name of the object the property belongs to. The
|
---|
2666 | second element may be either a property name, or a child object name,
|
---|
2667 | or an index if the preceding element names an object which is one of
|
---|
2668 | many objects of the same type. This way, property names form a
|
---|
2669 | hierarchy of properties. Here are some examples of property names:
|
---|
2670 |
|
---|
2671 | <table>
|
---|
2672 | <tr>
|
---|
2673 | <td><tt>VirtualBox.version</tt></td>
|
---|
2674 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2675 | </tr>
|
---|
2676 | <tr>
|
---|
2677 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2678 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2679 | given UUID</td>
|
---|
2680 | </tr>
|
---|
2681 | </table>
|
---|
2682 |
|
---|
2683 | Most property names directly correspond to the properties of objects
|
---|
2684 | (components) provided by the VirtualBox library and may be used to
|
---|
2685 | track changes to these properties. However, there may be
|
---|
2686 | pseudo-property names that don't correspond to any existing object's
|
---|
2687 | property directly, as well as there may be object properties that
|
---|
2688 | don't have a corresponding property name that is understood by this
|
---|
2689 | method, and therefore changes to such properties cannot be
|
---|
2690 | tracked. See individual object's property descriptions to get a
|
---|
2691 | fully qualified property name that can be used with this method (if
|
---|
2692 | any).
|
---|
2693 |
|
---|
2694 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2695 | single asterisk symbol) that can be used to match all properties.
|
---|
2696 | Below are more examples of property masks:
|
---|
2697 |
|
---|
2698 | <table>
|
---|
2699 | <tr>
|
---|
2700 | <td><tt>VirtualBox.*</tt></td>
|
---|
2701 | <td>Track all properties of the VirtualBox object</td>
|
---|
2702 | </tr>
|
---|
2703 | <tr>
|
---|
2704 | <td><tt>Machine.*.name</tt></td>
|
---|
2705 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2706 | all registered virtual machines</td>
|
---|
2707 | </tr>
|
---|
2708 | </table>
|
---|
2709 |
|
---|
2710 | <note>
|
---|
2711 | This function is not implemented in the current version of the
|
---|
2712 | product.
|
---|
2713 | </note>
|
---|
2714 | </desc>
|
---|
2715 | <param name="what" type="wstring" dir="in">
|
---|
2716 | <desc>Comma separated list of property masks.</desc>
|
---|
2717 | </param>
|
---|
2718 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2719 | <desc>
|
---|
2720 | Wait timeout in milliseconds.
|
---|
2721 | Specify -1 for an indefinite wait.
|
---|
2722 | </desc>
|
---|
2723 | </param>
|
---|
2724 | <param name="changed" type="wstring" dir="out">
|
---|
2725 | <desc>
|
---|
2726 | Comma separated list of properties that have been changed and caused
|
---|
2727 | this method to return to the caller.
|
---|
2728 | </desc>
|
---|
2729 | </param>
|
---|
2730 | <param name="values" type="wstring" dir="out">
|
---|
2731 | <desc>Reserved, not currently used.</desc>
|
---|
2732 | </param>
|
---|
2733 | </method>
|
---|
2734 |
|
---|
2735 | <method name="saveSettings">
|
---|
2736 | <desc>
|
---|
2737 | Saves the global settings to the global settings file
|
---|
2738 | (<link to="#settingsFilePath"/>).
|
---|
2739 |
|
---|
2740 | This method is only useful for explicitly saving the global settings
|
---|
2741 | file after it has been auto-converted from the old format to the most
|
---|
2742 | recent format (see <link to="#settingsFileVersion"/> for details).
|
---|
2743 | Normally, the global settings file is implicitly saved when a global
|
---|
2744 | setting is changed.
|
---|
2745 |
|
---|
2746 | <result name="VBOX_E_FILE_ERROR">
|
---|
2747 | Settings file not accessible.
|
---|
2748 | </result>
|
---|
2749 | <result name="VBOX_E_XML_ERROR">
|
---|
2750 | Could not parse the settings file.
|
---|
2751 | </result>
|
---|
2752 |
|
---|
2753 | </desc>
|
---|
2754 | </method>
|
---|
2755 |
|
---|
2756 | <method name="saveSettingsWithBackup">
|
---|
2757 | <desc>
|
---|
2758 | Creates a backup copy of the global settings file
|
---|
2759 | (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
|
---|
2760 | calls <link to="#saveSettings"/>.
|
---|
2761 |
|
---|
2762 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
2763 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
2764 | details). Otherwise, this call is fully equivalent to
|
---|
2765 | <link to="#saveSettings"/> and no backup copying is done.
|
---|
2766 |
|
---|
2767 | The backup copy is created in the same directory where the original
|
---|
2768 | settings file is located. It is given the following file name:
|
---|
2769 | <pre>
|
---|
2770 | original.xml.x.y-platform.bak
|
---|
2771 | </pre>
|
---|
2772 | where <tt>original.xml</tt> is the original settings file name
|
---|
2773 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
2774 | format of the settings file (before auto-conversion).
|
---|
2775 |
|
---|
2776 | If the given backup file already exists, this method will try to add the
|
---|
2777 | <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
|
---|
2778 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
2779 | occupied, or if any other copy error occurs, this method will return a
|
---|
2780 | failure.
|
---|
2781 |
|
---|
2782 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
2783 | receive a full path to the created backup file (for informational
|
---|
2784 | purposes). Note that this will happen even if the subsequent
|
---|
2785 | <link to="#saveSettings"/> call performed by this method after the
|
---|
2786 | copy operation, fails.
|
---|
2787 |
|
---|
2788 | <note>
|
---|
2789 | The VirtualBox API never calls this method. It is intended purely for
|
---|
2790 | the purposes of creating backup copies of the settings files by
|
---|
2791 | front-ends before saving the results of the automatically performed
|
---|
2792 | settings conversion to disk.
|
---|
2793 | </note>
|
---|
2794 |
|
---|
2795 | <see>settingsFileVersion</see>
|
---|
2796 |
|
---|
2797 | <result name="VBOX_E_FILE_ERROR">
|
---|
2798 | Settings file not accessible.
|
---|
2799 | </result>
|
---|
2800 | <result name="VBOX_E_XML_ERROR">
|
---|
2801 | Could not parse the settings file.
|
---|
2802 | </result>
|
---|
2803 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2804 | Could not copy the settings file.
|
---|
2805 | </result>
|
---|
2806 |
|
---|
2807 | </desc>
|
---|
2808 | <param name="bakFileName" type="wstring" dir="return">
|
---|
2809 | <desc>Full path to the created backup copy.</desc>
|
---|
2810 | </param>
|
---|
2811 | </method>
|
---|
2812 |
|
---|
2813 | <!--method name="createDHCPServerForInterface">
|
---|
2814 | <desc>
|
---|
2815 | Creates a dhcp server settings to be used for the given interface
|
---|
2816 | <result name="E_INVALIDARG">
|
---|
2817 | Host network interface @a name already exists.
|
---|
2818 | </result>
|
---|
2819 | </desc>
|
---|
2820 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2821 | <desc>Network Interface</desc>
|
---|
2822 | </param>
|
---|
2823 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2824 | <desc>Dhcp server settings</desc>
|
---|
2825 | </param>
|
---|
2826 | </method-->
|
---|
2827 |
|
---|
2828 | <method name="createDHCPServer">
|
---|
2829 | <desc>
|
---|
2830 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2831 | <result name="E_INVALIDARG">
|
---|
2832 | Host network interface @a name already exists.
|
---|
2833 | </result>
|
---|
2834 | </desc>
|
---|
2835 | <param name="name" type="wstring" dir="in">
|
---|
2836 | <desc>server name</desc>
|
---|
2837 | </param>
|
---|
2838 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2839 | <desc>Dhcp server settings</desc>
|
---|
2840 | </param>
|
---|
2841 | </method>
|
---|
2842 |
|
---|
2843 | <method name="findDHCPServerByNetworkName">
|
---|
2844 | <desc>
|
---|
2845 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2846 | <result name="E_INVALIDARG">
|
---|
2847 | Host network interface @a name already exists.
|
---|
2848 | </result>
|
---|
2849 |
|
---|
2850 | </desc>
|
---|
2851 | <param name="name" type="wstring" dir="in">
|
---|
2852 | <desc>server name</desc>
|
---|
2853 | </param>
|
---|
2854 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2855 | <desc>Dhcp server settings</desc>
|
---|
2856 | </param>
|
---|
2857 | </method>
|
---|
2858 |
|
---|
2859 | <!--method name="findDHCPServerForInterface">
|
---|
2860 | <desc>
|
---|
2861 | Searches a dhcp server settings to be used for the given interface
|
---|
2862 | <result name="E_INVALIDARG">
|
---|
2863 | Host network interface @a name already exists.
|
---|
2864 | </result>
|
---|
2865 | </desc>
|
---|
2866 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2867 | <desc>Network Interface</desc>
|
---|
2868 | </param>
|
---|
2869 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2870 | <desc>Dhcp server settings</desc>
|
---|
2871 | </param>
|
---|
2872 | </method-->
|
---|
2873 |
|
---|
2874 | <method name="removeDHCPServer">
|
---|
2875 | <desc>
|
---|
2876 | Removes the dhcp server settings
|
---|
2877 | <result name="E_INVALIDARG">
|
---|
2878 | Host network interface @a name already exists.
|
---|
2879 | </result>
|
---|
2880 | </desc>
|
---|
2881 | <param name="server" type="IDHCPServer" dir="in">
|
---|
2882 | <desc>Dhcp server settings to be removed</desc>
|
---|
2883 | </param>
|
---|
2884 | </method>
|
---|
2885 |
|
---|
2886 | </interface>
|
---|
2887 |
|
---|
2888 | <!--
|
---|
2889 | // IAppliance
|
---|
2890 | /////////////////////////////////////////////////////////////////////////
|
---|
2891 | -->
|
---|
2892 |
|
---|
2893 | <enum
|
---|
2894 | name="CIMOSType"
|
---|
2895 | uuid="86ef5f8c-18b2-4db8-a314-33721b59f89b"
|
---|
2896 | >
|
---|
2897 | <desc>
|
---|
2898 | OVF operating system values according to CIM V2.20 (as of Nov 2008); http://www.dmtf.org/standards/cim/cim_schema_v220
|
---|
2899 | </desc>
|
---|
2900 |
|
---|
2901 | <const name="CIMOS_Unknown" value="0" /> <!-- "Unknown" -->
|
---|
2902 | <const name="CIMOS_Other" value="1" /> <!-- "Other" -->
|
---|
2903 | <const name="CIMOS_MACOS" value="2" /> <!-- "MACOS" -->
|
---|
2904 | <const name="CIMOS_ATTUNIX" value="3" /> <!-- "ATTUNIX" -->
|
---|
2905 | <const name="CIMOS_DGUX" value="4" /> <!-- "DGUX" -->
|
---|
2906 | <const name="CIMOS_DECNT" value="5" /> <!-- "DECNT" -->
|
---|
2907 | <const name="CIMOS_Tru64UNIX" value="6" /> <!-- "Tru64 UNIX" -->
|
---|
2908 | <const name="CIMOS_OpenVMS" value="7" /> <!-- "OpenVMS" -->
|
---|
2909 | <const name="CIMOS_HPUX" value="8" /> <!-- "HPUX" -->
|
---|
2910 | <const name="CIMOS_AIX" value="9" /> <!-- "AIX" -->
|
---|
2911 | <const name="CIMOS_MVS" value="10" /> <!-- "MVS" -->
|
---|
2912 | <const name="CIMOS_OS400" value="11" /> <!-- "OS400" -->
|
---|
2913 | <const name="CIMOS_OS2" value="12" /> <!-- "OS/2" -->
|
---|
2914 | <const name="CIMOS_JavaVM" value="13" /> <!-- "JavaVM" -->
|
---|
2915 | <const name="CIMOS_MSDOS" value="14" /> <!-- "MSDOS" -->
|
---|
2916 | <const name="CIMOS_WIN3x" value="15" /> <!-- "WIN3x" -->
|
---|
2917 | <const name="CIMOS_WIN95" value="16" /> <!-- "WIN95" -->
|
---|
2918 | <const name="CIMOS_WIN98" value="17" /> <!-- "WIN98" -->
|
---|
2919 | <const name="CIMOS_WINNT" value="18" /> <!-- "WINNT" -->
|
---|
2920 | <const name="CIMOS_WINCE" value="19" /> <!-- "WINCE" -->
|
---|
2921 | <const name="CIMOS_NCR3000" value="20" /> <!-- "NCR3000" -->
|
---|
2922 | <const name="CIMOS_NetWare" value="21" /> <!-- "NetWare" -->
|
---|
2923 | <const name="CIMOS_OSF" value="22" /> <!-- "OSF" -->
|
---|
2924 | <const name="CIMOS_DCOS" value="23" /> <!-- "DC/OS" -->
|
---|
2925 | <const name="CIMOS_ReliantUNIX" value="24" /> <!-- "Reliant UNIX" -->
|
---|
2926 | <const name="CIMOS_SCOUnixWare" value="25" /> <!-- "SCO UnixWare" -->
|
---|
2927 | <const name="CIMOS_SCOOpenServer" value="26" /> <!-- "SCO OpenServer" -->
|
---|
2928 | <const name="CIMOS_Sequent" value="27" /> <!-- "Sequent" -->
|
---|
2929 | <const name="CIMOS_IRIX" value="28" /> <!-- "IRIX" -->
|
---|
2930 | <const name="CIMOS_Solaris" value="29" /> <!-- "Solaris" -->
|
---|
2931 | <const name="CIMOS_SunOS" value="30" /> <!-- "SunOS" -->
|
---|
2932 | <const name="CIMOS_U6000" value="31" /> <!-- "U6000" -->
|
---|
2933 | <const name="CIMOS_ASERIES" value="32" /> <!-- "ASERIES" -->
|
---|
2934 | <const name="CIMOS_HPNonStopOS" value="33" /> <!-- "HP NonStop OS" -->
|
---|
2935 | <const name="CIMOS_HPNonStopOSS" value="34" /> <!-- "HP NonStop OSS" -->
|
---|
2936 | <const name="CIMOS_BS2000" value="35" /> <!-- "BS2000" -->
|
---|
2937 | <const name="CIMOS_LINUX" value="36" /> <!-- "LINUX" -->
|
---|
2938 | <const name="CIMOS_Lynx" value="37" /> <!-- "Lynx" -->
|
---|
2939 | <const name="CIMOS_XENIX" value="38" /> <!-- "XENIX" -->
|
---|
2940 | <const name="CIMOS_VM" value="39" /> <!-- "VM" -->
|
---|
2941 | <const name="CIMOS_InteractiveUNIX" value="40" /> <!-- "Interactive UNIX" -->
|
---|
2942 | <const name="CIMOS_BSDUNIX" value="41" /> <!-- "BSDUNIX" -->
|
---|
2943 | <const name="CIMOS_FreeBSD" value="42" /> <!-- "FreeBSD" -->
|
---|
2944 | <const name="CIMOS_NetBSD" value="43" /> <!-- "NetBSD" -->
|
---|
2945 | <const name="CIMOS_GNUHurd" value="44" /> <!-- "GNU Hurd" -->
|
---|
2946 | <const name="CIMOS_OS9" value="45" /> <!-- "OS9" -->
|
---|
2947 | <const name="CIMOS_MACHKernel" value="46" /> <!-- "MACH Kernel" -->
|
---|
2948 | <const name="CIMOS_Inferno" value="47" /> <!-- "Inferno" -->
|
---|
2949 | <const name="CIMOS_QNX" value="48" /> <!-- "QNX" -->
|
---|
2950 | <const name="CIMOS_EPOC" value="49" /> <!-- "EPOC" -->
|
---|
2951 | <const name="CIMOS_IxWorks" value="50" /> <!-- "IxWorks" -->
|
---|
2952 | <const name="CIMOS_VxWorks" value="51" /> <!-- "VxWorks" -->
|
---|
2953 | <const name="CIMOS_MiNT" value="52" /> <!-- "MiNT" -->
|
---|
2954 | <const name="CIMOS_BeOS" value="53" /> <!-- "BeOS" -->
|
---|
2955 | <const name="CIMOS_HPMPE" value="54" /> <!-- "HP MPE" -->
|
---|
2956 | <const name="CIMOS_NextStep" value="55" /> <!-- "NextStep" -->
|
---|
2957 | <const name="CIMOS_PalmPilot" value="56" /> <!-- "PalmPilot" -->
|
---|
2958 | <const name="CIMOS_Rhapsody" value="57" /> <!-- "Rhapsody" -->
|
---|
2959 | <const name="CIMOS_Windows2000" value="58" /> <!-- "Windows 2000" -->
|
---|
2960 | <const name="CIMOS_Dedicated" value="59" /> <!-- "Dedicated" -->
|
---|
2961 | <const name="CIMOS_OS390" value="60" /> <!-- "OS/390" -->
|
---|
2962 | <const name="CIMOS_VSE" value="61" /> <!-- "VSE" -->
|
---|
2963 | <const name="CIMOS_TPF" value="62" /> <!-- "TPF" -->
|
---|
2964 | <const name="CIMOS_WindowsMe" value="63" /> <!-- "Windows (R) Me" -->
|
---|
2965 | <const name="CIMOS_CalderaOpenUNIX" value="64" /> <!-- "Caldera Open UNIX" -->
|
---|
2966 | <const name="CIMOS_OpenBSD" value="65" /> <!-- "OpenBSD" -->
|
---|
2967 | <const name="CIMOS_NotApplicable" value="66" /> <!-- "Not Applicable" -->
|
---|
2968 | <const name="CIMOS_WindowsXP" value="67" /> <!-- "Windows XP" -->
|
---|
2969 | <const name="CIMOS_zOS" value="68" /> <!-- "z/OS" -->
|
---|
2970 | <const name="CIMOS_MicrosoftWindowsServer2003" value="69" /> <!-- "Microsoft Windows Server 2003" -->
|
---|
2971 | <const name="CIMOS_MicrosoftWindowsServer2003_64" value="70" /> <!-- "Microsoft Windows Server 2003 64-Bit" -->
|
---|
2972 | <const name="CIMOS_WindowsXP_64" value="71" /> <!-- "Windows XP 64-Bit" -->
|
---|
2973 | <const name="CIMOS_WindowsXPEmbedded" value="72" /> <!-- "Windows XP Embedded" -->
|
---|
2974 | <const name="CIMOS_WindowsVista" value="73" /> <!-- "Windows Vista" -->
|
---|
2975 | <const name="CIMOS_WindowsVista_64" value="74" /> <!-- "Windows Vista 64-Bit" -->
|
---|
2976 | <const name="CIMOS_WindowsEmbeddedforPointofService" value="75" /> <!-- "Windows Embedded for Point of Service" -->
|
---|
2977 | <const name="CIMOS_MicrosoftWindowsServer2008" value="76" /> <!-- "Microsoft Windows Server 2008" -->
|
---|
2978 | <const name="CIMOS_MicrosoftWindowsServer2008_64" value="77" /> <!-- "Microsoft Windows Server 2008 64-Bit" -->
|
---|
2979 | <const name="CIMOS_FreeBSD_64" value="78" /> <!-- "FreeBSD 64-Bit" -->
|
---|
2980 | <const name="CIMOS_RedHatEnterpriseLinux" value="79" /> <!-- "RedHat Enterprise Linux" -->
|
---|
2981 | <const name="CIMOS_RedHatEnterpriseLinux_64" value="80" /> <!-- "RedHat Enterprise Linux 64-Bit" -->
|
---|
2982 | <const name="CIMOS_Solaris_64" value="81" /> <!-- "Solaris 64-Bit" -->
|
---|
2983 | <const name="CIMOS_SUSE" value="82" /> <!-- "SUSE" -->
|
---|
2984 | <const name="CIMOS_SUSE_64" value="83" /> <!-- "SUSE 64-Bit" -->
|
---|
2985 | <const name="CIMOS_SLES" value="84" /> <!-- "SLES" -->
|
---|
2986 | <const name="CIMOS_SLES_64" value="85" /> <!-- "SLES 64-Bit" -->
|
---|
2987 | <const name="CIMOS_NovellOES" value="86" /> <!-- "Novell OES" -->
|
---|
2988 | <const name="CIMOS_NovellLinuxDesktop" value="87" /> <!-- "Novell Linux Desktop" -->
|
---|
2989 | <const name="CIMOS_SunJavaDesktopSystem" value="88" /> <!-- "Sun Java Desktop System" -->
|
---|
2990 | <const name="CIMOS_Mandriva" value="89" /> <!-- "Mandriva" -->
|
---|
2991 | <const name="CIMOS_Mandriva_64" value="90" /> <!-- "Mandriva 64-Bit" -->
|
---|
2992 | <const name="CIMOS_TurboLinux" value="91" /> <!-- "TurboLinux" -->
|
---|
2993 | <const name="CIMOS_TurboLinux_64" value="92" /> <!-- "TurboLinux 64-Bit" -->
|
---|
2994 | <const name="CIMOS_Ubuntu" value="93" /> <!-- "Ubuntu" -->
|
---|
2995 | <const name="CIMOS_Ubuntu_64" value="94" /> <!-- "Ubuntu 64-Bit" -->
|
---|
2996 | <const name="CIMOS_Debian" value="95" /> <!-- "Debian" -->
|
---|
2997 | <const name="CIMOS_Debian_64" value="96" /> <!-- "Debian 64-Bit" -->
|
---|
2998 | <const name="CIMOS_Linux_2_4_x" value="97" /> <!-- "Linux 2.4.x" -->
|
---|
2999 | <const name="CIMOS_Linux_2_4_x_64" value="98" /> <!-- "Linux 2.4.x 64-Bit" -->
|
---|
3000 | <const name="CIMOS_Linux_2_6_x" value="99" /> <!-- "Linux 2.6.x" -->
|
---|
3001 | <const name="CIMOS_Linux_2_6_x_64" value="100" /> <!-- "Linux 2.6.x 64-Bit" -->
|
---|
3002 | <const name="CIMOS_Linux_64" value="101" /> <!-- "Linux 64-Bit" -->
|
---|
3003 | <const name="CIMOS_Other_64" value="102" /> <!-- "Other 64-Bit" -->
|
---|
3004 | </enum>
|
---|
3005 |
|
---|
3006 | <enum
|
---|
3007 | name="OVFResourceType"
|
---|
3008 | uuid="646a78d7-6f04-49f4-82c4-75c28a75a4cd"
|
---|
3009 | >
|
---|
3010 | <desc>
|
---|
3011 | OVF resource type (as listed with CIM_ResourceAllocationSettingData; see for example
|
---|
3012 | http://msdn.microsoft.com/en-us/library/cc136877(VS.85).aspx).
|
---|
3013 | </desc>
|
---|
3014 |
|
---|
3015 | <const name="Other" value="1" />
|
---|
3016 | <const name="ComputerSystem" value="2" />
|
---|
3017 | <const name="Processor" value="3" />
|
---|
3018 | <const name="Memory" value="4" />
|
---|
3019 | <const name="IDEController" value="5" />
|
---|
3020 | <const name="ParallelSCSIHBA" value="6" />
|
---|
3021 | <const name="FCHBA" value="7" />
|
---|
3022 | <const name="iSCSIHBA" value="8" />
|
---|
3023 | <const name="IBHCA" value="9" />
|
---|
3024 | <const name="EthernetAdapter" value="10" />
|
---|
3025 | <const name="OtherNetworkAdapter" value="11" />
|
---|
3026 | <const name="IOSlot" value="12" />
|
---|
3027 | <const name="IODevice" value="13" />
|
---|
3028 | <const name="FloppyDrive" value="14" />
|
---|
3029 | <const name="CDDrive" value="15" />
|
---|
3030 | <const name="DVDDrive" value="16" />
|
---|
3031 | <const name="HardDisk" value="17" />
|
---|
3032 | <const name="OtherStorageDevice" value="20" />
|
---|
3033 | <const name="USBController" value="23" />
|
---|
3034 | <const name="SoundCard" value="35" />
|
---|
3035 | </enum>
|
---|
3036 |
|
---|
3037 | <interface
|
---|
3038 | name="IAppliance" extends="$unknown"
|
---|
3039 | uuid="a7a71c1f-20d3-4483-95c0-7357dda77f50"
|
---|
3040 | wsmap="managed"
|
---|
3041 | >
|
---|
3042 | <desc>
|
---|
3043 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
3044 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
3045 | appliances with VirtualBox.
|
---|
3046 |
|
---|
3047 | The OVF standard suggests two different physical file formats:
|
---|
3048 |
|
---|
3049 | <ol>
|
---|
3050 | <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
|
---|
3051 | path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
|
---|
3052 | this descriptor file references other files, as OVF appliances distributed as a set of
|
---|
3053 | files most likely do, those files must be in the same directory as the descriptor file.</li>
|
---|
3054 |
|
---|
3055 | <li>If the OVF is distributed as a single file, it must be in TAR format and have the
|
---|
3056 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
3057 | files and optionally other files.
|
---|
3058 |
|
---|
3059 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
3060 | be added with a later version.</li>
|
---|
3061 | </ol>
|
---|
3062 |
|
---|
3063 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
3064 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
3065 |
|
---|
3066 | <ol>
|
---|
3067 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
3068 | </li>
|
---|
3069 |
|
---|
3070 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
3071 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
3072 | and return an instance of IAppliance that contains the parsed data from the OVF file.
|
---|
3073 | </li>
|
---|
3074 |
|
---|
3075 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
3076 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
3077 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
3078 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
3079 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
3080 | systems in the OVF, which in turn describe the virtual hardware prescribed by the
|
---|
3081 | OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
3082 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
3083 | </li>
|
---|
3084 |
|
---|
3085 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3086 | virtual system to override the suggestions made by the interpret() routine.
|
---|
3087 | </li>
|
---|
3088 |
|
---|
3089 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
3090 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
3091 | virtual system descriptions.
|
---|
3092 | </li>
|
---|
3093 | </ol>
|
---|
3094 |
|
---|
3095 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
3096 |
|
---|
3097 | <ol>
|
---|
3098 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
3099 | an empty IAppliance object.
|
---|
3100 | </li>
|
---|
3101 |
|
---|
3102 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
3103 | with the IAppliance object you just created. This creates an instance of
|
---|
3104 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
3105 | </li>
|
---|
3106 |
|
---|
3107 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3108 | virtual system to override the suggestions made by the export() routine.
|
---|
3109 | </li>
|
---|
3110 |
|
---|
3111 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
3112 | file written.</li>
|
---|
3113 | </ol>
|
---|
3114 |
|
---|
3115 | </desc>
|
---|
3116 |
|
---|
3117 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3118 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
3119 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
3120 | <link to="#write" /> (for export).
|
---|
3121 | This attribute is empty until one of these methods has been called.
|
---|
3122 | </desc>
|
---|
3123 | </attribute>
|
---|
3124 |
|
---|
3125 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
3126 | <desc>
|
---|
3127 | Array of virtual disk definitions. One such description exists for each
|
---|
3128 | disk definition in the OVF; each string array item represents one such piece of
|
---|
3129 | disk information, with the information fields separated by tab (\t) characters.
|
---|
3130 |
|
---|
3131 | The caller should be prepared for additional fields being appended to
|
---|
3132 | this string in future versions of VirtualBox and therefore check for
|
---|
3133 | the number of tabs in the strings returned.
|
---|
3134 |
|
---|
3135 | In the current version, the following eight fields are returned per string
|
---|
3136 | in the array:
|
---|
3137 |
|
---|
3138 | <ol>
|
---|
3139 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
3140 |
|
---|
3141 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
3142 |
|
---|
3143 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
3144 | disk; can be approximate; -1 if unspecified)</li>
|
---|
3145 |
|
---|
3146 | <li>Format (string identifying the disk format, typically
|
---|
3147 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
3148 |
|
---|
3149 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
3150 | then the disk should be created on import)</li>
|
---|
3151 |
|
---|
3152 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
3153 | which need not necessarily be the same as the values specified above, since
|
---|
3154 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
3155 |
|
---|
3156 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
3157 | presently unsupported and always -1)</li>
|
---|
3158 |
|
---|
3159 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
3160 | </ol>
|
---|
3161 | </desc>
|
---|
3162 | </attribute>
|
---|
3163 |
|
---|
3164 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
3165 | <desc> Array of virtual system descriptions. One such description is created
|
---|
3166 | for each virtual system found in the OVF.
|
---|
3167 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
3168 | (for export) has been called.
|
---|
3169 | </desc>
|
---|
3170 | </attribute>
|
---|
3171 |
|
---|
3172 | <method name="read">
|
---|
3173 | <desc>
|
---|
3174 | Reads an OVF file into the appliance object.
|
---|
3175 |
|
---|
3176 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
3177 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
3178 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
3179 | </desc>
|
---|
3180 | <param name="file" type="wstring" dir="in">
|
---|
3181 | <desc>
|
---|
3182 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3183 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3184 | </desc>
|
---|
3185 | </param>
|
---|
3186 | </method>
|
---|
3187 |
|
---|
3188 | <method name="interpret">
|
---|
3189 | <desc>
|
---|
3190 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
3191 | calling this method, one can inspect the
|
---|
3192 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
3193 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
3194 | the appliance.
|
---|
3195 |
|
---|
3196 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
3197 | see <link to="IAppliance" /> for an overview.
|
---|
3198 |
|
---|
3199 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
3200 | if problems were encountered during the processing which might later lead to
|
---|
3201 | errors.
|
---|
3202 | </desc>
|
---|
3203 | </method>
|
---|
3204 |
|
---|
3205 | <method name="importMachines">
|
---|
3206 | <desc>
|
---|
3207 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
3208 | and other interfaces that match the information contained in the appliance as
|
---|
3209 | closely as possible, as represented by the import instructions in the
|
---|
3210 | <link to="#virtualSystemDescriptions" /> array.
|
---|
3211 |
|
---|
3212 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
3213 | see <link to="IAppliance" /> for an overview.
|
---|
3214 |
|
---|
3215 | Since importing the appliance will most probably involve copying and converting
|
---|
3216 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3217 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3218 | </desc>
|
---|
3219 |
|
---|
3220 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3221 | <desc></desc>
|
---|
3222 | </param>
|
---|
3223 | </method>
|
---|
3224 |
|
---|
3225 | <method name="write">
|
---|
3226 | <desc>
|
---|
3227 | Writes the contents of the appliance exports into a new OVF file.
|
---|
3228 |
|
---|
3229 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
3230 | see <link to="IAppliance" /> for an overview.
|
---|
3231 |
|
---|
3232 | Since exporting the appliance will most probably involve copying and converting
|
---|
3233 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3234 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3235 | </desc>
|
---|
3236 | <param name="path" type="wstring" dir="in">
|
---|
3237 | <desc>
|
---|
3238 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3239 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3240 | </desc>
|
---|
3241 | </param>
|
---|
3242 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3243 | <desc></desc>
|
---|
3244 | </param>
|
---|
3245 | </method>
|
---|
3246 |
|
---|
3247 | <method name="getWarnings">
|
---|
3248 | <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
|
---|
3249 |
|
---|
3250 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
3251 | <desc></desc>
|
---|
3252 | </param>
|
---|
3253 | </method>
|
---|
3254 |
|
---|
3255 | </interface>
|
---|
3256 |
|
---|
3257 | <enum
|
---|
3258 | name="VirtualSystemDescriptionType"
|
---|
3259 | uuid="68537dd6-78e6-4863-a1cd-20be54761891"
|
---|
3260 | >
|
---|
3261 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
3262 | a configuration value.</desc>
|
---|
3263 |
|
---|
3264 | <const name="Ignore" value="1" />
|
---|
3265 | <const name="OS" value="2" />
|
---|
3266 | <const name="Name" value="3" />
|
---|
3267 | <const name="Product" value="4" />
|
---|
3268 | <const name="Vendor" value="5" />
|
---|
3269 | <const name="Version" value="6" />
|
---|
3270 | <const name="ProductUrl" value="7" />
|
---|
3271 | <const name="VendorUrl" value="8" />
|
---|
3272 | <const name="Description" value="9" />
|
---|
3273 | <const name="License" value="10" />
|
---|
3274 | <const name="CPU" value="11" />
|
---|
3275 | <const name="Memory" value="12" />
|
---|
3276 | <const name="HardDiskControllerIDE" value="13" />
|
---|
3277 | <const name="HardDiskControllerSATA" value="14" />
|
---|
3278 | <const name="HardDiskControllerSCSI" value="15" />
|
---|
3279 | <const name="HardDiskImage" value="16" />
|
---|
3280 | <const name="Floppy" value="17" />
|
---|
3281 | <const name="CDROM" value="18" />
|
---|
3282 | <const name="NetworkAdapter" value="19" />
|
---|
3283 | <const name="USBController" value="20" />
|
---|
3284 | <const name="SoundCard" value="21" />
|
---|
3285 |
|
---|
3286 | </enum>
|
---|
3287 |
|
---|
3288 | <enum
|
---|
3289 | name="VirtualSystemDescriptionValueType"
|
---|
3290 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
3291 | >
|
---|
3292 | <desc>Used with <link to="GetValuesByType" /> to describe the value
|
---|
3293 | type to fetch.</desc>
|
---|
3294 |
|
---|
3295 | <const name="Reference" value="1" />
|
---|
3296 | <const name="Original" value="2" />
|
---|
3297 | <const name="Auto" value="3" />
|
---|
3298 | <const name="ExtraConfig" value="4" />
|
---|
3299 |
|
---|
3300 | </enum>
|
---|
3301 |
|
---|
3302 | <interface
|
---|
3303 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
3304 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
3305 | wsmap="managed"
|
---|
3306 | >
|
---|
3307 |
|
---|
3308 | <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
|
---|
3309 | After <link to="IAppliance::interpret" /> has been called, that array contains
|
---|
3310 | information about how the virtual systems described in the OVF should best be imported into VirtualBox
|
---|
3311 | virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
|
---|
3312 | into VirtualBox.
|
---|
3313 | </desc>
|
---|
3314 |
|
---|
3315 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
3316 | <desc>Return the number of virtual system description entries.</desc>
|
---|
3317 | </attribute>
|
---|
3318 |
|
---|
3319 | <method name="getDescription">
|
---|
3320 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
3321 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
3322 |
|
---|
3323 | The list below identifies the value sets that are possible depending on the
|
---|
3324 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
|
---|
3325 | the array item with the same index in aOvfValues[] will contain the original value as contained
|
---|
3326 | in the OVF file (just for informational purposes), and the corresponding item in aVboxValues[]
|
---|
3327 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
3328 | the aExtraConfigValues[] array item may also be used.
|
---|
3329 |
|
---|
3330 | <ul>
|
---|
3331 | <li>
|
---|
3332 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
3333 | corresponding item in aVboxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
3334 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
3335 | item in aOvfValues[] will contain a numerical value that described the operating system in the OVF
|
---|
3336 | (see <link to="CIMOSType" />).
|
---|
3337 | </li>
|
---|
3338 | <li>
|
---|
3339 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
3340 | if none is present on import, then an automatic name will be created from the operating system
|
---|
3341 | type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
|
---|
3342 | from the OVF file, and aVboxValues[] will contain a suggestion for a unique VirtualBox
|
---|
3343 | <link to="IMachine" /> name that does not exist yet.
|
---|
3344 | </li>
|
---|
3345 | <li>
|
---|
3346 | "Description": an arbitrary description.
|
---|
3347 | </li>
|
---|
3348 | <li>
|
---|
3349 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
3350 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
3351 | </li>
|
---|
3352 | <li>
|
---|
3353 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
3354 | </li>
|
---|
3355 | <li>
|
---|
3356 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
3357 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
3358 | type.
|
---|
3359 | </li>
|
---|
3360 | <li>
|
---|
3361 | "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
|
---|
3362 | has no value in aOvfValues[] or aVboxValues[].
|
---|
3363 | The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
3364 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
3365 | </li>
|
---|
3366 | <li>
|
---|
3367 | "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
3368 | has no value in aOvfValues[] or aVboxValues[].
|
---|
3369 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3370 | </li>
|
---|
3371 | <li>
|
---|
3372 | "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
3373 | The items in aOvfValues[] and aVboxValues[] will either be "LsiLogic" or "BusLogic".
|
---|
3374 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3375 | </li>
|
---|
3376 | <li>
|
---|
3377 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
3378 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
3379 |
|
---|
3380 | The array item in aOvfValues[] will contain the file specification from the OVF file (without
|
---|
3381 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
3382 | item in aVboxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
3383 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
3384 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
3385 | On import, the target image will also be registered with VirtualBox.
|
---|
3386 |
|
---|
3387 | The matching item in the aExtraConfigValues[] array must contain a string of the following
|
---|
3388 | format: "controller=<index>;channel=<c>"
|
---|
3389 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
3390 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
3391 | types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
|
---|
3392 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
3393 | this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
|
---|
3394 | secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
|
---|
3395 | SCSI conrollers, the channel can range from 0-29.
|
---|
3396 | </li>
|
---|
3397 | <li>
|
---|
3398 | "NetworkAdapter": a network adapter. The array item in aVboxValues[] will specify the hardware
|
---|
3399 | for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
|
---|
3400 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
3401 | </li>
|
---|
3402 | <li>
|
---|
3403 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
3404 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
3405 | </li>
|
---|
3406 | <li>
|
---|
3407 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
3408 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
3409 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
3410 | may be different from the virtual soundcard expected by the appliance.
|
---|
3411 | </li>
|
---|
3412 | </ul>
|
---|
3413 |
|
---|
3414 | </desc>
|
---|
3415 |
|
---|
3416 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3417 | <desc></desc>
|
---|
3418 | </param>
|
---|
3419 |
|
---|
3420 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3421 | <desc></desc>
|
---|
3422 | </param>
|
---|
3423 |
|
---|
3424 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3425 | <desc></desc>
|
---|
3426 | </param>
|
---|
3427 |
|
---|
3428 | <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
|
---|
3429 | <desc></desc>
|
---|
3430 | </param>
|
---|
3431 |
|
---|
3432 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3433 | <desc></desc>
|
---|
3434 | </param>
|
---|
3435 |
|
---|
3436 | </method>
|
---|
3437 |
|
---|
3438 | <method name="getDescriptionByType">
|
---|
3439 | <desc>This is the same as <link to="getDescription" /> except that you can specify which types
|
---|
3440 | should be returned.</desc>
|
---|
3441 |
|
---|
3442 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3443 | <desc></desc>
|
---|
3444 | </param>
|
---|
3445 |
|
---|
3446 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3447 | <desc></desc>
|
---|
3448 | </param>
|
---|
3449 |
|
---|
3450 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3451 | <desc></desc>
|
---|
3452 | </param>
|
---|
3453 |
|
---|
3454 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3455 | <desc></desc>
|
---|
3456 | </param>
|
---|
3457 |
|
---|
3458 | <param name="aVboxValues" type="wstring" dir="out" safearray="yes">
|
---|
3459 | <desc></desc>
|
---|
3460 | </param>
|
---|
3461 |
|
---|
3462 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3463 | <desc></desc>
|
---|
3464 | </param>
|
---|
3465 |
|
---|
3466 | </method>
|
---|
3467 |
|
---|
3468 | <method name="getValuesByType">
|
---|
3469 | <desc>This is the same as <link to="getDescriptionByType" /> except that you can specify which
|
---|
3470 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
3471 | values.</desc>
|
---|
3472 |
|
---|
3473 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3474 | <desc></desc>
|
---|
3475 | </param>
|
---|
3476 |
|
---|
3477 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
3478 | <desc></desc>
|
---|
3479 | </param>
|
---|
3480 |
|
---|
3481 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
3482 | <desc></desc>
|
---|
3483 | </param>
|
---|
3484 |
|
---|
3485 | </method>
|
---|
3486 |
|
---|
3487 | <method name="setFinalValues">
|
---|
3488 | <desc>
|
---|
3489 | This method allows the appliance's user to change the configuration for the virtual
|
---|
3490 | system descriptions. For each array item returned from <link to="getDescription" />,
|
---|
3491 | you must pass in one boolean value and one configuration value.
|
---|
3492 |
|
---|
3493 | Each item in the boolean array determines whether the particular configuration item
|
---|
3494 | should be enabled.
|
---|
3495 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
3496 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
3497 | and SoundCard.
|
---|
3498 |
|
---|
3499 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
3500 | as returned in the aVboxValues and aExtraConfigValues arrays from getDescription(),
|
---|
3501 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
3502 | for valid configuration values for the individual array item types. If the
|
---|
3503 | corresponding item in the aEnabled array is false, the configuration value is ignored.
|
---|
3504 | </desc>
|
---|
3505 |
|
---|
3506 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
3507 | <desc></desc>
|
---|
3508 | </param>
|
---|
3509 |
|
---|
3510 | <param name="aVboxValues" type="wstring" dir="in" safearray="yes">
|
---|
3511 | <desc></desc>
|
---|
3512 | </param>
|
---|
3513 |
|
---|
3514 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
3515 | <desc></desc>
|
---|
3516 | </param>
|
---|
3517 | </method>
|
---|
3518 |
|
---|
3519 | <method name="addDescription">
|
---|
3520 | <desc>
|
---|
3521 | This method adds an additional description entry to the stack of already
|
---|
3522 | available descriptions for this virtual system. This is handy for writing
|
---|
3523 | values which aren't directly supported by VirtualBox. One example would
|
---|
3524 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
3525 | </desc>
|
---|
3526 |
|
---|
3527 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3528 | <desc></desc>
|
---|
3529 | </param>
|
---|
3530 |
|
---|
3531 | <param name="aVboxValue" type="wstring" dir="in">
|
---|
3532 | <desc></desc>
|
---|
3533 | </param>
|
---|
3534 |
|
---|
3535 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
3536 | <desc></desc>
|
---|
3537 | </param>
|
---|
3538 | </method>
|
---|
3539 | </interface>
|
---|
3540 |
|
---|
3541 |
|
---|
3542 | <!--
|
---|
3543 | // IMachine
|
---|
3544 | /////////////////////////////////////////////////////////////////////////
|
---|
3545 | -->
|
---|
3546 |
|
---|
3547 | <interface
|
---|
3548 | name="IInternalMachineControl" extends="$unknown"
|
---|
3549 | uuid="2c88b969-7a74-4ef3-b95f-8a209a1535f3"
|
---|
3550 | internal="yes"
|
---|
3551 | wsmap="suppress"
|
---|
3552 | >
|
---|
3553 | <method name="updateState">
|
---|
3554 | <desc>
|
---|
3555 | Updates the VM state.
|
---|
3556 | <note>
|
---|
3557 | This operation will also update the settings file with
|
---|
3558 | the correct information about the saved state file
|
---|
3559 | and delete this file from disk when appropriate.
|
---|
3560 | </note>
|
---|
3561 | </desc>
|
---|
3562 | <param name="state" type="MachineState" dir="in"/>
|
---|
3563 | </method>
|
---|
3564 |
|
---|
3565 | <method name="getIPCId">
|
---|
3566 | <param name="id" type="wstring" dir="return"/>
|
---|
3567 | </method>
|
---|
3568 |
|
---|
3569 | <method name="runUSBDeviceFilters">
|
---|
3570 | <desc>
|
---|
3571 | Asks the server to run USB devices filters of the associated
|
---|
3572 | machine against the given USB device and tell if there is
|
---|
3573 | a match.
|
---|
3574 | <note>
|
---|
3575 | Intended to be used only for remote USB devices. Local
|
---|
3576 | ones don't require to call this method (this is done
|
---|
3577 | implicitly by the Host and USBProxyService).
|
---|
3578 | </note>
|
---|
3579 | </desc>
|
---|
3580 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3581 | <param name="matched" type="boolean" dir="out"/>
|
---|
3582 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3583 | </method>
|
---|
3584 |
|
---|
3585 | <method name="captureUSBDevice">
|
---|
3586 | <desc>
|
---|
3587 | Requests a capture of the given host USB device.
|
---|
3588 | When the request is completed, the VM process will
|
---|
3589 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3590 | notification.
|
---|
3591 | </desc>
|
---|
3592 | <param name="id" type="uuid" dir="in"/>
|
---|
3593 | </method>
|
---|
3594 |
|
---|
3595 | <method name="detachUSBDevice">
|
---|
3596 | <desc>
|
---|
3597 | Notification that a VM is going to detach (done = false) or has
|
---|
3598 | already detached (done = true) the given USB device.
|
---|
3599 | When the done = true request is completed, the VM process will
|
---|
3600 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3601 | notification.
|
---|
3602 | <note>
|
---|
3603 | In the done = true case, the server must run its own filters
|
---|
3604 | and filters of all VMs but this one on the detached device
|
---|
3605 | as if it were just attached to the host computer.
|
---|
3606 | </note>
|
---|
3607 | </desc>
|
---|
3608 | <param name="id" type="uuid" dir="in"/>
|
---|
3609 | <param name="done" type="boolean" dir="in"/>
|
---|
3610 | </method>
|
---|
3611 |
|
---|
3612 | <method name="autoCaptureUSBDevices">
|
---|
3613 | <desc>
|
---|
3614 | Requests a capture all matching USB devices attached to the host.
|
---|
3615 | When the request is completed, the VM process will
|
---|
3616 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3617 | notification per every captured device.
|
---|
3618 | </desc>
|
---|
3619 | </method>
|
---|
3620 |
|
---|
3621 | <method name="detachAllUSBDevices">
|
---|
3622 | <desc>
|
---|
3623 | Notification that a VM that is being powered down. The done
|
---|
3624 | parameter indicates whether which stage of the power down
|
---|
3625 | we're at. When done = false the VM is announcing its
|
---|
3626 | intentions, while when done = true the VM is reporting
|
---|
3627 | what it has done.
|
---|
3628 | <note>
|
---|
3629 | In the done = true case, the server must run its own filters
|
---|
3630 | and filters of all VMs but this one on all detach devices as
|
---|
3631 | if they were just attached to the host computer.
|
---|
3632 | </note>
|
---|
3633 | </desc>
|
---|
3634 | <param name="done" type="boolean" dir="in"/>
|
---|
3635 | </method>
|
---|
3636 |
|
---|
3637 | <method name="onSessionEnd">
|
---|
3638 | <desc>
|
---|
3639 | Triggered by the given session object when the session is about
|
---|
3640 | to close normally.
|
---|
3641 | </desc>
|
---|
3642 | <param name="session" type="ISession" dir="in">
|
---|
3643 | <desc>Session that is being closed</desc>
|
---|
3644 | </param>
|
---|
3645 | <param name="progress" type="IProgress" dir="return">
|
---|
3646 | <desc>
|
---|
3647 | Used to wait until the corresponding machine is actually
|
---|
3648 | dissociated from the given session on the server.
|
---|
3649 | Returned only when this session is a direct one.
|
---|
3650 | </desc>
|
---|
3651 | </param>
|
---|
3652 | </method>
|
---|
3653 |
|
---|
3654 | <method name="beginSavingState">
|
---|
3655 | <desc>
|
---|
3656 | Called by the VM process to inform the server it wants to
|
---|
3657 | save the current state and stop the VM execution.
|
---|
3658 | </desc>
|
---|
3659 | <param name="progress" type="IProgress" dir="in">
|
---|
3660 | <desc>
|
---|
3661 | Progress object created by the VM process to wait until
|
---|
3662 | the state is saved.
|
---|
3663 | </desc>
|
---|
3664 | </param>
|
---|
3665 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3666 | <desc>
|
---|
3667 | File path the VM process must save the execution state to.
|
---|
3668 | </desc>
|
---|
3669 | </param>
|
---|
3670 | </method>
|
---|
3671 |
|
---|
3672 | <method name="endSavingState">
|
---|
3673 | <desc>
|
---|
3674 | Called by the VM process to inform the server that saving
|
---|
3675 | the state previously requested by #beginSavingState is either
|
---|
3676 | successfully finished or there was a failure.
|
---|
3677 |
|
---|
3678 | <result name="VBOX_E_FILE_ERROR">
|
---|
3679 | Settings file not accessible.
|
---|
3680 | </result>
|
---|
3681 | <result name="VBOX_E_XML_ERROR">
|
---|
3682 | Could not parse the settings file.
|
---|
3683 | </result>
|
---|
3684 |
|
---|
3685 | </desc>
|
---|
3686 |
|
---|
3687 | <param name="success" type="boolean" dir="in">
|
---|
3688 | <desc><tt>true</tt> to indicate success and <tt>false</tt>
|
---|
3689 | otherwise.
|
---|
3690 | </desc>
|
---|
3691 | </param>
|
---|
3692 | </method>
|
---|
3693 |
|
---|
3694 | <method name="adoptSavedState">
|
---|
3695 | <desc>
|
---|
3696 | Gets called by IConsole::adoptSavedState.
|
---|
3697 | <result name="VBOX_E_FILE_ERROR">
|
---|
3698 | Invalid saved state file path.
|
---|
3699 | </result>
|
---|
3700 | </desc>
|
---|
3701 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3702 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3703 | </param>
|
---|
3704 | </method>
|
---|
3705 |
|
---|
3706 | <method name="beginTakingSnapshot">
|
---|
3707 | <desc>
|
---|
3708 | Called by the VM process to inform the server it wants to
|
---|
3709 | take a snapshot.
|
---|
3710 |
|
---|
3711 | <result name="VBOX_E_FILE_ERROR">
|
---|
3712 | Settings file not accessible.
|
---|
3713 | </result>
|
---|
3714 | <result name="VBOX_E_XML_ERROR">
|
---|
3715 | Could not parse the settings file.
|
---|
3716 | </result>
|
---|
3717 | </desc>
|
---|
3718 | <param name="initiator" type="IConsole" dir="in">
|
---|
3719 | <desc>The console object that initiated this call.</desc>
|
---|
3720 | </param>
|
---|
3721 | <param name="name" type="wstring" dir="in">
|
---|
3722 | <desc>Snapshot name.</desc>
|
---|
3723 | </param>
|
---|
3724 | <param name="description" type="wstring" dir="in">
|
---|
3725 | <desc>Snapshot description.</desc>
|
---|
3726 | </param>
|
---|
3727 | <param name="progress" type="IProgress" dir="in">
|
---|
3728 | <desc>
|
---|
3729 | Progress object created by the VM process to wait until
|
---|
3730 | the state is saved (only for online snapshots).
|
---|
3731 | </desc>
|
---|
3732 | </param>
|
---|
3733 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3734 | <desc>
|
---|
3735 | File path the VM process must save the execution state to.
|
---|
3736 | </desc>
|
---|
3737 | </param>
|
---|
3738 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
3739 | <desc>
|
---|
3740 | Progress object created by the server process to wait until
|
---|
3741 | the snapshot is taken (VDI diff creation, etc.).
|
---|
3742 | </desc>
|
---|
3743 | </param>
|
---|
3744 | </method>
|
---|
3745 |
|
---|
3746 | <method name="endTakingSnapshot">
|
---|
3747 | <desc>
|
---|
3748 | Called by the VM process to inform the server that the snapshot
|
---|
3749 | previously requested by #beginTakingSnapshot is either
|
---|
3750 | successfully taken or there was a failure.
|
---|
3751 | </desc>
|
---|
3752 |
|
---|
3753 | <param name="success" type="boolean" dir="in">
|
---|
3754 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
3755 | </param>
|
---|
3756 | </method>
|
---|
3757 |
|
---|
3758 | <method name="discardSnapshot">
|
---|
3759 | <desc>
|
---|
3760 | Gets called by IConsole::discardSnapshot.
|
---|
3761 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3762 | Snapshot has more than one child snapshot.
|
---|
3763 | </result>
|
---|
3764 | </desc>
|
---|
3765 | <param name="initiator" type="IConsole" dir="in">
|
---|
3766 | <desc>The console object that initiated this call.</desc>
|
---|
3767 | </param>
|
---|
3768 | <param name="id" type="uuid" dir="in">
|
---|
3769 | <desc>UUID of the snapshot to discard.</desc>
|
---|
3770 | </param>
|
---|
3771 | <param name="machineState" type="MachineState" dir="out">
|
---|
3772 | <desc>New machine state after this operation is started.</desc>
|
---|
3773 | </param>
|
---|
3774 | <param name="progress" type="IProgress" dir="return">
|
---|
3775 | <desc>Progress object to track the operation completion.</desc>
|
---|
3776 | </param>
|
---|
3777 | </method>
|
---|
3778 |
|
---|
3779 | <method name="discardCurrentState">
|
---|
3780 | <desc>
|
---|
3781 | Gets called by IConsole::discardCurrentState.
|
---|
3782 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3783 | Virtual machine does not have any snapshot.
|
---|
3784 | </result>
|
---|
3785 | </desc>
|
---|
3786 | <param name="initiator" type="IConsole" dir="in">
|
---|
3787 | <desc>The console object that initiated this call.</desc>
|
---|
3788 | </param>
|
---|
3789 | <param name="machineState" type="MachineState" dir="out">
|
---|
3790 | <desc>New machine state after this operation is started.</desc>
|
---|
3791 | </param>
|
---|
3792 | <param name="progress" type="IProgress" dir="return">
|
---|
3793 | <desc>Progress object to track the operation completion.</desc>
|
---|
3794 | </param>
|
---|
3795 | </method>
|
---|
3796 |
|
---|
3797 | <method name="discardCurrentSnapshotAndState">
|
---|
3798 | <desc>
|
---|
3799 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
3800 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3801 | Virtual machine does not have any snapshot.
|
---|
3802 | </result>
|
---|
3803 | </desc>
|
---|
3804 | <param name="initiator" type="IConsole" dir="in">
|
---|
3805 | <desc>The console object that initiated this call.</desc>
|
---|
3806 | </param>
|
---|
3807 | <param name="machineState" type="MachineState" dir="out">
|
---|
3808 | <desc>New machine state after this operation is started.</desc>
|
---|
3809 | </param>
|
---|
3810 | <param name="progress" type="IProgress" dir="return">
|
---|
3811 | <desc>Progress object to track the operation completion.</desc>
|
---|
3812 | </param>
|
---|
3813 | </method>
|
---|
3814 |
|
---|
3815 | <method name="pullGuestProperties">
|
---|
3816 | <desc>
|
---|
3817 | Get the list of the guest properties matching a set of patterns along
|
---|
3818 | with their values, time stamps and flags and give responsibility for
|
---|
3819 | managing properties to the console.
|
---|
3820 | </desc>
|
---|
3821 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3822 | <desc>
|
---|
3823 | The names of the properties returned.
|
---|
3824 | </desc>
|
---|
3825 | </param>
|
---|
3826 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
3827 | <desc>
|
---|
3828 | The values of the properties returned. The array entries match the
|
---|
3829 | corresponding entries in the @a name array.
|
---|
3830 | </desc>
|
---|
3831 | </param>
|
---|
3832 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
3833 | <desc>
|
---|
3834 | The time stamps of the properties returned. The array entries match
|
---|
3835 | the corresponding entries in the @a name array.
|
---|
3836 | </desc>
|
---|
3837 | </param>
|
---|
3838 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
3839 | <desc>
|
---|
3840 | The flags of the properties returned. The array entries match the
|
---|
3841 | corresponding entries in the @a name array.
|
---|
3842 | </desc>
|
---|
3843 | </param>
|
---|
3844 | </method>
|
---|
3845 |
|
---|
3846 | <method name="pushGuestProperties">
|
---|
3847 | <desc>
|
---|
3848 | Set the list of the guest properties matching a set of patterns along
|
---|
3849 | with their values, time stamps and flags and return responsibility for
|
---|
3850 | managing properties to IMachine.
|
---|
3851 | </desc>
|
---|
3852 | <param name="name" type="wstring" dir="in" safearray="yes">
|
---|
3853 | <desc>
|
---|
3854 | The names of the properties.
|
---|
3855 | </desc>
|
---|
3856 | </param>
|
---|
3857 | <param name="value" type="wstring" dir="in" safearray="yes">
|
---|
3858 | <desc>
|
---|
3859 | The values of the properties. The array entries match the
|
---|
3860 | corresponding entries in the @a name array.
|
---|
3861 | </desc>
|
---|
3862 | </param>
|
---|
3863 | <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
|
---|
3864 | <desc>
|
---|
3865 | The time stamps of the properties. The array entries match
|
---|
3866 | the corresponding entries in the @a name array.
|
---|
3867 | </desc>
|
---|
3868 | </param>
|
---|
3869 | <param name="flags" type="wstring" dir="in" safearray="yes">
|
---|
3870 | <desc>
|
---|
3871 | The flags of the properties. The array entries match the
|
---|
3872 | corresponding entries in the @a name array.
|
---|
3873 | </desc>
|
---|
3874 | </param>
|
---|
3875 | </method>
|
---|
3876 | <method name="pushGuestProperty">
|
---|
3877 | <desc>
|
---|
3878 | Update a single guest property in IMachine.
|
---|
3879 | </desc>
|
---|
3880 | <param name="name" type="wstring" dir="in">
|
---|
3881 | <desc>
|
---|
3882 | The name of the property to be updated.
|
---|
3883 | </desc>
|
---|
3884 | </param>
|
---|
3885 | <param name="value" type="wstring" dir="in">
|
---|
3886 | <desc>
|
---|
3887 | The value of the property.
|
---|
3888 | </desc>
|
---|
3889 | </param>
|
---|
3890 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
3891 | <desc>
|
---|
3892 | The timestamp of the property.
|
---|
3893 | </desc>
|
---|
3894 | </param>
|
---|
3895 | <param name="flags" type="wstring" dir="in">
|
---|
3896 | <desc>
|
---|
3897 | The flags of the property.
|
---|
3898 | </desc>
|
---|
3899 | </param>
|
---|
3900 | </method>
|
---|
3901 |
|
---|
3902 | <method name="lockMedia">
|
---|
3903 | <desc>
|
---|
3904 | Locks all media attached to the machine for writing and parents of
|
---|
3905 | attahced different hard disks (if any) for reading. This operation is
|
---|
3906 | atomic so that if it fails no media is actually locked.
|
---|
3907 |
|
---|
3908 | This method is intended to be called when the machine is in Starting or
|
---|
3909 | Restoring state. The locked media will be automatically unlocked when
|
---|
3910 | the machine is powered off or crashed.
|
---|
3911 | </desc>
|
---|
3912 | </method>
|
---|
3913 | </interface>
|
---|
3914 |
|
---|
3915 | <interface
|
---|
3916 | name="IBIOSSettings" extends="$unknown"
|
---|
3917 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
3918 | wsmap="managed"
|
---|
3919 | >
|
---|
3920 | <desc>
|
---|
3921 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
3922 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
3923 | </desc>
|
---|
3924 | <attribute name="logoFadeIn" type="boolean">
|
---|
3925 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
3926 | </attribute>
|
---|
3927 |
|
---|
3928 | <attribute name="logoFadeOut" type="boolean">
|
---|
3929 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
3930 | </attribute>
|
---|
3931 |
|
---|
3932 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
3933 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
3934 | </attribute>
|
---|
3935 |
|
---|
3936 | <attribute name="logoImagePath" type="wstring">
|
---|
3937 | <desc>Local file system path for external BIOS image.</desc>
|
---|
3938 | </attribute>
|
---|
3939 |
|
---|
3940 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
3941 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
3942 | </attribute>
|
---|
3943 |
|
---|
3944 | <attribute name="ACPIEnabled" type="boolean">
|
---|
3945 | <desc>ACPI support flag.</desc>
|
---|
3946 | </attribute>
|
---|
3947 |
|
---|
3948 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
3949 | <desc>
|
---|
3950 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
3951 | and support IRQs above 15.
|
---|
3952 | </desc>
|
---|
3953 | </attribute>
|
---|
3954 |
|
---|
3955 | <attribute name="timeOffset" type="long long">
|
---|
3956 | <desc>
|
---|
3957 | Offset in milliseconds from the host system time. This allows for
|
---|
3958 | guests running with a different system date/time than the host.
|
---|
3959 | It is equivalent to setting the system date/time in the BIOS except
|
---|
3960 | it is not an absolute value but a relative one. Guest Additions
|
---|
3961 | time synchronization honors this offset.
|
---|
3962 | </desc>
|
---|
3963 | </attribute>
|
---|
3964 |
|
---|
3965 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
3966 | <desc>
|
---|
3967 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
3968 | PXE trace information to the release log.
|
---|
3969 | </desc>
|
---|
3970 | </attribute>
|
---|
3971 |
|
---|
3972 | </interface>
|
---|
3973 |
|
---|
3974 | <interface
|
---|
3975 | name="IMachine" extends="$unknown"
|
---|
3976 | uuid="13420cbb-175a-4456-85d0-301126dfdec7"
|
---|
3977 | wsmap="managed"
|
---|
3978 | >
|
---|
3979 | <desc>
|
---|
3980 | The IMachine interface represents a virtual machine, or guest, created
|
---|
3981 | in VirtualBox.
|
---|
3982 |
|
---|
3983 | This interface is used in two contexts. First of all, a collection of
|
---|
3984 | objects implementing this interface is stored in the
|
---|
3985 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
3986 | machines that are currently registered with this VirtualBox
|
---|
3987 | installation. Also, once a session has been opened for the given virtual
|
---|
3988 | machine (e.g. the virtual machine is running), the machine object
|
---|
3989 | associated with the open session can be queried from the session object;
|
---|
3990 | see <link to="ISession"/> for details.
|
---|
3991 |
|
---|
3992 | The main role of this interface is to expose the settings of the virtual
|
---|
3993 | machine and provide methods to change various aspects of the virtual
|
---|
3994 | machine's configuration. For machine objects stored in the
|
---|
3995 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
3996 | read-only unless explicitly stated otherwise in individual attribute
|
---|
3997 | and method descriptions. In order to change a machine setting, a session
|
---|
3998 | for this machine must be opened using one of
|
---|
3999 | <link to="IVirtualBox::openSession"/>,
|
---|
4000 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4001 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
4002 | session has been successfully opened, a mutable machine object needs to
|
---|
4003 | be queried from the session object and then the desired settings changes
|
---|
4004 | can be applied to the returned object using IMachine attributes and
|
---|
4005 | methods. See the ISession interface description for more information
|
---|
4006 | about sessions.
|
---|
4007 |
|
---|
4008 | Note that the IMachine interface does not provide methods to control
|
---|
4009 | virtual machine execution (such as start the machine, or power it
|
---|
4010 | down) -- these methods are grouped in a separate IConsole
|
---|
4011 | interface. Refer to the IConsole interface description to get more
|
---|
4012 | information about this topic.
|
---|
4013 |
|
---|
4014 | <see>ISession, IConsole</see>
|
---|
4015 | </desc>
|
---|
4016 |
|
---|
4017 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
4018 | <desc>Associated parent object.</desc>
|
---|
4019 | </attribute>
|
---|
4020 |
|
---|
4021 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
4022 | <desc>
|
---|
4023 | Whether this virtual machine is currently accessible or not.
|
---|
4024 |
|
---|
4025 | The machine is considered to be inaccessible when:
|
---|
4026 | <ul>
|
---|
4027 | <li>It is a registered virtual machine, and
|
---|
4028 | </li>
|
---|
4029 | <li>Its settings file is inaccessible (for example, it is
|
---|
4030 | located on a network share that is not accessible during
|
---|
4031 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
4032 | the settings file can be read but is invalid).
|
---|
4033 | </li>
|
---|
4034 | </ul>
|
---|
4035 |
|
---|
4036 | Otherwise, the value of this property is always <tt>true</tt>.
|
---|
4037 |
|
---|
4038 | Every time this property is read, the accessibility state of
|
---|
4039 | this machine is re-evaluated. If the returned value is |false|,
|
---|
4040 | the <link to="#accessError"/> property may be used to get the
|
---|
4041 | detailed error information describing the reason of
|
---|
4042 | inaccessibility.
|
---|
4043 |
|
---|
4044 | When the machine is inaccessible, only the following properties
|
---|
4045 | can be used on it:
|
---|
4046 | <ul>
|
---|
4047 | <li><link to="#parent"/></li>
|
---|
4048 | <li><link to="#id"/></li>
|
---|
4049 | <li><link to="#settingsFilePath"/></li>
|
---|
4050 | <li><link to="#accessible"/></li>
|
---|
4051 | <li><link to="#accessError"/></li>
|
---|
4052 | </ul>
|
---|
4053 |
|
---|
4054 | An attempt to access any other property or method will return
|
---|
4055 | an error.
|
---|
4056 |
|
---|
4057 | The only possible action you can perform on an inaccessible
|
---|
4058 | machine is to unregister it using the
|
---|
4059 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
4060 | for the accessibility state once more by querying this
|
---|
4061 | property).
|
---|
4062 |
|
---|
4063 | <note>
|
---|
4064 | In the current implementation, once this property returns
|
---|
4065 | <tt>true</tt>, the machine will never become inaccessible
|
---|
4066 | later, even if its settings file cannot be successfully
|
---|
4067 | read/written any more (at least, until the VirtualBox
|
---|
4068 | server is restarted). This limitation may be removed in
|
---|
4069 | future releases.
|
---|
4070 | </note>
|
---|
4071 | </desc>
|
---|
4072 | </attribute>
|
---|
4073 |
|
---|
4074 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4075 | <desc>
|
---|
4076 | Error information describing the reason of machine
|
---|
4077 | inaccessibility.
|
---|
4078 |
|
---|
4079 | Reading this property is only valid after the last call to
|
---|
4080 | <link to="#accessible"/> returned <tt>false</tt> (i.e. the
|
---|
4081 | machine is currently unaccessible). Otherwise, a null
|
---|
4082 | IVirtualBoxErrorInfo object will be returned.
|
---|
4083 | </desc>
|
---|
4084 | </attribute>
|
---|
4085 |
|
---|
4086 | <attribute name="name" type="wstring">
|
---|
4087 | <desc>
|
---|
4088 | Name of the virtual machine.
|
---|
4089 |
|
---|
4090 | Besides being used for human-readable identification purposes
|
---|
4091 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
4092 | as a name of the machine's settings file and as a name of the
|
---|
4093 | subdirectory this settings file resides in. Thus, every time you
|
---|
4094 | change the value of this property, the settings file will be
|
---|
4095 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
4096 | change. The containing subdirectory will be also renamed, but
|
---|
4097 | only if it has exactly the same name as the settings file
|
---|
4098 | itself prior to changing this property (for backward compatibility
|
---|
4099 | with previous API releases). The above implies the following
|
---|
4100 | limitations:
|
---|
4101 | <ul>
|
---|
4102 | <li>The machine name cannot be empty.</li>
|
---|
4103 | <li>The machine name can contain only characters that are valid
|
---|
4104 | file name characters according to the rules of the file
|
---|
4105 | system used to store VirtualBox configuration.</li>
|
---|
4106 | <li>You cannot have two or more machines with the same name
|
---|
4107 | if they use the same subdirectory for storing the machine
|
---|
4108 | settings files.</li>
|
---|
4109 | <li>You cannot change the name of the machine if it is running,
|
---|
4110 | or if any file in the directory containing the settings file
|
---|
4111 | is being used by another running machine or by any other
|
---|
4112 | process in the host operating system at a time when
|
---|
4113 | <link to="#saveSettings"/> is called.
|
---|
4114 | </li>
|
---|
4115 | </ul>
|
---|
4116 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
4117 | will return an appropriate error message explaining the exact
|
---|
4118 | reason and the changes you made to this machine will not be
|
---|
4119 | saved.
|
---|
4120 | <note>
|
---|
4121 | For "legacy" machines created using the
|
---|
4122 | <link to="IVirtualBox::createLegacyMachine"/> call,
|
---|
4123 | the above naming limitations do not apply because the
|
---|
4124 | machine name does not affect the settings file name.
|
---|
4125 | The settings file name remains the same as it was specified
|
---|
4126 | during machine creation and never changes.
|
---|
4127 | </note>
|
---|
4128 | </desc>
|
---|
4129 | </attribute>
|
---|
4130 |
|
---|
4131 | <attribute name="description" type="wstring">
|
---|
4132 | <desc>
|
---|
4133 | Description of the virtual machine.
|
---|
4134 |
|
---|
4135 | The description attribute can contain any text and is
|
---|
4136 | typically used to describe the hardware and software
|
---|
4137 | configuration of the virtual machine in detail (i.e. network
|
---|
4138 | settings, versions of the installed software and so on).
|
---|
4139 | </desc>
|
---|
4140 | </attribute>
|
---|
4141 |
|
---|
4142 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4143 | <desc>UUID of the virtual machine.</desc>
|
---|
4144 | </attribute>
|
---|
4145 |
|
---|
4146 | <attribute name="OSTypeId" type="wstring">
|
---|
4147 | <desc>
|
---|
4148 | User-defined identifier of the Guest OS type.
|
---|
4149 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4150 | an IGuestOSType object representing details about the given
|
---|
4151 | Guest OS type.
|
---|
4152 | <note>
|
---|
4153 | This value may differ from the value returned by
|
---|
4154 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
4155 | installed to the guest OS.
|
---|
4156 | </note>
|
---|
4157 | </desc>
|
---|
4158 | </attribute>
|
---|
4159 |
|
---|
4160 | <attribute name="HardwareVersion" type="wstring">
|
---|
4161 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
4162 | </attribute>
|
---|
4163 |
|
---|
4164 | <attribute name="CPUCount" type="unsigned long">
|
---|
4165 | <desc>Number of virtual CPUs in the VM. In the current version of the product, this is always 1.</desc>
|
---|
4166 | </attribute>
|
---|
4167 |
|
---|
4168 | <attribute name="memorySize" type="unsigned long">
|
---|
4169 | <desc>System memory size in megabytes.</desc>
|
---|
4170 | </attribute>
|
---|
4171 |
|
---|
4172 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4173 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
4174 | </attribute>
|
---|
4175 |
|
---|
4176 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4177 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
4178 | </attribute>
|
---|
4179 |
|
---|
4180 | <attribute name="VRAMSize" type="unsigned long">
|
---|
4181 | <desc>Video memory size in megabytes.</desc>
|
---|
4182 | </attribute>
|
---|
4183 |
|
---|
4184 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
4185 | <desc>
|
---|
4186 | This setting determines whether VirtualBox allows guests to make use
|
---|
4187 | of the 3D graphics support available on the host. Currently limited
|
---|
4188 | to OpenGL only. </desc>
|
---|
4189 | </attribute>
|
---|
4190 |
|
---|
4191 | <attribute name="monitorCount" type="unsigned long">
|
---|
4192 | <desc>
|
---|
4193 | Number of virtual monitors.
|
---|
4194 | <note>
|
---|
4195 | Only effective on Windows XP and later guests with
|
---|
4196 | Guest Additions installed.
|
---|
4197 | </note>
|
---|
4198 | </desc>
|
---|
4199 | </attribute>
|
---|
4200 |
|
---|
4201 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
4202 | <desc>Object containing all BIOS settings.</desc>
|
---|
4203 | </attribute>
|
---|
4204 |
|
---|
4205 | <attribute name="HWVirtExEnabled" type="TSBool">
|
---|
4206 | <desc>
|
---|
4207 | This setting determines whether VirtualBox will try to make use of
|
---|
4208 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
4209 | and AMD-V. Note that in case such extensions are not available,
|
---|
4210 | they will not be used.
|
---|
4211 | </desc>
|
---|
4212 | </attribute>
|
---|
4213 |
|
---|
4214 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
|
---|
4215 | <desc>
|
---|
4216 | This setting determines whether VirtualBox will try to make use of
|
---|
4217 | the nested paging extension of Intel VT-x and AMD-V. Note that in case
|
---|
4218 | such extensions are not available, they will not be used.
|
---|
4219 | </desc>
|
---|
4220 | </attribute>
|
---|
4221 |
|
---|
4222 | <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
|
---|
4223 | <desc>
|
---|
4224 | This setting determines whether VirtualBox will try to make use of
|
---|
4225 | the VPID extension of Intel VT-x. Note that in case such extensions are
|
---|
4226 | not available, they will not be used.
|
---|
4227 | </desc>
|
---|
4228 | </attribute>
|
---|
4229 |
|
---|
4230 | <attribute name="PAEEnabled" type="boolean" default="false">
|
---|
4231 | <desc>
|
---|
4232 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
4233 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
4234 | is not available, it will not be reported.
|
---|
4235 | </desc>
|
---|
4236 | </attribute>
|
---|
4237 |
|
---|
4238 | <attribute name="snapshotFolder" type="wstring">
|
---|
4239 | <desc>
|
---|
4240 | Full path to the directory used to store snapshot data
|
---|
4241 | (differencing hard disks and saved state files) of this machine.
|
---|
4242 |
|
---|
4243 | The initial value of this property is
|
---|
4244 | <tt><</tt><link to="#settingsFilePath">
|
---|
4245 | path_to_settings_file</link><tt>>/<</tt>
|
---|
4246 | <link to="#id">machine_uuid</link>
|
---|
4247 | <tt>></tt>.
|
---|
4248 |
|
---|
4249 | Currently, it is an error to try to change this property on
|
---|
4250 | a machine that has snapshots (because this would require to
|
---|
4251 | move possibly large files to a different location).
|
---|
4252 | A separate method will be available for this purpose later.
|
---|
4253 |
|
---|
4254 | <note>
|
---|
4255 | Setting this property to <tt>null</tt> will restore the
|
---|
4256 | initial value.
|
---|
4257 | </note>
|
---|
4258 | <note>
|
---|
4259 | When setting this property, the specified path can be
|
---|
4260 | absolute (full path) or relative to the directory where the
|
---|
4261 | <link to="#settingsFilePath">machine settings file</link>
|
---|
4262 | is located. When reading this property, a full path is
|
---|
4263 | always returned.
|
---|
4264 | </note>
|
---|
4265 | <note>
|
---|
4266 | The specified path may not exist, it will be created
|
---|
4267 | when necessary.
|
---|
4268 | </note>
|
---|
4269 | </desc>
|
---|
4270 | </attribute>
|
---|
4271 |
|
---|
4272 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
4273 | <desc>VRDP server object.</desc>
|
---|
4274 | </attribute>
|
---|
4275 |
|
---|
4276 | <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
|
---|
4277 | <desc>Array of hard disks attached to this machine.</desc>
|
---|
4278 | </attribute>
|
---|
4279 |
|
---|
4280 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
4281 | <desc>Associated DVD drive object.</desc>
|
---|
4282 | </attribute>
|
---|
4283 |
|
---|
4284 | <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
4285 | <desc>Associated floppy drive object.</desc>
|
---|
4286 | </attribute>
|
---|
4287 |
|
---|
4288 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
4289 | <desc>
|
---|
4290 | Associated USB controller object.
|
---|
4291 |
|
---|
4292 | <note>
|
---|
4293 | This method may set a @ref com_warnings "warning result code".
|
---|
4294 | </note>
|
---|
4295 | <note>
|
---|
4296 | If USB functionality is not available in the given edition of
|
---|
4297 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4298 | </note>
|
---|
4299 | </desc>
|
---|
4300 | </attribute>
|
---|
4301 |
|
---|
4302 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
4303 | <desc>Associated audio adapter, always present.</desc>
|
---|
4304 | </attribute>
|
---|
4305 |
|
---|
4306 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
4307 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
4308 | </attribute>
|
---|
4309 |
|
---|
4310 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
4311 | <desc>
|
---|
4312 | Full name of the file containing machine settings data.
|
---|
4313 | </desc>
|
---|
4314 | </attribute>
|
---|
4315 |
|
---|
4316 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
4317 | <desc>
|
---|
4318 | Current version of the format of the settings file of this machine
|
---|
4319 | (<link to="#settingsFilePath"/>).
|
---|
4320 |
|
---|
4321 | The version string has the following format:
|
---|
4322 | <pre>
|
---|
4323 | x.y-platform
|
---|
4324 | </pre>
|
---|
4325 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
4326 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
4327 |
|
---|
4328 | The current version usually matches the value of the
|
---|
4329 | <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
|
---|
4330 | settings file was created by an older version of VirtualBox and there
|
---|
4331 | was a change of the settings file format since then.
|
---|
4332 |
|
---|
4333 | Note that VirtualBox automatically converts settings files from older
|
---|
4334 | versions to the most recent version when reading them (usually at
|
---|
4335 | VirtualBox startup) but it doesn't save the changes back until
|
---|
4336 | you call a method that implicitly saves settings (such as
|
---|
4337 | <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
|
---|
4338 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
4339 | value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
|
---|
4340 | means that the settings file was converted but the result of the
|
---|
4341 | conversion is not yet saved to disk.
|
---|
4342 |
|
---|
4343 | The above feature may be used by interactive front-ends to inform users
|
---|
4344 | about the settings file format change and offer them to explicitly save
|
---|
4345 | all converted settings files (the global and VM-specific ones),
|
---|
4346 | optionally create backup copies of the old settings files before saving,
|
---|
4347 | etc.
|
---|
4348 |
|
---|
4349 | <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
4350 | </desc>
|
---|
4351 | </attribute>
|
---|
4352 |
|
---|
4353 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
4354 | <desc>
|
---|
4355 | Whether the settings of this machine have been modified
|
---|
4356 | (but neither yet saved nor discarded).
|
---|
4357 | <note>
|
---|
4358 | Reading this property is only valid on instances returned
|
---|
4359 | by <link to="ISession::machine"/> and on new machines
|
---|
4360 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
4361 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
4362 | yet registered, or on unregistered machines after calling
|
---|
4363 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
4364 | cases, the settings can never be modified.
|
---|
4365 | </note>
|
---|
4366 | <note>
|
---|
4367 | For newly created unregistered machines, the value of this
|
---|
4368 | property is always TRUE until <link to="#saveSettings"/>
|
---|
4369 | is called (no matter if any machine settings have been
|
---|
4370 | changed after the creation or not). For opened machines
|
---|
4371 | the value is set to FALSE (and then follows to normal rules).
|
---|
4372 | </note>
|
---|
4373 | </desc>
|
---|
4374 | </attribute>
|
---|
4375 |
|
---|
4376 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
4377 | <desc>Current session state for this machine.</desc>
|
---|
4378 | </attribute>
|
---|
4379 |
|
---|
4380 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
4381 | <desc>
|
---|
4382 | Type of the session. If <link to="#sessionState"/> is
|
---|
4383 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
4384 | same value as passed to the
|
---|
4385 | <link to="IVirtualBox::openRemoteSession"/> method in the
|
---|
4386 | @a type parameter. If the session was opened directly using
|
---|
4387 | <link to="IVirtualBox::openSession"/>, or if
|
---|
4388 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
4389 | attribute is @c null.
|
---|
4390 | </desc>
|
---|
4391 | </attribute>
|
---|
4392 |
|
---|
4393 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
4394 | <desc>
|
---|
4395 | Identifier of the session process. This attribute contains the
|
---|
4396 | platform-dependent identifier of the process that has opened a
|
---|
4397 | direct session for this machine using the
|
---|
4398 | <link to="IVirtualBox::openSession"/> call. The returned value
|
---|
4399 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
4400 | SessionClosing (i.e. a session is currently open or being
|
---|
4401 | closed) by the time this property is read.
|
---|
4402 | </desc>
|
---|
4403 | </attribute>
|
---|
4404 |
|
---|
4405 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4406 | <desc>Current execution state of this machine.</desc>
|
---|
4407 | </attribute>
|
---|
4408 |
|
---|
4409 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
4410 | <desc>
|
---|
4411 | Time stamp of the last execution state change,
|
---|
4412 | in milliseconds since 1970-01-01 UTC.
|
---|
4413 | </desc>
|
---|
4414 | </attribute>
|
---|
4415 |
|
---|
4416 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
4417 | <desc>
|
---|
4418 | Full path to the file that stores the execution state of
|
---|
4419 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
4420 | <note>
|
---|
4421 | When the machine is not in the Saved state, this attribute
|
---|
4422 | <tt>null</tt>.
|
---|
4423 | </note>
|
---|
4424 | </desc>
|
---|
4425 | </attribute>
|
---|
4426 |
|
---|
4427 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
4428 | <desc>
|
---|
4429 | Full path to the folder that stores a set of rotated log files
|
---|
4430 | recorded during machine execution. The most recent log file is
|
---|
4431 | named <tt>VBox.log</tt>, the previous log file is
|
---|
4432 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
4433 | in the current version).
|
---|
4434 | </desc>
|
---|
4435 | </attribute>
|
---|
4436 |
|
---|
4437 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
4438 | <desc>
|
---|
4439 | Current snapshot of this machine.
|
---|
4440 | <note>
|
---|
4441 | A <tt>null</tt> object is returned if the machine doesn't
|
---|
4442 | have snapshots.
|
---|
4443 | </note>
|
---|
4444 | <see><link to="ISnapshot"/></see>
|
---|
4445 | </desc>
|
---|
4446 | </attribute>
|
---|
4447 |
|
---|
4448 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
4449 | <desc>
|
---|
4450 | Number of snapshots taken on this machine. Zero means the
|
---|
4451 | machine doesn't have any snapshots.
|
---|
4452 | </desc>
|
---|
4453 | </attribute>
|
---|
4454 |
|
---|
4455 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
4456 | <desc>
|
---|
4457 | Returns <tt>true</tt> if the current state of the machine is not
|
---|
4458 | identical to the state stored in the current snapshot.
|
---|
4459 |
|
---|
4460 | The current state is identical to the current snapshot right
|
---|
4461 | after one of the following calls are made:
|
---|
4462 | <ul>
|
---|
4463 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
4464 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
4465 | </li>
|
---|
4466 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
4467 | powered off or saved machine, for which
|
---|
4468 | <link to="#settingsModified"/> returns <tt>false</tt>)
|
---|
4469 | </li>
|
---|
4470 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
4471 | </li>
|
---|
4472 | </ul>
|
---|
4473 |
|
---|
4474 | The current state remains identical until one of the following
|
---|
4475 | happens:
|
---|
4476 | <ul>
|
---|
4477 | <li>settings of the machine are changed</li>
|
---|
4478 | <li>the saved state is discarded</li>
|
---|
4479 | <li>the current snapshot is discarded</li>
|
---|
4480 | <li>an attempt to execute the machine is made</li>
|
---|
4481 | </ul>
|
---|
4482 |
|
---|
4483 | <note>
|
---|
4484 | For machines that don't have snapshots, this property is
|
---|
4485 | always <tt>false</tt>.
|
---|
4486 | </note>
|
---|
4487 | </desc>
|
---|
4488 | </attribute>
|
---|
4489 |
|
---|
4490 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
4491 | <desc>
|
---|
4492 | Collection of shared folders for this machine (permanent shared
|
---|
4493 | folders). These folders are shared automatically at machine startup
|
---|
4494 | and available only to the guest OS installed within this machine.
|
---|
4495 |
|
---|
4496 | New shared folders are added to the collection using
|
---|
4497 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4498 | removed using <link to="#removeSharedFolder"/>.
|
---|
4499 | </desc>
|
---|
4500 | </attribute>
|
---|
4501 |
|
---|
4502 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
4503 | <desc>
|
---|
4504 | Synchronization mode between the host OS clipboard
|
---|
4505 | and the guest OS clipboard.
|
---|
4506 | </desc>
|
---|
4507 | </attribute>
|
---|
4508 |
|
---|
4509 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
4510 | <desc>
|
---|
4511 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
4512 | properties whose name matches one of the patterns will generate an
|
---|
4513 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
4514 | </desc>
|
---|
4515 | </attribute>
|
---|
4516 |
|
---|
4517 | <method name="setBootOrder">
|
---|
4518 | <desc>
|
---|
4519 | Puts the given device to the specified position in
|
---|
4520 | the boot order.
|
---|
4521 |
|
---|
4522 | To indicate that no device is associated with the given position,
|
---|
4523 | <link to="DeviceType_Null"/> should be used.
|
---|
4524 |
|
---|
4525 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4526 |
|
---|
4527 | <result name="E_INVALIDARG">
|
---|
4528 | Boot @a position out of range.
|
---|
4529 | </result>
|
---|
4530 | <result name="E_NOTIMPL">
|
---|
4531 | Booting from USB @a device currently not supported.
|
---|
4532 | </result>
|
---|
4533 |
|
---|
4534 | </desc>
|
---|
4535 | <param name="position" type="unsigned long" dir="in">
|
---|
4536 | <desc>
|
---|
4537 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
4538 | devices the machine can boot from, as returned by
|
---|
4539 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4540 | </desc>
|
---|
4541 | </param>
|
---|
4542 | <param name="device" type="DeviceType" dir="in">
|
---|
4543 | <desc>
|
---|
4544 | The type of the device used to boot at the given position.
|
---|
4545 | </desc>
|
---|
4546 | </param>
|
---|
4547 | </method>
|
---|
4548 |
|
---|
4549 | <method name="getBootOrder" const="yes">
|
---|
4550 | <desc>
|
---|
4551 | Returns the device type that occupies the specified
|
---|
4552 | position in the boot order.
|
---|
4553 |
|
---|
4554 | @todo [remove?]
|
---|
4555 | If the machine can have more than one device of the returned type
|
---|
4556 | (such as hard disks), then a separate method should be used to
|
---|
4557 | retrieve the individual device that occupies the given position.
|
---|
4558 |
|
---|
4559 | If here are no devices at the given position, then
|
---|
4560 | <link to="DeviceType_Null"/> is returned.
|
---|
4561 |
|
---|
4562 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4563 |
|
---|
4564 | <result name="E_INVALIDARG">
|
---|
4565 | Boot @a position out of range.
|
---|
4566 | </result>
|
---|
4567 |
|
---|
4568 | </desc>
|
---|
4569 | <param name="position" type="unsigned long" dir="in">
|
---|
4570 | <desc>
|
---|
4571 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
4572 | devices the machine can boot from, as returned by
|
---|
4573 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4574 | </desc>
|
---|
4575 | </param>
|
---|
4576 | <param name="device" type="DeviceType" dir="return">
|
---|
4577 | <desc>
|
---|
4578 | Device at the given position.
|
---|
4579 | </desc>
|
---|
4580 | </param>
|
---|
4581 | </method>
|
---|
4582 |
|
---|
4583 | <method name="attachHardDisk">
|
---|
4584 | <desc>
|
---|
4585 | Attaches a virtual hard disk (<link to="IHardDisk" />, identified
|
---|
4586 | by the given UUID @a id) to the given hard disk controller
|
---|
4587 | (<link to="IStorageController" />, identified by @a name),
|
---|
4588 | at the indicated port and device.
|
---|
4589 |
|
---|
4590 | For the IDE bus, the @a controllerPort parameter can be either
|
---|
4591 | @c 0 or @c 1, to specify the primary or secondary IDE controller,
|
---|
4592 | respectively. For the primary controller of the IDE bus,
|
---|
4593 | @a device can be either @c 0 or @c 1, to specify the master or the
|
---|
4594 | slave device, respectively. For the secondary IDE controller, the
|
---|
4595 | device number must be @c 1 because VirtualBox reserves the
|
---|
4596 | secondary master for the CD-ROM drive.
|
---|
4597 |
|
---|
4598 | For an SATA controller, @a controllerPort must be a number ranging
|
---|
4599 | from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
|
---|
4600 | be a number ranging from @c 0 to @c 15.
|
---|
4601 |
|
---|
4602 | For both SCSI and SATA, the @a device parameter is unused and must
|
---|
4603 | be @c 0.
|
---|
4604 |
|
---|
4605 | The specified device slot must not have another disk attached to it, or
|
---|
4606 | this method will fail.
|
---|
4607 |
|
---|
4608 | See <link to="IHardDisk"/> for more detailed information about
|
---|
4609 | attaching hard disks.
|
---|
4610 |
|
---|
4611 | <note>
|
---|
4612 | You cannot attach a hard disk to a running machine. Also, you cannot
|
---|
4613 | attach a hard disk to a newly created machine until this machine's
|
---|
4614 | settings are saved to disk using <link to="#saveSettings"/>.
|
---|
4615 | </note>
|
---|
4616 | <note>
|
---|
4617 | If the hard disk is being attached indirectly, a new differencing hard
|
---|
4618 | disk will implicitly be created for it and attached instead. If the
|
---|
4619 | changes made to the machine settings (including this indirect
|
---|
4620 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4621 | this implicitly created differencing hard disk will implicitly
|
---|
4622 | be deleted.
|
---|
4623 | </note>
|
---|
4624 |
|
---|
4625 | <result name="E_INVALIDARG">
|
---|
4626 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4627 | </result>
|
---|
4628 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4629 | Attempt to attach hard disk to an unregistered virtual machine.
|
---|
4630 | </result>
|
---|
4631 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4632 | Invalid machine state.
|
---|
4633 | </result>
|
---|
4634 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4635 | Hard disk already attached to this or another virtual machine.
|
---|
4636 | </result>
|
---|
4637 |
|
---|
4638 | </desc>
|
---|
4639 | <param name="id" type="uuid" dir="in">
|
---|
4640 | <desc>UUID of the hard disk to attach.</desc>
|
---|
4641 | </param>
|
---|
4642 | <param name="name" type="wstring" dir="in">
|
---|
4643 | <desc>Name of the storage controller to attach the hard disk to.</desc>
|
---|
4644 | </param>
|
---|
4645 | <param name="controllerPort" type="long" dir="in">
|
---|
4646 | <desc>Port to attach the hard disk to.</desc>
|
---|
4647 | </param>
|
---|
4648 | <param name="device" type="long" dir="in">
|
---|
4649 | <desc>
|
---|
4650 | Device slot in the given port to attach the hard disk to.
|
---|
4651 | </desc>
|
---|
4652 | </param>
|
---|
4653 | </method>
|
---|
4654 |
|
---|
4655 | <method name="getHardDisk" const="yes">
|
---|
4656 | <desc>
|
---|
4657 | Returns the virtual hard disk attached to a device slot of the specified
|
---|
4658 | bus.
|
---|
4659 |
|
---|
4660 | Note that if the hard disk was indirectly attached by
|
---|
4661 | <link to="#attachHardDisk"/> to the given device slot then this
|
---|
4662 | method will return not the same object as passed to the
|
---|
4663 | <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
|
---|
4664 | more detailed information about attaching hard disks.
|
---|
4665 |
|
---|
4666 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4667 | No hard disk attached to given slot/bus.
|
---|
4668 | </result>
|
---|
4669 |
|
---|
4670 | </desc>
|
---|
4671 | <param name="name" type="wstring" dir="in">
|
---|
4672 | <desc>Name of the storage controller the hard disk is attached to.</desc>
|
---|
4673 | </param>
|
---|
4674 | <param name="controllerPort" type="long" dir="in">
|
---|
4675 | <desc>Port to query.</desc>
|
---|
4676 | </param>
|
---|
4677 | <param name="device" type="long" dir="in">
|
---|
4678 | <desc>Device slot in the given port to query.</desc>
|
---|
4679 | </param>
|
---|
4680 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
4681 | <desc>Attached hard disk object.</desc>
|
---|
4682 | </param>
|
---|
4683 | </method>
|
---|
4684 |
|
---|
4685 | <method name="detachHardDisk">
|
---|
4686 | <desc>
|
---|
4687 | Detaches the virtual hard disk attached to a device slot of the
|
---|
4688 | specified bus.
|
---|
4689 |
|
---|
4690 | Detaching the hard disk from the virtual machine is deferred. This means
|
---|
4691 | that the hard disk remains associated with the machine when this method
|
---|
4692 | returns and gets actually de-associated only after a successful
|
---|
4693 | <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
|
---|
4694 | for more detailed information about attaching hard disks.
|
---|
4695 |
|
---|
4696 | <note>
|
---|
4697 | You cannot detach the hard disk from a running machine.
|
---|
4698 | </note>
|
---|
4699 | <note>
|
---|
4700 | Detaching differencing hard disks implicitly created by <link
|
---|
4701 | to="#attachHardDisk"/> for the indirect attachment using this
|
---|
4702 | method will <b>not</b> implicitly delete them. The
|
---|
4703 | <link to="IHardDisk::deleteStorage"/> operation should be
|
---|
4704 | explicitly performed by the caller after the hard disk is successfully
|
---|
4705 | detached and the settings are saved with
|
---|
4706 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4707 | </note>
|
---|
4708 |
|
---|
4709 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4710 | Attempt to detach hard disk from a running virtual machine.
|
---|
4711 | </result>
|
---|
4712 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4713 | No hard disk attached to given slot/bus.
|
---|
4714 | </result>
|
---|
4715 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4716 | Hard disk format does not support storage deletion.
|
---|
4717 | </result>
|
---|
4718 |
|
---|
4719 | </desc>
|
---|
4720 | <param name="name" type="wstring" dir="in">
|
---|
4721 | <desc>name of the storage controller to detach the hard disk from.</desc>
|
---|
4722 | </param>
|
---|
4723 | <param name="controllerPort" type="long" dir="in">
|
---|
4724 | <desc>Port number to detach the hard disk from.</desc>
|
---|
4725 | </param>
|
---|
4726 | <param name="device" type="long" dir="in">
|
---|
4727 | <desc>Device slot number to detach the hard disk from.</desc>
|
---|
4728 | </param>
|
---|
4729 | </method>
|
---|
4730 |
|
---|
4731 | <method name="getHardDiskAttachmentsOfController" const="yes">
|
---|
4732 | <desc>
|
---|
4733 | Returns an array of hard disk attachments which are attached to the
|
---|
4734 | the controller with the given name.
|
---|
4735 |
|
---|
4736 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4737 | A storage controller with given name doesn't exist.
|
---|
4738 | </result>
|
---|
4739 | </desc>
|
---|
4740 | <param name="name" type="wstring" dir="in"/>
|
---|
4741 | <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
|
---|
4742 | </method>
|
---|
4743 |
|
---|
4744 | <method name="getNetworkAdapter" const="yes">
|
---|
4745 | <desc>
|
---|
4746 | Returns the network adapter associated with the given slot.
|
---|
4747 | Slots are numbered sequentially, starting with zero. The total
|
---|
4748 | number of adapters per machine is defined by the
|
---|
4749 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
4750 | so the maximum slot number is one less than that property's value.
|
---|
4751 |
|
---|
4752 | <result name="E_INVALIDARG">
|
---|
4753 | Invalid @a slot number.
|
---|
4754 | </result>
|
---|
4755 |
|
---|
4756 | </desc>
|
---|
4757 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4758 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
4759 | </method>
|
---|
4760 |
|
---|
4761 | <method name="addStorageController">
|
---|
4762 | <desc>
|
---|
4763 | Adds a new storage controller (SCSI or SATA controller) to the
|
---|
4764 | machine and returns it as an instance of
|
---|
4765 | <link to="IStorageController" />.
|
---|
4766 |
|
---|
4767 | @a name identifies the controller with subsequent calls such as
|
---|
4768 | <link to="#getStorageControllerByName" /> or
|
---|
4769 | <link to="#removeStorageController" /> or
|
---|
4770 | <link to="#attachHardDisk" />.
|
---|
4771 |
|
---|
4772 | After the controller has been added, you can set its exact
|
---|
4773 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
4774 |
|
---|
4775 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4776 | A storage controller with given name exists already.
|
---|
4777 | </result>
|
---|
4778 | <result name="E_INVALIDARG">
|
---|
4779 | Invalid @a controllerType.
|
---|
4780 | </result>
|
---|
4781 | </desc>
|
---|
4782 | <param name="name" type="wstring" dir="in"/>
|
---|
4783 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
4784 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
4785 | </method>
|
---|
4786 |
|
---|
4787 | <method name="getStorageControllerByName" const="yes">
|
---|
4788 | <desc>
|
---|
4789 | Returns a storage controller with the given name.
|
---|
4790 |
|
---|
4791 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4792 | A storage controller with given name doesn't exist.
|
---|
4793 | </result>
|
---|
4794 | </desc>
|
---|
4795 | <param name="name" type="wstring" dir="in"/>
|
---|
4796 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
4797 | </method>
|
---|
4798 |
|
---|
4799 | <method name="removeStorageController">
|
---|
4800 | <desc>
|
---|
4801 | Removes a storage controller from the machine.
|
---|
4802 |
|
---|
4803 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4804 | A storage controller with given name doesn't exist.
|
---|
4805 | </result>
|
---|
4806 | </desc>
|
---|
4807 | <param name="name" type="wstring" dir="in"/>
|
---|
4808 | </method>
|
---|
4809 |
|
---|
4810 | <method name="getSerialPort" const="yes">
|
---|
4811 | <desc>
|
---|
4812 | Returns the serial port associated with the given slot.
|
---|
4813 | Slots are numbered sequentially, starting with zero. The total
|
---|
4814 | number of serial ports per machine is defined by the
|
---|
4815 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
4816 | so the maximum slot number is one less than that property's value.
|
---|
4817 |
|
---|
4818 | <result name="E_INVALIDARG">
|
---|
4819 | Invalid @a slot number.
|
---|
4820 | </result>
|
---|
4821 |
|
---|
4822 | </desc>
|
---|
4823 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4824 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
4825 | </method>
|
---|
4826 |
|
---|
4827 | <method name="getParallelPort" const="yes">
|
---|
4828 | <desc>
|
---|
4829 | Returns the parallel port associated with the given slot.
|
---|
4830 | Slots are numbered sequentially, starting with zero. The total
|
---|
4831 | number of parallel ports per machine is defined by the
|
---|
4832 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
4833 | so the maximum slot number is one less than that property's value.
|
---|
4834 |
|
---|
4835 | <result name="E_INVALIDARG">
|
---|
4836 | Invalid @a slot number.
|
---|
4837 | </result>
|
---|
4838 |
|
---|
4839 | </desc>
|
---|
4840 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4841 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
4842 | </method>
|
---|
4843 |
|
---|
4844 | <method name="getNextExtraDataKey">
|
---|
4845 | <desc>
|
---|
4846 | Returns the machine-specific extra data key name following the
|
---|
4847 | supplied key.
|
---|
4848 |
|
---|
4849 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
4850 | returned in @a nextKey if the supplied key is the last key. When
|
---|
4851 | supplying @c NULL for the @a key, the first key item is returned in
|
---|
4852 | @a nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
4853 | if supplied, the next key's value is returned in it.
|
---|
4854 |
|
---|
4855 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4856 | Extra data @a key not found.
|
---|
4857 | </result>
|
---|
4858 |
|
---|
4859 | </desc>
|
---|
4860 | <param name="key" type="wstring" dir="in">
|
---|
4861 | <desc>Name of the data key to follow.</desc>
|
---|
4862 | </param>
|
---|
4863 | <param name="nextKey" type="wstring" dir="out">
|
---|
4864 | <desc>Name of the next data key.</desc>
|
---|
4865 | </param>
|
---|
4866 | <param name="nextValue" type="wstring" dir="out">
|
---|
4867 | <desc>Value of the next data key.</desc>
|
---|
4868 | </param>
|
---|
4869 | </method>
|
---|
4870 |
|
---|
4871 | <method name="getExtraData">
|
---|
4872 | <desc>
|
---|
4873 | Returns associated machine-specific extra data.
|
---|
4874 |
|
---|
4875 | If the requested data @a key does not exist, this function will
|
---|
4876 | succeed and return @c NULL in the @a value argument.
|
---|
4877 |
|
---|
4878 | <result name="VBOX_E_FILE_ERROR">
|
---|
4879 | Settings file not accessible.
|
---|
4880 | </result>
|
---|
4881 | <result name="VBOX_E_XML_ERROR">
|
---|
4882 | Could not parse the settings file.
|
---|
4883 | </result>
|
---|
4884 |
|
---|
4885 | </desc>
|
---|
4886 | <param name="key" type="wstring" dir="in">
|
---|
4887 | <desc>Name of the data key to get.</desc>
|
---|
4888 | </param>
|
---|
4889 | <param name="value" type="wstring" dir="return">
|
---|
4890 | <desc>Value of the requested data key.</desc>
|
---|
4891 | </param>
|
---|
4892 | </method>
|
---|
4893 |
|
---|
4894 | <method name="setExtraData">
|
---|
4895 | <desc>
|
---|
4896 | Sets associated machine-specific extra data.
|
---|
4897 |
|
---|
4898 | If you pass @c NULL as a key @a value, the given @a key will be
|
---|
4899 | deleted.
|
---|
4900 |
|
---|
4901 | <note>
|
---|
4902 | Before performing the actual data change, this method will ask all
|
---|
4903 | registered callbacks using the
|
---|
4904 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
4905 | notification for a permission. If one of the callbacks refuses the
|
---|
4906 | new value, the change will not be performed.
|
---|
4907 | </note>
|
---|
4908 | <note>
|
---|
4909 | On success, the
|
---|
4910 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
4911 | is called to inform all registered callbacks about a successful data
|
---|
4912 | change.
|
---|
4913 | </note>
|
---|
4914 | <note>
|
---|
4915 | This method can be called outside the machine session and therefore
|
---|
4916 | it's a caller's responsibility to handle possible race conditions
|
---|
4917 | when several clients change the same key at the same time.
|
---|
4918 | </note>
|
---|
4919 |
|
---|
4920 | <result name="VBOX_E_FILE_ERROR">
|
---|
4921 | Settings file not accessible.
|
---|
4922 | </result>
|
---|
4923 | <result name="VBOX_E_XML_ERROR">
|
---|
4924 | Could not parse the settings file.
|
---|
4925 | </result>
|
---|
4926 |
|
---|
4927 | </desc>
|
---|
4928 | <param name="key" type="wstring" dir="in">
|
---|
4929 | <desc>Name of the data key to set.</desc>
|
---|
4930 | </param>
|
---|
4931 | <param name="value" type="wstring" dir="in">
|
---|
4932 | <desc>Value to assign to the key.</desc>
|
---|
4933 | </param>
|
---|
4934 | </method>
|
---|
4935 |
|
---|
4936 | <method name="saveSettings">
|
---|
4937 | <desc>
|
---|
4938 | Saves any changes to machine settings made since the session
|
---|
4939 | has been opened or a new machine has been created, or since the
|
---|
4940 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
4941 | For registered machines, new settings become visible to all
|
---|
4942 | other VirtualBox clients after successful invocation of this
|
---|
4943 | method.
|
---|
4944 | <note>
|
---|
4945 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
4946 | notification event after the configuration has been successfully
|
---|
4947 | saved (only for registered machines).
|
---|
4948 | </note>
|
---|
4949 | <note>
|
---|
4950 | Calling this method is only valid on instances returned
|
---|
4951 | by <link to="ISession::machine"/> and on new machines
|
---|
4952 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
4953 | yet registered, or on unregistered machines after calling
|
---|
4954 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
4955 | </note>
|
---|
4956 |
|
---|
4957 | <result name="VBOX_E_FILE_ERROR">
|
---|
4958 | Settings file not accessible.
|
---|
4959 | </result>
|
---|
4960 | <result name="VBOX_E_XML_ERROR">
|
---|
4961 | Could not parse the settings file.
|
---|
4962 | </result>
|
---|
4963 | <result name="E_ACCESSDENIED">
|
---|
4964 | Modification request refused.
|
---|
4965 | </result>
|
---|
4966 |
|
---|
4967 | </desc>
|
---|
4968 | </method>
|
---|
4969 |
|
---|
4970 | <method name="saveSettingsWithBackup">
|
---|
4971 | <desc>
|
---|
4972 | Creates a backup copy of the machine settings file (<link
|
---|
4973 | to="#settingsFilePath"/>) in case of auto-conversion, and then calls
|
---|
4974 | <link to="#saveSettings"/>.
|
---|
4975 |
|
---|
4976 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
4977 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
4978 | details). Otherwise, this call is fully equivalent to
|
---|
4979 | <link to="#saveSettings"/> and no backup copying is done.
|
---|
4980 |
|
---|
4981 | The backup copy is created in the same directory where the original
|
---|
4982 | settings file is located. It is given the following file name:
|
---|
4983 | <pre>
|
---|
4984 | original.xml.x.y-platform.bak
|
---|
4985 | </pre>
|
---|
4986 | where <tt>original.xml</tt> is the original settings file name
|
---|
4987 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
4988 | format of the settings file (before auto-conversion).
|
---|
4989 |
|
---|
4990 | If the given backup file already exists, this method will try to add the
|
---|
4991 | <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
|
---|
4992 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
4993 | occupied, or if any other copy error occurs, this method will return a
|
---|
4994 | failure.
|
---|
4995 |
|
---|
4996 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
4997 | receive a full path to the created backup file (for informational
|
---|
4998 | purposes). Note that this will happen even if the subsequent
|
---|
4999 | <link to="#saveSettings"/> call performed by this method after the
|
---|
5000 | copy operation, fails.
|
---|
5001 |
|
---|
5002 | <note>
|
---|
5003 | The VirtualBox API never calls this method. It is intended purely for
|
---|
5004 | the purposes of creating backup copies of the settings files by
|
---|
5005 | front-ends before saving the results of the automatically performed
|
---|
5006 | settings conversion to disk.
|
---|
5007 | </note>
|
---|
5008 |
|
---|
5009 | <see>settingsFileVersion</see>
|
---|
5010 |
|
---|
5011 | <result name="VBOX_E_FILE_ERROR">
|
---|
5012 | Settings file not accessible.
|
---|
5013 | </result>
|
---|
5014 | <result name="VBOX_E_XML_ERROR">
|
---|
5015 | Could not parse the settings file.
|
---|
5016 | </result>
|
---|
5017 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5018 | Virtual machine is not mutable.
|
---|
5019 | </result>
|
---|
5020 | <result name="E_ACCESSDENIED">
|
---|
5021 | Modification request refused.
|
---|
5022 | </result>
|
---|
5023 |
|
---|
5024 | </desc>
|
---|
5025 | <param name="bakFileName" type="wstring" dir="return">
|
---|
5026 | <desc>Full path to the created backup copy.</desc>
|
---|
5027 | </param>
|
---|
5028 | </method>
|
---|
5029 |
|
---|
5030 | <method name="discardSettings">
|
---|
5031 | <desc>
|
---|
5032 | Discards any changes to the machine settings made since the session
|
---|
5033 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
5034 | or <link to="#discardSettings"/>.
|
---|
5035 | <note>
|
---|
5036 | Calling this method is only valid on instances returned
|
---|
5037 | by <link to="ISession::machine"/> and on new machines
|
---|
5038 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5039 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5040 | yet registered, or on unregistered machines after calling
|
---|
5041 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5042 | </note>
|
---|
5043 |
|
---|
5044 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5045 | Virtual machine is not mutable.
|
---|
5046 | </result>
|
---|
5047 |
|
---|
5048 | </desc>
|
---|
5049 | </method>
|
---|
5050 |
|
---|
5051 | <method name="deleteSettings">
|
---|
5052 | <desc>
|
---|
5053 | Deletes the settings file of this machine from disk.
|
---|
5054 | The machine must not be registered in order for this operation
|
---|
5055 | to succeed.
|
---|
5056 | <note>
|
---|
5057 | <link to="#settingsModified"/> will return TRUE after this
|
---|
5058 | method successfully returns.
|
---|
5059 | </note>
|
---|
5060 | <note>
|
---|
5061 | Calling this method is only valid on instances returned
|
---|
5062 | by <link to="ISession::machine"/> and on new machines
|
---|
5063 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5064 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5065 | yet registered, or on unregistered machines after calling
|
---|
5066 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5067 | </note>
|
---|
5068 | <note>
|
---|
5069 | The deleted machine settings file can be restored (saved again)
|
---|
5070 | by calling <link to="#saveSettings"/>.
|
---|
5071 | </note>
|
---|
5072 |
|
---|
5073 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5074 | Cannot delete settings of a registered machine or
|
---|
5075 | machine not mutable.
|
---|
5076 | </result>
|
---|
5077 | <result name="VBOX_E_IPRT_ERROR">
|
---|
5078 | Could not delete the settings file.
|
---|
5079 | </result>
|
---|
5080 |
|
---|
5081 | </desc>
|
---|
5082 | </method>
|
---|
5083 |
|
---|
5084 | <method name="export">
|
---|
5085 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
5086 | steps required to export VirtualBox machines to OVF.
|
---|
5087 | </desc>
|
---|
5088 |
|
---|
5089 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
5090 | <desc>Appliance to export this machine to.</desc>
|
---|
5091 | </param>
|
---|
5092 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
5093 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
5094 | </param>
|
---|
5095 | </method >
|
---|
5096 |
|
---|
5097 | <method name="getSnapshot">
|
---|
5098 | <desc>
|
---|
5099 | Returns a snapshot of this machine with the given UUID.
|
---|
5100 | A <tt>null</tt> UUID can be used to obtain the first snapshot
|
---|
5101 | taken on this machine. This is useful if you want to traverse
|
---|
5102 | the whole tree of snapshots starting from the root.
|
---|
5103 |
|
---|
5104 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5105 | Virtual machine has no snapshots or snapshot not found.
|
---|
5106 | </result>
|
---|
5107 |
|
---|
5108 | </desc>
|
---|
5109 | <param name="id" type="uuid" dir="in">
|
---|
5110 | <desc>UUID of the snapshot to get</desc>
|
---|
5111 | </param>
|
---|
5112 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5113 | <desc>Snapshot object with the given UUID.</desc>
|
---|
5114 | </param>
|
---|
5115 | </method>
|
---|
5116 |
|
---|
5117 | <method name="findSnapshot">
|
---|
5118 | <desc>
|
---|
5119 | Returns a snapshot of this machine with the given name.
|
---|
5120 |
|
---|
5121 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5122 | Virtual machine has no snapshots or snapshot not found.
|
---|
5123 | </result>
|
---|
5124 |
|
---|
5125 | </desc>
|
---|
5126 | <param name="name" type="wstring" dir="in">
|
---|
5127 | <desc>Name of the snapshot to find</desc>
|
---|
5128 | </param>
|
---|
5129 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5130 | <desc>Snapshot object with the given name.</desc>
|
---|
5131 | </param>
|
---|
5132 | </method>
|
---|
5133 |
|
---|
5134 | <method name="setCurrentSnapshot">
|
---|
5135 | <desc>
|
---|
5136 | Sets the current snapshot of this machine.
|
---|
5137 | <note>
|
---|
5138 | In the current implementation, this operation is not
|
---|
5139 | implemented.
|
---|
5140 | </note>
|
---|
5141 | </desc>
|
---|
5142 | <param name="id" type="uuid" dir="in">
|
---|
5143 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
5144 | </param>
|
---|
5145 | </method>
|
---|
5146 |
|
---|
5147 | <method name="createSharedFolder">
|
---|
5148 | <desc>
|
---|
5149 | Creates a new permanent shared folder by associating the given logical
|
---|
5150 | name with the given host path, adds it to the collection of shared
|
---|
5151 | folders and starts sharing it. Refer to the description of
|
---|
5152 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5153 |
|
---|
5154 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5155 | Shared folder already exists.
|
---|
5156 | </result>
|
---|
5157 | <result name="VBOX_E_FILE_ERROR">
|
---|
5158 | Shared folder @a hostPath not accessible.
|
---|
5159 | </result>
|
---|
5160 |
|
---|
5161 | </desc>
|
---|
5162 | <param name="name" type="wstring" dir="in">
|
---|
5163 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5164 | </param>
|
---|
5165 | <param name="hostPath" type="wstring" dir="in">
|
---|
5166 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5167 | </param>
|
---|
5168 | <param name="writable" type="boolean" dir="in">
|
---|
5169 | <desc>Whether the share is writable or readonly</desc>
|
---|
5170 | </param>
|
---|
5171 | </method>
|
---|
5172 |
|
---|
5173 | <method name="removeSharedFolder">
|
---|
5174 | <desc>
|
---|
5175 | Removes the permanent shared folder with the given name previously
|
---|
5176 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5177 | shared folders and stops sharing it.
|
---|
5178 |
|
---|
5179 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5180 | Virtual machine is not mutable.
|
---|
5181 | </result>
|
---|
5182 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5183 | Shared folder @a name does not exist.
|
---|
5184 | </result>
|
---|
5185 |
|
---|
5186 | </desc>
|
---|
5187 | <param name="name" type="wstring" dir="in">
|
---|
5188 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5189 | </param>
|
---|
5190 | </method>
|
---|
5191 |
|
---|
5192 | <method name="canShowConsoleWindow">
|
---|
5193 | <desc>
|
---|
5194 | Returns @c true if the VM console process can activate the
|
---|
5195 | console window and bring it to foreground on the desktop of
|
---|
5196 | the host PC.
|
---|
5197 | <note>
|
---|
5198 | This method will fail if a session for this machine is not
|
---|
5199 | currently open.
|
---|
5200 | </note>
|
---|
5201 |
|
---|
5202 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5203 | Machine session is not open.
|
---|
5204 | </result>
|
---|
5205 |
|
---|
5206 | </desc>
|
---|
5207 | <param name="canShow" type="boolean" dir="return">
|
---|
5208 | <desc>
|
---|
5209 | @c true if the console window can be shown and @c
|
---|
5210 | false otherwise.
|
---|
5211 | </desc>
|
---|
5212 | </param>
|
---|
5213 | </method>
|
---|
5214 |
|
---|
5215 | <method name="showConsoleWindow">
|
---|
5216 | <desc>
|
---|
5217 | Activates the console window and brings it to foreground on
|
---|
5218 | the desktop of the host PC. Many modern window managers on
|
---|
5219 | many platforms implement some sort of focus stealing
|
---|
5220 | prevention logic, so that it may be impossible to activate
|
---|
5221 | a window without the help of the currently active
|
---|
5222 | application. In this case, this method will return a non-zero
|
---|
5223 | identifier that represents the top-level window of the VM
|
---|
5224 | console process. The caller, if it represents a currently
|
---|
5225 | active process, is responsible to use this identifier (in a
|
---|
5226 | platform-dependent manner) to perform actual window
|
---|
5227 | activation.
|
---|
5228 | <note>
|
---|
5229 | This method will fail if a session for this machine is not
|
---|
5230 | currently open.
|
---|
5231 | </note>
|
---|
5232 |
|
---|
5233 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5234 | Machine session is not open.
|
---|
5235 | </result>
|
---|
5236 |
|
---|
5237 | </desc>
|
---|
5238 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5239 | <desc>
|
---|
5240 | Platform-dependent identifier of the top-level VM console
|
---|
5241 | window, or zero if this method has performed all actions
|
---|
5242 | necessary to implement the <i>show window</i> semantics for
|
---|
5243 | the given platform and/or VirtualBox front-end.
|
---|
5244 | </desc>
|
---|
5245 | </param>
|
---|
5246 | </method>
|
---|
5247 |
|
---|
5248 | <method name="getGuestProperty">
|
---|
5249 | <desc>
|
---|
5250 | Reads an entry from the machine's guest property store.
|
---|
5251 |
|
---|
5252 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5253 | Machine session is not open.
|
---|
5254 | </result>
|
---|
5255 |
|
---|
5256 | </desc>
|
---|
5257 | <param name="name" type="wstring" dir="in">
|
---|
5258 | <desc>
|
---|
5259 | The name of the property to read.
|
---|
5260 | </desc>
|
---|
5261 | </param>
|
---|
5262 | <param name="value" type="wstring" dir="out">
|
---|
5263 | <desc>
|
---|
5264 | The value of the property. If the property does not exist then this
|
---|
5265 | will be empty.
|
---|
5266 | </desc>
|
---|
5267 | </param>
|
---|
5268 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
5269 | <desc>
|
---|
5270 | The time at which the property was last modified, as seen by the
|
---|
5271 | server process.
|
---|
5272 | </desc>
|
---|
5273 | </param>
|
---|
5274 | <param name="flags" type="wstring" dir="out">
|
---|
5275 | <desc>
|
---|
5276 | Additional property parameters, passed as a comma-separated list of
|
---|
5277 | "name=value" type entries.
|
---|
5278 | </desc>
|
---|
5279 | </param>
|
---|
5280 | </method>
|
---|
5281 |
|
---|
5282 | <method name="getGuestPropertyValue">
|
---|
5283 | <desc>
|
---|
5284 | Reads a value from the machine's guest property store.
|
---|
5285 |
|
---|
5286 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5287 | Machine session is not open.
|
---|
5288 | </result>
|
---|
5289 |
|
---|
5290 | </desc>
|
---|
5291 | <param name="property" type="wstring" dir="in">
|
---|
5292 | <desc>
|
---|
5293 | The name of the property to read.
|
---|
5294 | </desc>
|
---|
5295 | </param>
|
---|
5296 | <param name="value" type="wstring" dir="return">
|
---|
5297 | <desc>
|
---|
5298 | The value of the property. If the property does not exist then this
|
---|
5299 | will be empty.
|
---|
5300 | </desc>
|
---|
5301 | </param>
|
---|
5302 | </method>
|
---|
5303 |
|
---|
5304 | <method name="getGuestPropertyTimestamp">
|
---|
5305 | <desc>
|
---|
5306 | Reads a property timestamp from the machine's guest property store.
|
---|
5307 |
|
---|
5308 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5309 | Machine session is not open.
|
---|
5310 | </result>
|
---|
5311 |
|
---|
5312 | </desc>
|
---|
5313 | <param name="property" type="wstring" dir="in">
|
---|
5314 | <desc>
|
---|
5315 | The name of the property to read.
|
---|
5316 | </desc>
|
---|
5317 | </param>
|
---|
5318 | <param name="value" type="unsigned long long" dir="return">
|
---|
5319 | <desc>
|
---|
5320 | The timestamp. If the property does not exist then this will be
|
---|
5321 | empty.
|
---|
5322 | </desc>
|
---|
5323 | </param>
|
---|
5324 | </method>
|
---|
5325 |
|
---|
5326 | <method name="setGuestProperty">
|
---|
5327 | <desc>
|
---|
5328 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5329 | store.
|
---|
5330 |
|
---|
5331 | <result name="E_ACCESSDENIED">
|
---|
5332 | Property cannot be changed.
|
---|
5333 | </result>
|
---|
5334 | <result name="E_INVALIDARG">
|
---|
5335 | Invalid @a flags.
|
---|
5336 | </result>
|
---|
5337 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5338 | Virtual machine is not mutable or session not open.
|
---|
5339 | </result>
|
---|
5340 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5341 | Cannot set transient property when machine not running.
|
---|
5342 | </result>
|
---|
5343 |
|
---|
5344 | </desc>
|
---|
5345 | <param name="property" type="wstring" dir="in">
|
---|
5346 | <desc>
|
---|
5347 | The name of the property to set, change or delete.
|
---|
5348 | </desc>
|
---|
5349 | </param>
|
---|
5350 | <param name="value" type="wstring" dir="in">
|
---|
5351 | <desc>
|
---|
5352 | The new value of the property to set, change or delete. If the
|
---|
5353 | property does not yet exist and value is non-empty, it will be
|
---|
5354 | created. If the value is empty, the key will be deleted if it
|
---|
5355 | exists.
|
---|
5356 | </desc>
|
---|
5357 | </param>
|
---|
5358 | <param name="flags" type="wstring" dir="in">
|
---|
5359 | <desc>
|
---|
5360 | Additional property parameters, passed as a comma-separated list of
|
---|
5361 | "name=value" type entries.
|
---|
5362 | </desc>
|
---|
5363 | </param>
|
---|
5364 | </method>
|
---|
5365 |
|
---|
5366 | <method name="setGuestPropertyValue">
|
---|
5367 | <desc>
|
---|
5368 | Sets, changes or deletes a value in the machine's guest property
|
---|
5369 | store. The flags field will be left unchanged or created empty for a
|
---|
5370 | new property.
|
---|
5371 |
|
---|
5372 | <result name="E_ACCESSDENIED">
|
---|
5373 | Property cannot be changed.
|
---|
5374 | </result>
|
---|
5375 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5376 | Virtual machine is not mutable or session not open.
|
---|
5377 | </result>
|
---|
5378 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5379 | Cannot set transient property when machine not running.
|
---|
5380 | </result>
|
---|
5381 | </desc>
|
---|
5382 |
|
---|
5383 | <param name="property" type="wstring" dir="in">
|
---|
5384 | <desc>
|
---|
5385 | The name of the property to set, change or delete.
|
---|
5386 | </desc>
|
---|
5387 | </param>
|
---|
5388 | <param name="value" type="wstring" dir="in">
|
---|
5389 | <desc>
|
---|
5390 | The new value of the property to set, change or delete. If the
|
---|
5391 | property does not yet exist and value is non-empty, it will be
|
---|
5392 | created. If value is empty, the property will be deleted if it
|
---|
5393 | exists.
|
---|
5394 | </desc>
|
---|
5395 | </param>
|
---|
5396 | </method>
|
---|
5397 |
|
---|
5398 | <method name="enumerateGuestProperties">
|
---|
5399 | <desc>
|
---|
5400 | Return a list of the guest properties matching a set of patterns along
|
---|
5401 | with their values, time stamps and flags.
|
---|
5402 | </desc>
|
---|
5403 | <param name="patterns" type="wstring" dir="in">
|
---|
5404 | <desc>
|
---|
5405 | The patterns to match the properties against, separated by '|'
|
---|
5406 | characters. If this is empty or NULL, all properties will match.
|
---|
5407 | </desc>
|
---|
5408 | </param>
|
---|
5409 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5410 | <desc>
|
---|
5411 | The names of the properties returned.
|
---|
5412 | </desc>
|
---|
5413 | </param>
|
---|
5414 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5415 | <desc>
|
---|
5416 | The values of the properties returned. The array entries match the
|
---|
5417 | corresponding entries in the @a name array.
|
---|
5418 | </desc>
|
---|
5419 | </param>
|
---|
5420 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
5421 | <desc>
|
---|
5422 | The time stamps of the properties returned. The array entries match
|
---|
5423 | the corresponding entries in the @a name array.
|
---|
5424 | </desc>
|
---|
5425 | </param>
|
---|
5426 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5427 | <desc>
|
---|
5428 | The flags of the properties returned. The array entries match the
|
---|
5429 | corresponding entries in the @a name array.
|
---|
5430 | </desc>
|
---|
5431 | </param>
|
---|
5432 | </method>
|
---|
5433 | </interface>
|
---|
5434 |
|
---|
5435 | <!--
|
---|
5436 | // IConsole
|
---|
5437 | /////////////////////////////////////////////////////////////////////////
|
---|
5438 | -->
|
---|
5439 |
|
---|
5440 | <interface
|
---|
5441 | name="IConsoleCallback" extends="$unknown"
|
---|
5442 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
5443 | wsmap="suppress"
|
---|
5444 | >
|
---|
5445 |
|
---|
5446 | <method name="onMousePointerShapeChange">
|
---|
5447 | <desc>
|
---|
5448 | Notification when the guest mouse pointer shape has
|
---|
5449 | changed. The new shape data is given.
|
---|
5450 | </desc>
|
---|
5451 | <param name="visible" type="boolean" dir="in">
|
---|
5452 | <desc>
|
---|
5453 | Flag whether the pointer is visible.
|
---|
5454 | </desc>
|
---|
5455 | </param>
|
---|
5456 | <param name="alpha" type="boolean" dir="in">
|
---|
5457 | <desc>
|
---|
5458 | Flag whether the pointer has an alpha channel.
|
---|
5459 | </desc>
|
---|
5460 | </param>
|
---|
5461 | <param name="xHot" type="unsigned long" dir="in">
|
---|
5462 | <desc>
|
---|
5463 | The pointer hot spot x coordinate.
|
---|
5464 | </desc>
|
---|
5465 | </param>
|
---|
5466 | <param name="yHot" type="unsigned long" dir="in">
|
---|
5467 | <desc>
|
---|
5468 | The pointer hot spot y coordinate.
|
---|
5469 | </desc>
|
---|
5470 | </param>
|
---|
5471 | <param name="width" type="unsigned long" dir="in">
|
---|
5472 | <desc>
|
---|
5473 | Width of the pointer shape in pixels.
|
---|
5474 | </desc>
|
---|
5475 | </param>
|
---|
5476 | <param name="height" type="unsigned long" dir="in">
|
---|
5477 | <desc>
|
---|
5478 | Height of the pointer shape in pixels.
|
---|
5479 | </desc>
|
---|
5480 | </param>
|
---|
5481 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
5482 | <desc>
|
---|
5483 | Address of the shape buffer.
|
---|
5484 |
|
---|
5485 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
5486 | followed by a 32-bpp XOR (color) mask.
|
---|
5487 |
|
---|
5488 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
5489 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
5490 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
5491 |
|
---|
5492 | An AND mask is used for pointers with alpha channel, so if the
|
---|
5493 | callback does not support alpha, the pointer could be
|
---|
5494 | displayed as a normal color pointer.
|
---|
5495 |
|
---|
5496 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
5497 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
5498 | height</tt>. The padding bits at the end of each scanline are
|
---|
5499 | undefined.
|
---|
5500 |
|
---|
5501 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
5502 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
5503 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
5504 | The XOR mask scanlines have no gap between them and the size of
|
---|
5505 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
5506 |
|
---|
5507 | <note>
|
---|
5508 | If @a shape is 0, only the pointer visibility is changed.
|
---|
5509 | </note>
|
---|
5510 | </desc>
|
---|
5511 | </param>
|
---|
5512 | </method>
|
---|
5513 |
|
---|
5514 | <method name="onMouseCapabilityChange">
|
---|
5515 | <desc>
|
---|
5516 | Notification when the mouse capabilities reported by the
|
---|
5517 | guest have changed. The new capabilities are passed.
|
---|
5518 | </desc>
|
---|
5519 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
5520 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
5521 | </method>
|
---|
5522 |
|
---|
5523 | <method name="onKeyboardLedsChange">
|
---|
5524 | <desc>
|
---|
5525 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
5526 | to alter the state of the keyboard LEDs.
|
---|
5527 | </desc>
|
---|
5528 | <param name="numLock" type="boolean" dir="in"/>
|
---|
5529 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
5530 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
5531 | </method>
|
---|
5532 |
|
---|
5533 | <method name="onStateChange">
|
---|
5534 | <desc>
|
---|
5535 | Notification when the execution state of the machine has changed.
|
---|
5536 | The new state will be given.
|
---|
5537 | </desc>
|
---|
5538 | <param name="state" type="MachineState" dir="in"/>
|
---|
5539 | </method>
|
---|
5540 |
|
---|
5541 | <method name="onAdditionsStateChange">
|
---|
5542 | <desc>
|
---|
5543 | Notification when a Guest Additions property changes.
|
---|
5544 | Interested callees should query IGuest attributes to
|
---|
5545 | find out what has changed.
|
---|
5546 | </desc>
|
---|
5547 | </method>
|
---|
5548 |
|
---|
5549 | <method name="onDVDDriveChange">
|
---|
5550 | <desc>
|
---|
5551 | Notification when a property of the
|
---|
5552 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
5553 | Interested callees should use IDVDDrive methods to find out what has
|
---|
5554 | changed.
|
---|
5555 | </desc>
|
---|
5556 | </method>
|
---|
5557 |
|
---|
5558 | <method name="onFloppyDriveChange">
|
---|
5559 | <desc>
|
---|
5560 | Notification when a property of the
|
---|
5561 | virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
|
---|
5562 | Interested callees should use IFloppyDrive methods to find out what
|
---|
5563 | has changed.
|
---|
5564 | </desc>
|
---|
5565 | </method>
|
---|
5566 |
|
---|
5567 | <method name="onNetworkAdapterChange">
|
---|
5568 | <desc>
|
---|
5569 | Notification when a property of one of the
|
---|
5570 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
5571 | changes. Interested callees should use INetworkAdapter methods and
|
---|
5572 | attributes to find out what has changed.
|
---|
5573 | </desc>
|
---|
5574 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
5575 | <desc>Network adapter that is subject to change.</desc>
|
---|
5576 | </param>
|
---|
5577 | </method>
|
---|
5578 |
|
---|
5579 | <method name="onSerialPortChange">
|
---|
5580 | <desc>
|
---|
5581 | Notification when a property of one of the
|
---|
5582 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
5583 | Interested callees should use ISerialPort methods and attributes
|
---|
5584 | to find out what has changed.
|
---|
5585 | </desc>
|
---|
5586 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
5587 | <desc>Serial port that is subject to change.</desc>
|
---|
5588 | </param>
|
---|
5589 | </method>
|
---|
5590 |
|
---|
5591 | <method name="onParallelPortChange">
|
---|
5592 | <desc>
|
---|
5593 | Notification when a property of one of the
|
---|
5594 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
5595 | changes. Interested callees should use ISerialPort methods and
|
---|
5596 | attributes to find out what has changed.
|
---|
5597 | </desc>
|
---|
5598 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
5599 | <desc>Parallel port that is subject to change.</desc>
|
---|
5600 | </param>
|
---|
5601 | </method>
|
---|
5602 |
|
---|
5603 | <method name="onStorageControllerChange">
|
---|
5604 | <desc>
|
---|
5605 | Notification when a property of one of the
|
---|
5606 | virtual <link to="IMachine::getStorageControllers">storage controllers</link>
|
---|
5607 | changes. Interested callees should use query the corresponding collections
|
---|
5608 | to find out what has changed.
|
---|
5609 | </desc>
|
---|
5610 | </method>
|
---|
5611 |
|
---|
5612 | <method name="onVRDPServerChange">
|
---|
5613 | <desc>
|
---|
5614 | Notification when a property of the
|
---|
5615 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
5616 | Interested callees should use IVRDPServer methods and attributes to
|
---|
5617 | find out what has changed.
|
---|
5618 | </desc>
|
---|
5619 | </method>
|
---|
5620 |
|
---|
5621 | <method name="onUSBControllerChange">
|
---|
5622 | <desc>
|
---|
5623 | Notification when a property of the virtual
|
---|
5624 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
5625 | Interested callees should use IUSBController methods and attributes to
|
---|
5626 | find out what has changed.
|
---|
5627 | </desc>
|
---|
5628 | </method>
|
---|
5629 |
|
---|
5630 | <method name="onUSBDeviceStateChange">
|
---|
5631 | <desc>
|
---|
5632 | Notification when a USB device is attached to or detached from
|
---|
5633 | the virtual USB controller.
|
---|
5634 |
|
---|
5635 | This notification is sent as a result of the indirect
|
---|
5636 | request to attach the device because it matches one of the
|
---|
5637 | machine USB filters, or as a result of the direct request
|
---|
5638 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
5639 | <link to="IConsole::detachUSBDevice"/>.
|
---|
5640 |
|
---|
5641 | This notification is sent in case of both a succeeded and a
|
---|
5642 | failed request completion. When the request succeeds, the
|
---|
5643 | @a error parameter is @c null, and the given device has been
|
---|
5644 | already added to (when @a attached is @c true) or removed from
|
---|
5645 | (when @a attached is @c false) the collection represented by
|
---|
5646 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
5647 | doesn't change and the @a error parameter represents the error
|
---|
5648 | message describing the failure.
|
---|
5649 |
|
---|
5650 | </desc>
|
---|
5651 | <param name="device" type="IUSBDevice" dir="in">
|
---|
5652 | <desc>Device that is subject to state change.</desc>
|
---|
5653 | </param>
|
---|
5654 | <param name="attached" type="boolean" dir="in">
|
---|
5655 | <desc>
|
---|
5656 | <tt>true</tt> if the device was attached
|
---|
5657 | and <tt>false</tt> otherwise.
|
---|
5658 | </desc>
|
---|
5659 | </param>
|
---|
5660 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
5661 | <desc>
|
---|
5662 | <tt>null</tt> on success or an error message object on
|
---|
5663 | failure.
|
---|
5664 | </desc>
|
---|
5665 | </param>
|
---|
5666 | </method>
|
---|
5667 |
|
---|
5668 | <method name="onSharedFolderChange">
|
---|
5669 | <desc>
|
---|
5670 | Notification when a shared folder is added or removed.
|
---|
5671 | The @a scope argument defines one of three scopes:
|
---|
5672 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
5673 | (<link to="Scope_Global">Global</link>),
|
---|
5674 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
5675 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
5676 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
5677 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
5678 | should use query the corresponding collections to find out what has
|
---|
5679 | changed.
|
---|
5680 | </desc>
|
---|
5681 | <param name="scope" type="Scope" dir="in">
|
---|
5682 | <desc>Scope of the notification.</desc>
|
---|
5683 | </param>
|
---|
5684 | </method>
|
---|
5685 |
|
---|
5686 | <method name="onRuntimeError">
|
---|
5687 | <desc>
|
---|
5688 | Notification when an error happens during the virtual
|
---|
5689 | machine execution.
|
---|
5690 |
|
---|
5691 | There are three kinds of runtime errors:
|
---|
5692 | <ul>
|
---|
5693 | <li><i>fatal</i></li>
|
---|
5694 | <li><i>non-fatal with retry</i></li>
|
---|
5695 | <li><i>non-fatal warnings</i></li>
|
---|
5696 | </ul>
|
---|
5697 |
|
---|
5698 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
5699 | to <tt>true</tt>. In case of fatal errors, the virtual machine
|
---|
5700 | execution is always paused before calling this notification, and
|
---|
5701 | the notification handler is supposed either to immediately save
|
---|
5702 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
5703 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
5704 | Resuming the execution can lead to unpredictable results.
|
---|
5705 |
|
---|
5706 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
5707 | @a fatal parameter set to <tt>false</tt>. If the virtual machine
|
---|
5708 | is in the Paused state by the time the error notification is
|
---|
5709 | received, it means that the user can <i>try to resume</i> the machine
|
---|
5710 | execution after attempting to solve the problem that caused the
|
---|
5711 | error. In this case, the notification handler is supposed
|
---|
5712 | to show an appropriate message to the user (depending on the
|
---|
5713 | value of the @a id parameter) that offers several actions such
|
---|
5714 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
5715 | wants to retry, the notification handler should continue
|
---|
5716 | the machine execution using the <link to="IConsole::resume"/>
|
---|
5717 | call. If the machine execution is not Paused during this
|
---|
5718 | notification, then it means this notification is a <i>warning</i>
|
---|
5719 | (for example, about a fatal condition that can happen very soon);
|
---|
5720 | no immediate action is required from the user, the machine
|
---|
5721 | continues its normal execution.
|
---|
5722 |
|
---|
5723 | Note that in either case the notification handler
|
---|
5724 | <b>must not</b> perform any action directly on a thread
|
---|
5725 | where this notification is called. Everything it is allowed to
|
---|
5726 | do is to post a message to another thread that will then talk
|
---|
5727 | to the user and take the corresponding action.
|
---|
5728 |
|
---|
5729 | Currently, the following error identifiers are known:
|
---|
5730 | <ul>
|
---|
5731 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
5732 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
5733 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
5734 | </ul>
|
---|
5735 |
|
---|
5736 | <note>
|
---|
5737 | This notification is not designed to be implemented by
|
---|
5738 | more than one callback at a time. If you have multiple
|
---|
5739 | IConsoleCallback instances registered on the given
|
---|
5740 | IConsole object, make sure you simply do nothing but
|
---|
5741 | return @c S_OK from all but one of them that does actual
|
---|
5742 | user notification and performs necessary actions.
|
---|
5743 | </note>
|
---|
5744 |
|
---|
5745 | </desc>
|
---|
5746 | <param name="fatal" type="boolean" dir="in">
|
---|
5747 | <desc>Whether the error is fatal or not</desc>
|
---|
5748 | </param>
|
---|
5749 | <param name="id" type="wstring" dir="in">
|
---|
5750 | <desc>Error identifier</desc>
|
---|
5751 | </param>
|
---|
5752 | <param name="message" type="wstring" dir="in">
|
---|
5753 | <desc>Optional error message</desc>
|
---|
5754 | </param>
|
---|
5755 | </method>
|
---|
5756 |
|
---|
5757 | <method name="onCanShowWindow">
|
---|
5758 | <desc>
|
---|
5759 | Notification when a call to
|
---|
5760 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
5761 | front-end to check if a subsequent call to
|
---|
5762 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
5763 |
|
---|
5764 | The callee should give an answer appropriate to the current
|
---|
5765 | machine state in the @a canShow argument. This answer must
|
---|
5766 | remain valid at least until the next
|
---|
5767 | <link to="IConsole::state">machine state</link> change.
|
---|
5768 |
|
---|
5769 | <note>
|
---|
5770 | This notification is not designed to be implemented by
|
---|
5771 | more than one callback at a time. If you have multiple
|
---|
5772 | IConsoleCallback instances registered on the given
|
---|
5773 | IConsole object, make sure you simply do nothing but
|
---|
5774 | return @c true and @c S_OK from all but one of them that
|
---|
5775 | actually manages console window activation.
|
---|
5776 | </note>
|
---|
5777 | </desc>
|
---|
5778 | <param name="canShow" type="boolean" dir="return">
|
---|
5779 | <desc>
|
---|
5780 | @c true if the console window can be shown and @c
|
---|
5781 | false otherwise.
|
---|
5782 | </desc>
|
---|
5783 | </param>
|
---|
5784 | </method>
|
---|
5785 |
|
---|
5786 | <method name="onShowWindow">
|
---|
5787 | <desc>
|
---|
5788 | Notification when a call to
|
---|
5789 | <link to="IMachine::showConsoleWindow"/>
|
---|
5790 | requests the console window to be activated and brought to
|
---|
5791 | foreground on the desktop of the host PC.
|
---|
5792 |
|
---|
5793 | This notification should cause the VM console process to
|
---|
5794 | perform the requested action as described above. If it is
|
---|
5795 | impossible to do it at a time of this notification, this
|
---|
5796 | method should return a failure.
|
---|
5797 |
|
---|
5798 | Note that many modern window managers on many platforms
|
---|
5799 | implement some sort of focus stealing prevention logic, so
|
---|
5800 | that it may be impossible to activate a window without the
|
---|
5801 | help of the currently active application (which is supposedly
|
---|
5802 | an initiator of this notification). In this case, this method
|
---|
5803 | must return a non-zero identifier that represents the
|
---|
5804 | top-level window of the VM console process. The caller, if it
|
---|
5805 | represents a currently active process, is responsible to use
|
---|
5806 | this identifier (in a platform-dependent manner) to perform
|
---|
5807 | actual window activation.
|
---|
5808 |
|
---|
5809 | This method must set @a winId to zero if it has performed all
|
---|
5810 | actions necessary to complete the request and the console
|
---|
5811 | window is now active and in foreground, to indicate that no
|
---|
5812 | further action is required on the caller's side.
|
---|
5813 |
|
---|
5814 | <note>
|
---|
5815 | This notification is not designed to be implemented by
|
---|
5816 | more than one callback at a time. If you have multiple
|
---|
5817 | IConsoleCallback instances registered on the given
|
---|
5818 | IConsole object, make sure you simply do nothing but
|
---|
5819 | return @c S_OK from all but one of them that actually
|
---|
5820 | manages console window activation.
|
---|
5821 | </note>
|
---|
5822 | </desc>
|
---|
5823 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5824 | <desc>
|
---|
5825 | Platform-dependent identifier of the top-level VM console
|
---|
5826 | window, or zero if this method has performed all actions
|
---|
5827 | necessary to implement the <i>show window</i> semantics for
|
---|
5828 | the given platform and/or this VirtualBox front-end.
|
---|
5829 | </desc>
|
---|
5830 | </param>
|
---|
5831 | </method>
|
---|
5832 |
|
---|
5833 | </interface>
|
---|
5834 |
|
---|
5835 | <interface
|
---|
5836 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
5837 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
5838 | wsmap="struct"
|
---|
5839 | >
|
---|
5840 | <desc>
|
---|
5841 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
5842 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
5843 | </desc>
|
---|
5844 |
|
---|
5845 | <attribute name="active" type="boolean" readonly="yes">
|
---|
5846 | <desc>
|
---|
5847 | Whether the remote display connection is active.
|
---|
5848 | </desc>
|
---|
5849 | </attribute>
|
---|
5850 |
|
---|
5851 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
5852 | <desc>
|
---|
5853 | How many times a client connected.
|
---|
5854 | </desc>
|
---|
5855 | </attribute>
|
---|
5856 |
|
---|
5857 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
5858 | <desc>
|
---|
5859 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
5860 | </desc>
|
---|
5861 | </attribute>
|
---|
5862 |
|
---|
5863 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
5864 | <desc>
|
---|
5865 | When the last connection was terminated or the current time, if
|
---|
5866 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
5867 | </desc>
|
---|
5868 | </attribute>
|
---|
5869 |
|
---|
5870 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
5871 | <desc>
|
---|
5872 | How many bytes were sent in last or current, if still active, connection.
|
---|
5873 | </desc>
|
---|
5874 | </attribute>
|
---|
5875 |
|
---|
5876 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
5877 | <desc>
|
---|
5878 | How many bytes were sent in all connections.
|
---|
5879 | </desc>
|
---|
5880 | </attribute>
|
---|
5881 |
|
---|
5882 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
5883 | <desc>
|
---|
5884 | How many bytes were received in last or current, if still active, connection.
|
---|
5885 | </desc>
|
---|
5886 | </attribute>
|
---|
5887 |
|
---|
5888 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
5889 | <desc>
|
---|
5890 | How many bytes were received in all connections.
|
---|
5891 | </desc>
|
---|
5892 | </attribute>
|
---|
5893 |
|
---|
5894 | <attribute name="user" type="wstring" readonly="yes">
|
---|
5895 | <desc>
|
---|
5896 | Login user name supplied by the client.
|
---|
5897 | </desc>
|
---|
5898 | </attribute>
|
---|
5899 |
|
---|
5900 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
5901 | <desc>
|
---|
5902 | Login domain name supplied by the client.
|
---|
5903 | </desc>
|
---|
5904 | </attribute>
|
---|
5905 |
|
---|
5906 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
5907 | <desc>
|
---|
5908 | The client name supplied by the client.
|
---|
5909 | </desc>
|
---|
5910 | </attribute>
|
---|
5911 |
|
---|
5912 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
5913 | <desc>
|
---|
5914 | The IP address of the client.
|
---|
5915 | </desc>
|
---|
5916 | </attribute>
|
---|
5917 |
|
---|
5918 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
5919 | <desc>
|
---|
5920 | The client software version number.
|
---|
5921 | </desc>
|
---|
5922 | </attribute>
|
---|
5923 |
|
---|
5924 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
5925 | <desc>
|
---|
5926 | Public key exchange method used when connection was established.
|
---|
5927 | Values: 0 - RDP4 public key exchange scheme.
|
---|
5928 | 1 - X509 certificates were sent to client.
|
---|
5929 | </desc>
|
---|
5930 | </attribute>
|
---|
5931 |
|
---|
5932 | </interface>
|
---|
5933 |
|
---|
5934 | <interface
|
---|
5935 | name="IConsole" extends="$unknown"
|
---|
5936 | uuid="9511bc54-15ee-4ddf-808e-472aba03809c"
|
---|
5937 | wsmap="managed"
|
---|
5938 | >
|
---|
5939 | <desc>
|
---|
5940 | The IConsole interface represents an interface to control virtual
|
---|
5941 | machine execution.
|
---|
5942 |
|
---|
5943 | The console object that implements the IConsole interface is obtained
|
---|
5944 | from a session object after the session for the given machine has been
|
---|
5945 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
5946 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
5947 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
5948 |
|
---|
5949 | Methods of the IConsole interface allow the caller to query the current
|
---|
5950 | virtual machine execution state, pause the machine or power it down, save
|
---|
5951 | the machine state or take a snapshot, attach and detach removable media
|
---|
5952 | and so on.
|
---|
5953 |
|
---|
5954 | <see>ISession</see>
|
---|
5955 | </desc>
|
---|
5956 |
|
---|
5957 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
5958 | <desc>
|
---|
5959 | Machine object this console is sessioned with.
|
---|
5960 | <note>
|
---|
5961 | This is a convenience property, it has the same value as
|
---|
5962 | <link to="ISession::machine"/> of the corresponding session
|
---|
5963 | object.
|
---|
5964 | </note>
|
---|
5965 | </desc>
|
---|
5966 | </attribute>
|
---|
5967 |
|
---|
5968 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
5969 | <desc>
|
---|
5970 | Current execution state of the machine.
|
---|
5971 | <note>
|
---|
5972 | This property always returns the same value as the corresponding
|
---|
5973 | property of the IMachine object this console is sessioned with.
|
---|
5974 | For the process that owns (executes) the VM, this is the
|
---|
5975 | preferable way of querying the VM state, because no IPC
|
---|
5976 | calls are made.
|
---|
5977 | </note>
|
---|
5978 | </desc>
|
---|
5979 | </attribute>
|
---|
5980 |
|
---|
5981 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
5982 | <desc>Guest object.</desc>
|
---|
5983 | </attribute>
|
---|
5984 |
|
---|
5985 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
5986 | <desc>
|
---|
5987 | Virtual keyboard object.
|
---|
5988 | <note>
|
---|
5989 | If the machine is not running, any attempt to use
|
---|
5990 | the returned object will result in an error.
|
---|
5991 | </note>
|
---|
5992 | </desc>
|
---|
5993 | </attribute>
|
---|
5994 |
|
---|
5995 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
5996 | <desc>
|
---|
5997 | Virtual mouse object.
|
---|
5998 | <note>
|
---|
5999 | If the machine is not running, any attempt to use
|
---|
6000 | the returned object will result in an error.
|
---|
6001 | </note>
|
---|
6002 | </desc>
|
---|
6003 | </attribute>
|
---|
6004 |
|
---|
6005 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
6006 | <desc>Virtual display object.
|
---|
6007 | <note>
|
---|
6008 | If the machine is not running, any attempt to use
|
---|
6009 | the returned object will result in an error.
|
---|
6010 | </note>
|
---|
6011 | </desc>
|
---|
6012 | </attribute>
|
---|
6013 |
|
---|
6014 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
6015 | <desc>Debugging interface.</desc>
|
---|
6016 | </attribute>
|
---|
6017 |
|
---|
6018 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
6019 | <desc>
|
---|
6020 | Collection of USB devices currently attached to the virtual
|
---|
6021 | USB controller.
|
---|
6022 | <note>
|
---|
6023 | The collection is empty if the machine is not running.
|
---|
6024 | </note>
|
---|
6025 | </desc>
|
---|
6026 | </attribute>
|
---|
6027 |
|
---|
6028 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6029 | <desc>
|
---|
6030 | List of USB devices currently attached to the remote VRDP client.
|
---|
6031 | Once a new device is physically attached to the remote host computer,
|
---|
6032 | it appears in this list and remains there until detached.
|
---|
6033 | </desc>
|
---|
6034 | </attribute>
|
---|
6035 |
|
---|
6036 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
6037 | <desc>
|
---|
6038 | Collection of shared folders for the current session. These folders
|
---|
6039 | are called transient shared folders because they are available to the
|
---|
6040 | guest OS running inside the associated virtual machine only for the
|
---|
6041 | duration of the session (as opposed to
|
---|
6042 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
6043 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
6044 | these folders are automatically discarded.
|
---|
6045 |
|
---|
6046 | New shared folders are added to the collection using
|
---|
6047 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
6048 | removed using <link to="#removeSharedFolder"/>.
|
---|
6049 | </desc>
|
---|
6050 | </attribute>
|
---|
6051 |
|
---|
6052 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
6053 | <desc>
|
---|
6054 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
6055 | </desc>
|
---|
6056 | </attribute>
|
---|
6057 |
|
---|
6058 | <method name="powerUp">
|
---|
6059 | <desc>
|
---|
6060 | Starts the virtual machine execution using the current machine
|
---|
6061 | state (that is, its current execution state, current settings and
|
---|
6062 | current hard disks).
|
---|
6063 |
|
---|
6064 | If the machine is powered off or aborted, the execution will
|
---|
6065 | start from the beginning (as if the real hardware were just
|
---|
6066 | powered on).
|
---|
6067 |
|
---|
6068 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
6069 | it will continue its execution the point where the state has
|
---|
6070 | been saved.
|
---|
6071 |
|
---|
6072 | <note>
|
---|
6073 | Unless you are trying to write a new VirtualBox front-end that
|
---|
6074 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
6075 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
6076 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
6077 | session only to change virtual machine settings. If you simply want to
|
---|
6078 | start virtual machine execution using one of the existing front-ends
|
---|
6079 | (for example the VirtualBox GUI or headless server), simply use
|
---|
6080 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
6081 | power up the machine automatically for you.
|
---|
6082 | </note>
|
---|
6083 |
|
---|
6084 | <see>#saveState</see>
|
---|
6085 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6086 | Virtual machine already running.
|
---|
6087 | </result>
|
---|
6088 | <result name="VBOX_E_HOST_ERROR">
|
---|
6089 | Host interface does not exist or name not set.
|
---|
6090 | </result>
|
---|
6091 | <result name="VBOX_E_FILE_ERROR">
|
---|
6092 | Invalid saved state file.
|
---|
6093 | </result>
|
---|
6094 | </desc>
|
---|
6095 | <param name="progress" type="IProgress" dir="return">
|
---|
6096 | <desc>Progress object to track the operation completion.</desc>
|
---|
6097 | </param>
|
---|
6098 | </method>
|
---|
6099 |
|
---|
6100 | <method name="powerUpPaused">
|
---|
6101 | <desc>
|
---|
6102 | Identical to powerUp except that the VM will enter the
|
---|
6103 | <link to="MachineState_Paused"/> state, instead of
|
---|
6104 | <link to="MachineState_Running"/>.
|
---|
6105 |
|
---|
6106 | <see>#powerUp</see>
|
---|
6107 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6108 | Virtual machine already running.
|
---|
6109 | </result>
|
---|
6110 | <result name="VBOX_E_HOST_ERROR">
|
---|
6111 | Host interface does not exist or name not set.
|
---|
6112 | </result>
|
---|
6113 | <result name="VBOX_E_FILE_ERROR">
|
---|
6114 | Invalid saved state file.
|
---|
6115 | </result>
|
---|
6116 | </desc>
|
---|
6117 | <param name="progress" type="IProgress" dir="return">
|
---|
6118 | <desc>Progress object to track the operation completion.</desc>
|
---|
6119 | </param>
|
---|
6120 | </method>
|
---|
6121 |
|
---|
6122 | <method name="powerDown">
|
---|
6123 | <desc>
|
---|
6124 | Stops the virtual machine execution.
|
---|
6125 | After this operation completes, the machine will go to the
|
---|
6126 | PoweredOff state.
|
---|
6127 |
|
---|
6128 | @deprecated This method will be removed in VirtualBox 2.1 where the
|
---|
6129 | powerDownAsync() method will take its name. Do not use this method in
|
---|
6130 | the code.
|
---|
6131 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6132 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6133 | </result>
|
---|
6134 | <result name="VBOX_E_VM_ERROR">
|
---|
6135 | Unable to power off or destroy virtual machine.
|
---|
6136 | </result>
|
---|
6137 | </desc>
|
---|
6138 | </method>
|
---|
6139 |
|
---|
6140 | <method name="powerDownAsync">
|
---|
6141 | <desc>
|
---|
6142 | Initiates the power down procedure to stop the virtual machine
|
---|
6143 | execution.
|
---|
6144 |
|
---|
6145 | The completion of the power down procedure is tracked using the returned
|
---|
6146 | IProgress object. After the operation is complete, the machine will go
|
---|
6147 | to the PoweredOff state.
|
---|
6148 |
|
---|
6149 | @warning This method will be renamed to "powerDown" in VirtualBox 2.1
|
---|
6150 | where the original powerDown() method will be removed. You will need to
|
---|
6151 | rename "powerDownAsync" to "powerDown" in your sources to make them
|
---|
6152 | build with version 2.1.
|
---|
6153 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6154 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6155 | </result>
|
---|
6156 | </desc>
|
---|
6157 | <param name="progress" type="IProgress" dir="return">
|
---|
6158 | <desc>Progress object to track the operation completion.</desc>
|
---|
6159 | </param>
|
---|
6160 | </method>
|
---|
6161 |
|
---|
6162 | <method name="reset">
|
---|
6163 | <desc>Resets the virtual machine.
|
---|
6164 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6165 | Virtual machine not in Running state.
|
---|
6166 | </result>
|
---|
6167 | <result name="VBOX_E_VM_ERROR">
|
---|
6168 | Virtual machine error in reset operation.
|
---|
6169 | </result>
|
---|
6170 | </desc>
|
---|
6171 | </method>
|
---|
6172 |
|
---|
6173 | <method name="pause">
|
---|
6174 | <desc>Pauses the virtual machine execution.
|
---|
6175 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6176 | Virtual machine not in Running state.
|
---|
6177 | </result>
|
---|
6178 | <result name="VBOX_E_VM_ERROR">
|
---|
6179 | Virtual machine error in suspend operation.
|
---|
6180 | </result>
|
---|
6181 | </desc>
|
---|
6182 | </method>
|
---|
6183 |
|
---|
6184 | <method name="resume">
|
---|
6185 | <desc>Resumes the virtual machine execution.
|
---|
6186 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6187 | Virtual machine not in Paused state.
|
---|
6188 | </result>
|
---|
6189 | <result name="VBOX_E_VM_ERROR">
|
---|
6190 | Virtual machine error in resume operation.
|
---|
6191 | </result>
|
---|
6192 | </desc>
|
---|
6193 | </method>
|
---|
6194 |
|
---|
6195 | <method name="powerButton">
|
---|
6196 | <desc>Sends the ACPI power button event to the guest.
|
---|
6197 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6198 | Virtual machine not in Running state.
|
---|
6199 | </result>
|
---|
6200 | <result name="VBOX_E_PDM_ERROR">
|
---|
6201 | Controlled power off failed.
|
---|
6202 | </result>
|
---|
6203 | </desc>
|
---|
6204 | </method>
|
---|
6205 |
|
---|
6206 | <method name="sleepButton">
|
---|
6207 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6208 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6209 | Virtual machine not in Running state.
|
---|
6210 | </result>
|
---|
6211 | <result name="VBOX_E_PDM_ERROR">
|
---|
6212 | Sending sleep button event failed.
|
---|
6213 | </result>
|
---|
6214 | </desc>
|
---|
6215 | </method>
|
---|
6216 |
|
---|
6217 | <method name="getPowerButtonHandled">
|
---|
6218 | <desc>Checks if the last power button event was handled by guest.
|
---|
6219 | <result name="VBOX_E_PDM_ERROR">
|
---|
6220 | Checking if the event was handled by the guest OS failed.
|
---|
6221 | </result>
|
---|
6222 | </desc>
|
---|
6223 | <param name="handled" type="boolean" dir="return"/>
|
---|
6224 | </method>
|
---|
6225 |
|
---|
6226 | <method name="getGuestEnteredACPIMode">
|
---|
6227 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6228 | G1 (sleeping). If this method returns false, the guest will
|
---|
6229 | most likely not respond to external ACPI events.
|
---|
6230 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6231 | Virtual machine not in Running state.
|
---|
6232 | </result>
|
---|
6233 | </desc>
|
---|
6234 | <param name="entered" type="boolean" dir="return"/>
|
---|
6235 | </method>
|
---|
6236 |
|
---|
6237 | <method name="saveState">
|
---|
6238 | <desc>
|
---|
6239 | Saves the current execution state of a running virtual machine
|
---|
6240 | and stops its execution.
|
---|
6241 |
|
---|
6242 | After this operation completes, the machine will go to the
|
---|
6243 | Saved state. Next time it is powered up, this state will
|
---|
6244 | be restored and the machine will continue its execution from
|
---|
6245 | the place where it was saved.
|
---|
6246 |
|
---|
6247 | This operation differs from taking a snapshot to the effect
|
---|
6248 | that it doesn't create new differencing hard disks. Also, once
|
---|
6249 | the machine is powered up from the state saved using this method,
|
---|
6250 | the saved state is deleted, so it will be impossible to return
|
---|
6251 | to this state later.
|
---|
6252 |
|
---|
6253 | <note>
|
---|
6254 | On success, this method implicitly calls
|
---|
6255 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6256 | settings (including runtime changes to the DVD drive, etc.).
|
---|
6257 | Together with the impossibility to change any VM settings when it is
|
---|
6258 | in the Saved state, this guarantees adequate hardware
|
---|
6259 | configuration of the machine when it is restored from the saved
|
---|
6260 | state file.
|
---|
6261 | </note>
|
---|
6262 |
|
---|
6263 | <note>
|
---|
6264 | The machine must be in the Running or Paused state, otherwise
|
---|
6265 | the operation will fail.
|
---|
6266 | </note>
|
---|
6267 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6268 | Virtual machine state neither Running nor Paused.
|
---|
6269 | </result>
|
---|
6270 | <result name="VBOX_E_FILE_ERROR">
|
---|
6271 | Failed to create directory for saved state file.
|
---|
6272 | </result>
|
---|
6273 |
|
---|
6274 | <see><link to="#takeSnapshot"/></see>
|
---|
6275 | </desc>
|
---|
6276 | <param name="progress" type="IProgress" dir="return">
|
---|
6277 | <desc>Progress object to track the operation completion.</desc>
|
---|
6278 | </param>
|
---|
6279 | </method>
|
---|
6280 |
|
---|
6281 | <method name="adoptSavedState">
|
---|
6282 | <desc>
|
---|
6283 | Associates the given saved state file to the virtual machine.
|
---|
6284 |
|
---|
6285 | On success, the machine will go to the Saved state. Next time it is
|
---|
6286 | powered up, it will be restored from the adopted saved state and
|
---|
6287 | continue execution from the place where the saved state file was
|
---|
6288 | created.
|
---|
6289 |
|
---|
6290 | The specified saved state file path may be absolute or relative to the
|
---|
6291 | folder the VM normally saves the state to (usually,
|
---|
6292 | <link to="IMachine::snapshotFolder"/>).
|
---|
6293 |
|
---|
6294 | <note>
|
---|
6295 | It's a caller's responsibility to make sure the given saved state
|
---|
6296 | file is compatible with the settings of this virtual machine that
|
---|
6297 | represent its virtual hardware (memory size, hard disk configuration
|
---|
6298 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6299 | is undefined.
|
---|
6300 | </note>
|
---|
6301 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6302 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6303 | </result>
|
---|
6304 | </desc>
|
---|
6305 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6306 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6307 | </param>
|
---|
6308 | </method>
|
---|
6309 |
|
---|
6310 | <method name="discardSavedState">
|
---|
6311 | <desc>
|
---|
6312 | Discards (deletes) the saved state of the virtual machine
|
---|
6313 | previously created by <link to="#saveState"/>. Next time the
|
---|
6314 | machine is powered up, a clean boot will occur.
|
---|
6315 | <note>
|
---|
6316 | This operation is equivalent to resetting or powering off
|
---|
6317 | the machine without doing a proper shutdown in the guest OS.
|
---|
6318 | </note>
|
---|
6319 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6320 | Virtual machine not in state Saved.
|
---|
6321 | </result>
|
---|
6322 | </desc>
|
---|
6323 | </method>
|
---|
6324 |
|
---|
6325 | <method name="getDeviceActivity">
|
---|
6326 | <desc>
|
---|
6327 | Gets the current activity type of a given device or device group.
|
---|
6328 | <result name="E_INVALIDARG">
|
---|
6329 | Invalid device type.
|
---|
6330 | </result>
|
---|
6331 | </desc>
|
---|
6332 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6333 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6334 | </method>
|
---|
6335 |
|
---|
6336 | <method name="attachUSBDevice">
|
---|
6337 | <desc>
|
---|
6338 | Attaches a host USB device with the given UUID to the
|
---|
6339 | USB controller of the virtual machine.
|
---|
6340 |
|
---|
6341 | The device needs to be in one of the following states:
|
---|
6342 | <link to="USBDeviceState_Busy"/>,
|
---|
6343 | <link to="USBDeviceState_Available"/> or
|
---|
6344 | <link to="USBDeviceState_Held"/>,
|
---|
6345 | otherwise an error is immediately returned.
|
---|
6346 |
|
---|
6347 | When the device state is
|
---|
6348 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6349 | be returned if the host computer refuses to release it for some reason.
|
---|
6350 |
|
---|
6351 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6352 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6353 | Virtual machine state neither Running nor Paused.
|
---|
6354 | </result>
|
---|
6355 | <result name="VBOX_E_PDM_ERROR">
|
---|
6356 | Virtual machine does not have a USB controller.
|
---|
6357 | </result>
|
---|
6358 | </desc>
|
---|
6359 | <param name="id" type="uuid" dir="in">
|
---|
6360 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6361 | </param>
|
---|
6362 | </method>
|
---|
6363 |
|
---|
6364 | <method name="detachUSBDevice">
|
---|
6365 | <desc>
|
---|
6366 | Detaches an USB device with the given UUID from the USB controller
|
---|
6367 | of the virtual machine.
|
---|
6368 |
|
---|
6369 | After this method succeeds, the VirtualBox server re-initiates
|
---|
6370 | all USB filters as if the device were just physically attached
|
---|
6371 | to the host, but filters of this machine are ignored to avoid
|
---|
6372 | a possible automatic re-attachment.
|
---|
6373 |
|
---|
6374 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6375 |
|
---|
6376 | <result name="VBOX_E_PDM_ERROR">
|
---|
6377 | Virtual machine does not have a USB controller.
|
---|
6378 | </result>
|
---|
6379 | <result name="E_INVALIDARG">
|
---|
6380 | USB device not attached to this virtual machine.
|
---|
6381 | </result>
|
---|
6382 | </desc>
|
---|
6383 | <param name="id" type="uuid" dir="in">
|
---|
6384 | <desc>UUID of the USB device to detach.</desc>
|
---|
6385 | </param>
|
---|
6386 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6387 | <desc>Detached USB device.</desc>
|
---|
6388 | </param>
|
---|
6389 | </method>
|
---|
6390 |
|
---|
6391 | <method name="findUSBDeviceByAddress">
|
---|
6392 | <desc>
|
---|
6393 | Searches for a USB device with the given host address.
|
---|
6394 |
|
---|
6395 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6396 | Given @c name does not correspond to any USB device.
|
---|
6397 | </result>
|
---|
6398 |
|
---|
6399 | <see>IUSBDevice::address</see>
|
---|
6400 | </desc>
|
---|
6401 | <param name="name" type="wstring" dir="in">
|
---|
6402 | <desc>
|
---|
6403 | Address of the USB device (as assigned by the host) to
|
---|
6404 | search for.
|
---|
6405 | </desc>
|
---|
6406 | </param>
|
---|
6407 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6408 | <desc>Found USB device object.</desc>
|
---|
6409 | </param>
|
---|
6410 | </method>
|
---|
6411 |
|
---|
6412 | <method name="findUSBDeviceById">
|
---|
6413 | <desc>
|
---|
6414 | Searches for a USB device with the given UUID.
|
---|
6415 |
|
---|
6416 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6417 | Given @c id does not correspond to any USB device.
|
---|
6418 | </result>
|
---|
6419 |
|
---|
6420 | <see>IUSBDevice::id</see>
|
---|
6421 | </desc>
|
---|
6422 | <param name="id" type="uuid" dir="in">
|
---|
6423 | <desc>UUID of the USB device to search for.</desc>
|
---|
6424 | </param>
|
---|
6425 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6426 | <desc>Found USB device object.</desc>
|
---|
6427 | </param>
|
---|
6428 | </method>
|
---|
6429 |
|
---|
6430 | <method name="createSharedFolder">
|
---|
6431 | <desc>
|
---|
6432 | Creates a transient new shared folder by associating the given logical
|
---|
6433 | name with the given host path, adds it to the collection of shared
|
---|
6434 | folders and starts sharing it. Refer to the description of
|
---|
6435 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
6436 |
|
---|
6437 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6438 | Virtual machine in Saved state or currently changing state.
|
---|
6439 | </result>
|
---|
6440 | <result name="VBOX_E_FILE_ERROR">
|
---|
6441 | Shared folder already exists or not accessible.
|
---|
6442 | </result>
|
---|
6443 | </desc>
|
---|
6444 | <param name="name" type="wstring" dir="in">
|
---|
6445 | <desc>Unique logical name of the shared folder.</desc>
|
---|
6446 | </param>
|
---|
6447 | <param name="hostPath" type="wstring" dir="in">
|
---|
6448 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
6449 | </param>
|
---|
6450 | <param name="writable" type="boolean" dir="in">
|
---|
6451 | <desc>Whether the share is writable or readonly</desc>
|
---|
6452 | </param>
|
---|
6453 | </method>
|
---|
6454 |
|
---|
6455 | <method name="removeSharedFolder">
|
---|
6456 | <desc>
|
---|
6457 | Removes a transient shared folder with the given name previously
|
---|
6458 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
6459 | shared folders and stops sharing it.
|
---|
6460 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6461 | Virtual machine in Saved state or currently changing state.
|
---|
6462 | </result>
|
---|
6463 | <result name="VBOX_E_FILE_ERROR">
|
---|
6464 | Shared folder does not exists.
|
---|
6465 | </result>
|
---|
6466 | </desc>
|
---|
6467 | <param name="name" type="wstring" dir="in">
|
---|
6468 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
6469 | </param>
|
---|
6470 | </method>
|
---|
6471 |
|
---|
6472 | <method name="takeSnapshot">
|
---|
6473 | <desc>
|
---|
6474 | Saves the current execution state and all settings of the
|
---|
6475 | machine and creates differencing images for all
|
---|
6476 | normal (non-independent) hard disks.
|
---|
6477 |
|
---|
6478 | This method can be called for a PoweredOff, Saved, Running or
|
---|
6479 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
6480 | offline <link to="ISnapshot">snapshot</link> is created,
|
---|
6481 | in all other cases -- an online snapshot.
|
---|
6482 |
|
---|
6483 | The taken snapshot is always based on the
|
---|
6484 | <link to="IMachine::currentSnapshot">current
|
---|
6485 | snapshot</link> of the associated virtual machine and becomes
|
---|
6486 | a new current snapshot.
|
---|
6487 |
|
---|
6488 | <note>
|
---|
6489 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
6490 | save all current machine settings before taking an offline snapshot.
|
---|
6491 | </note>
|
---|
6492 |
|
---|
6493 | <see>ISnapshot, <link to="#saveState"/></see>
|
---|
6494 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6495 | Virtual machine currently changing state.
|
---|
6496 | </result>
|
---|
6497 | </desc>
|
---|
6498 | <param name="name" type="wstring" dir="in">
|
---|
6499 | <desc>Short name for the snapshot.</desc>
|
---|
6500 | </param>
|
---|
6501 | <param name="description" type="wstring" dir="in">
|
---|
6502 | <desc>Optional description of the snapshot.</desc>
|
---|
6503 | </param>
|
---|
6504 | <param name="progress" type="IProgress" dir="return">
|
---|
6505 | <desc>Progress object to track the operation completion.</desc>
|
---|
6506 | </param>
|
---|
6507 | </method>
|
---|
6508 |
|
---|
6509 | <method name="discardSnapshot">
|
---|
6510 | <desc>
|
---|
6511 |
|
---|
6512 | Starts discarding the specified snapshot. The execution state
|
---|
6513 | and settings of the associated machine stored in the snapshot
|
---|
6514 | will be deleted. The contents of all differencing hard disks of
|
---|
6515 | this snapshot will be merged with the contents of their
|
---|
6516 | dependent child hard disks to keep the, disks valid (in other
|
---|
6517 | words, all changes represented by hard disks being discarded
|
---|
6518 | will be propagated to their child hard disks). After that, this
|
---|
6519 | snapshot's differencing hard disks will be deleted. The parent
|
---|
6520 | of this snapshot will become a new parent for all its child
|
---|
6521 | snapshots.
|
---|
6522 |
|
---|
6523 | If the discarded snapshot is the current one, its parent
|
---|
6524 | snapshot will become a new current snapshot. The current machine
|
---|
6525 | state is not directly affected in this case, except that
|
---|
6526 | currently attached differencing hard disks based on hard disks
|
---|
6527 | of the discarded snapshot will be also merged as described
|
---|
6528 | above.
|
---|
6529 |
|
---|
6530 | If the discarded snapshot is the first one (the root snapshot)
|
---|
6531 | and it has exactly one child snapshot, this child snapshot will
|
---|
6532 | become the first snapshot after discarding. If there are no
|
---|
6533 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
6534 | the machine), both the current and the first snapshot of the
|
---|
6535 | machine will be set to null. In all other cases, the first
|
---|
6536 | snapshot cannot be discarded.
|
---|
6537 |
|
---|
6538 | You cannot discard the snapshot if it
|
---|
6539 | stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
|
---|
6540 | hard disks that have differencing hard disks based on them. Snapshots of
|
---|
6541 | such kind can be discarded only when every normal hard disk has either
|
---|
6542 | no children at all or exactly one child. In the former case, the normal
|
---|
6543 | hard disk simply becomes unused (i.e. not attached to any VM). In the
|
---|
6544 | latter case, it receives all the changes stored in the child hard disk,
|
---|
6545 | and then it replaces the child hard disk in the configuration of the
|
---|
6546 | corresponding snapshot or machine.
|
---|
6547 |
|
---|
6548 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
6549 | (of any type) having differencing child hard disks that belong
|
---|
6550 | to other machines. Such snapshots can be only discarded after
|
---|
6551 | you discard all snapshots of other machines containing "foreign"
|
---|
6552 | child disks, or detach these "foreign" child disks from machines
|
---|
6553 | they are attached to.
|
---|
6554 |
|
---|
6555 | One particular example of the snapshot storing normal hard disks
|
---|
6556 | is the first snapshot of a virtual machine that had normal hard
|
---|
6557 | disks attached when taking the snapshot. Be careful when
|
---|
6558 | discarding such snapshots because this implicitly commits
|
---|
6559 | changes (made since the snapshot being discarded has been taken)
|
---|
6560 | to normal hard disks (as described above), which may be not what
|
---|
6561 | you want.
|
---|
6562 |
|
---|
6563 | The virtual machine is put to
|
---|
6564 | the <link to="MachineState_Discarding">Discarding</link> state until
|
---|
6565 | the discard operation is completed.
|
---|
6566 |
|
---|
6567 | <note>
|
---|
6568 | The machine must not be running, otherwise the operation
|
---|
6569 | will fail.
|
---|
6570 | </note>
|
---|
6571 |
|
---|
6572 | <note>
|
---|
6573 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
6574 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
6575 | operation to succeed. In particular, this means that all virtual
|
---|
6576 | machines, whose hard disks are directly or indirectly based on the
|
---|
6577 | hard disks of discarded snapshot, must be powered off.
|
---|
6578 | </note>
|
---|
6579 | <note>
|
---|
6580 | Merging hard disk contents can be very time and disk space
|
---|
6581 | consuming, if these disks are big in size and have many
|
---|
6582 | children. However, if the snapshot being discarded is the last
|
---|
6583 | (head) snapshot on the branch, the operation will be rather
|
---|
6584 | quick.
|
---|
6585 | </note>
|
---|
6586 | <note>
|
---|
6587 | Note that discarding the current snapshot
|
---|
6588 | will implicitly call <link to="IMachine::saveSettings"/> to
|
---|
6589 | make all current machine settings permanent.
|
---|
6590 | </note>
|
---|
6591 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6592 | Virtual machine is running.
|
---|
6593 | </result>
|
---|
6594 | </desc>
|
---|
6595 | <param name="id" type="uuid" dir="in">
|
---|
6596 | <desc>UUID of the snapshot to discard.</desc>
|
---|
6597 | </param>
|
---|
6598 | <param name="progress" type="IProgress" dir="return">
|
---|
6599 | <desc>Progress object to track the operation completion.</desc>
|
---|
6600 | </param>
|
---|
6601 | </method>
|
---|
6602 |
|
---|
6603 | <method name="discardCurrentState">
|
---|
6604 | <desc>
|
---|
6605 | This operation is similar to <link to="#discardSnapshot"/> but
|
---|
6606 | affects the current machine state. This means that the state stored in
|
---|
6607 | the current snapshot will become a new current state, and all current
|
---|
6608 | settings of the machine and changes stored in differencing hard disks
|
---|
6609 | will be lost.
|
---|
6610 |
|
---|
6611 | After this operation is successfully completed, new empty differencing
|
---|
6612 | hard disks are created for all normal hard disks of the machine.
|
---|
6613 |
|
---|
6614 | If the current snapshot of the machine is an online snapshot, the
|
---|
6615 | machine will go to the <link to="MachineState_Saved"> saved
|
---|
6616 | state</link>, so that the next time it is powered on, the execution
|
---|
6617 | state will be restored from the current snapshot.
|
---|
6618 |
|
---|
6619 | <note>
|
---|
6620 | The machine must not be running, otherwise the operation will fail.
|
---|
6621 | </note>
|
---|
6622 |
|
---|
6623 | <note>
|
---|
6624 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6625 | prior to this operation, the saved state file will be implicitly
|
---|
6626 | discarded (as if <link to="IConsole::discardSavedState"/> were
|
---|
6627 | called).
|
---|
6628 | </note>
|
---|
6629 |
|
---|
6630 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6631 | Virtual machine is running.
|
---|
6632 | </result>
|
---|
6633 | </desc>
|
---|
6634 | <param name="progress" type="IProgress" dir="return">
|
---|
6635 | <desc>Progress object to track the operation completion.</desc>
|
---|
6636 | </param>
|
---|
6637 | </method>
|
---|
6638 |
|
---|
6639 | <method name="discardCurrentSnapshotAndState">
|
---|
6640 | <desc>
|
---|
6641 |
|
---|
6642 | This method is equivalent to
|
---|
6643 | doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
|
---|
6644 | (currentSnapshot.id(), progress) followed by
|
---|
6645 | <link to="#discardCurrentState"/>.
|
---|
6646 |
|
---|
6647 | As a result, the machine will be fully restored from the
|
---|
6648 | snapshot preceding the current snapshot, while both the current
|
---|
6649 | snapshot and the current machine state will be discarded.
|
---|
6650 |
|
---|
6651 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
6652 | has the only snapshot), the current machine state will be
|
---|
6653 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
6654 | machine will be restored from its last snapshot, before discarding
|
---|
6655 | it. This differs from performing a single
|
---|
6656 | <link to="#discardSnapshot"/> call (note that no
|
---|
6657 | <link to="#discardCurrentState"/> will be possible after it)
|
---|
6658 | to the effect that the latter will preserve the current state instead of
|
---|
6659 | discarding it.
|
---|
6660 |
|
---|
6661 | Unless explicitly mentioned otherwise, all remarks and
|
---|
6662 | limitations of the above two methods also apply to this method.
|
---|
6663 |
|
---|
6664 | <note>
|
---|
6665 | The machine must not be running, otherwise the operation
|
---|
6666 | will fail.
|
---|
6667 | </note>
|
---|
6668 |
|
---|
6669 | <note>
|
---|
6670 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6671 | prior to this operation, the saved state file will be implicitly
|
---|
6672 | discarded (as if <link to="#discardSavedState"/> were
|
---|
6673 | called).
|
---|
6674 | </note>
|
---|
6675 |
|
---|
6676 | <note>
|
---|
6677 | This method is more efficient than calling both of the above
|
---|
6678 | methods separately: it requires less IPC calls and provides
|
---|
6679 | a single progress object.
|
---|
6680 | </note>
|
---|
6681 |
|
---|
6682 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6683 | Virtual machine is running.
|
---|
6684 | </result>
|
---|
6685 | </desc>
|
---|
6686 | <param name="progress" type="IProgress" dir="return">
|
---|
6687 | <desc>Progress object to track the operation completion.</desc>
|
---|
6688 | </param>
|
---|
6689 | </method>
|
---|
6690 |
|
---|
6691 | <method name="registerCallback">
|
---|
6692 | <desc>
|
---|
6693 | Registers a new console callback on this instance. The methods of the
|
---|
6694 | callback interface will be called by this instance when the appropriate
|
---|
6695 | event occurs.
|
---|
6696 | </desc>
|
---|
6697 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6698 | </method>
|
---|
6699 |
|
---|
6700 | <method name="unregisterCallback">
|
---|
6701 | <desc>
|
---|
6702 | Unregisters the console callback previously registered using
|
---|
6703 | <link to="#registerCallback"/>.
|
---|
6704 | <result name="E_INVALIDARG">
|
---|
6705 | Given @a callback handler is not registered.
|
---|
6706 | </result>
|
---|
6707 | </desc>
|
---|
6708 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6709 | </method>
|
---|
6710 | </interface>
|
---|
6711 |
|
---|
6712 | <!--
|
---|
6713 | // IHost
|
---|
6714 | /////////////////////////////////////////////////////////////////////////
|
---|
6715 | -->
|
---|
6716 |
|
---|
6717 | <interface
|
---|
6718 | name="IHostDVDDrive" extends="$unknown"
|
---|
6719 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
6720 | wsmap="managed"
|
---|
6721 | >
|
---|
6722 | <desc>
|
---|
6723 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
6724 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
6725 | </desc>
|
---|
6726 |
|
---|
6727 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6728 | <desc>
|
---|
6729 | Returns the platform-specific device identifier.
|
---|
6730 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
6731 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
6732 | </desc>
|
---|
6733 | </attribute>
|
---|
6734 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6735 | <desc>
|
---|
6736 | Returns a human readable description for the drive. This
|
---|
6737 | description usually contains the product and vendor name. A
|
---|
6738 | @c null string is returned if the description is not available.
|
---|
6739 | </desc>
|
---|
6740 | </attribute>
|
---|
6741 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6742 | <desc>
|
---|
6743 | Returns the unique device identifier for the drive. This
|
---|
6744 | attribute is reserved for future use instead of
|
---|
6745 | <link to="#name"/>. Currently it is not used and may return
|
---|
6746 | @c null on some platforms.
|
---|
6747 | </desc>
|
---|
6748 | </attribute>
|
---|
6749 |
|
---|
6750 | </interface>
|
---|
6751 |
|
---|
6752 | <interface
|
---|
6753 | name="IHostFloppyDrive" extends="$unknown"
|
---|
6754 | uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
|
---|
6755 | wsmap="managed"
|
---|
6756 | >
|
---|
6757 | <desc>
|
---|
6758 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
6759 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
6760 | </desc>
|
---|
6761 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6762 | <desc>
|
---|
6763 | Returns the platform-specific device identifier.
|
---|
6764 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
6765 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
6766 | </desc>
|
---|
6767 | </attribute>
|
---|
6768 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6769 | <desc>
|
---|
6770 | Returns a human readable description for the drive. This
|
---|
6771 | description usually contains the product and vendor name. A
|
---|
6772 | @c null string is returned if the description is not available.
|
---|
6773 | </desc>
|
---|
6774 | </attribute>
|
---|
6775 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6776 | <desc>
|
---|
6777 | Returns the unique device identifier for the drive. This
|
---|
6778 | attribute is reserved for future use instead of
|
---|
6779 | <link to="#name"/>. Currently it is not used and may return
|
---|
6780 | @c null on some platforms.
|
---|
6781 | </desc>
|
---|
6782 | </attribute>
|
---|
6783 | </interface>
|
---|
6784 |
|
---|
6785 | <enum
|
---|
6786 | name="HostNetworkInterfaceMediumType"
|
---|
6787 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
6788 | >
|
---|
6789 | <desc>
|
---|
6790 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
6791 | wireless Ethernet connections.
|
---|
6792 | <see>IHostNetworkInterface</see>
|
---|
6793 | </desc>
|
---|
6794 |
|
---|
6795 | <const name="Unknown" value="0">
|
---|
6796 | <desc>
|
---|
6797 | The type of interface cannot be determined.
|
---|
6798 | </desc>
|
---|
6799 | </const>
|
---|
6800 | <const name="Ethernet" value="1">
|
---|
6801 | <desc>
|
---|
6802 | Ethernet frame encapsulation.
|
---|
6803 | </desc>
|
---|
6804 | </const>
|
---|
6805 | <const name="PPP" value="2">
|
---|
6806 | <desc>
|
---|
6807 | Point-to-point protocol encapsulation.
|
---|
6808 | </desc>
|
---|
6809 | </const>
|
---|
6810 | <const name="SLIP" value="3">
|
---|
6811 | <desc>
|
---|
6812 | Serial line IP encapsulation.
|
---|
6813 | </desc>
|
---|
6814 | </const>
|
---|
6815 | </enum>
|
---|
6816 |
|
---|
6817 | <enum
|
---|
6818 | name="HostNetworkInterfaceStatus"
|
---|
6819 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
6820 | >
|
---|
6821 | <desc>
|
---|
6822 | Current status of the interface.
|
---|
6823 | <see>IHostNetworkInterface</see>
|
---|
6824 | </desc>
|
---|
6825 |
|
---|
6826 | <const name="Unknown" value="0">
|
---|
6827 | <desc>
|
---|
6828 | The state of interface cannot be determined.
|
---|
6829 | </desc>
|
---|
6830 | </const>
|
---|
6831 | <const name="Up" value="1">
|
---|
6832 | <desc>
|
---|
6833 | The interface is fully operational.
|
---|
6834 | </desc>
|
---|
6835 | </const>
|
---|
6836 | <const name="Down" value="2">
|
---|
6837 | <desc>
|
---|
6838 | The interface is not functioning.
|
---|
6839 | </desc>
|
---|
6840 | </const>
|
---|
6841 | </enum>
|
---|
6842 |
|
---|
6843 | <enum
|
---|
6844 | name="HostNetworkInterfaceType"
|
---|
6845 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
6846 | >
|
---|
6847 | <desc>
|
---|
6848 | Network interface type.
|
---|
6849 | </desc>
|
---|
6850 | <const name="Bridged" value="1"/>
|
---|
6851 | <const name="HostOnly" value="2"/>
|
---|
6852 | </enum>
|
---|
6853 |
|
---|
6854 | <interface
|
---|
6855 | name="IHostNetworkInterface" extends="$unknown"
|
---|
6856 | uuid="88adaf3f-166b-4542-9457-0f1323507fae"
|
---|
6857 | wsmap="managed"
|
---|
6858 | >
|
---|
6859 | <desc>
|
---|
6860 | Reprents one of host's network interfaces. IP V6 address and network
|
---|
6861 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
6862 | separated by colons.
|
---|
6863 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
6864 | </desc>
|
---|
6865 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6866 | <desc>Returns the host network interface name.</desc>
|
---|
6867 | </attribute>
|
---|
6868 |
|
---|
6869 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6870 | <desc>Returns the interface UUID.</desc>
|
---|
6871 | </attribute>
|
---|
6872 |
|
---|
6873 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
6874 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
6875 | </attribute>
|
---|
6876 |
|
---|
6877 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
6878 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
6879 | </attribute>
|
---|
6880 |
|
---|
6881 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
6882 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
6883 | </attribute>
|
---|
6884 |
|
---|
6885 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
6886 | <desc>Returns the network mask of the interface.</desc>
|
---|
6887 | </attribute>
|
---|
6888 |
|
---|
6889 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
6890 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
6891 | </attribute>
|
---|
6892 |
|
---|
6893 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
6894 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
6895 | </attribute>
|
---|
6896 |
|
---|
6897 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
6898 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
6899 | </attribute>
|
---|
6900 |
|
---|
6901 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
6902 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
6903 | </attribute>
|
---|
6904 |
|
---|
6905 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
6906 | <desc>Type of protocol encapsulation used.</desc>
|
---|
6907 | </attribute>
|
---|
6908 |
|
---|
6909 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
6910 | <desc>Status of the interface.</desc>
|
---|
6911 | </attribute>
|
---|
6912 |
|
---|
6913 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
6914 | <desc>specifies the host interface type.</desc>
|
---|
6915 | </attribute>
|
---|
6916 |
|
---|
6917 | <method name="enableStaticIpConfig">
|
---|
6918 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
6919 | <param name="IPAddress" type="wstring" dir="in">
|
---|
6920 | <desc>
|
---|
6921 | IP address.
|
---|
6922 | </desc>
|
---|
6923 | </param>
|
---|
6924 | <param name="networkMask" type="wstring" dir="in">
|
---|
6925 | <desc>
|
---|
6926 | network mask.
|
---|
6927 | </desc>
|
---|
6928 | </param>
|
---|
6929 | </method>
|
---|
6930 |
|
---|
6931 | <method name="enableStaticIpConfigV6">
|
---|
6932 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
6933 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
6934 | <desc>
|
---|
6935 | IP address.
|
---|
6936 | </desc>
|
---|
6937 | </param>
|
---|
6938 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
6939 | <desc>
|
---|
6940 | network mask.
|
---|
6941 | </desc>
|
---|
6942 | </param>
|
---|
6943 | </method>
|
---|
6944 |
|
---|
6945 | <method name="enableDynamicIpConfig">
|
---|
6946 | <desc>enables the dynamic IP configuration.</desc>
|
---|
6947 | </method>
|
---|
6948 |
|
---|
6949 | <method name="dhcpRediscover">
|
---|
6950 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
6951 | </method>
|
---|
6952 |
|
---|
6953 | </interface>
|
---|
6954 |
|
---|
6955 | <interface
|
---|
6956 | name="IHost" extends="$unknown"
|
---|
6957 | uuid="926469ca-9091-42ef-928e-582d78b66c70"
|
---|
6958 | wsmap="managed"
|
---|
6959 | >
|
---|
6960 | <desc>
|
---|
6961 | The IHost interface represents the physical machine that this VirtualBox
|
---|
6962 | installation runs on.
|
---|
6963 |
|
---|
6964 | An object implementing this interface is returned by the
|
---|
6965 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
6966 | read-only information about the host's physical hardware (such as what
|
---|
6967 | processors and disks are available, what the host operating system is,
|
---|
6968 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
6969 | such as global USB device filters and host interface networking.
|
---|
6970 |
|
---|
6971 | </desc>
|
---|
6972 | <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
|
---|
6973 | <desc>List of DVD drives available on the host.</desc>
|
---|
6974 | </attribute>
|
---|
6975 |
|
---|
6976 | <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
|
---|
6977 | <desc>List of floppy drives available on the host.</desc>
|
---|
6978 | </attribute>
|
---|
6979 |
|
---|
6980 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6981 | <desc>
|
---|
6982 | List of USB devices currently attached to the host.
|
---|
6983 | Once a new device is physically attached to the host computer,
|
---|
6984 | it appears in this list and remains there until detached.
|
---|
6985 |
|
---|
6986 | <note>
|
---|
6987 | This method may set a @ref com_warnings "warning result code".
|
---|
6988 | </note>
|
---|
6989 | <note>
|
---|
6990 | If USB functionality is not available in the given edition of
|
---|
6991 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
6992 | </note>
|
---|
6993 | </desc>
|
---|
6994 | </attribute>
|
---|
6995 |
|
---|
6996 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
6997 | <desc>
|
---|
6998 | List of USB device filters in action.
|
---|
6999 | When a new device is physically attached to the host computer,
|
---|
7000 | filters from this list are applied to it (in order they are stored
|
---|
7001 | in the list). The first matched filter will determine the
|
---|
7002 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
7003 | performed on the device.
|
---|
7004 |
|
---|
7005 | Unless the device is ignored by these filters, filters of all
|
---|
7006 | currently running virtual machines
|
---|
7007 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
7008 |
|
---|
7009 | <note>
|
---|
7010 | This method may set a @ref com_warnings "warning result code".
|
---|
7011 | </note>
|
---|
7012 | <note>
|
---|
7013 | If USB functionality is not available in the given edition of
|
---|
7014 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7015 | </note>
|
---|
7016 |
|
---|
7017 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7018 | </desc>
|
---|
7019 | </attribute>
|
---|
7020 |
|
---|
7021 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
7022 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
7023 | </attribute>
|
---|
7024 |
|
---|
7025 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
7026 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
7027 | </attribute>
|
---|
7028 |
|
---|
7029 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
7030 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
7031 | </attribute>
|
---|
7032 |
|
---|
7033 | <method name="getProcessorSpeed">
|
---|
7034 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
7035 | Megahertz.
|
---|
7036 | </desc>
|
---|
7037 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7038 | <desc>
|
---|
7039 | Identifier of the CPU.
|
---|
7040 | </desc>
|
---|
7041 | </param>
|
---|
7042 | <param name="speed" type="unsigned long" dir="return">
|
---|
7043 | <desc>
|
---|
7044 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
7045 | invalid.
|
---|
7046 | </desc>
|
---|
7047 | </param>
|
---|
7048 | </method>
|
---|
7049 |
|
---|
7050 | <method name="getProcessorFeature">
|
---|
7051 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
7052 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
7053 | <desc>
|
---|
7054 | CPU Feature identifier.
|
---|
7055 | </desc>
|
---|
7056 | </param>
|
---|
7057 | <param name="supported" type="boolean" dir="return">
|
---|
7058 | <desc>
|
---|
7059 | Feature is supported or not.
|
---|
7060 | </desc>
|
---|
7061 | </param>
|
---|
7062 | </method>
|
---|
7063 |
|
---|
7064 | <method name="getProcessorDescription">
|
---|
7065 | <desc>Query the model string of a specified host CPU.
|
---|
7066 | <note>
|
---|
7067 | This function is not implemented in the current version of the
|
---|
7068 | product.
|
---|
7069 | </note>
|
---|
7070 | </desc>
|
---|
7071 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7072 | <desc>
|
---|
7073 | Identifier of the CPU.
|
---|
7074 | </desc>
|
---|
7075 | </param>
|
---|
7076 | <param name="description" type="wstring" dir="return">
|
---|
7077 | <desc>
|
---|
7078 | Model string. A NULL string is returned if value is not known or
|
---|
7079 | @a cpuId is invalid.
|
---|
7080 | </desc>
|
---|
7081 | </param>
|
---|
7082 | </method>
|
---|
7083 |
|
---|
7084 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
7085 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
7086 | </attribute>
|
---|
7087 |
|
---|
7088 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
7089 | <desc>Available system memory in the host system.</desc>
|
---|
7090 | </attribute>
|
---|
7091 |
|
---|
7092 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
7093 | <desc>Name of the host system's operating system.</desc>
|
---|
7094 | </attribute>
|
---|
7095 |
|
---|
7096 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
7097 | <desc>Host operating system's version string.</desc>
|
---|
7098 | </attribute>
|
---|
7099 |
|
---|
7100 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
7101 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
7102 | </attribute>
|
---|
7103 |
|
---|
7104 | <if target="midl">
|
---|
7105 | <method name="createHostOnlyNetworkInterface">
|
---|
7106 | <desc>
|
---|
7107 | Creates a new adapter for Host Only Networking.
|
---|
7108 | <result name="E_INVALIDARG">
|
---|
7109 | Host network interface @a name already exists.
|
---|
7110 | </result>
|
---|
7111 | </desc>
|
---|
7112 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7113 | <desc>
|
---|
7114 | Created host interface object.
|
---|
7115 | </desc>
|
---|
7116 | </param>
|
---|
7117 | <param name="progress" type="IProgress" dir="return">
|
---|
7118 | <desc>
|
---|
7119 | Progress object to track the operation completion.
|
---|
7120 | </desc>
|
---|
7121 | </param>
|
---|
7122 | </method>
|
---|
7123 | <method name="removeHostOnlyNetworkInterface">
|
---|
7124 | <desc>
|
---|
7125 | Removes the given Host Only Networking interface.
|
---|
7126 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7127 | No host network interface matching @a id found.
|
---|
7128 | </result>
|
---|
7129 | </desc>
|
---|
7130 | <param name="id" type="uuid" dir="in">
|
---|
7131 | <desc>
|
---|
7132 | Adapter GUID.
|
---|
7133 | </desc>
|
---|
7134 | </param>
|
---|
7135 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7136 | <desc>
|
---|
7137 | Removed host interface object.
|
---|
7138 | </desc>
|
---|
7139 | </param>
|
---|
7140 | <param name="progress" type="IProgress" dir="return">
|
---|
7141 | <desc>
|
---|
7142 | Progress object to track the operation completion.
|
---|
7143 | </desc>
|
---|
7144 | </param>
|
---|
7145 | </method>
|
---|
7146 | </if>
|
---|
7147 |
|
---|
7148 | <method name="createUSBDeviceFilter">
|
---|
7149 | <desc>
|
---|
7150 | Creates a new USB device filter. All attributes except
|
---|
7151 | the filter name are set to <tt>null</tt> (any match),
|
---|
7152 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
7153 |
|
---|
7154 | The created filter can be added to the list of filters using
|
---|
7155 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7156 |
|
---|
7157 | <see>#USBDeviceFilters</see>
|
---|
7158 | </desc>
|
---|
7159 | <param name="name" type="wstring" dir="in">
|
---|
7160 | <desc>
|
---|
7161 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
7162 | for more info.
|
---|
7163 | </desc>
|
---|
7164 | </param>
|
---|
7165 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7166 | <desc>Created filter object.</desc>
|
---|
7167 | </param>
|
---|
7168 | </method>
|
---|
7169 |
|
---|
7170 | <method name="insertUSBDeviceFilter">
|
---|
7171 | <desc>
|
---|
7172 | Inserts the given USB device to the specified position
|
---|
7173 | in the list of filters.
|
---|
7174 |
|
---|
7175 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
7176 | position is equal to or greater than the number of elements in
|
---|
7177 | the list, the filter is added at the end of the collection.
|
---|
7178 |
|
---|
7179 | <note>
|
---|
7180 | Duplicates are not allowed, so an attempt to insert a
|
---|
7181 | filter that is already in the list, will return an
|
---|
7182 | error.
|
---|
7183 | </note>
|
---|
7184 | <note>
|
---|
7185 | This method may set a @ref com_warnings "warning result code".
|
---|
7186 | </note>
|
---|
7187 | <note>
|
---|
7188 | If USB functionality is not available in the given edition of
|
---|
7189 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7190 | </note>
|
---|
7191 |
|
---|
7192 | <see>#USBDeviceFilters</see>
|
---|
7193 |
|
---|
7194 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7195 | USB device filter is not created within this VirtualBox instance.
|
---|
7196 | </result>
|
---|
7197 | <result name="E_INVALIDARG">
|
---|
7198 | USB device filter already in list.
|
---|
7199 | </result>
|
---|
7200 |
|
---|
7201 | </desc>
|
---|
7202 | <param name="position" type="unsigned long" dir="in">
|
---|
7203 | <desc>Position to insert the filter to.</desc>
|
---|
7204 | </param>
|
---|
7205 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7206 | <desc>USB device filter to insert.</desc>
|
---|
7207 | </param>
|
---|
7208 | </method>
|
---|
7209 |
|
---|
7210 | <method name="removeUSBDeviceFilter">
|
---|
7211 | <desc>
|
---|
7212 | Removes a USB device filter from the specified position in the
|
---|
7213 | list of filters.
|
---|
7214 |
|
---|
7215 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
7216 | position equal to or greater than the number of elements in
|
---|
7217 | the list will produce an error.
|
---|
7218 |
|
---|
7219 | <note>
|
---|
7220 | This method may set a @ref com_warnings "warning result code".
|
---|
7221 | </note>
|
---|
7222 | <note>
|
---|
7223 | If USB functionality is not available in the given edition of
|
---|
7224 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7225 | </note>
|
---|
7226 |
|
---|
7227 | <see>#USBDeviceFilters</see>
|
---|
7228 |
|
---|
7229 | <result name="E_INVALIDARG">
|
---|
7230 | USB device filter list empty or invalid @a position.
|
---|
7231 | </result>
|
---|
7232 |
|
---|
7233 | </desc>
|
---|
7234 | <param name="position" type="unsigned long" dir="in">
|
---|
7235 | <desc>Position to remove the filter from.</desc>
|
---|
7236 | </param>
|
---|
7237 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7238 | <desc>Removed USB device filter.</desc>
|
---|
7239 | </param>
|
---|
7240 | </method>
|
---|
7241 |
|
---|
7242 | <method name="findHostDVDDrive">
|
---|
7243 | <desc>
|
---|
7244 | Searches for a host DVD drive with the given @c name.
|
---|
7245 |
|
---|
7246 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7247 | Given @c name does not correspond to any host drive.
|
---|
7248 | </result>
|
---|
7249 |
|
---|
7250 | </desc>
|
---|
7251 | <param name="name" type="wstring" dir="in">
|
---|
7252 | <desc>Name of the host drive to search for</desc>
|
---|
7253 | </param>
|
---|
7254 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
7255 | <desc>Found host drive object</desc>
|
---|
7256 | </param>
|
---|
7257 | </method>
|
---|
7258 |
|
---|
7259 | <method name="findHostFloppyDrive">
|
---|
7260 | <desc>
|
---|
7261 | Searches for a host floppy drive with the given @c name.
|
---|
7262 |
|
---|
7263 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7264 | Given @c name does not correspond to any host floppy drive.
|
---|
7265 | </result>
|
---|
7266 |
|
---|
7267 | </desc>
|
---|
7268 | <param name="name" type="wstring" dir="in">
|
---|
7269 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7270 | </param>
|
---|
7271 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
7272 | <desc>Found host floppy drive object</desc>
|
---|
7273 | </param>
|
---|
7274 | </method>
|
---|
7275 |
|
---|
7276 | <method name="findHostNetworkInterfaceByName">
|
---|
7277 | <desc>
|
---|
7278 | Searches through all host network interfaces for an interface with
|
---|
7279 | the given @c name.
|
---|
7280 | <note>
|
---|
7281 | The method returns an error if the given @c name does not
|
---|
7282 | correspond to any host network interface.
|
---|
7283 | </note>
|
---|
7284 | </desc>
|
---|
7285 | <param name="name" type="wstring" dir="in">
|
---|
7286 | <desc>Name of the host network interface to search for.</desc>
|
---|
7287 | </param>
|
---|
7288 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7289 | <desc>Found host network interface object.</desc>
|
---|
7290 | </param>
|
---|
7291 | </method>
|
---|
7292 | <method name="findHostNetworkInterfaceById">
|
---|
7293 | <desc>
|
---|
7294 | Searches through all host network interfaces for an interface with
|
---|
7295 | the given GUID.
|
---|
7296 | <note>
|
---|
7297 | The method returns an error if the given GUID does not
|
---|
7298 | correspond to any host network interface.
|
---|
7299 | </note>
|
---|
7300 | </desc>
|
---|
7301 | <param name="id" type="uuid" dir="in">
|
---|
7302 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7303 | </param>
|
---|
7304 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7305 | <desc>Found host network interface object.</desc>
|
---|
7306 | </param>
|
---|
7307 | </method>
|
---|
7308 | <method name="findHostNetworkInterfacesOfType">
|
---|
7309 | <desc>
|
---|
7310 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7311 | </desc>
|
---|
7312 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7313 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7314 | </param>
|
---|
7315 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7316 | <desc>Found host network interface objects.</desc>
|
---|
7317 | </param>
|
---|
7318 | </method>
|
---|
7319 |
|
---|
7320 | <method name="findUSBDeviceById">
|
---|
7321 | <desc>
|
---|
7322 | Searches for a USB device with the given UUID.
|
---|
7323 |
|
---|
7324 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7325 | Given @id does not correspond to any USB device.
|
---|
7326 | </result>
|
---|
7327 |
|
---|
7328 | <see>IHostUSBDevice::id</see>
|
---|
7329 | </desc>
|
---|
7330 | <param name="id" type="uuid" dir="in">
|
---|
7331 | <desc>UUID of the USB device to search for.</desc>
|
---|
7332 | </param>
|
---|
7333 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7334 | <desc>Found USB device object.</desc>
|
---|
7335 | </param>
|
---|
7336 | </method>
|
---|
7337 |
|
---|
7338 | <method name="findUSBDeviceByAddress">
|
---|
7339 | <desc>
|
---|
7340 | Searches for a USB device with the given host address.
|
---|
7341 |
|
---|
7342 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7343 | Given @c name does not correspond to any USB device.
|
---|
7344 | </result>
|
---|
7345 |
|
---|
7346 | <see>IHostUSBDevice::address</see>
|
---|
7347 | </desc>
|
---|
7348 | <param name="name" type="wstring" dir="in">
|
---|
7349 | <desc>
|
---|
7350 | Address of the USB device (as assigned by the host) to
|
---|
7351 | search for.
|
---|
7352 | </desc>
|
---|
7353 | </param>
|
---|
7354 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7355 | <desc>Found USB device object.</desc>
|
---|
7356 | </param>
|
---|
7357 | </method>
|
---|
7358 |
|
---|
7359 | </interface>
|
---|
7360 |
|
---|
7361 | <!--
|
---|
7362 | // ISystemProperties
|
---|
7363 | /////////////////////////////////////////////////////////////////////////
|
---|
7364 | -->
|
---|
7365 |
|
---|
7366 | <interface
|
---|
7367 | name="ISystemProperties"
|
---|
7368 | extends="$unknown"
|
---|
7369 | uuid="0760e03f-06d0-481e-9f81-be43fef092ba"
|
---|
7370 | wsmap="managed"
|
---|
7371 | >
|
---|
7372 | <desc>
|
---|
7373 | The ISystemProperties interface represents global properties of the given
|
---|
7374 | VirtualBox installation.
|
---|
7375 |
|
---|
7376 | These properties define limits and default values for various attributes
|
---|
7377 | and parameters. Most of the properties are read-only, but some can be
|
---|
7378 | changed by a user.
|
---|
7379 | </desc>
|
---|
7380 |
|
---|
7381 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7382 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7383 | </attribute>
|
---|
7384 |
|
---|
7385 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7386 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7387 | </attribute>
|
---|
7388 |
|
---|
7389 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7390 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7391 | </attribute>
|
---|
7392 |
|
---|
7393 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7394 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7395 | </attribute>
|
---|
7396 |
|
---|
7397 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7398 | <desc>Minimum CPU count.</desc>
|
---|
7399 | </attribute>
|
---|
7400 |
|
---|
7401 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7402 | <desc>Maximum CPU count.</desc>
|
---|
7403 | </attribute>
|
---|
7404 |
|
---|
7405 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
7406 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
7407 | </attribute>
|
---|
7408 |
|
---|
7409 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
7410 | <desc>
|
---|
7411 | Number of network adapters associated with every
|
---|
7412 | <link to="IMachine"/> instance.
|
---|
7413 | </desc>
|
---|
7414 | </attribute>
|
---|
7415 |
|
---|
7416 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7417 | <desc>
|
---|
7418 | Number of serial ports associated with every
|
---|
7419 | <link to="IMachine"/> instance.
|
---|
7420 | </desc>
|
---|
7421 | </attribute>
|
---|
7422 |
|
---|
7423 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7424 | <desc>
|
---|
7425 | Number of parallel ports associated with every
|
---|
7426 | <link to="IMachine"/> instance.
|
---|
7427 | </desc>
|
---|
7428 | </attribute>
|
---|
7429 |
|
---|
7430 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7431 | <desc>
|
---|
7432 | Maximum device position in the boot order. This value corresponds
|
---|
7433 | to the total number of devices a machine can boot from, to make it
|
---|
7434 | possible to include all possible devices to the boot list.
|
---|
7435 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7436 | </desc>
|
---|
7437 | </attribute>
|
---|
7438 |
|
---|
7439 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
7440 | <desc>
|
---|
7441 | Full path to the default directory used to create new or open
|
---|
7442 | existing machines when a settings file name contains no
|
---|
7443 | path.
|
---|
7444 |
|
---|
7445 | The initial value of this property is
|
---|
7446 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
7447 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
7448 |
|
---|
7449 | <note>
|
---|
7450 | Setting this property to <tt>null</tt> will restore the
|
---|
7451 | initial value.
|
---|
7452 | </note>
|
---|
7453 | <note>
|
---|
7454 | When settings this property, the specified path can be
|
---|
7455 | absolute (full path) or relative
|
---|
7456 | to the <link to="IVirtualBox::homeFolder">
|
---|
7457 | VirtualBox home directory</link>.
|
---|
7458 | When reading this property, a full path is
|
---|
7459 | always returned.
|
---|
7460 | </note>
|
---|
7461 | <note>
|
---|
7462 | The specified path may not exist, it will be created
|
---|
7463 | when necessary.
|
---|
7464 | </note>
|
---|
7465 |
|
---|
7466 | <see>
|
---|
7467 | <link to="IVirtualBox::createMachine"/>,
|
---|
7468 | <link to="IVirtualBox::openMachine"/>
|
---|
7469 | </see>
|
---|
7470 | </desc>
|
---|
7471 | </attribute>
|
---|
7472 |
|
---|
7473 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
7474 | <desc>
|
---|
7475 | Full path to the default directory used to create new or open existing
|
---|
7476 | virtual disks.
|
---|
7477 |
|
---|
7478 | This path is used when the storage unit of a hard disk is a regular file
|
---|
7479 | in the host's file system and only a file name that contains no path is
|
---|
7480 | given.
|
---|
7481 |
|
---|
7482 | The initial value of this property is
|
---|
7483 | <tt><</tt>
|
---|
7484 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
7485 | <tt>>/HardDisks</tt>.
|
---|
7486 |
|
---|
7487 | <note>
|
---|
7488 | Setting this property to <tt>null</tt> will restore the
|
---|
7489 | initial value.
|
---|
7490 | </note>
|
---|
7491 | <note>
|
---|
7492 | When settings this property, the specified path can be relative
|
---|
7493 | to the
|
---|
7494 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
7495 | absolute. When reading this property, a full path is
|
---|
7496 | always returned.
|
---|
7497 | </note>
|
---|
7498 | <note>
|
---|
7499 | The specified path may not exist, it will be created
|
---|
7500 | when necessary.
|
---|
7501 | </note>
|
---|
7502 |
|
---|
7503 | <see>
|
---|
7504 | IHardDisk,
|
---|
7505 | <link to="IVirtualBox::createHardDisk"/>,
|
---|
7506 | <link to="IVirtualBox::openHardDisk"/>,
|
---|
7507 | <link to="IMedium::location"/>
|
---|
7508 | </see>
|
---|
7509 | </desc>
|
---|
7510 | </attribute>
|
---|
7511 |
|
---|
7512 | <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
|
---|
7513 | <desc>
|
---|
7514 | List of all hard disk storage formats supported by this VirtualBox
|
---|
7515 | installation.
|
---|
7516 |
|
---|
7517 | Keep in mind that the hard disk format identifier
|
---|
7518 | (<link to="IHardDiskFormat::id"/>) used in other API calls like
|
---|
7519 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
7520 | hard disk format is a case-insensitive string. This means that, for
|
---|
7521 | example, all of the following strings:
|
---|
7522 | <pre>
|
---|
7523 | "VDI"
|
---|
7524 | "vdi"
|
---|
7525 | "VdI"</pre>
|
---|
7526 | refer to the same hard disk format.
|
---|
7527 |
|
---|
7528 | Note that the virtual hard disk framework is backend-based, therefore
|
---|
7529 | the list of supported formats depends on what backends are currently
|
---|
7530 | installed.
|
---|
7531 |
|
---|
7532 | <see>
|
---|
7533 | <link to="IHardDiskFormat"/>,
|
---|
7534 | </see>
|
---|
7535 | </desc>
|
---|
7536 | </attribute>
|
---|
7537 |
|
---|
7538 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
7539 | <desc>
|
---|
7540 | Identifier of the default hard disk format used by VirtualBox.
|
---|
7541 |
|
---|
7542 | The hard disk format set by this attribute is used by VirtualBox
|
---|
7543 | when the hard disk format was not specified explicitly. One example is
|
---|
7544 | <link to="IVirtualBox::createHardDisk"/> with the <tt>null</tt>
|
---|
7545 | format argument. A more complex example is implicit creation of
|
---|
7546 | differencing hard disks when taking a snapshot of a virtual machine:
|
---|
7547 | this operation will try to use a format of the parent hard disk first
|
---|
7548 | and if this format does not support differencing hard disks the default
|
---|
7549 | format specified by this argument will be used.
|
---|
7550 |
|
---|
7551 | The list of supported hard disk formats may be obtained by the
|
---|
7552 | <link to="#hardDiskFormats"/> call. Note that the default hard disk
|
---|
7553 | format must have a capability to create differencing hard disks;
|
---|
7554 | otherwise opeartions that create hard disks implicitly may fail
|
---|
7555 | unexpectedly.
|
---|
7556 |
|
---|
7557 | The initial value of this property is <tt>VDI</tt> in the current
|
---|
7558 | version of the VirtualBox product, but may change in the future.
|
---|
7559 |
|
---|
7560 | <note>
|
---|
7561 | Setting this property to <tt>null</tt> will restore the
|
---|
7562 | initial value.
|
---|
7563 | </note>
|
---|
7564 |
|
---|
7565 | <see>
|
---|
7566 | <link to="#hardDiskFormats"/>,
|
---|
7567 | <link to="IHardDiskFormat::id"/>,
|
---|
7568 | <link to="IVirtualBox::createHardDisk"/>
|
---|
7569 | </see>
|
---|
7570 | </desc>
|
---|
7571 | </attribute>
|
---|
7572 |
|
---|
7573 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
7574 | <desc>
|
---|
7575 | Library that provides authentication for VRDP clients. The library
|
---|
7576 | is used if a virtual machine's authentication type is set to "external"
|
---|
7577 | in the VM RemoteDisplay configuration.
|
---|
7578 |
|
---|
7579 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
7580 | A full path can be specified; if not, then the library must reside on the
|
---|
7581 | system's default library path.
|
---|
7582 |
|
---|
7583 | The default value of this property is <tt>VRDPAuth</tt>. There is a library
|
---|
7584 | of that name in one of the default VirtualBox library directories.
|
---|
7585 |
|
---|
7586 | For details about VirtualBox authentication libraries and how to implement
|
---|
7587 | them, please refer to the VirtualBox manual.
|
---|
7588 |
|
---|
7589 | <note>
|
---|
7590 | Setting this property to <tt>null</tt> will restore the
|
---|
7591 | initial value.
|
---|
7592 | </note>
|
---|
7593 | </desc>
|
---|
7594 | </attribute>
|
---|
7595 |
|
---|
7596 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
7597 | <desc>
|
---|
7598 | Library that provides authentication for webservice clients. The library
|
---|
7599 | is used if a virtual machine's authentication type is set to "external"
|
---|
7600 | in the VM RemoteDisplay configuration and will be called from
|
---|
7601 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
7602 |
|
---|
7603 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
7604 | there is no per-VM setting for this, as the webservice is a global
|
---|
7605 | resource (if it is running). Only for this setting (for the webservice),
|
---|
7606 | setting this value to a literal "null" string disables authentication,
|
---|
7607 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
7608 | no matter what user name and password are supplied.
|
---|
7609 |
|
---|
7610 | The initial value of this property is <tt>VRDPAuth</tt>,
|
---|
7611 | meaning that the webservice will use the same authentication
|
---|
7612 | library that is used by default for VBoxVRDP (again, see
|
---|
7613 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
7614 | The format and calling convention of authentication libraries
|
---|
7615 | is the same for the webservice as it is for VBoxVRDP.
|
---|
7616 |
|
---|
7617 | </desc>
|
---|
7618 | </attribute>
|
---|
7619 |
|
---|
7620 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
7621 | <desc>
|
---|
7622 | This specifies the default value for hardware virtualization
|
---|
7623 | extensions. If enabled, virtual machines will make use of
|
---|
7624 | hardware virtualization extensions such as Intel VT-x and
|
---|
7625 | AMD-V by default. This value can be overridden by each VM
|
---|
7626 | using their <link to="IMachine::HWVirtExEnabled" /> property.
|
---|
7627 | </desc>
|
---|
7628 | </attribute>
|
---|
7629 |
|
---|
7630 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
7631 | <desc>
|
---|
7632 | This value specifies how many old release log files are kept.
|
---|
7633 | </desc>
|
---|
7634 | </attribute>
|
---|
7635 | </interface>
|
---|
7636 |
|
---|
7637 | <!--
|
---|
7638 | // IGuest
|
---|
7639 | /////////////////////////////////////////////////////////////////////////
|
---|
7640 | -->
|
---|
7641 |
|
---|
7642 | <interface
|
---|
7643 | name="IGuestOSType" extends="$unknown"
|
---|
7644 | uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
|
---|
7645 | wsmap="struct"
|
---|
7646 | >
|
---|
7647 | <desc>
|
---|
7648 | </desc>
|
---|
7649 |
|
---|
7650 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
7651 | <desc>Guest OS family identifier string.</desc>
|
---|
7652 | </attribute>
|
---|
7653 |
|
---|
7654 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
7655 | <desc>Human readable description of the guest OS family.</desc>
|
---|
7656 | </attribute>
|
---|
7657 |
|
---|
7658 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7659 | <desc>Guest OS identifier string.</desc>
|
---|
7660 | </attribute>
|
---|
7661 |
|
---|
7662 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7663 | <desc>Human readable description of the guest OS.</desc>
|
---|
7664 | </attribute>
|
---|
7665 |
|
---|
7666 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
7667 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
7668 | </attribute>
|
---|
7669 |
|
---|
7670 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
7671 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
7672 | </attribute>
|
---|
7673 |
|
---|
7674 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
7675 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
7676 | </attribute>
|
---|
7677 |
|
---|
7678 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
7679 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
7680 | </attribute>
|
---|
7681 |
|
---|
7682 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
7683 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
7684 | </attribute>
|
---|
7685 |
|
---|
7686 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
7687 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
7688 | </attribute>
|
---|
7689 |
|
---|
7690 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
7691 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
7692 | </attribute>
|
---|
7693 | </interface>
|
---|
7694 |
|
---|
7695 | <interface
|
---|
7696 | name="IGuest" extends="$unknown"
|
---|
7697 | uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
|
---|
7698 |
|
---|
7699 | wsmap="suppress"
|
---|
7700 | >
|
---|
7701 | <desc>
|
---|
7702 | The IGuest interface represents information about the operating system
|
---|
7703 | running inside the virtual machine. Used in
|
---|
7704 | <link to="IConsole::guest"/>.
|
---|
7705 |
|
---|
7706 | IGuest provides information about the guest operating system, whether
|
---|
7707 | Guest Additions are installed and other OS-specific virtual machine
|
---|
7708 | properties.
|
---|
7709 | </desc>
|
---|
7710 |
|
---|
7711 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
7712 | <desc>
|
---|
7713 | Identifier of the Guest OS type as reported by the Guest
|
---|
7714 | Additions.
|
---|
7715 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
7716 | an IGuestOSType object representing details about the given
|
---|
7717 | Guest OS type.
|
---|
7718 | <note>
|
---|
7719 | If Guest Additions are not installed, this value will be
|
---|
7720 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
7721 | </note>
|
---|
7722 | </desc>
|
---|
7723 | </attribute>
|
---|
7724 |
|
---|
7725 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
7726 | <desc>
|
---|
7727 | Flag whether the Guest Additions are installed and active
|
---|
7728 | in which case their version will be returned by the
|
---|
7729 | <link to="#additionsVersion"/> property.
|
---|
7730 | </desc>
|
---|
7731 | </attribute>
|
---|
7732 |
|
---|
7733 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
7734 | <desc>
|
---|
7735 | Version of the Guest Additions (3 decimal numbers separated
|
---|
7736 | by dots) or empty when the Additions are not installed. The
|
---|
7737 | Additions may also report a version but yet not be active as
|
---|
7738 | the version might be refused by VirtualBox (incompatible) or
|
---|
7739 | other failures occurred.
|
---|
7740 | </desc>
|
---|
7741 | </attribute>
|
---|
7742 |
|
---|
7743 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
7744 | <desc>
|
---|
7745 | Flag whether seamless guest display rendering (seamless desktop
|
---|
7746 | integration) is supported.
|
---|
7747 | </desc>
|
---|
7748 | </attribute>
|
---|
7749 |
|
---|
7750 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
7751 | <desc>
|
---|
7752 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
7753 | seamless rendering will not work, resize hints are not immediately
|
---|
7754 | acted on and guest display resizes are probably not initiated by
|
---|
7755 | the guest additions.
|
---|
7756 | </desc>
|
---|
7757 | </attribute>
|
---|
7758 |
|
---|
7759 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
7760 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
7761 | </attribute>
|
---|
7762 |
|
---|
7763 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
7764 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
7765 | </attribute>
|
---|
7766 |
|
---|
7767 | <method name="setCredentials">
|
---|
7768 | <desc>
|
---|
7769 | Store login credentials that can be queried by guest operating
|
---|
7770 | systems with Additions installed. The credentials are transient
|
---|
7771 | to the session and the guest may also choose to erase them. Note
|
---|
7772 | that the caller cannot determine whether the guest operating system
|
---|
7773 | has queried or made use of the credentials.
|
---|
7774 |
|
---|
7775 | <result name="VBOX_E_VM_ERROR">
|
---|
7776 | VMM device is not available.
|
---|
7777 | </result>
|
---|
7778 |
|
---|
7779 | </desc>
|
---|
7780 | <param name="userName" type="wstring" dir="in">
|
---|
7781 | <desc>User name string, can be empty</desc>
|
---|
7782 | </param>
|
---|
7783 | <param name="password" type="wstring" dir="in">
|
---|
7784 | <desc>Password string, can be empty</desc>
|
---|
7785 | </param>
|
---|
7786 | <param name="domain" type="wstring" dir="in">
|
---|
7787 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
7788 | </param>
|
---|
7789 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
7790 | <desc>
|
---|
7791 | Flag whether the guest should alternatively allow the user to
|
---|
7792 | interactively specify different credentials. This flag might
|
---|
7793 | not be supported by all versions of the Additions.
|
---|
7794 | </desc>
|
---|
7795 | </param>
|
---|
7796 | </method>
|
---|
7797 |
|
---|
7798 | <method name="getStatistic">
|
---|
7799 | <desc>
|
---|
7800 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
7801 | </desc>
|
---|
7802 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7803 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
7804 | </param>
|
---|
7805 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
7806 | <desc>Statistic type.</desc>
|
---|
7807 | </param>
|
---|
7808 | <param name="statVal" type="unsigned long" dir="out">
|
---|
7809 | <desc>Statistics value</desc>
|
---|
7810 | </param>
|
---|
7811 | </method>
|
---|
7812 |
|
---|
7813 | </interface>
|
---|
7814 |
|
---|
7815 |
|
---|
7816 | <!--
|
---|
7817 | // IProgress
|
---|
7818 | /////////////////////////////////////////////////////////////////////////
|
---|
7819 | -->
|
---|
7820 |
|
---|
7821 | <interface
|
---|
7822 | name="IProgress" extends="$unknown"
|
---|
7823 | uuid="c4f94e6b-2273-446b-9539-4c05bb416fe7"
|
---|
7824 | wsmap="managed"
|
---|
7825 | >
|
---|
7826 | <desc>
|
---|
7827 | The IProgress interface is used to track and control
|
---|
7828 | asynchronous tasks within VirtualBox.
|
---|
7829 |
|
---|
7830 | An instance of this is returned every time VirtualBox starts
|
---|
7831 | an asynchronous task (in other words, a separate thread) which
|
---|
7832 | continues to run after a method call returns. For example,
|
---|
7833 | <link to="IConsole::saveState" />, which saves the state of
|
---|
7834 | a running virtual machine, can take a long time to complete.
|
---|
7835 | To be able to display a progress bar, a user interface such as
|
---|
7836 | the VirtualBox graphical user interface can use the IProgress
|
---|
7837 | object returned by that method.
|
---|
7838 |
|
---|
7839 | Note that IProgress is a "read-only" interface in the sense
|
---|
7840 | that only the VirtualBox internals behind the Main API can
|
---|
7841 | create and manipulate progress objects, whereas client code
|
---|
7842 | can only use the IProgress object to monitor a task's
|
---|
7843 | progress and, if <link to="#cancelable" /> is true,
|
---|
7844 | cancel the task by calling <link to="#cancel" />.
|
---|
7845 |
|
---|
7846 | A task represented by IProgress consists of either one or
|
---|
7847 | several sub-operations that run sequentially, one by one (see
|
---|
7848 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
7849 | Every operation is identified by a number (starting from 0)
|
---|
7850 | and has a separate description.
|
---|
7851 |
|
---|
7852 | You can find the individual percentage of completion of the current
|
---|
7853 | operation in <link to="#operationPercent" /> and the
|
---|
7854 | percentage of completion of the task as a whole
|
---|
7855 | in <link to="#percent" />.
|
---|
7856 |
|
---|
7857 | Similarly, you can wait for the completion of a particular
|
---|
7858 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
7859 | for the completion of the whole task via
|
---|
7860 | <link to="#waitForCompletion" />.
|
---|
7861 | </desc>
|
---|
7862 |
|
---|
7863 | <attribute name="id" type="uuid" readonly="yes">
|
---|
7864 | <desc>ID of the task.</desc>
|
---|
7865 | </attribute>
|
---|
7866 |
|
---|
7867 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7868 | <desc>Description of the task.</desc>
|
---|
7869 | </attribute>
|
---|
7870 |
|
---|
7871 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
7872 | <desc>Initiator of the task.</desc>
|
---|
7873 | </attribute>
|
---|
7874 |
|
---|
7875 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
7876 | <desc>Whether the task can be interrupted.</desc>
|
---|
7877 | </attribute>
|
---|
7878 |
|
---|
7879 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
7880 | <desc>
|
---|
7881 | Current progress value of the task as a whole, in percent.
|
---|
7882 | This value depends on how many operations are already complete.
|
---|
7883 | Returns 100 if <link to="#completed" /> is true.
|
---|
7884 | </desc>
|
---|
7885 | </attribute>
|
---|
7886 |
|
---|
7887 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
7888 | <desc>
|
---|
7889 | Estimated remaining time until the task completes, in
|
---|
7890 | seconds. Returns 0 once the task has completed; returns -1
|
---|
7891 | if the remaining time cannot be computed, in particular if
|
---|
7892 | the current progress is 0.
|
---|
7893 |
|
---|
7894 | Even if a value is returned, the estimate will be unreliable
|
---|
7895 | for low progress values. It will become more reliable as the
|
---|
7896 | task progresses; it is not recommended to display an ETA
|
---|
7897 | before at least 20% of a task have completed.
|
---|
7898 | </desc>
|
---|
7899 | </attribute>
|
---|
7900 |
|
---|
7901 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
7902 | <desc>Whether the task has been completed.</desc>
|
---|
7903 | </attribute>
|
---|
7904 |
|
---|
7905 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
7906 | <desc>Whether the task has been canceled.</desc>
|
---|
7907 | </attribute>
|
---|
7908 |
|
---|
7909 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
7910 | <desc>
|
---|
7911 | Result code of the progress task.
|
---|
7912 | Valid only if <link to="#completed"/> is true.
|
---|
7913 | </desc>
|
---|
7914 | </attribute>
|
---|
7915 |
|
---|
7916 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
7917 | <desc>
|
---|
7918 | Extended information about the unsuccessful result of the
|
---|
7919 | progress operation. May be NULL if no extended information
|
---|
7920 | is available.
|
---|
7921 | Valid only if <link to="#completed"/> is true and
|
---|
7922 | <link to="#resultCode"/> indicates a failure.
|
---|
7923 | </desc>
|
---|
7924 | </attribute>
|
---|
7925 |
|
---|
7926 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
7927 | <desc>
|
---|
7928 | Number of sub-operations this task is divided into.
|
---|
7929 | Every task consists of at least one suboperation.
|
---|
7930 | </desc>
|
---|
7931 | </attribute>
|
---|
7932 |
|
---|
7933 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
7934 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
7935 | </attribute>
|
---|
7936 |
|
---|
7937 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
7938 | <desc>
|
---|
7939 | Description of the sub-operation being currently executed.
|
---|
7940 | </desc>
|
---|
7941 | </attribute>
|
---|
7942 |
|
---|
7943 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
7944 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
7945 | </attribute>
|
---|
7946 |
|
---|
7947 | <method name="waitForCompletion">
|
---|
7948 | <desc>
|
---|
7949 | Waits until the task is done (including all sub-operations)
|
---|
7950 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
7951 |
|
---|
7952 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7953 | Failed to wait for task completion.
|
---|
7954 | </result>
|
---|
7955 | </desc>
|
---|
7956 |
|
---|
7957 | <param name="timeout" type="long" dir="in">
|
---|
7958 | </param>
|
---|
7959 | </method>
|
---|
7960 |
|
---|
7961 | <method name="waitForOperationCompletion">
|
---|
7962 | <desc>
|
---|
7963 | Waits until the given operation is done with a given timeout in
|
---|
7964 | milliseconds; specify -1 for an indefinite wait.
|
---|
7965 |
|
---|
7966 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7967 | Failed to wait for operation completion.
|
---|
7968 | </result>
|
---|
7969 |
|
---|
7970 | </desc>
|
---|
7971 | <param name="operation" type="unsigned long" dir="in">
|
---|
7972 | <desc>
|
---|
7973 | Number of the operation to wait for.
|
---|
7974 | Must be less than <link to="#operationCount"/>.
|
---|
7975 | </desc>
|
---|
7976 | </param>
|
---|
7977 | <param name="timeout" type="long" dir="in">
|
---|
7978 | </param>
|
---|
7979 | </method>
|
---|
7980 |
|
---|
7981 | <method name="cancel">
|
---|
7982 | <desc>
|
---|
7983 | Cancels the task.
|
---|
7984 | <note>
|
---|
7985 | If <link to="#cancelable"/> is <tt>false</tt>, then
|
---|
7986 | this method will fail.
|
---|
7987 | </note>
|
---|
7988 |
|
---|
7989 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7990 | Operation cannot be canceled.
|
---|
7991 | </result>
|
---|
7992 |
|
---|
7993 | </desc>
|
---|
7994 | </method>
|
---|
7995 |
|
---|
7996 | </interface>
|
---|
7997 |
|
---|
7998 |
|
---|
7999 | <!--
|
---|
8000 | // ISnapshot
|
---|
8001 | /////////////////////////////////////////////////////////////////////////
|
---|
8002 | -->
|
---|
8003 |
|
---|
8004 | <interface
|
---|
8005 | name="ISnapshot" extends="$unknown"
|
---|
8006 | uuid="5db6b1d9-c76b-4424-a6f4-8257f642d6ea"
|
---|
8007 | wsmap="managed"
|
---|
8008 | >
|
---|
8009 | <desc>
|
---|
8010 | The ISnapshot interface represents a snapshot of the virtual
|
---|
8011 | machine.
|
---|
8012 |
|
---|
8013 | The <i>snapshot</i> stores all the information about a virtual
|
---|
8014 | machine necessary to bring it to exactly the same state as it was at
|
---|
8015 | the time of taking the snapshot. The snapshot includes:
|
---|
8016 |
|
---|
8017 | <ul>
|
---|
8018 | <li>all settings of the virtual machine (i.e. its hardware
|
---|
8019 | configuration: RAM size, attached hard disks, etc.)
|
---|
8020 | </li>
|
---|
8021 | <li>the execution state of the virtual machine (memory contents,
|
---|
8022 | CPU state, etc.).
|
---|
8023 | </li>
|
---|
8024 | </ul>
|
---|
8025 |
|
---|
8026 | Snapshots can be <i>offline</i> (taken when the VM is powered off)
|
---|
8027 | or <i>online</i> (taken when the VM is running). The execution
|
---|
8028 | state of the offline snapshot is called a <i>zero execution state</i>
|
---|
8029 | (it doesn't actually contain any information about memory contents
|
---|
8030 | or the CPU state, assuming that all hardware is just powered off).
|
---|
8031 |
|
---|
8032 | <h3>Snapshot branches</h3>
|
---|
8033 |
|
---|
8034 | Snapshots can be chained. Chained snapshots form a branch where
|
---|
8035 | every next snapshot is based on the previous one. This chaining is
|
---|
8036 | mostly related to hard disk branching (see <link to="IHardDisk"/>
|
---|
8037 | description). This means that every time a new snapshot is created,
|
---|
8038 | a new differencing hard disk is implicitly created for all normal
|
---|
8039 | hard disks attached to the given virtual machine. This allows to
|
---|
8040 | fully restore hard disk contents when the machine is later reverted
|
---|
8041 | to a particular snapshot.
|
---|
8042 |
|
---|
8043 | In the current implementation, multiple snapshot branches within one
|
---|
8044 | virtual machine are not allowed. Every machine has a single branch,
|
---|
8045 | and <link to="IConsole::takeSnapshot"/> operation adds a new
|
---|
8046 | snapshot to the top of that branch.
|
---|
8047 |
|
---|
8048 | Existing snapshots can be discarded using
|
---|
8049 | <link to="IConsole::discardSnapshot"/>.
|
---|
8050 |
|
---|
8051 | <h3>Current snapshot</h3>
|
---|
8052 |
|
---|
8053 | Every virtual machine has a current snapshot, identified by
|
---|
8054 | <link to="IMachine::currentSnapshot"/>. This snapshot is used as
|
---|
8055 | a base for the <i>current machine state</i> (see below), to the effect
|
---|
8056 | that all normal hard disks of the machine and its execution
|
---|
8057 | state are based on this snapshot.
|
---|
8058 |
|
---|
8059 | In the current implementation, the current snapshot is always the
|
---|
8060 | last taken snapshot (i.e. the head snapshot on the branch) and it
|
---|
8061 | cannot be changed.
|
---|
8062 |
|
---|
8063 | The current snapshot is <tt>null</tt> if the machine doesn't have
|
---|
8064 | snapshots at all; in this case the current machine state is just
|
---|
8065 | current settings of this machine plus its current execution state.
|
---|
8066 |
|
---|
8067 | <h3>Current machine state</h3>
|
---|
8068 |
|
---|
8069 | The current machine state is what represented by IMachine instances got
|
---|
8070 | directly from IVirtualBox
|
---|
8071 | using <link
|
---|
8072 | to="IVirtualBox::getMachine">getMachine()</link>, <link
|
---|
8073 | to="IVirtualBox::findMachine">findMachine()</link>, etc. (as opposed
|
---|
8074 | to instances returned by <link to="ISnapshot::machine"/>). This state
|
---|
8075 | is always used when the machine is <link to="IConsole::powerUp"> powered
|
---|
8076 | on</link>.
|
---|
8077 |
|
---|
8078 | The current machine state also includes the current execution state.
|
---|
8079 | If the machine is being currently executed
|
---|
8080 | (<link to="IMachine::state"/> is <link to="MachineState_Running"/>
|
---|
8081 | and above), its execution state is just what's happening now.
|
---|
8082 | If it is powered off (<link to="MachineState_PoweredOff"/> or
|
---|
8083 | <link to="MachineState_Aborted"/>), it has a zero execution state.
|
---|
8084 | If the machine is saved (<link to="MachineState_Saved"/>), its
|
---|
8085 | execution state is what saved in the execution state file
|
---|
8086 | (<link to="IMachine::stateFilePath"/>).
|
---|
8087 |
|
---|
8088 | If the machine is in the saved state, then, next time it is powered
|
---|
8089 | on, its execution state will be fully restored from the saved state
|
---|
8090 | file and the execution will continue from the point where the state
|
---|
8091 | was saved.
|
---|
8092 |
|
---|
8093 | Similarly to snapshots, the current machine state can be discarded
|
---|
8094 | using <link to="IConsole::discardCurrentState"/>.
|
---|
8095 |
|
---|
8096 | <h3>Taking and discarding snapshots</h3>
|
---|
8097 |
|
---|
8098 | The table below briefly explains the meaning of every snapshot
|
---|
8099 | operation:
|
---|
8100 |
|
---|
8101 | <table>
|
---|
8102 | <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
|
---|
8103 |
|
---|
8104 | <tr><td><link to="IConsole::takeSnapshot"/></td>
|
---|
8105 |
|
---|
8106 | <td>Save the current state of the virtual machine, including all
|
---|
8107 | settings, contents of normal hard disks and the current modifications
|
---|
8108 | to immutable hard disks (for online snapshots)</td>
|
---|
8109 |
|
---|
8110 | <td>The current state is not changed (the machine will continue
|
---|
8111 | execution if it is being executed when the snapshot is
|
---|
8112 | taken)</td></tr>
|
---|
8113 |
|
---|
8114 | <tr><td><link to="IConsole::discardSnapshot"/></td>
|
---|
8115 |
|
---|
8116 | <td>Forget the state of the virtual machine stored in the snapshot:
|
---|
8117 | dismiss all saved settings and delete the saved execution state (for
|
---|
8118 | online snapshots)</td>
|
---|
8119 |
|
---|
8120 | <td>Other snapshots (including child snapshots, if any) and the
|
---|
8121 | current state are not directly affected</td></tr>
|
---|
8122 |
|
---|
8123 | <tr><td><link to="IConsole::discardCurrentState"/></td>
|
---|
8124 |
|
---|
8125 | <td>Restore the current state of the virtual machine from the state
|
---|
8126 | stored in the current snapshot, including all settings and hard disk
|
---|
8127 | contents</td>
|
---|
8128 |
|
---|
8129 | <td>The current state of the machine existed prior to this operation
|
---|
8130 | is lost</td></tr>
|
---|
8131 |
|
---|
8132 | <tr><td><link to="IConsole::discardCurrentSnapshotAndState"/></td>
|
---|
8133 |
|
---|
8134 | <td>Completely revert the virtual machine to the state it was in
|
---|
8135 | before the current snapshot has been taken</td>
|
---|
8136 |
|
---|
8137 | <td>The current state, as well as the current snapshot, are
|
---|
8138 | lost</td></tr>
|
---|
8139 |
|
---|
8140 | </table>
|
---|
8141 |
|
---|
8142 | </desc>
|
---|
8143 |
|
---|
8144 | <attribute name="id" type="uuid" readonly="yes">
|
---|
8145 | <desc>UUID of the snapshot.</desc>
|
---|
8146 | </attribute>
|
---|
8147 |
|
---|
8148 | <attribute name="name" type="wstring">
|
---|
8149 | <desc>Short name of the snapshot.</desc>
|
---|
8150 | </attribute>
|
---|
8151 |
|
---|
8152 | <attribute name="description" type="wstring">
|
---|
8153 | <desc>Optional description of the snapshot.</desc>
|
---|
8154 | </attribute>
|
---|
8155 |
|
---|
8156 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
8157 | <desc>
|
---|
8158 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
8159 | </desc>
|
---|
8160 | </attribute>
|
---|
8161 |
|
---|
8162 | <attribute name="online" type="boolean" readonly="yes">
|
---|
8163 | <desc>
|
---|
8164 | <tt>true</tt> if this snapshot is an online snapshot and
|
---|
8165 | <tt>false</tt> otherwise.
|
---|
8166 |
|
---|
8167 | <note>
|
---|
8168 | When this attribute is <tt>true</tt>, the
|
---|
8169 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8170 | <link to="#machine"/> object associated with this snapshot
|
---|
8171 | will point to the saved state file. Otherwise, it will be
|
---|
8172 | <tt>null</tt>.
|
---|
8173 | </note>
|
---|
8174 | </desc>
|
---|
8175 | </attribute>
|
---|
8176 |
|
---|
8177 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8178 | <desc>
|
---|
8179 | Virtual machine this snapshot is taken on. This object
|
---|
8180 | stores all settings the machine had when taking this snapshot.
|
---|
8181 | <note>
|
---|
8182 | The returned machine object is immutable, i.e. no
|
---|
8183 | any settings can be changed.
|
---|
8184 | </note>
|
---|
8185 | </desc>
|
---|
8186 | </attribute>
|
---|
8187 |
|
---|
8188 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8189 | <desc>
|
---|
8190 | Parent snapshot (a snapshot this one is based on).
|
---|
8191 | <note>
|
---|
8192 | It's not an error to read this attribute on a snapshot
|
---|
8193 | that doesn't have a parent -- a null object will be
|
---|
8194 | returned to indicate this.
|
---|
8195 | </note>
|
---|
8196 | </desc>
|
---|
8197 | </attribute>
|
---|
8198 |
|
---|
8199 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8200 | <desc>
|
---|
8201 | Child snapshots (all snapshots having this one as a parent).
|
---|
8202 | <note>
|
---|
8203 | In the current implementation, there can be only one
|
---|
8204 | child snapshot, or no children at all, meaning this is the
|
---|
8205 | last (head) snapshot.
|
---|
8206 | </note>
|
---|
8207 | </desc>
|
---|
8208 | </attribute>
|
---|
8209 |
|
---|
8210 | </interface>
|
---|
8211 |
|
---|
8212 |
|
---|
8213 | <!--
|
---|
8214 | // IMedia
|
---|
8215 | /////////////////////////////////////////////////////////////////////////
|
---|
8216 | -->
|
---|
8217 |
|
---|
8218 | <enum
|
---|
8219 | name="MediaState"
|
---|
8220 | uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
|
---|
8221 | >
|
---|
8222 | <desc>
|
---|
8223 | Virtual media state.
|
---|
8224 | <see>IMedia</see>
|
---|
8225 | </desc>
|
---|
8226 |
|
---|
8227 | <const name="NotCreated" value="0">
|
---|
8228 | <desc>
|
---|
8229 | Associated media storage does not exist (either was not created yet or
|
---|
8230 | was deleted).
|
---|
8231 | </desc>
|
---|
8232 | </const>
|
---|
8233 | <const name="Created" value="1">
|
---|
8234 | <desc>
|
---|
8235 | Associated storage exists and accessible.
|
---|
8236 | </desc>
|
---|
8237 | </const>
|
---|
8238 | <const name="LockedRead" value="2">
|
---|
8239 | <desc>
|
---|
8240 | Media is locked for reading, no data modification is possible.
|
---|
8241 | </desc>
|
---|
8242 | </const>
|
---|
8243 | <const name="LockedWrite" value="3">
|
---|
8244 | <desc>
|
---|
8245 | Media is locked for writing, no concurrent data reading or modification
|
---|
8246 | is possible.
|
---|
8247 | </desc>
|
---|
8248 | </const>
|
---|
8249 | <const name="Inaccessible" value="4">
|
---|
8250 | <desc>
|
---|
8251 | Associated media storage is not accessible.
|
---|
8252 | </desc>
|
---|
8253 | </const>
|
---|
8254 | <const name="Creating" value="5">
|
---|
8255 | <desc>
|
---|
8256 | Associated media storage is being created.
|
---|
8257 | </desc>
|
---|
8258 | </const>
|
---|
8259 | <const name="Deleting" value="6">
|
---|
8260 | <desc>
|
---|
8261 | Associated media storage is being deleted.
|
---|
8262 | </desc>
|
---|
8263 | </const>
|
---|
8264 | </enum>
|
---|
8265 |
|
---|
8266 | <interface
|
---|
8267 | name="IMedium" extends="$unknown"
|
---|
8268 | uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
|
---|
8269 | wsmap="managed"
|
---|
8270 | >
|
---|
8271 | <desc>
|
---|
8272 | The IMedium interface is a common interface for all objects representing
|
---|
8273 | virtual media such as hard disks, CD/DVD images and floppy images.
|
---|
8274 |
|
---|
8275 | Each medium is associated with a storage unit (such as a file on the host
|
---|
8276 | computer or a network resource) that holds actual data. The location of
|
---|
8277 | the storage unit is represented by the #location attribute. The value of
|
---|
8278 | this attribute is media type dependent.
|
---|
8279 |
|
---|
8280 | The exact media type may be determined by querying the appropriate
|
---|
8281 | interface such as:
|
---|
8282 | <ul>
|
---|
8283 | <li>IHardDisk (virtual hard disks)</li>
|
---|
8284 | <li>IDVDImage (standard CD/DVD ISO image files)</li>
|
---|
8285 | <li>IFloppyImage (raw floppy image files)</li>
|
---|
8286 | </ul>
|
---|
8287 |
|
---|
8288 | Existing media are opened using the following methods, depending on the
|
---|
8289 | media type:
|
---|
8290 | <ul>
|
---|
8291 | <li><link to="IVirtualBox::openHardDisk"/></li>
|
---|
8292 | <li><link to="IVirtualBox::openDVDImage"/></li>
|
---|
8293 | <li><link to="IVirtualBox::openFloppyImage"/></li>
|
---|
8294 | </ul>
|
---|
8295 |
|
---|
8296 | New hard disk media are created using the
|
---|
8297 | <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
|
---|
8298 | images are created outside VirtualBox, usually by storing a copy
|
---|
8299 | of the real medium of the corresponding type in a regular file.
|
---|
8300 |
|
---|
8301 | <h3>Known Media</h3>
|
---|
8302 |
|
---|
8303 | When an existing medium gets opened for the first time, it gets
|
---|
8304 | automatically remembered by the given VirtualBox installation or, in other
|
---|
8305 | words, becomes a <i>known medium</i>. Known media are stored in the media
|
---|
8306 | registry transparently maintained by VirtualBox and stored in settings
|
---|
8307 | files so that this registry is preserved when VirtualBox is not running.
|
---|
8308 |
|
---|
8309 | Newly created virtual hard disks get remembered only when the associated
|
---|
8310 | storage unit is actually created (see IHardDisk for more details).
|
---|
8311 |
|
---|
8312 | All known media can be enumerated using
|
---|
8313 | <link to="IVirtualBox::hardDisks"/>,
|
---|
8314 | <link to="IVirtualBox::DVDImages"/> and
|
---|
8315 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
8316 | quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
|
---|
8317 | and similar methods or by location using
|
---|
8318 | <link to="IVirtualBox::findHardDisk"/> and similar methods.
|
---|
8319 |
|
---|
8320 | Only known media can be attached to virtual machines.
|
---|
8321 |
|
---|
8322 | Removing known media from the media registry is performed when the given
|
---|
8323 | medium is closed using the <link to="#close"/> method or when its
|
---|
8324 | associated storage unit is deleted (only for hard disks).
|
---|
8325 |
|
---|
8326 | <h3>Accessibility Checks</h3>
|
---|
8327 |
|
---|
8328 | The given medium (with the created storage unit) is considered to be
|
---|
8329 | <i>accessible</i> when its storage unit can be read.
|
---|
8330 | Accessible media are indicated by the <link to="MediaState_Created"/>
|
---|
8331 | value of the <link to="#state"/> attribute. When the storage unit cannot
|
---|
8332 | be read (for example, because it is located on a disconnected network
|
---|
8333 | resource, or was accidentally deleted outside VirtualBox), the medium is
|
---|
8334 | considered to be <i>inaccessible</i> which is indicated by the
|
---|
8335 | <link to="MediaState_Inaccessible"/> state. The details about the reason
|
---|
8336 | of being inaccessible can be obtained using the
|
---|
8337 | <link to="#lastAccessError"/> attribute.
|
---|
8338 |
|
---|
8339 | A new accessibility check is performed each time the <link to="#state"/>
|
---|
8340 | attribute is read. Please note that this check may take long time (several
|
---|
8341 | seconds or even minutes, depending on the storage unit location and
|
---|
8342 | format), and will block the calling thread until finished. For this
|
---|
8343 | reason, it is recommended to never read this attribute on the main UI
|
---|
8344 | thread to avoid making the UI unresponsive.
|
---|
8345 |
|
---|
8346 | Note that when VirtualBox starts up (e.g. the VirtualBox object gets
|
---|
8347 | created for the first time), all known media are in the
|
---|
8348 | <link to="MediaState_Inaccessible"/> state but the value of the <link
|
---|
8349 | to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
|
---|
8350 | accessibility check is made on startup. This is done to make the
|
---|
8351 | VirtualBox object ready for serving requests as
|
---|
8352 | fast as possible and let the end-user application decide if it needs to
|
---|
8353 | check media accessibility right away or not.
|
---|
8354 | </desc>
|
---|
8355 |
|
---|
8356 | <attribute name="id" type="uuid" readonly="yes">
|
---|
8357 | <desc>
|
---|
8358 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
8359 | generated UUID.
|
---|
8360 |
|
---|
8361 | <note>
|
---|
8362 | For media in one of MediaState_NotCreated, MediaState_Creating or
|
---|
8363 | MediaState_Deleting states, the value of this property is undefined
|
---|
8364 | and will most likely be an empty UUID.
|
---|
8365 | </note>
|
---|
8366 | </desc>
|
---|
8367 | </attribute>
|
---|
8368 |
|
---|
8369 | <attribute name="description" type="wstring">
|
---|
8370 | <desc>
|
---|
8371 | Optional description of the medium. For newly created media, the value
|
---|
8372 | of this attribute value is <tt>null</tt>.
|
---|
8373 |
|
---|
8374 | Media types that don't support this attribute will return E_NOTIMPL in
|
---|
8375 | attempt to get or set this attribute's value.
|
---|
8376 |
|
---|
8377 | <note>
|
---|
8378 | For some storage types, reading this attribute may return an outdated
|
---|
8379 | (last known) value when <link to="#state"/> is <link
|
---|
8380 | to="MediaState_Inaccessible"/> or <link
|
---|
8381 | to="MediaState_LockedWrite"/> because the value of this attribute is
|
---|
8382 | stored within the storage unit itself. Also note that changing the
|
---|
8383 | attribute value is not possible in such case, as well as when the
|
---|
8384 | medium is the <link to="MediaState_LockedRead"/> state.
|
---|
8385 | </note>
|
---|
8386 | </desc>
|
---|
8387 | </attribute>
|
---|
8388 |
|
---|
8389 | <attribute name="state" type="MediaState" readonly="yes">
|
---|
8390 | <desc>
|
---|
8391 | Current media state. Inspect <link to="MediaState"/> values for details.
|
---|
8392 |
|
---|
8393 | Reading this attribute may take a long time because an accessibility
|
---|
8394 | check of the storage unit is performed each time the attribute is read.
|
---|
8395 | This check may cause a significant delay if the storage unit of the
|
---|
8396 | given medium is, for example, a file located on a network share which is
|
---|
8397 | not currently accessible due to connectivity problems -- the call will
|
---|
8398 | not return until a timeout interval defined by the host OS for this
|
---|
8399 | operation expires.
|
---|
8400 |
|
---|
8401 | If the last known state of the medium is <link to="MediaState_Created"/>
|
---|
8402 | and the accessibility check fails then the state would be set to
|
---|
8403 | <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
|
---|
8404 | may be used to get more details about the failure. If the state of the
|
---|
8405 | medium is <link to="MediaState_LockedRead"/> or
|
---|
8406 | <link to="MediaState_LockedWrite"/> then it remains the same, and a
|
---|
8407 | non-null value of <link to="#lastAccessError"/> will indicate a failed
|
---|
8408 | accessibility check in this case.
|
---|
8409 |
|
---|
8410 | Note that not all media states are applicable to all media types.
|
---|
8411 | For example, states <link to="MediaState_NotCreated"/>,
|
---|
8412 | <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
|
---|
8413 | <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
|
---|
8414 | IFloppyImage media.
|
---|
8415 | </desc>
|
---|
8416 | </attribute>
|
---|
8417 |
|
---|
8418 | <attribute name="location" type="wstring">
|
---|
8419 | <desc>
|
---|
8420 | Location of the storage unit holding media data.
|
---|
8421 |
|
---|
8422 | The format of the location string is media type specific. For media
|
---|
8423 | types using regular files in a host's file system, the location
|
---|
8424 | string is the full file name.
|
---|
8425 |
|
---|
8426 | Some media types may support changing the storage unit location by
|
---|
8427 | simply changing the value of this property. If this operation is not
|
---|
8428 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
8429 | this attribute's value.
|
---|
8430 |
|
---|
8431 | When setting a value of the location attribute which is a regular file
|
---|
8432 | in the host's file system, the given file name may be either relative to
|
---|
8433 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
8434 | absolute. Note that if the given location specification does not contain
|
---|
8435 | the file extension part then a proper default extension will be
|
---|
8436 | automatically appended by the implementation depending on the media type.
|
---|
8437 | </desc>
|
---|
8438 | </attribute>
|
---|
8439 |
|
---|
8440 | <attribute name="name" type="wstring" readonly="yes">
|
---|
8441 | <desc>
|
---|
8442 | Name of the storage unit holding media data.
|
---|
8443 |
|
---|
8444 | The returned string is a short version of the <link to="#location"/>
|
---|
8445 | attribute that is suitable for representing the medium in situations
|
---|
8446 | where the full location specification is too long (such as lists
|
---|
8447 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
8448 | to sort the media list alphabetically when needed.
|
---|
8449 |
|
---|
8450 | For example, for locations that are regular files in the host's file
|
---|
8451 | system, the value of this attribute is just the file name (+ extension),
|
---|
8452 | without the path specification.
|
---|
8453 |
|
---|
8454 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
8455 | attribute will not necessary be unique for a list of media of the
|
---|
8456 | given type and format.
|
---|
8457 | </desc>
|
---|
8458 | </attribute>
|
---|
8459 |
|
---|
8460 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
8461 | <desc>
|
---|
8462 | Physical size of the storage unit used to hold media data (in bytes).
|
---|
8463 |
|
---|
8464 | <note>
|
---|
8465 | For media whose <link to="#state"/> is <link
|
---|
8466 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
8467 | last known size. For <link to="MediaState_NotCreated"/> media,
|
---|
8468 | the returned value is zero.
|
---|
8469 | </note>
|
---|
8470 | </desc>
|
---|
8471 | </attribute>
|
---|
8472 |
|
---|
8473 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
8474 | <desc>
|
---|
8475 | Text message that represents the result of the last accessibility
|
---|
8476 | check.
|
---|
8477 |
|
---|
8478 | Accessibility checks are performed each time the <link to="#state"/>
|
---|
8479 | attribute is read. A @c null string is returned if the last
|
---|
8480 | accessibility check was successful. A non-null string indicates a
|
---|
8481 | failure and should normally describe a reason of the failure (for
|
---|
8482 | example, a file read error).
|
---|
8483 | </desc>
|
---|
8484 | </attribute>
|
---|
8485 |
|
---|
8486 | <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
|
---|
8487 | <desc>
|
---|
8488 | Array of UUIDs of all machines this medium is attached to.
|
---|
8489 |
|
---|
8490 | A <tt>null</tt> array is returned if this medium is not attached to any
|
---|
8491 | machine or to any machine's snapshot.
|
---|
8492 |
|
---|
8493 | <note>
|
---|
8494 | The returned array will include a machine even if this medium is not
|
---|
8495 | attached to that machine in the current state but attached to it in
|
---|
8496 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
8497 | details.
|
---|
8498 | </note>
|
---|
8499 | </desc>
|
---|
8500 | </attribute>
|
---|
8501 |
|
---|
8502 | <method name="getSnapshotIds">
|
---|
8503 | <desc>
|
---|
8504 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
8505 | this medium is attached to.
|
---|
8506 |
|
---|
8507 | If the medium is attached to the machine in the current state, then the
|
---|
8508 | first element in the array will always be the ID of the queried machine
|
---|
8509 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
8510 | snapshot IDs (if any).
|
---|
8511 |
|
---|
8512 | If the medium is not attached to the machine in the current state, then
|
---|
8513 | the array will contain only snapshot IDs.
|
---|
8514 |
|
---|
8515 | The returned array may be <tt>null</tt> if this medium is not attached
|
---|
8516 | to the given machine at all, neither in the current state nor in one of
|
---|
8517 | the snapshots.
|
---|
8518 | </desc>
|
---|
8519 | <param name="machineId" type="uuid" dir="in">
|
---|
8520 | <desc>
|
---|
8521 | UUID of the machine to query.
|
---|
8522 | </desc>
|
---|
8523 | </param>
|
---|
8524 | <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
|
---|
8525 | <desc>
|
---|
8526 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
8527 | </desc>
|
---|
8528 | </param>
|
---|
8529 | </method>
|
---|
8530 |
|
---|
8531 | <method name="lockRead">
|
---|
8532 | <desc>
|
---|
8533 | Locks this medium for reading.
|
---|
8534 |
|
---|
8535 | The read lock is shared: many clients can simultaneously lock the
|
---|
8536 | same media for reading unless it is already locked for writing (see
|
---|
8537 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
8538 |
|
---|
8539 | When the medium is locked for reading, it cannot be modified
|
---|
8540 | from within VirtualBox. This means that any method that changes
|
---|
8541 | the properties of this medium or contents of the storage unit
|
---|
8542 | will return an error (unless explicitly stated otherwise) and
|
---|
8543 | that an attempt to start a virtual machine that wants to modify
|
---|
8544 | the medium will also fail.
|
---|
8545 |
|
---|
8546 | When the virtual machine is started up, it locks for reading all
|
---|
8547 | media it uses in read-only mode. If some media cannot be locked
|
---|
8548 | for reading, the startup procedure will fail.
|
---|
8549 |
|
---|
8550 | The medium locked for reading must be unlocked using the <link
|
---|
8551 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
8552 | can be nested and must be followed by the same number of paired
|
---|
8553 | <link to="#unlockRead"/> calls.
|
---|
8554 |
|
---|
8555 | This method sets the media state to <link
|
---|
8556 | to="MediaState_LockedRead"/> on success. The state prior to
|
---|
8557 | this call must be <link to="MediaState_Created"/>, <link
|
---|
8558 | to="MediaState_Inaccessible"/> or <link
|
---|
8559 | to="MediaState_LockedRead"/>. As you can see, inaccessible
|
---|
8560 | media can be locked too. This is not an error; this method
|
---|
8561 | performs a logical lock that prevents modifications of this
|
---|
8562 | media through the VirtualBox API, not a physical lock of the
|
---|
8563 | underlying storage unit.
|
---|
8564 |
|
---|
8565 | This method returns the current state of the medium
|
---|
8566 | <b>before</b> the operation.
|
---|
8567 |
|
---|
8568 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8569 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8570 | creating, deleting).
|
---|
8571 | </result>
|
---|
8572 |
|
---|
8573 | </desc>
|
---|
8574 | <param name="state" type="MediaState" dir="return">
|
---|
8575 | <desc>
|
---|
8576 | State of the medium after the operation.
|
---|
8577 | </desc>
|
---|
8578 | </param>
|
---|
8579 | </method>
|
---|
8580 |
|
---|
8581 | <method name="unlockRead">
|
---|
8582 | <desc>
|
---|
8583 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
8584 |
|
---|
8585 | For both, success and failure, this method returns the current state
|
---|
8586 | of the medium <b>after</b> the operation.
|
---|
8587 |
|
---|
8588 | See <link to="#lockRead"/> for more details.
|
---|
8589 |
|
---|
8590 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8591 | Medium not locked for reading.
|
---|
8592 | </result>
|
---|
8593 |
|
---|
8594 | </desc>
|
---|
8595 | <param name="state" type="MediaState" dir="return">
|
---|
8596 | <desc>
|
---|
8597 | State of the medium after the operation.
|
---|
8598 | </desc>
|
---|
8599 | </param>
|
---|
8600 | </method>
|
---|
8601 |
|
---|
8602 | <method name="lockWrite">
|
---|
8603 | <desc>
|
---|
8604 | Locks this medium for writing.
|
---|
8605 |
|
---|
8606 | The write lock, as opposed to <link to="#lockRead"/>, is
|
---|
8607 | exclusive: there may be only one client holding a write lock
|
---|
8608 | and there may be no read locks while the write lock is held.
|
---|
8609 |
|
---|
8610 | When the medium is locked for writing, it cannot be modified
|
---|
8611 | from within VirtualBox and it is not guaranteed that the values
|
---|
8612 | of its properties are up-to-date. Any method that changes the
|
---|
8613 | properties of this medium or contents of the storage unit will
|
---|
8614 | return an error (unless explicitly stated otherwise) and an
|
---|
8615 | attempt to start a virtual machine wanting to modify or to
|
---|
8616 | read the medium will fail.
|
---|
8617 |
|
---|
8618 | When the virtual machine is started up, it locks for writing all
|
---|
8619 | media it uses to write data to. If any medium could not be locked
|
---|
8620 | for writing, the startup procedure will fail.
|
---|
8621 |
|
---|
8622 | The medium locked for writing must be unlocked using the <link
|
---|
8623 | to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
|
---|
8624 | can <b>not</b> be nested and must be followed by a<link
|
---|
8625 | to="#unlockWrite"/> call before the next lockWrite call.
|
---|
8626 |
|
---|
8627 | This method sets the media state to <link
|
---|
8628 | to="MediaState_LockedWrite"/> on success. The state prior to
|
---|
8629 | this call must be <link to="MediaState_Created"/> or <link
|
---|
8630 | to="MediaState_Inaccessible"/>. As you can see, inaccessible
|
---|
8631 | media can be locked too. This is not an error; this method
|
---|
8632 | performs a logical lock preventing modifications of this
|
---|
8633 | media through the VirtualBox API, not a physical lock of the
|
---|
8634 | underlying storage unit.
|
---|
8635 |
|
---|
8636 | For both, success and failure, this method returns the current
|
---|
8637 | state of the medium <b>before</b> the operation.
|
---|
8638 |
|
---|
8639 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8640 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8641 | creating, deleting).
|
---|
8642 | </result>
|
---|
8643 |
|
---|
8644 | </desc>
|
---|
8645 | <param name="state" type="MediaState" dir="return">
|
---|
8646 | <desc>
|
---|
8647 | State of the medium after the operation.
|
---|
8648 | </desc>
|
---|
8649 | </param>
|
---|
8650 | </method>
|
---|
8651 |
|
---|
8652 | <method name="unlockWrite">
|
---|
8653 | <desc>
|
---|
8654 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
8655 |
|
---|
8656 | For both, success and failure, this method returns the current
|
---|
8657 | state of the medium <b>after</b> the operation.
|
---|
8658 |
|
---|
8659 | See <link to="#lockWrite"/> for more details.
|
---|
8660 |
|
---|
8661 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8662 | Medium not locked for writing.
|
---|
8663 | </result>
|
---|
8664 |
|
---|
8665 | </desc>
|
---|
8666 | <param name="state" type="MediaState" dir="return">
|
---|
8667 | <desc>
|
---|
8668 | State of the medium after the operation.
|
---|
8669 | </desc>
|
---|
8670 | </param>
|
---|
8671 | </method>
|
---|
8672 |
|
---|
8673 | <method name="close">
|
---|
8674 | <desc>
|
---|
8675 | Closes this medium.
|
---|
8676 |
|
---|
8677 | The hard disk must not be attached to any known virtual machine
|
---|
8678 | and must not have any known child hard disks, otherwise the
|
---|
8679 | operation will fail.
|
---|
8680 |
|
---|
8681 | When the hard disk is successfully closed, it gets removed from
|
---|
8682 | the list of remembered hard disks, but its storage unit is not
|
---|
8683 | deleted. In particular, this means that this hard disk can be
|
---|
8684 | later opened again using the <link
|
---|
8685 | to="IVirtualBox::openHardDisk"/> call.
|
---|
8686 |
|
---|
8687 | Note that after this method successfully returns, the given hard
|
---|
8688 | disk object becomes uninitialized. This means that any attempt
|
---|
8689 | to call any of its methods or attributes will fail with the
|
---|
8690 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
8691 |
|
---|
8692 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8693 | Invalid media state (other than not created, created or
|
---|
8694 | inaccessible).
|
---|
8695 | </result>
|
---|
8696 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
8697 | Medium attached to virtual machine.
|
---|
8698 | </result>
|
---|
8699 | <result name="VBOX_E_FILE_ERROR">
|
---|
8700 | Settings file not accessible.
|
---|
8701 | </result>
|
---|
8702 | <result name="VBOX_E_XML_ERROR">
|
---|
8703 | Could not parse the settings file.
|
---|
8704 | </result>
|
---|
8705 |
|
---|
8706 | </desc>
|
---|
8707 | </method>
|
---|
8708 |
|
---|
8709 | </interface>
|
---|
8710 |
|
---|
8711 |
|
---|
8712 | <!--
|
---|
8713 | // IHardDisk
|
---|
8714 | /////////////////////////////////////////////////////////////////////////
|
---|
8715 | -->
|
---|
8716 |
|
---|
8717 | <enum
|
---|
8718 | name="HardDiskType"
|
---|
8719 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
8720 | >
|
---|
8721 | <desc>
|
---|
8722 | Virtual hard disk type.
|
---|
8723 | <see>IHardDisk</see>
|
---|
8724 | </desc>
|
---|
8725 |
|
---|
8726 | <const name="Normal" value="0">
|
---|
8727 | <desc>
|
---|
8728 | Normal hard disk (attached directly or indirectly, preserved
|
---|
8729 | when taking snapshots).
|
---|
8730 | </desc>
|
---|
8731 | </const>
|
---|
8732 | <const name="Immutable" value="1">
|
---|
8733 | <desc>
|
---|
8734 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
8735 | after powering off the virtual machine).
|
---|
8736 | </desc>
|
---|
8737 | </const>
|
---|
8738 | <const name="Writethrough" value="2">
|
---|
8739 | <desc>
|
---|
8740 | Write through hard disk (attached directly, ignored when
|
---|
8741 | taking snapshots).
|
---|
8742 | </desc>
|
---|
8743 | </const>
|
---|
8744 | </enum>
|
---|
8745 |
|
---|
8746 | <enum
|
---|
8747 | name="HardDiskVariant"
|
---|
8748 | uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
|
---|
8749 | >
|
---|
8750 | <desc>
|
---|
8751 | Virtual hard disk image variant. More than one flag may be set.
|
---|
8752 | <see>IHardDisk</see>
|
---|
8753 | </desc>
|
---|
8754 |
|
---|
8755 | <const name="Standard" value="0">
|
---|
8756 | <desc>
|
---|
8757 | No particular variant requested, results in using the backend default.
|
---|
8758 | </desc>
|
---|
8759 | </const>
|
---|
8760 | <const name="VmdkSplit2G" value="0x01">
|
---|
8761 | <desc>
|
---|
8762 | VMDK image split in chunks of less than 2GByte.
|
---|
8763 | </desc>
|
---|
8764 | </const>
|
---|
8765 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
8766 | <desc>
|
---|
8767 | VMDK streamOptimized image. Special import/export format which is
|
---|
8768 | read-only/append-only.
|
---|
8769 | </desc>
|
---|
8770 | </const>
|
---|
8771 | <const name="VmdkESX" value="0x08">
|
---|
8772 | <desc>
|
---|
8773 | VMDK format variant used on ESX products.
|
---|
8774 | </desc>
|
---|
8775 | </const>
|
---|
8776 | <const name="Fixed" value="0x10000">
|
---|
8777 | <desc>
|
---|
8778 | Fixed image. Only allowed for base images.
|
---|
8779 | </desc>
|
---|
8780 | </const>
|
---|
8781 | <const name="Diff" value="0x20000">
|
---|
8782 | <desc>
|
---|
8783 | Fixed image. Only allowed for base images.
|
---|
8784 | </desc>
|
---|
8785 | </const>
|
---|
8786 | </enum>
|
---|
8787 |
|
---|
8788 | <interface
|
---|
8789 | name="IHardDiskAttachment" extends="$unknown"
|
---|
8790 | uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
|
---|
8791 | wsmap="struct"
|
---|
8792 | >
|
---|
8793 | <desc>
|
---|
8794 | The IHardDiskAttachment interface represents a hard disk attachment of a
|
---|
8795 | virtual machine.
|
---|
8796 |
|
---|
8797 | Every hard disk attachment specifies a slot of the virtual hard disk
|
---|
8798 | controller and a virtual hard disk attached to this slot.
|
---|
8799 |
|
---|
8800 | The array of hard disk attachments is returned by
|
---|
8801 | <link to="IMachine::hardDiskAttachments"/>.
|
---|
8802 | </desc>
|
---|
8803 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
8804 | <desc>Hard disk object associated with this attachment.</desc>
|
---|
8805 | </attribute>
|
---|
8806 |
|
---|
8807 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
8808 | <desc>Interface bus of this attachment.</desc>
|
---|
8809 | </attribute>
|
---|
8810 |
|
---|
8811 | <attribute name="port" type="long" readonly="yes">
|
---|
8812 | <desc>Port number of this attachment.</desc>
|
---|
8813 | </attribute>
|
---|
8814 |
|
---|
8815 | <attribute name="device" type="long" readonly="yes">
|
---|
8816 | <desc>Device slot number of this attachment.</desc>
|
---|
8817 | </attribute>
|
---|
8818 |
|
---|
8819 | </interface>
|
---|
8820 |
|
---|
8821 | <interface
|
---|
8822 | name="IHardDisk" extends="IMedium"
|
---|
8823 | uuid="91648dc6-bb19-46bf-9e1c-4bf5b960c8e2"
|
---|
8824 | wsmap="managed"
|
---|
8825 | >
|
---|
8826 | <desc>
|
---|
8827 | The IHardDisk interface represents a virtual hard disk drive
|
---|
8828 | used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
8829 |
|
---|
8830 | Virtual hard disk objects virtualize the hard disk hardware and look like
|
---|
8831 | regular hard disks for the guest OS running inside the virtual machine.
|
---|
8832 |
|
---|
8833 | <h3>Hard Disk Types</h3>
|
---|
8834 |
|
---|
8835 | There are three types of hard disks:
|
---|
8836 | <link to="HardDiskType_Normal">Normal</link>,
|
---|
8837 | <link to="HardDiskType_Immutable">Immutable</link> and
|
---|
8838 | <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
|
---|
8839 | hard disk defines how the hard disk is attached to a virtual machine and
|
---|
8840 | what happens when a <link to="ISnapshot">snapshot</link> of the virtual
|
---|
8841 | machine with the attached hard disk is taken. The type of the hard disk is
|
---|
8842 | defined by the <link to="#type"/> attribute.
|
---|
8843 |
|
---|
8844 | All hard disks can be also divided in two big groups: <i>base</i> hard
|
---|
8845 | disks and <i>differencing</i> hard disks. A base hard disk contains all
|
---|
8846 | sectors of the hard disk data in its storage unit and therefore can be
|
---|
8847 | used independently. On the contrary, a differencing hard disk contains
|
---|
8848 | only some part of the hard disk data (a subset of sectors) and needs
|
---|
8849 | another hard disk to get access to the missing sectors of data. This
|
---|
8850 | another hard disk is called a <i>parent</i> hard disk and defines a hard
|
---|
8851 | disk to which this differencing hard disk is known to be <i>linked to</i>.
|
---|
8852 | The parent hard disk may be itself a differencing hard disk. This
|
---|
8853 | way, differencing hard disks form a linked hard disk chain. This chain
|
---|
8854 | always ends with the base hard disk which is sometimes referred to as the
|
---|
8855 | root hard disk of this chain. Note that several differencing hard disks
|
---|
8856 | may be linked to the same parent hard disk. This way, all known hard disks
|
---|
8857 | form a hard disk tree which is based on their parent-child relationship.
|
---|
8858 |
|
---|
8859 | Differencing hard disks can be distinguished from base hard disks by
|
---|
8860 | querying the <link to="#parent"/> attribute: base hard disks do not have
|
---|
8861 | parents they would depend on, so the value of this attribute is always
|
---|
8862 | <tt>null</tt> for them. Using this attribute, it is possible to walk up
|
---|
8863 | the hard disk tree (from the child hard disk to its parent). It is also
|
---|
8864 | possible to walk down the tree using the <link to="#children"/>
|
---|
8865 | attribute.
|
---|
8866 |
|
---|
8867 | Note that the type of all differencing hard disks is
|
---|
8868 | <link to="HardDiskType_Normal">Normal</link>; all other values are
|
---|
8869 | meaningless for them. Base hard disks may be of any type.
|
---|
8870 |
|
---|
8871 | <h3>Creating Hard Disks</h3>
|
---|
8872 |
|
---|
8873 | New base hard disks are created using
|
---|
8874 | <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
|
---|
8875 | opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
|
---|
8876 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
8877 | also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
8878 |
|
---|
8879 | After the hard disk is successfully created (including the storage unit)
|
---|
8880 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
8881 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
8882 | through <link to="IVirtualBox::getHardDisk"/> and
|
---|
8883 | <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
|
---|
8884 | <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
|
---|
8885 |
|
---|
8886 | The following methods, besides <link to="IMedium::close"/>,
|
---|
8887 | automatically remove the hard disk from the media registry:
|
---|
8888 | <ul>
|
---|
8889 | <li><link to="#deleteStorage"/></li>
|
---|
8890 | <li><link to="#mergeTo"/></li>
|
---|
8891 | </ul>
|
---|
8892 |
|
---|
8893 | If the storage unit of the hard disk is a regular file in the host's
|
---|
8894 | file system then the rules stated in the description of the
|
---|
8895 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
8896 | addition, a plain file name without any path may be given, in which case
|
---|
8897 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
8898 | folder</link> will be prepended to it.
|
---|
8899 |
|
---|
8900 | <h4>Automatic composition of the file name part</h4>
|
---|
8901 |
|
---|
8902 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
8903 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
8904 | the file name part of the location using the UUID of the hard disk. This
|
---|
8905 | applies only to hard disks in <link to="MediaState_NotCreated"/> state,
|
---|
8906 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
8907 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
8908 | specification which only contains the path specification but not the file
|
---|
8909 | name part and ends with either a forward slash or a backslash character.
|
---|
8910 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
8911 | compose the file name using the following pattern:
|
---|
8912 | <pre>
|
---|
8913 | <path>/{<uuid>}.<ext>
|
---|
8914 | </pre>
|
---|
8915 | where <tt><path></tt> is the supplied path specification,
|
---|
8916 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
8917 | is the default extension for the storage format of this hard disk. After
|
---|
8918 | that, you may call any of the methods that create a new hard disk storage
|
---|
8919 | unit and they will use the generated UUID and file name.
|
---|
8920 |
|
---|
8921 | <h3>Attaching Hard Disks</h3>
|
---|
8922 |
|
---|
8923 | Hard disks are attached to virtual machines using the
|
---|
8924 | <link to="IMachine::attachHardDisk"/> method and detached using the
|
---|
8925 | <link to="IMachine::detachHardDisk"/> method. Depending on their
|
---|
8926 | <link to="#type"/>, hard disks are attached either
|
---|
8927 | <i>directly</i> or <i>indirectly</i>.
|
---|
8928 |
|
---|
8929 | When a hard disk is being attached directly, it is associated with the
|
---|
8930 | virtual machine and used for hard disk operations when the machine is
|
---|
8931 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
8932 | hard disk linked to it is implicitly created and this differencing hard
|
---|
8933 | disk is associated with the machine and used for hard disk operations.
|
---|
8934 | This also means that if <link to="IMachine::attachHardDisk"/> performs
|
---|
8935 | a direct attachment then the same hard disk will be returned in response
|
---|
8936 | to the subsequent <link to="IMachine::getHardDisk"/> call; however if
|
---|
8937 | an indirect attachment is performed then
|
---|
8938 | <link to="IMachine::getHardDisk"/> will return the implicitly created
|
---|
8939 | differencing hard disk, not the original one passed to <link
|
---|
8940 | to="IMachine::attachHardDisk"/>. The following table shows the
|
---|
8941 | dependency of the attachment type on the hard disk type:
|
---|
8942 |
|
---|
8943 | <table>
|
---|
8944 | <tr>
|
---|
8945 | <th>Hard Disk Type</th>
|
---|
8946 | <th>Direct or Indirect?</th>
|
---|
8947 | </tr>
|
---|
8948 | <tr>
|
---|
8949 | <td>Normal (Base)</td>
|
---|
8950 | <td>
|
---|
8951 | Normal base hard disks that do not have children (i.e. differencing
|
---|
8952 | hard disks linked to them) and that are not already attached to
|
---|
8953 | virtual machines in snapshots are attached <b>directly</b>.
|
---|
8954 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
8955 | dependent children or being part of the snapshot makes it impossible
|
---|
8956 | to modify hard disk contents without breaking the integrity of the
|
---|
8957 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
8958 | quickly determine the kind of the attachment for the given hard
|
---|
8959 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
8960 | attached to a virtual machine with snapshots then a special
|
---|
8961 | procedure called <i>smart attachment</i> is performed (see below).
|
---|
8962 | </td>
|
---|
8963 | </tr>
|
---|
8964 | <tr>
|
---|
8965 | <td>Normal (Differencing)</td>
|
---|
8966 | <td>
|
---|
8967 | Differencing hard disks are like normal base hard disks: attached
|
---|
8968 | <b>directly</b> if they do not have children and are not attached to
|
---|
8969 | virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
|
---|
8970 | that the smart attachment procedure is never performed for
|
---|
8971 | differencing hard disks.
|
---|
8972 | </td>
|
---|
8973 | </tr>
|
---|
8974 | <tr>
|
---|
8975 | <td>Immutable</td>
|
---|
8976 | <td>
|
---|
8977 | Immutable hard disks are always attached <b>indirectly</b> because
|
---|
8978 | they are designed to be non-writable. If an immutable hard disk is
|
---|
8979 | attached to a virtual machine with snapshots then a special
|
---|
8980 | procedure called smart attachment is performed (see below).
|
---|
8981 | </td>
|
---|
8982 | </tr>
|
---|
8983 | <tr>
|
---|
8984 | <td>Writethrough</td>
|
---|
8985 | <td>
|
---|
8986 | Writethrough hard disks are always attached <b>directly</b>, also as
|
---|
8987 | designed. This also means that writethrough hard disks cannot have
|
---|
8988 | other hard disks linked to them at all.
|
---|
8989 | </td>
|
---|
8990 | </tr>
|
---|
8991 | </table>
|
---|
8992 |
|
---|
8993 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
8994 | more than one virtual machine at a time. In this case, the machine that is
|
---|
8995 | started first gains exclusive access to the hard disk and attempts to
|
---|
8996 | start other machines having this hard disk attached will fail until the
|
---|
8997 | first machine is powered down.
|
---|
8998 |
|
---|
8999 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
9000 | that the given hard disk remains associated with the given machine after a
|
---|
9001 | successful <link to="IMachine::detachHardDisk"/> call until
|
---|
9002 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
9003 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
9004 | the hard disk configuration may be restored at any time by a call to
|
---|
9005 | <link to="IMachine::discardSettings"/> before the settings
|
---|
9006 | are saved (committed).
|
---|
9007 |
|
---|
9008 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
9009 | indirectly attaching some hard disks to the machine but before a call to
|
---|
9010 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
9011 | all differencing hard disks implicitly created by
|
---|
9012 | <link to="IMachine::attachHardDisk"/> for these indirect attachments.
|
---|
9013 | Such implicitly created hard disks will also be immediately deleted when
|
---|
9014 | detached explicitly using the <link to="IMachine::detachHardDisk"/>
|
---|
9015 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
9016 | implicit deletion is safe because newly created differencing hard
|
---|
9017 | disks do not contain any user data.
|
---|
9018 |
|
---|
9019 | However, keep in mind that detaching differencing hard disks that were
|
---|
9020 | implicitly created by <link to="IMachine::attachHardDisk"/>
|
---|
9021 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
9022 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
9023 | (for example, as a result of virtual machine execution). If these hard
|
---|
9024 | disks are no more necessary, the caller can always delete them explicitly
|
---|
9025 | using <link to="#deleteStorage"/> after they are actually de-associated
|
---|
9026 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
9027 |
|
---|
9028 | <h3>Smart Attachment</h3>
|
---|
9029 |
|
---|
9030 | When normal base or immutable hard disks are indirectly attached to a
|
---|
9031 | virtual machine then some additional steps are performed to make sure the
|
---|
9032 | virtual machine will have the most recent "view" of the hard disk being
|
---|
9033 | attached. These steps include walking through the machine's snapshots
|
---|
9034 | starting from the current one and going through ancestors up to the first
|
---|
9035 | snapshot. Hard disks attached to the virtual machine in all
|
---|
9036 | of the encountered snapshots are checked whether they are descendants of
|
---|
9037 | the given normal base or immutable hard disk. The first found child (which
|
---|
9038 | is the differencing hard disk) will be used instead of the normal base or
|
---|
9039 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
9040 | that will be actually attached to the machine. And only if no descendants
|
---|
9041 | are found or if the virtual machine does not have any snapshots then the
|
---|
9042 | normal base or immutable hard disk will be used itself as a parent for
|
---|
9043 | this differencing hard disk.
|
---|
9044 |
|
---|
9045 | It is easier to explain what smart attachment does using the
|
---|
9046 | following example:
|
---|
9047 | <pre>
|
---|
9048 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
9049 |
|
---|
9050 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
9051 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
9052 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
9053 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
9054 | CurState (none) CurState (D3->D2.vdi)
|
---|
9055 |
|
---|
9056 | NOT
|
---|
9057 | ...
|
---|
9058 | CurState (D3->B.vdi)
|
---|
9059 | </pre>
|
---|
9060 | The first column is the virtual machine configuration before the base hard
|
---|
9061 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
9062 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
9063 | mean that the hard disk that is actually attached to the machine is a
|
---|
9064 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
9065 | another hard disk, <tt>B.vdi</tt>.
|
---|
9066 |
|
---|
9067 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
9068 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
9069 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
9070 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
9071 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
9072 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
9073 | attachment procedure, the new differencing hard disk
|
---|
9074 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
9075 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
9076 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
9077 | machine.
|
---|
9078 |
|
---|
9079 | Note that if there is more than one descendant hard disk of the given base
|
---|
9080 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
9081 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
9082 | descendant will be picked up.
|
---|
9083 |
|
---|
9084 | There is one more important aspect of the smart attachment procedure which
|
---|
9085 | is not related to snapshots at all. Before walking through the snapshots
|
---|
9086 | as described above, the backup copy of the current list of hard disk
|
---|
9087 | attachment is searched for descendants. This backup copy is created when
|
---|
9088 | the hard disk configuration is changed for the first time after the last
|
---|
9089 | <link to="IMachine::saveSettings"/> call and used by
|
---|
9090 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
9091 | changes. When such a descendant is found in this backup copy, it will be
|
---|
9092 | simply re-attached back, without creating a new differencing hard disk for
|
---|
9093 | it. This optimization is necessary to make it possible to re-attach the
|
---|
9094 | base or immutable hard disk to a different bus, channel or device slot
|
---|
9095 | without losing the contents of the differencing hard disk actually
|
---|
9096 | attached to the machine in place of it.
|
---|
9097 | </desc>
|
---|
9098 |
|
---|
9099 | <attribute name="format" type="wstring" readonly="yes">
|
---|
9100 | <desc>
|
---|
9101 | Storage format of this hard disk.
|
---|
9102 |
|
---|
9103 | The value of this attribute is a string that specifies a backend used to
|
---|
9104 | store hard disk data. The storage format is defined when you create a
|
---|
9105 | new hard disk or automatically detected when you open an existing hard
|
---|
9106 | disk medium, and cannot be changed later.
|
---|
9107 |
|
---|
9108 | The list of all storage formats supported by this VirtualBox
|
---|
9109 | installation can be obtained using
|
---|
9110 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
9111 | </desc>
|
---|
9112 | </attribute>
|
---|
9113 |
|
---|
9114 | <attribute name="type" type="HardDiskType">
|
---|
9115 | <desc>
|
---|
9116 | Type (role) of this hard disk.
|
---|
9117 |
|
---|
9118 | The following constraints apply when changing the value of this
|
---|
9119 | attribute:
|
---|
9120 | <ul>
|
---|
9121 | <li>If a hard disk is attached to a virtual machine (either in the
|
---|
9122 | current state or in one of the snapshots), its type cannot be
|
---|
9123 | changed.
|
---|
9124 | </li>
|
---|
9125 | <li>As long as the hard disk has children, its type cannot be set
|
---|
9126 | to <link to="HardDiskType_Writethrough"/>.
|
---|
9127 | </li>
|
---|
9128 | <li>The type of all differencing hard disks is
|
---|
9129 | <link to="HardDiskType_Normal"/> and cannot be changed.
|
---|
9130 | </li>
|
---|
9131 | </ul>
|
---|
9132 |
|
---|
9133 | The type of a newly created or opened hard disk is set to
|
---|
9134 | <link to="HardDiskType_Normal"/>.
|
---|
9135 | </desc>
|
---|
9136 | </attribute>
|
---|
9137 |
|
---|
9138 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
9139 | <desc>
|
---|
9140 | Parent of this hard disk (a hard disk this hard disk is directly based
|
---|
9141 | on).
|
---|
9142 |
|
---|
9143 | Only differencing hard disks have parents. For base (non-differencing)
|
---|
9144 | hard disks, <tt>null</tt> is returned.
|
---|
9145 | </desc>
|
---|
9146 | </attribute>
|
---|
9147 |
|
---|
9148 | <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
|
---|
9149 | <desc>
|
---|
9150 | Children of this hard disk (all differencing hard disks directly based
|
---|
9151 | on this hard disk). A <tt>null</tt> array is returned if this hard disk
|
---|
9152 | does not have any children.
|
---|
9153 | </desc>
|
---|
9154 | </attribute>
|
---|
9155 |
|
---|
9156 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
9157 | <desc>
|
---|
9158 | Root hard disk of this hard disk.
|
---|
9159 |
|
---|
9160 | If this is a differencing hard disk, its root hard disk is the base hard
|
---|
9161 | disk the given hard disk branch starts from. For all other types of hard
|
---|
9162 | disks, this property returns the hard disk object itself (i.e. the same
|
---|
9163 | object this property is read on).
|
---|
9164 | </desc>
|
---|
9165 | </attribute>
|
---|
9166 |
|
---|
9167 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
9168 | <desc>
|
---|
9169 | Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
|
---|
9170 | otherwise.
|
---|
9171 |
|
---|
9172 | A hard disk is considered to be read-only when its contents cannot be
|
---|
9173 | modified without breaking the integrity of other parties that depend on
|
---|
9174 | this hard disk such as its child hard disks or snapshots of virtual
|
---|
9175 | machines where this hard disk is attached to these machines. If there
|
---|
9176 | are no children and no such snapshots then there is no dependency and
|
---|
9177 | the hard disk is not read-only.
|
---|
9178 |
|
---|
9179 | The value of this attribute can be used to determine the kind of the
|
---|
9180 | attachment that will take place when attaching this hard disk to a
|
---|
9181 | virtual machine. If the value is <tt>false</tt> then the hard disk will
|
---|
9182 | be attached directly. If the value is <tt>true</tt> then the hard disk
|
---|
9183 | will be attached indirectly by creating a new differencing child hard
|
---|
9184 | disk for that. See the interface description for more information.
|
---|
9185 |
|
---|
9186 | Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
|
---|
9187 | disks are always read-only while all
|
---|
9188 | <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
|
---|
9189 | always not.
|
---|
9190 |
|
---|
9191 | <note>
|
---|
9192 | The read-only condition represented by this attribute is related to
|
---|
9193 | the hard disk type and usage, not to the current
|
---|
9194 | <link to="IMedium::state">media state</link> and not to the read-only
|
---|
9195 | state of the storage unit.
|
---|
9196 | </note>
|
---|
9197 | </desc>
|
---|
9198 | </attribute>
|
---|
9199 |
|
---|
9200 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
9201 | <desc>
|
---|
9202 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
9203 | guest OS running inside the virtual machine this disk is
|
---|
9204 | attached to. The logical size is defined when the hard disk is created
|
---|
9205 | and cannot be changed later.
|
---|
9206 |
|
---|
9207 | <note>
|
---|
9208 | Reading this property on a differencing hard disk will return the size
|
---|
9209 | of its <link to="#root"/> hard disk.
|
---|
9210 | </note>
|
---|
9211 | <note>
|
---|
9212 | For hard disks whose state is <link to="#state"/> is <link
|
---|
9213 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
9214 | last known logical size. For <link to="MediaState_NotCreated"/> hard
|
---|
9215 | disks, the returned value is zero.
|
---|
9216 | </note>
|
---|
9217 | </desc>
|
---|
9218 | </attribute>
|
---|
9219 |
|
---|
9220 | <attribute name="autoReset" type="boolean">
|
---|
9221 | <desc>
|
---|
9222 | Whether this differencing hard disk will be automatically reset each
|
---|
9223 | time a virtual machine it is attached to is powered up.
|
---|
9224 |
|
---|
9225 | See <link to="#reset()"/> for more information about resetting
|
---|
9226 | differencing hard disks.
|
---|
9227 |
|
---|
9228 | <note>
|
---|
9229 | Reading this property on a base (non-differencing) hard disk will
|
---|
9230 | always <tt>false</tt>. Changing the value of this property in this
|
---|
9231 | case is not supported.
|
---|
9232 | </note>
|
---|
9233 |
|
---|
9234 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9235 | This is not a differencing hard disk (when changing the attribute
|
---|
9236 | value).
|
---|
9237 | </result>
|
---|
9238 | </desc>
|
---|
9239 | </attribute>
|
---|
9240 |
|
---|
9241 | <!-- storage methods -->
|
---|
9242 |
|
---|
9243 | <method name="getProperty">
|
---|
9244 | <desc>
|
---|
9245 | Returns the value of the custom hard disk property with the given name.
|
---|
9246 |
|
---|
9247 | The list of all properties supported by the given hard disk format can
|
---|
9248 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9249 |
|
---|
9250 | Note that if this method returns a <tt>null</tt> @a value, the requested
|
---|
9251 | property is supported but currently not assigned any value.
|
---|
9252 |
|
---|
9253 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9254 | Requested property does not exist (not supported by the format).
|
---|
9255 | </result>
|
---|
9256 | <result name="E_INVALIDARG">@a name is NULL or empty.</result>
|
---|
9257 | </desc>
|
---|
9258 | <param name="name" type="wstring" dir="in">
|
---|
9259 | <desc>Name of the property to get.</desc>
|
---|
9260 | </param>
|
---|
9261 | <param name="value" type="wstring" dir="return">
|
---|
9262 | <desc>Current property value.</desc>
|
---|
9263 | </param>
|
---|
9264 | </method>
|
---|
9265 |
|
---|
9266 | <method name="setProperty">
|
---|
9267 | <desc>
|
---|
9268 | Sets the value of the custom hard disk property with the given name.
|
---|
9269 |
|
---|
9270 | The list of all properties supported by the given hard disk format can
|
---|
9271 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9272 |
|
---|
9273 | Note that setting the property value to <tt>null</tt> is equivalent to
|
---|
9274 | deleting the existing value. A default value (if it is defined for this
|
---|
9275 | property) will be used by the format backend in this case.
|
---|
9276 |
|
---|
9277 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9278 | Requested property does not exist (not supported by the format).
|
---|
9279 | </result>
|
---|
9280 | <result name="E_INVALIDARG">@a name is NULL or empty.</result>
|
---|
9281 | </desc>
|
---|
9282 | <param name="name" type="wstring" dir="in">
|
---|
9283 | <desc>Name of the property to set.</desc>
|
---|
9284 | </param>
|
---|
9285 | <param name="value" type="wstring" dir="in">
|
---|
9286 | <desc>Property value to set.</desc>
|
---|
9287 | </param>
|
---|
9288 | </method>
|
---|
9289 |
|
---|
9290 | <method name="getProperties">
|
---|
9291 | <desc>
|
---|
9292 | Returns values for a group of properties in one call.
|
---|
9293 |
|
---|
9294 | The names of the properties to get are specified using the @a names
|
---|
9295 | argument which is a list of comma-separated property names or
|
---|
9296 | <tt>null</tt> if all properties are to be returned. Note that currently
|
---|
9297 | the value of this argument is ignored and the method always returns all
|
---|
9298 | existing properties.
|
---|
9299 |
|
---|
9300 | The list of all properties supported by the given hard disk format can
|
---|
9301 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9302 |
|
---|
9303 | The method returns two arrays, the array of property names corresponding
|
---|
9304 | to the @a names argument and the current values of these properties.
|
---|
9305 | Both arrays have the same number of elements with each elemend at the
|
---|
9306 | given index in the first array corresponds to an element at the same
|
---|
9307 | index in the second array.
|
---|
9308 |
|
---|
9309 | Note that for properties that do not have assigned values,
|
---|
9310 | <tt>null</tt> is returned at the appropriate index in the
|
---|
9311 | @a returnValues array.
|
---|
9312 |
|
---|
9313 | </desc>
|
---|
9314 | <param name="names" type="wstring" dir="in">
|
---|
9315 | <desc>
|
---|
9316 | Names of properties to get.
|
---|
9317 | </desc>
|
---|
9318 | </param>
|
---|
9319 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
9320 | <desc>Names of returned properties.</desc>
|
---|
9321 | </param>
|
---|
9322 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
9323 | <desc>Values of returned properties.</desc>
|
---|
9324 | </param>
|
---|
9325 | </method>
|
---|
9326 |
|
---|
9327 | <method name="setProperties">
|
---|
9328 | <desc>
|
---|
9329 | Sets values for a group of properties in one call.
|
---|
9330 |
|
---|
9331 | The names of the properties to set are passed in the @a names
|
---|
9332 | array along with the new values for them in the @a values array. Both
|
---|
9333 | arrays have the same number of elements with each elemend at the given
|
---|
9334 | index in the first array corresponding to an element at the same index
|
---|
9335 | in the second array.
|
---|
9336 |
|
---|
9337 | If there is at least one property name in @a names that is not valid,
|
---|
9338 | the method will fail before changing the values of any other properties
|
---|
9339 | from the @a names array.
|
---|
9340 |
|
---|
9341 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
9342 | need to set several properties at once since it will result into less
|
---|
9343 | IPC calls.
|
---|
9344 |
|
---|
9345 | The list of all properties supported by the given hard disk format can
|
---|
9346 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9347 |
|
---|
9348 | Note that setting the property value to <tt>null</tt> is equivalent to
|
---|
9349 | deleting the existing value. A default value (if it is defined for this
|
---|
9350 | property) will be used by the format backend in this case.
|
---|
9351 | </desc>
|
---|
9352 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
9353 | <desc>Names of properties to set.</desc>
|
---|
9354 | </param>
|
---|
9355 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
9356 | <desc>Values of properties to set.</desc>
|
---|
9357 | </param>
|
---|
9358 | </method>
|
---|
9359 |
|
---|
9360 | <!-- storage methods -->
|
---|
9361 |
|
---|
9362 | <method name="createBaseStorage">
|
---|
9363 | <desc>
|
---|
9364 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
9365 | to the variant flags) in in the background. The previous storage unit
|
---|
9366 | created for this object, if any, must first be deleted using
|
---|
9367 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
9368 |
|
---|
9369 | Before the operation starts, the hard disk is placed in
|
---|
9370 | <link to="MediaState_Creating"/> state. If the create operation
|
---|
9371 | fails, the media will be placed back in <link to="MediaState_NotCreated"/>
|
---|
9372 | state.
|
---|
9373 |
|
---|
9374 | After the returned progress object reports that the operation has
|
---|
9375 | successfully completed, the media state will be set to <link
|
---|
9376 | to="MediaState_Created"/>, the hard disk will be remembered by this
|
---|
9377 | VirtualBox installation and may be attached to virtual machines.
|
---|
9378 |
|
---|
9379 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9380 | The variant of storage creation operation is not supported. See <link
|
---|
9381 | to="IHardDiskFormat::capabilities"/>.
|
---|
9382 | </result>
|
---|
9383 | </desc>
|
---|
9384 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
9385 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
9386 | </param>
|
---|
9387 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9388 | <desc>Exact image variant which should be created.</desc>
|
---|
9389 | </param>
|
---|
9390 | <param name="progress" type="IProgress" dir="return">
|
---|
9391 | <desc>Progress object to track the operation completion.</desc>
|
---|
9392 | </param>
|
---|
9393 | </method>
|
---|
9394 |
|
---|
9395 | <method name="deleteStorage">
|
---|
9396 | <desc>
|
---|
9397 | Starts deleting the storage unit of this hard disk.
|
---|
9398 |
|
---|
9399 | The hard disk must not be attached to any known virtual machine and must
|
---|
9400 | not have any known child hard disks, otherwise the operation will fail.
|
---|
9401 | It will also fail if there is no storage unit to delete or if deletion
|
---|
9402 | is already in progress, or if the hard disk is being in use (locked for
|
---|
9403 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
9404 | this operation to succeed is <link to="MediaState_Created"/>.
|
---|
9405 |
|
---|
9406 | Before the operation starts, the hard disk is placed to
|
---|
9407 | <link to="MediaState_Deleting"/> state and gets removed from the list
|
---|
9408 | of remembered hard disks (media registry). If the delete operation
|
---|
9409 | fails, the media will be remembered again and placed back to
|
---|
9410 | <link to="MediaState_Created"/> state.
|
---|
9411 |
|
---|
9412 | After the returned progress object reports that the operation is
|
---|
9413 | complete, the media state will be set to
|
---|
9414 | <link to="MediaState_NotCreated"/> and you will be able to use one of
|
---|
9415 | the storage creation methods to create it again.
|
---|
9416 |
|
---|
9417 | <see>#close()</see>
|
---|
9418 |
|
---|
9419 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9420 | Hard disk is attached to a virtual machine.
|
---|
9421 | </result>
|
---|
9422 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9423 | Storage deletion is not allowed because neither of storage creation
|
---|
9424 | operations are supported. See
|
---|
9425 | <link to="IHardDiskFormat::capabilities"/>.
|
---|
9426 | </result>
|
---|
9427 |
|
---|
9428 | <note>
|
---|
9429 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
9430 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
9431 | to answer this question.
|
---|
9432 | </note>
|
---|
9433 | </desc>
|
---|
9434 | <param name="progress" type="IProgress" dir="return">
|
---|
9435 | <desc>Progress object to track the operation completion.</desc>
|
---|
9436 | </param>
|
---|
9437 | </method>
|
---|
9438 |
|
---|
9439 | <!-- diff methods -->
|
---|
9440 |
|
---|
9441 | <method name="createDiffStorage">
|
---|
9442 | <desc>
|
---|
9443 | Starts creating an empty differencing storage unit based on this hard
|
---|
9444 | disk in the format and at the location defined by the @a target
|
---|
9445 | argument.
|
---|
9446 |
|
---|
9447 | The target hard disk must be in <link to="MediaState_NotCreated"/>
|
---|
9448 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
9449 | completion, this operation will set the type of the target hard disk to
|
---|
9450 | <link to="HardDiskType_Normal"/> and create a storage unit necessary to
|
---|
9451 | represent the differencing hard disk data in the given format (according
|
---|
9452 | to the storage format of the target object).
|
---|
9453 |
|
---|
9454 | After the returned progress object reports that the operation is
|
---|
9455 | successfully complete, the target hard disk gets remembered by this
|
---|
9456 | VirtualBox installation and may be attached to virtual machines.
|
---|
9457 |
|
---|
9458 | <note>
|
---|
9459 | The hard disk will be set to <link to="MediaState_LockedRead"/>
|
---|
9460 | state for the duration of this operation.
|
---|
9461 | </note>
|
---|
9462 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9463 | Hard disk not in NotCreated state.
|
---|
9464 | </result>
|
---|
9465 | </desc>
|
---|
9466 | <param name="target" type="IHardDisk" dir="in">
|
---|
9467 | <desc>Target hard disk.</desc>
|
---|
9468 | </param>
|
---|
9469 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9470 | <desc>Exact image variant which should be created.</desc>
|
---|
9471 | </param>
|
---|
9472 | <param name="progress" type="IProgress" dir="return">
|
---|
9473 | <desc>Progress object to track the operation completion.</desc>
|
---|
9474 | </param>
|
---|
9475 | </method>
|
---|
9476 |
|
---|
9477 | <method name="mergeTo">
|
---|
9478 | <desc>
|
---|
9479 | Starts merging the contents of this hard disk and all intermediate
|
---|
9480 | differencing hard disks in the chain to the given target hard disk.
|
---|
9481 |
|
---|
9482 | The target hard disk must be either a descendant of this hard disk or
|
---|
9483 | its ancestor (otherwise this method will immediately return a failure).
|
---|
9484 | It follows that there are two logical directions of the merge operation:
|
---|
9485 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
9486 | ancestor (<i>backward merge</i>). Let us consider the following hard disk
|
---|
9487 | chain:
|
---|
9488 |
|
---|
9489 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
9490 |
|
---|
9491 | Here, calling this method on the <tt>Base</tt> hard disk object with
|
---|
9492 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
9493 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
9494 | merge. Note that in both cases the contents of the resulting hard disk
|
---|
9495 | will be the same, the only difference is the hard disk object that takes
|
---|
9496 | the result of the merge operation. In case of the forward merge in the
|
---|
9497 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
9498 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
9499 | other words, the result of the operation is always stored in the target
|
---|
9500 | hard disk.
|
---|
9501 |
|
---|
9502 | Upon successful operation completion, the storage units of all hard
|
---|
9503 | disks in the chain between this (source) hard disk and the target hard
|
---|
9504 | disk, including the source hard disk itself, will be automatically
|
---|
9505 | deleted and the relevant hard disk objects (including this hard disk)
|
---|
9506 | will become uninitialized. This means that any attempt to call any of
|
---|
9507 | their methods or attributes will fail with the
|
---|
9508 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
9509 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
9510 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
|
---|
9511 | disks. Note that <tt>Diff_2</tt> in this case will become a base hard
|
---|
9512 | disk itself since it will no longer be based on any other hard disk.
|
---|
9513 |
|
---|
9514 | Considering the above, all of the following conditions must be met in
|
---|
9515 | order for the merge operation to succeed:
|
---|
9516 | <ul>
|
---|
9517 | <li>
|
---|
9518 | Neither this (source) hard disk nor any intermediate
|
---|
9519 | differencing hard disk in the chain between it and the target
|
---|
9520 | hard disk is attached to any virtual machine.
|
---|
9521 | </li>
|
---|
9522 | <li>
|
---|
9523 | Neither the source hard disk nor the target hard disk is an
|
---|
9524 | <link to="HardDiskType_Immutable"/> hard disk.
|
---|
9525 | </li>
|
---|
9526 | <li>
|
---|
9527 | The part of the hard disk tree from the source hard disk to the
|
---|
9528 | target hard disk is a linear chain, i.e. all hard disks in this
|
---|
9529 | chain have exactly one child which is the next hard disk in this
|
---|
9530 | chain. The only exception from this rule is the target hard disk in
|
---|
9531 | the forward merge operation; it is allowed to have any number of
|
---|
9532 | child hard disks because the merge operation will hot change its
|
---|
9533 | logical contents (as it is seen by the guest OS or by children).
|
---|
9534 | </li>
|
---|
9535 | <li>
|
---|
9536 | None of the involved hard disks are in
|
---|
9537 | <link to="MediaState_LockedRead"/> or
|
---|
9538 | <link to="MediaState_LockedWrite"/> state.
|
---|
9539 | </li>
|
---|
9540 | </ul>
|
---|
9541 |
|
---|
9542 | <note>
|
---|
9543 | This (source) hard disk and all intermediates will be placed to <link
|
---|
9544 | to="MediaState_Deleting"/> state and the target hard disk will be
|
---|
9545 | placed to <link to="MediaState_LockedWrite"/> state and for the
|
---|
9546 | duration of this operation.
|
---|
9547 | </note>
|
---|
9548 | </desc>
|
---|
9549 | <param name="targetId" type="uuid" dir="in">
|
---|
9550 | <desc>UUID of the target ancestor or descendant hard disk.</desc>
|
---|
9551 | </param>
|
---|
9552 | <param name="progress" type="IProgress" dir="return">
|
---|
9553 | <desc>Progress object to track the operation completion.</desc>
|
---|
9554 | </param>
|
---|
9555 | </method>
|
---|
9556 |
|
---|
9557 | <!-- clone method -->
|
---|
9558 |
|
---|
9559 | <method name="cloneTo">
|
---|
9560 | <desc>
|
---|
9561 | Starts creating a clone of this hard disk in the format and at the
|
---|
9562 | location defined by the @a target argument.
|
---|
9563 |
|
---|
9564 | The target hard disk must be in <link to="MediaState_NotCreated"/>
|
---|
9565 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
9566 | completion, the cloned hard disk will contain exactly the same sector
|
---|
9567 | data as the hard disk being cloned, except that a new UUID for the
|
---|
9568 | clone will be randomly generated.
|
---|
9569 |
|
---|
9570 | The @a parent argument defines which hard disk will be the parent
|
---|
9571 | of the clone. Passing a NULL reference indicates that the clone will
|
---|
9572 | be a base image, i.e. completely independent. It is possible to specify
|
---|
9573 | an arbitrary hard disk for this parameter, including the parent of the
|
---|
9574 | hard disk which is being cloned. Even cloning to a child of the source
|
---|
9575 | hard disk is possible.
|
---|
9576 |
|
---|
9577 | After the returned progress object reports that the operation is
|
---|
9578 | successfully complete, the target hard disk gets remembered by this
|
---|
9579 | VirtualBox installation and may be attached to virtual machines.
|
---|
9580 |
|
---|
9581 | <note>
|
---|
9582 | This hard disk will be placed to <link to="MediaState_LockedRead"/>
|
---|
9583 | state for the duration of this operation.
|
---|
9584 | </note>
|
---|
9585 | </desc>
|
---|
9586 | <param name="target" type="IHardDisk" dir="in">
|
---|
9587 | <desc>Target hard disk.</desc>
|
---|
9588 | </param>
|
---|
9589 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9590 | <desc>Exact image variant which should be created.</desc>
|
---|
9591 | </param>
|
---|
9592 | <param name="parent" type="IHardDisk" dir="in">
|
---|
9593 | <desc>Parent of the cloned hard disk.</desc>
|
---|
9594 | </param>
|
---|
9595 | <param name="progress" type="IProgress" dir="return">
|
---|
9596 | <desc>Progress object to track the operation completion.</desc>
|
---|
9597 | </param>
|
---|
9598 | </method>
|
---|
9599 |
|
---|
9600 | <!-- other methods -->
|
---|
9601 |
|
---|
9602 | <method name="compact">
|
---|
9603 | <desc>
|
---|
9604 | Starts compacting of this hard disk. This means that the disk is
|
---|
9605 | transformed into a possibly more compact storage representation.
|
---|
9606 | This potentially creates temporary images, which can require a
|
---|
9607 | substantial amount of additional disk space.
|
---|
9608 |
|
---|
9609 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9610 | state and all its parent hard disks (if any) will be placed to
|
---|
9611 | <link to="MediaState_LockedRead"/> state for the duration of this
|
---|
9612 | operation.
|
---|
9613 | </desc>
|
---|
9614 | <param name="progress" type="IProgress" dir="return">
|
---|
9615 | <desc>Progress object to track the operation completion.</desc>
|
---|
9616 | </param>
|
---|
9617 | </method>
|
---|
9618 |
|
---|
9619 | <method name="reset">
|
---|
9620 | <desc>
|
---|
9621 | Starts erasing the contents of this differencing hard disk.
|
---|
9622 |
|
---|
9623 | This operation will reset the differencing hard disk to its initial
|
---|
9624 | state when it does not contain any sector data and any read operation is
|
---|
9625 | redirected to its parent hard disk.
|
---|
9626 |
|
---|
9627 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9628 | for the duration of this operation.
|
---|
9629 |
|
---|
9630 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9631 | This is not a differencing hard disk.
|
---|
9632 | </result>
|
---|
9633 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9634 | Hard disk is not in <link to="MediaState_Created"/> or
|
---|
9635 | <link to="MediaState_Inaccessible"/> state.
|
---|
9636 | </result>
|
---|
9637 | </desc>
|
---|
9638 | <param name="progress" type="IProgress" dir="return">
|
---|
9639 | <desc>Progress object to track the operation completion.</desc>
|
---|
9640 | </param>
|
---|
9641 | </method>
|
---|
9642 |
|
---|
9643 | </interface>
|
---|
9644 |
|
---|
9645 |
|
---|
9646 | <!--
|
---|
9647 | // IHardDiskFormat
|
---|
9648 | /////////////////////////////////////////////////////////////////////////
|
---|
9649 | -->
|
---|
9650 |
|
---|
9651 | <enum
|
---|
9652 | name="DataType"
|
---|
9653 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
9654 | >
|
---|
9655 | <const name="Int32" value="0"/>
|
---|
9656 | <const name="Int8" value="1"/>
|
---|
9657 | <const name="String" value="2"/>
|
---|
9658 | </enum>
|
---|
9659 |
|
---|
9660 | <enum
|
---|
9661 | name="DataFlags"
|
---|
9662 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
9663 | >
|
---|
9664 | <const name="None" value="0x00"/>
|
---|
9665 | <const name="Mandatory" value="0x01"/>
|
---|
9666 | <const name="Expert" value="0x02"/>
|
---|
9667 | <const name="Array" value="0x04"/>
|
---|
9668 | <const name="FlagMask" value="0x07"/>
|
---|
9669 | </enum>
|
---|
9670 |
|
---|
9671 | <enum
|
---|
9672 | name="HardDiskFormatCapabilities"
|
---|
9673 | uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
|
---|
9674 | >
|
---|
9675 | <desc>
|
---|
9676 | Hard disk format capability flags.
|
---|
9677 | </desc>
|
---|
9678 |
|
---|
9679 | <const name="Uuid" value="0x01">
|
---|
9680 | <desc>
|
---|
9681 | Supports UUIDs as expected by VirtualBox code.
|
---|
9682 | </desc>
|
---|
9683 | </const>
|
---|
9684 |
|
---|
9685 | <const name="CreateFixed" value="0x02">
|
---|
9686 | <desc>
|
---|
9687 | Supports creating fixed size images, allocating all space instantly.
|
---|
9688 | </desc>
|
---|
9689 | </const>
|
---|
9690 |
|
---|
9691 | <const name="CreateDynamic" value="0x04">
|
---|
9692 | <desc>
|
---|
9693 | Supports creating dynamically growing images, allocating space on
|
---|
9694 | demand.
|
---|
9695 | </desc>
|
---|
9696 | </const>
|
---|
9697 |
|
---|
9698 | <const name="CreateSplit2G" value="0x08">
|
---|
9699 | <desc>
|
---|
9700 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
9701 | </desc>
|
---|
9702 | </const>
|
---|
9703 |
|
---|
9704 | <const name="Differencing" value="0x10">
|
---|
9705 | <desc>
|
---|
9706 | Supports being used as a format for differencing hard disks (see <link
|
---|
9707 | to="IHardDisk::createDiffStorage"/>).
|
---|
9708 | </desc>
|
---|
9709 | </const>
|
---|
9710 |
|
---|
9711 | <const name="Asynchronous" value="0x20">
|
---|
9712 | <desc>
|
---|
9713 | Supports asynchronous I/O operations for at least some configurations.
|
---|
9714 | </desc>
|
---|
9715 | </const>
|
---|
9716 |
|
---|
9717 | <const name="File" value="0x40">
|
---|
9718 | <desc>
|
---|
9719 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
9720 | attribute of the hard disk specifies a file used to store hard disk
|
---|
9721 | data; for a list of supported file extensions see
|
---|
9722 | <link to="IHardDiskFormat::fileExtensions"/>).
|
---|
9723 | </desc>
|
---|
9724 | </const>
|
---|
9725 |
|
---|
9726 | <const name="Properties" value="0x80">
|
---|
9727 | <desc>
|
---|
9728 | The format backend uses the property interface to configure the storage
|
---|
9729 | location and properties (the <link to="IHardDiskFormat::describeProperties"/>
|
---|
9730 | method is used to get access to properties supported by the given hard
|
---|
9731 | disk format).
|
---|
9732 | </desc>
|
---|
9733 | </const>
|
---|
9734 |
|
---|
9735 | <const name="CapabilityMask" value="0xFF"/>
|
---|
9736 | </enum>
|
---|
9737 |
|
---|
9738 | <interface
|
---|
9739 | name="IHardDiskFormat" extends="$unknown"
|
---|
9740 | uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
|
---|
9741 | wsmap="managed"
|
---|
9742 | >
|
---|
9743 | <desc>
|
---|
9744 | The IHardDiskFormat interface represents a virtual hard disk format.
|
---|
9745 |
|
---|
9746 | Each hard disk format has an associated backend which is used to handle
|
---|
9747 | hard disks stored in this format. This interface provides information
|
---|
9748 | about the properties of the associated backend.
|
---|
9749 |
|
---|
9750 | Each hard disk format is identified by a string represented by the
|
---|
9751 | <link to="#id"/> attribute. This string is used in calls like
|
---|
9752 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
9753 | format.
|
---|
9754 |
|
---|
9755 | The list of all supported hard disk formats can be obtained using
|
---|
9756 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
9757 |
|
---|
9758 | <see>IHardDisk</see>
|
---|
9759 | </desc>
|
---|
9760 |
|
---|
9761 | <attribute name="id" type="wstring" readonly="yes">
|
---|
9762 | <desc>
|
---|
9763 | Identifier of this format.
|
---|
9764 |
|
---|
9765 | The format identifier is a non-null non-empty ASCII string. Note that
|
---|
9766 | this string is case-insensitive. This means that, for example, all of
|
---|
9767 | the following strings:
|
---|
9768 | <pre>
|
---|
9769 | "VDI"
|
---|
9770 | "vdi"
|
---|
9771 | "VdI"</pre>
|
---|
9772 | refer to the same hard disk format.
|
---|
9773 |
|
---|
9774 | This string is used in methods of other interfaces where it is necessary
|
---|
9775 | to specify a hard disk format, such as
|
---|
9776 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
9777 | </desc>
|
---|
9778 | </attribute>
|
---|
9779 |
|
---|
9780 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9781 | <desc>
|
---|
9782 | Human readable description of this format.
|
---|
9783 |
|
---|
9784 | Mainly for use in file open dialogs.
|
---|
9785 | </desc>
|
---|
9786 | </attribute>
|
---|
9787 |
|
---|
9788 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
9789 | <desc>
|
---|
9790 | Array of strings containing the supported file extensions.
|
---|
9791 |
|
---|
9792 | The first extension in the array is the extension preferred by the
|
---|
9793 | backend. It is recommended to use this extension when specifying a
|
---|
9794 | location of the storage unit for a new hard disk.
|
---|
9795 |
|
---|
9796 | Note that some backends do not work on files, so this array may be
|
---|
9797 | empty.
|
---|
9798 |
|
---|
9799 | <see>IHardDiskFormat::capabilities</see>
|
---|
9800 | </desc>
|
---|
9801 | </attribute>
|
---|
9802 |
|
---|
9803 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
9804 | <desc>
|
---|
9805 | Capabilities of the format as a set of bit flags.
|
---|
9806 |
|
---|
9807 | For the meaning of individual capability flags see
|
---|
9808 | <link to="HardDiskFormatCapabilities"/>.
|
---|
9809 | </desc>
|
---|
9810 | </attribute>
|
---|
9811 |
|
---|
9812 | <method name="describeProperties">
|
---|
9813 | <desc>
|
---|
9814 | Returns several arrays describing the properties supported by this
|
---|
9815 | format.
|
---|
9816 |
|
---|
9817 | An element with the given index in each array describes one
|
---|
9818 | property. Thus, the number of elements in each returned array is the
|
---|
9819 | same and corresponds to the number of supported properties.
|
---|
9820 |
|
---|
9821 | The returned arrays are filled in only if the
|
---|
9822 | <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
|
---|
9823 | All arguments must be non-NULL.
|
---|
9824 |
|
---|
9825 | <see>DataType</see>
|
---|
9826 | <see>DataFlags</see>
|
---|
9827 | </desc>
|
---|
9828 |
|
---|
9829 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
9830 | <desc>Array of property names.</desc>
|
---|
9831 | </param>
|
---|
9832 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
9833 | <desc>Array of property descriptions.</desc>
|
---|
9834 | </param>
|
---|
9835 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
9836 | <desc>Array of property types.</desc>
|
---|
9837 | </param>
|
---|
9838 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
9839 | <desc>Array of property flags.</desc>
|
---|
9840 | </param>
|
---|
9841 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
9842 | <desc>Array of default property values.</desc>
|
---|
9843 | </param>
|
---|
9844 | </method>
|
---|
9845 |
|
---|
9846 | </interface>
|
---|
9847 |
|
---|
9848 |
|
---|
9849 | <!--
|
---|
9850 | // IFloppyImage
|
---|
9851 | /////////////////////////////////////////////////////////////////////////
|
---|
9852 | -->
|
---|
9853 |
|
---|
9854 | <interface
|
---|
9855 | name="IFloppyImage" extends="IMedium"
|
---|
9856 | uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
|
---|
9857 | wsmap="managed"
|
---|
9858 | >
|
---|
9859 | <desc>
|
---|
9860 | The IFloppyImage interface represents a medium containing the image
|
---|
9861 | of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9862 | </desc>
|
---|
9863 |
|
---|
9864 | </interface>
|
---|
9865 |
|
---|
9866 |
|
---|
9867 | <!--
|
---|
9868 | // IDVDImage
|
---|
9869 | /////////////////////////////////////////////////////////////////////////
|
---|
9870 | -->
|
---|
9871 |
|
---|
9872 | <interface
|
---|
9873 | name="IDVDImage" extends="IMedium"
|
---|
9874 | uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
|
---|
9875 | wsmap="managed"
|
---|
9876 | >
|
---|
9877 | <desc>
|
---|
9878 | The IDVDImage interface represents a medium containing the image
|
---|
9879 | of a CD or DVD disk in the ISO format.
|
---|
9880 |
|
---|
9881 | This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9882 | </desc>
|
---|
9883 |
|
---|
9884 | </interface>
|
---|
9885 |
|
---|
9886 |
|
---|
9887 | <!--
|
---|
9888 | // IDVDDrive
|
---|
9889 | /////////////////////////////////////////////////////////////////////////
|
---|
9890 | -->
|
---|
9891 |
|
---|
9892 | <interface
|
---|
9893 | name="IDVDDrive" extends="$unknown"
|
---|
9894 | uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
|
---|
9895 | wsmap="managed"
|
---|
9896 | >
|
---|
9897 | <desc>
|
---|
9898 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
9899 | virtual machine. An object of this type is returned by
|
---|
9900 | <link to="IMachine::DVDDrive"/>.
|
---|
9901 | </desc>
|
---|
9902 |
|
---|
9903 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9904 | <desc>Current drive state.</desc>
|
---|
9905 | </attribute>
|
---|
9906 |
|
---|
9907 | <attribute name="passthrough" type="boolean">
|
---|
9908 | <desc>
|
---|
9909 | When a host drive is mounted and passthrough is enabled
|
---|
9910 | the guest OS will be able to directly send SCSI commands to
|
---|
9911 | the host drive. This enables the guest OS to use CD/DVD writers
|
---|
9912 | but is potentially dangerous.
|
---|
9913 | </desc>
|
---|
9914 | </attribute>
|
---|
9915 |
|
---|
9916 | <method name="mountImage">
|
---|
9917 | <desc>Mounts a CD/DVD image with the specified UUID.
|
---|
9918 |
|
---|
9919 | <result name="VBOX_E_FILE_ERROR">
|
---|
9920 | Invalid image file location.
|
---|
9921 | </result>
|
---|
9922 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9923 | Could not find a CD/DVD image matching @a imageId.
|
---|
9924 | </result>
|
---|
9925 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9926 | Invalid media state.
|
---|
9927 | </result>
|
---|
9928 |
|
---|
9929 | </desc>
|
---|
9930 | <param name="imageId" type="uuid" dir="in"/>
|
---|
9931 | </method>
|
---|
9932 |
|
---|
9933 | <method name="captureHostDrive">
|
---|
9934 | <desc>Captures the specified host CD/DVD drive.</desc>
|
---|
9935 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
9936 | </method>
|
---|
9937 |
|
---|
9938 | <method name="unmount">
|
---|
9939 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
9940 | </method>
|
---|
9941 |
|
---|
9942 | <method name="getImage">
|
---|
9943 | <desc>Returns the currently mounted CD/DVD image.</desc>
|
---|
9944 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
9945 | </method>
|
---|
9946 |
|
---|
9947 | <method name="getHostDrive">
|
---|
9948 | <desc>Returns the currently mounted host CD/DVD drive.</desc>
|
---|
9949 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
9950 | </method>
|
---|
9951 |
|
---|
9952 | </interface>
|
---|
9953 |
|
---|
9954 |
|
---|
9955 | <!--
|
---|
9956 | // IFloppyDrive
|
---|
9957 | /////////////////////////////////////////////////////////////////////////
|
---|
9958 | -->
|
---|
9959 |
|
---|
9960 | <interface
|
---|
9961 | name="IFloppyDrive" extends="$unknown"
|
---|
9962 | uuid="159412cd-bab8-452e-8097-218a020825a6"
|
---|
9963 | wsmap="managed"
|
---|
9964 | >
|
---|
9965 | <desc>
|
---|
9966 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
9967 | virtual machine. An object of this type is returned by
|
---|
9968 | <link to="IMachine::floppyDrive" />.
|
---|
9969 | </desc>
|
---|
9970 |
|
---|
9971 | <attribute name="enabled" type="boolean">
|
---|
9972 | <desc>
|
---|
9973 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
9974 | the floppy drive will not be reported to the guest OS.
|
---|
9975 | </desc>
|
---|
9976 | </attribute>
|
---|
9977 |
|
---|
9978 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9979 | <desc>Current drive state.</desc>
|
---|
9980 | </attribute>
|
---|
9981 |
|
---|
9982 | <method name="mountImage">
|
---|
9983 | <desc>Mounts a floppy image with the specified UUID.
|
---|
9984 |
|
---|
9985 | <result name="VBOX_E_FILE_ERROR">
|
---|
9986 | Invalid image file location.
|
---|
9987 | </result>
|
---|
9988 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9989 | Could not find a floppy image matching @a imageID.
|
---|
9990 | </result>
|
---|
9991 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9992 | Invalid media state.
|
---|
9993 | </result>
|
---|
9994 |
|
---|
9995 | </desc>
|
---|
9996 | <param name="imageId" type="uuid" dir="in"/>
|
---|
9997 | </method>
|
---|
9998 |
|
---|
9999 | <method name="captureHostDrive">
|
---|
10000 | <desc>Captures the specified host floppy drive.</desc>
|
---|
10001 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
10002 | </method>
|
---|
10003 |
|
---|
10004 | <method name="unmount">
|
---|
10005 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
10006 | </method>
|
---|
10007 |
|
---|
10008 | <method name="getImage">
|
---|
10009 | <desc>Returns the currently mounted floppy image.</desc>
|
---|
10010 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
10011 | </method>
|
---|
10012 |
|
---|
10013 | <method name="getHostDrive">
|
---|
10014 | <desc>Returns the currently mounted host floppy drive.</desc>
|
---|
10015 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
10016 | </method>
|
---|
10017 |
|
---|
10018 | </interface>
|
---|
10019 |
|
---|
10020 |
|
---|
10021 | <!--
|
---|
10022 | // IKeyboard
|
---|
10023 | /////////////////////////////////////////////////////////////////////////
|
---|
10024 | -->
|
---|
10025 |
|
---|
10026 | <interface
|
---|
10027 | name="IKeyboard" extends="$unknown"
|
---|
10028 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
10029 | wsmap="managed"
|
---|
10030 | >
|
---|
10031 | <desc>
|
---|
10032 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
10033 | in <link to="IConsole::keyboard"/>.
|
---|
10034 |
|
---|
10035 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
10036 | to the virtual machine.
|
---|
10037 |
|
---|
10038 | </desc>
|
---|
10039 | <method name="putScancode">
|
---|
10040 | <desc>Sends a scancode to the keyboard.
|
---|
10041 |
|
---|
10042 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10043 | Could not send scan code to virtual keyboard.
|
---|
10044 | </result>
|
---|
10045 |
|
---|
10046 | </desc>
|
---|
10047 | <param name="scancode" type="long" dir="in"/>
|
---|
10048 | </method>
|
---|
10049 |
|
---|
10050 | <method name="putScancodes">
|
---|
10051 | <desc>Sends an array of scancodes to the keyboard.
|
---|
10052 |
|
---|
10053 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10054 | Could not send all scan codes to virtual keyboard.
|
---|
10055 | </result>
|
---|
10056 |
|
---|
10057 | </desc>
|
---|
10058 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
10059 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
10060 | </method>
|
---|
10061 |
|
---|
10062 | <method name="putCAD">
|
---|
10063 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
10064 | function is nothing special, it is just a convenience function
|
---|
10065 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
10066 |
|
---|
10067 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10068 | Could not send all scan codes to virtual keyboard.
|
---|
10069 | </result>
|
---|
10070 |
|
---|
10071 | </desc>
|
---|
10072 | </method>
|
---|
10073 |
|
---|
10074 | </interface>
|
---|
10075 |
|
---|
10076 |
|
---|
10077 | <!--
|
---|
10078 | // IMouse
|
---|
10079 | /////////////////////////////////////////////////////////////////////////
|
---|
10080 | -->
|
---|
10081 |
|
---|
10082 | <enum
|
---|
10083 | name="MouseButtonState"
|
---|
10084 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
10085 | >
|
---|
10086 | <desc>
|
---|
10087 | Mouse button state.
|
---|
10088 | </desc>
|
---|
10089 |
|
---|
10090 | <const name="LeftButton" value="0x01"/>
|
---|
10091 | <const name="RightButton" value="0x02"/>
|
---|
10092 | <const name="MiddleButton" value="0x04"/>
|
---|
10093 | <const name="WheelUp" value="0x08"/>
|
---|
10094 | <const name="WheelDown" value="0x10"/>
|
---|
10095 | <const name="MouseStateMask" value="0x1F"/>
|
---|
10096 | </enum>
|
---|
10097 |
|
---|
10098 | <interface
|
---|
10099 | name="IMouse" extends="$unknown"
|
---|
10100 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
10101 | wsmap="managed"
|
---|
10102 | >
|
---|
10103 | <desc>
|
---|
10104 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
10105 | <link to="IConsole::mouse"/>.
|
---|
10106 |
|
---|
10107 | Through this interface, the virtual machine's virtual mouse can be
|
---|
10108 | controlled.
|
---|
10109 | </desc>
|
---|
10110 |
|
---|
10111 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
10112 | <desc>
|
---|
10113 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
10114 | or not.
|
---|
10115 | <note>
|
---|
10116 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
10117 | in order to enable absolute mouse positioning support.
|
---|
10118 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10119 | callback to be instantly informed about changes of this attribute
|
---|
10120 | during virtual machine execution.
|
---|
10121 | </note>
|
---|
10122 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
10123 | </desc>
|
---|
10124 | </attribute>
|
---|
10125 |
|
---|
10126 | <method name="putMouseEvent">
|
---|
10127 | <desc>
|
---|
10128 | Initiates a mouse event using relative pointer movements
|
---|
10129 | along x and y axis.
|
---|
10130 |
|
---|
10131 | <result name="E_ACCESSDENIED">
|
---|
10132 | Console not powered up.
|
---|
10133 | </result>
|
---|
10134 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10135 | Could not send mouse event to virtual mouse.
|
---|
10136 | </result>
|
---|
10137 |
|
---|
10138 | </desc>
|
---|
10139 |
|
---|
10140 | <param name="dx" type="long" dir="in">
|
---|
10141 | <desc>
|
---|
10142 | Amount of pixels the mouse should move to the right.
|
---|
10143 | Negative values move the mouse to the left.
|
---|
10144 | </desc>
|
---|
10145 | </param>
|
---|
10146 | <param name="dy" type="long" dir="in">
|
---|
10147 | <desc>
|
---|
10148 | Amount of pixels the mouse should move downwards.
|
---|
10149 | Negative values move the mouse upwards.
|
---|
10150 | </desc>
|
---|
10151 | </param>
|
---|
10152 | <param name="dz" type="long" dir="in">
|
---|
10153 | <desc>
|
---|
10154 | Amount of mouse wheel moves.
|
---|
10155 | Positive values describe clockwise wheel rotations,
|
---|
10156 | negative values describe counterclockwise rotations.
|
---|
10157 | </desc>
|
---|
10158 | </param>
|
---|
10159 | <param name="buttonState" type="long" dir="in">
|
---|
10160 | <desc>
|
---|
10161 | The current state of mouse buttons. Every bit represents
|
---|
10162 | a mouse button as follows:
|
---|
10163 | <table>
|
---|
10164 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10165 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10166 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10167 | </table>
|
---|
10168 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10169 | otherwise it is released.
|
---|
10170 | </desc>
|
---|
10171 | </param>
|
---|
10172 | </method>
|
---|
10173 |
|
---|
10174 | <method name="putMouseEventAbsolute">
|
---|
10175 | <desc>
|
---|
10176 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10177 | These coordinates are expressed in pixels and
|
---|
10178 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10179 | corner of the virtual display.
|
---|
10180 |
|
---|
10181 | <result name="E_ACCESSDENIED">
|
---|
10182 | Console not powered up.
|
---|
10183 | </result>
|
---|
10184 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10185 | Could not send mouse event to virtual mouse.
|
---|
10186 | </result>
|
---|
10187 |
|
---|
10188 | <note>
|
---|
10189 | This method will have effect only if absolute mouse
|
---|
10190 | positioning is supported by the guest OS.
|
---|
10191 | </note>
|
---|
10192 |
|
---|
10193 | <see><link to="#absoluteSupported"/></see>
|
---|
10194 | </desc>
|
---|
10195 |
|
---|
10196 | <param name="x" type="long" dir="in">
|
---|
10197 | <desc>
|
---|
10198 | X coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
10199 | </desc>
|
---|
10200 | </param>
|
---|
10201 | <param name="y" type="long" dir="in">
|
---|
10202 | <desc>
|
---|
10203 | Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
10204 | </desc>
|
---|
10205 | </param>
|
---|
10206 | <param name="dz" type="long" dir="in">
|
---|
10207 | <desc>
|
---|
10208 | Amount of mouse wheel moves.
|
---|
10209 | Positive values describe clockwise wheel rotations,
|
---|
10210 | negative values describe counterclockwise rotations.
|
---|
10211 | </desc>
|
---|
10212 | </param>
|
---|
10213 | <param name="buttonState" type="long" dir="in">
|
---|
10214 | <desc>
|
---|
10215 | The current state of mouse buttons. Every bit represents
|
---|
10216 | a mouse button as follows:
|
---|
10217 | <table>
|
---|
10218 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10219 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10220 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10221 | </table>
|
---|
10222 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10223 | otherwise it is released.
|
---|
10224 | </desc>
|
---|
10225 | </param>
|
---|
10226 | </method>
|
---|
10227 |
|
---|
10228 | </interface>
|
---|
10229 |
|
---|
10230 | <!--
|
---|
10231 | // IDisplay
|
---|
10232 | /////////////////////////////////////////////////////////////////////////
|
---|
10233 | -->
|
---|
10234 |
|
---|
10235 | <enum
|
---|
10236 | name="FramebufferAccelerationOperation"
|
---|
10237 | uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
|
---|
10238 | >
|
---|
10239 | <desc>
|
---|
10240 | Frame buffer acceleration operation.
|
---|
10241 | </desc>
|
---|
10242 |
|
---|
10243 | <const name="SolidFillAcceleration" value="1"/>
|
---|
10244 | <const name="ScreenCopyAcceleration" value="2"/>
|
---|
10245 | </enum>
|
---|
10246 |
|
---|
10247 | <enum
|
---|
10248 | name="FramebufferPixelFormat"
|
---|
10249 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10250 | >
|
---|
10251 | <desc>
|
---|
10252 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10253 | be used to test for particular values of <link
|
---|
10254 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10255 | to="IFramebuffer::requestResize"/>.
|
---|
10256 |
|
---|
10257 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10258 | </desc>
|
---|
10259 |
|
---|
10260 | <const name="Opaque" value="0">
|
---|
10261 | <desc>
|
---|
10262 | Unknown buffer format (the user may not assume any particular format of
|
---|
10263 | the buffer).
|
---|
10264 | </desc>
|
---|
10265 | </const>
|
---|
10266 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10267 | <desc>
|
---|
10268 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10269 | bit layout).
|
---|
10270 | </desc>
|
---|
10271 | </const>
|
---|
10272 | </enum>
|
---|
10273 |
|
---|
10274 | <interface
|
---|
10275 | name="IFramebuffer" extends="$unknown"
|
---|
10276 | uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
|
---|
10277 | wsmap="suppress"
|
---|
10278 | >
|
---|
10279 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
10280 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
10281 | </attribute>
|
---|
10282 |
|
---|
10283 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10284 | <desc>Frame buffer width, in pixels.</desc>
|
---|
10285 | </attribute>
|
---|
10286 |
|
---|
10287 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10288 | <desc>Frame buffer height, in pixels.</desc>
|
---|
10289 | </attribute>
|
---|
10290 |
|
---|
10291 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10292 | <desc>
|
---|
10293 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
10294 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
10295 | are: 8, 15, 16, 24 and 32.
|
---|
10296 | </desc>
|
---|
10297 | </attribute>
|
---|
10298 |
|
---|
10299 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
10300 | <desc>
|
---|
10301 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
10302 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
10303 | size of the scan line must be aligned to 32 bits.
|
---|
10304 | </desc>
|
---|
10305 | </attribute>
|
---|
10306 |
|
---|
10307 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
10308 | <desc>
|
---|
10309 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
10310 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
10311 | <note>
|
---|
10312 | This attribute must never return <link
|
---|
10313 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
10314 | <link to="#address"/> points to must be always known.
|
---|
10315 | </note>
|
---|
10316 | </desc>
|
---|
10317 | </attribute>
|
---|
10318 |
|
---|
10319 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
10320 | <desc>
|
---|
10321 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
10322 | buffer (guest VRAM) directly or not. See <link
|
---|
10323 | to="IFramebuffer::requestResize"/> for more information.
|
---|
10324 | </desc>
|
---|
10325 | </attribute>
|
---|
10326 |
|
---|
10327 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
10328 | <desc>
|
---|
10329 | Hint from the frame buffer about how much of the standard
|
---|
10330 | screen height it wants to use for itself. This information is
|
---|
10331 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
10332 | so that it can use it for determining its video mode table. It
|
---|
10333 | is not guaranteed that the guest respects the value.
|
---|
10334 | </desc>
|
---|
10335 | </attribute>
|
---|
10336 |
|
---|
10337 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
10338 | <desc>
|
---|
10339 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
10340 | The initial purpose is to allow the display of icons providing
|
---|
10341 | information about the VM state, including disk activity, in front
|
---|
10342 | ends which do not have other means of doing that. The overlay is
|
---|
10343 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
10344 | of its own, and any changes made to it are not guaranteed to be
|
---|
10345 | visible until the affected portion of IFramebuffer is updated. The
|
---|
10346 | overlay can be created lazily the first time it is requested. This
|
---|
10347 | attribute can also return NULL to signal that the overlay is not
|
---|
10348 | implemented.
|
---|
10349 | </desc>
|
---|
10350 | </attribute>
|
---|
10351 |
|
---|
10352 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
10353 | <desc>
|
---|
10354 | Platform-dependent identifier of the window where context of this
|
---|
10355 | frame buffer is drawn, or zero if there's no such window.
|
---|
10356 | </desc>
|
---|
10357 | </attribute>
|
---|
10358 |
|
---|
10359 | <method name="lock">
|
---|
10360 | <desc>
|
---|
10361 | Locks the frame buffer.
|
---|
10362 | Gets called by the IDisplay object where this frame buffer is
|
---|
10363 | bound to.
|
---|
10364 | </desc>
|
---|
10365 | </method>
|
---|
10366 |
|
---|
10367 | <method name="unlock">
|
---|
10368 | <desc>
|
---|
10369 | Unlocks the frame buffer.
|
---|
10370 | Gets called by the IDisplay object where this frame buffer is
|
---|
10371 | bound to.
|
---|
10372 | </desc>
|
---|
10373 | </method>
|
---|
10374 |
|
---|
10375 | <method name="notifyUpdate">
|
---|
10376 | <desc>
|
---|
10377 | Informs about an update.
|
---|
10378 | Gets called by the display object where this buffer is
|
---|
10379 | registered.
|
---|
10380 | </desc>
|
---|
10381 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10382 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10383 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10384 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10385 | <param name="finished" type="boolean" dir="return"/>
|
---|
10386 | </method>
|
---|
10387 |
|
---|
10388 | <method name="requestResize">
|
---|
10389 | <desc>
|
---|
10390 | Requests a size and pixel format change.
|
---|
10391 |
|
---|
10392 | There are two modes of working with the video buffer of the virtual
|
---|
10393 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
10394 | implementation allocates a memory buffer for the requested display mode
|
---|
10395 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
10396 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
10397 | by the virtual machine. This buffer represents the video memory of the
|
---|
10398 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
10399 | usually faster because the implementation gets a raw pointer to the
|
---|
10400 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
10401 | of the virtual display, as opposed to the indirect mode where the
|
---|
10402 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
10403 | the implementation every time a display update occurs.
|
---|
10404 |
|
---|
10405 | It is important to note that the direct mode is really fast only when
|
---|
10406 | the implementation uses the given guest VRAM buffer directly, for
|
---|
10407 | example, by blitting it to the window representing the virtual machine's
|
---|
10408 | display, which saves at least one copy operation comparing to the
|
---|
10409 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
10410 | always possible: the format and the color depth of this buffer may be
|
---|
10411 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
10412 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
10413 | the indirect mode (that is always available) should be used as a
|
---|
10414 | fallback: when the guest VRAM contents are copied to the
|
---|
10415 | implementation-provided memory buffer, color and format conversion is
|
---|
10416 | done automatically by the underlying code.
|
---|
10417 |
|
---|
10418 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
10419 | available or not. If @a pixelFormat is <link
|
---|
10420 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
10421 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
10422 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
10423 | the indirect mode (where it provides its own buffer in one of the
|
---|
10424 | supported formats). In all other cases, @a pixelFormat together with
|
---|
10425 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
10426 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
10427 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
10428 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
10429 | attribute must return <tt>true</tt> and <link to="#address"/> must
|
---|
10430 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
10431 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
10432 | chosen.
|
---|
10433 |
|
---|
10434 | The @a width and @a height parameters represent the size of the
|
---|
10435 | requested display mode in both modes. In case of indirect mode, the
|
---|
10436 | provided memory buffer should be big enough to store data of the given
|
---|
10437 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
10438 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
10439 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
10440 | to="#height"/> attributes must return exactly the same values as
|
---|
10441 | passed to this method after the resize is completed (see below).
|
---|
10442 |
|
---|
10443 | The @a finished output parameter determines if the implementation has
|
---|
10444 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
10445 | resize cannot be finished immediately during this call, @a finished
|
---|
10446 | must be set to @c false, and the implementation must call
|
---|
10447 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
10448 | this method as soon as possible. If @a finished is @c false, the
|
---|
10449 | machine will not call any frame buffer methods until
|
---|
10450 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10451 |
|
---|
10452 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
10453 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
10454 | this frame buffer must return exactly the same values as specified in the
|
---|
10455 | parameters of this method, after the resize is completed. If the
|
---|
10456 | indirect mode is chosen, these attributes must return values describing
|
---|
10457 | the format of the implementation's own memory buffer <link
|
---|
10458 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
10459 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
10460 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
10461 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
10462 |
|
---|
10463 | <note>
|
---|
10464 | This method is called by the IDisplay object under the
|
---|
10465 | <link to="#lock"/> provided by this IFramebuffer
|
---|
10466 | implementation. If this method returns @c false in @a finished, then
|
---|
10467 | this lock is not released until
|
---|
10468 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10469 | </note>
|
---|
10470 | </desc>
|
---|
10471 | <param name="screenId" type="unsigned long" dir="in">
|
---|
10472 | <desc>
|
---|
10473 | Logical screen number. Must be used in the corresponding call to
|
---|
10474 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
10475 | </desc>
|
---|
10476 | </param>
|
---|
10477 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
10478 | <desc>
|
---|
10479 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
10480 | See also <link to="FramebufferPixelFormat"/>.
|
---|
10481 | </desc>
|
---|
10482 | </param>
|
---|
10483 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
10484 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
10485 | </param>
|
---|
10486 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
10487 | <desc>Color depth, bits per pixel.</desc>
|
---|
10488 | </param>
|
---|
10489 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
10490 | <desc>Size of one scan line, in bytes.</desc>
|
---|
10491 | </param>
|
---|
10492 | <param name="width" type="unsigned long" dir="in">
|
---|
10493 | <desc>Width of the guest display, in pixels.</desc>
|
---|
10494 | </param>
|
---|
10495 | <param name="height" type="unsigned long" dir="in">
|
---|
10496 | <desc>Height of the guest display, in pixels.</desc>
|
---|
10497 | </param>
|
---|
10498 | <param name="finished" type="boolean" dir="return">
|
---|
10499 | <desc>
|
---|
10500 | Can the VM start using the new frame buffer immediately
|
---|
10501 | after this method returns or it should wait for
|
---|
10502 | <link to="IDisplay::resizeCompleted"/>.
|
---|
10503 | </desc>
|
---|
10504 | </param>
|
---|
10505 | </method>
|
---|
10506 |
|
---|
10507 | <method name="operationSupported">
|
---|
10508 | <desc>
|
---|
10509 | Returns whether the given acceleration operation is supported
|
---|
10510 | by the IFramebuffer implementation. If not, the display object
|
---|
10511 | will not attempt to call the corresponding IFramebuffer entry
|
---|
10512 | point. Even if an operation is indicated as supported, the
|
---|
10513 | IFramebuffer implementation always has the option to return non
|
---|
10514 | supported from the corresponding acceleration method in which
|
---|
10515 | case the operation will be performed by the display engine. This
|
---|
10516 | allows for reduced IFramebuffer implementation complexity where
|
---|
10517 | only common cases are handled.
|
---|
10518 | </desc>
|
---|
10519 | <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
|
---|
10520 | <param name="supported" type="boolean" dir="return"/>
|
---|
10521 | </method>
|
---|
10522 |
|
---|
10523 | <method name="videoModeSupported">
|
---|
10524 | <desc>
|
---|
10525 | Returns whether the frame buffer implementation is willing to
|
---|
10526 | support a given video mode. In case it is not able to render
|
---|
10527 | the video mode (or for some reason not willing), it should
|
---|
10528 | return false. Usually this method is called when the guest
|
---|
10529 | asks the VMM device whether a given video mode is supported
|
---|
10530 | so the information returned is directly exposed to the guest.
|
---|
10531 | It is important that this method returns very quickly.
|
---|
10532 | </desc>
|
---|
10533 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10534 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10535 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
10536 | <param name="supported" type="boolean" dir="return"/>
|
---|
10537 | </method>
|
---|
10538 |
|
---|
10539 | <method name="solidFill">
|
---|
10540 | <desc>
|
---|
10541 | Fills the specified rectangle on screen with a solid color.
|
---|
10542 | </desc>
|
---|
10543 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10544 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10545 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10546 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10547 | <param name="color" type="unsigned long" dir="in"/>
|
---|
10548 | <param name="handled" type="boolean" dir="return"/>
|
---|
10549 | </method>
|
---|
10550 |
|
---|
10551 | <method name="copyScreenBits">
|
---|
10552 | <desc>
|
---|
10553 | Copies specified rectangle on the screen.
|
---|
10554 | </desc>
|
---|
10555 | <param name="xDst" type="unsigned long" dir="in"/>
|
---|
10556 | <param name="yDst" type="unsigned long" dir="in"/>
|
---|
10557 | <param name="xSrc" type="unsigned long" dir="in"/>
|
---|
10558 | <param name="ySrc" type="unsigned long" dir="in"/>
|
---|
10559 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10560 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10561 | <param name="handled" type="boolean" dir="return"/>
|
---|
10562 | </method>
|
---|
10563 |
|
---|
10564 | <method name="getVisibleRegion">
|
---|
10565 | <desc>
|
---|
10566 | Returns the visible region of this frame buffer.
|
---|
10567 |
|
---|
10568 | If the @a rectangles parameter is <tt>NULL</tt> then the value of the
|
---|
10569 | @a count parameter is ignored and the number of elements necessary to
|
---|
10570 | describe the current visible region is returned in @a countCopied.
|
---|
10571 |
|
---|
10572 | If @a rectangles is not <tt>NULL</tt> but @a count is less
|
---|
10573 | than the required number of elements to store region data, the method
|
---|
10574 | will report a failure. If @a count is equal or greater than the
|
---|
10575 | required number of elements, then the actual number of elements copied
|
---|
10576 | to the provided array will be returned in @a countCopied.
|
---|
10577 |
|
---|
10578 | <note>
|
---|
10579 | The address of the provided array must be in the process space of
|
---|
10580 | this IFramebuffer object.
|
---|
10581 | </note>
|
---|
10582 | <note>
|
---|
10583 | Method not yet implemented.
|
---|
10584 | </note>
|
---|
10585 | </desc>
|
---|
10586 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10587 | <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
|
---|
10588 | </param>
|
---|
10589 | <param name="count" type="unsigned long" dir="in">
|
---|
10590 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
10591 | </param>
|
---|
10592 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
10593 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
10594 | </param>
|
---|
10595 | </method>
|
---|
10596 |
|
---|
10597 | <method name="setVisibleRegion">
|
---|
10598 | <desc>
|
---|
10599 | Suggests a new visible region to this frame buffer. This region
|
---|
10600 | represents the area of the VM display which is a union of regions of
|
---|
10601 | all top-level windows of the guest operating system running inside the
|
---|
10602 | VM (if the Guest Additions for this system support this
|
---|
10603 | functionality). This information may be used by the frontends to
|
---|
10604 | implement the seamless desktop integration feature.
|
---|
10605 |
|
---|
10606 | <note>
|
---|
10607 | The address of the provided array must be in the process space of
|
---|
10608 | this IFramebuffer object.
|
---|
10609 | </note>
|
---|
10610 | <note>
|
---|
10611 | The IFramebuffer implementation must make a copy of the provided
|
---|
10612 | array of rectangles.
|
---|
10613 | </note>
|
---|
10614 | <note>
|
---|
10615 | Method not yet implemented.
|
---|
10616 | </note>
|
---|
10617 | </desc>
|
---|
10618 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10619 | <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
|
---|
10620 | </param>
|
---|
10621 | <param name="count" type="unsigned long" dir="in">
|
---|
10622 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
10623 | </param>
|
---|
10624 | </method>
|
---|
10625 |
|
---|
10626 | </interface>
|
---|
10627 |
|
---|
10628 | <interface
|
---|
10629 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
10630 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
10631 | wsmap="suppress"
|
---|
10632 | >
|
---|
10633 | <desc>
|
---|
10634 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
10635 | for displaying status icons above an IFramebuffer. It is always created
|
---|
10636 | not visible, so that it must be explicitly shown. It only covers a
|
---|
10637 | portion of the IFramebuffer, determined by its width, height and
|
---|
10638 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
10639 | that order) format, and may be written to directly. Do re-read the
|
---|
10640 | width though, after setting it, as it may be adjusted (increased) to
|
---|
10641 | make it more suitable for the front end.
|
---|
10642 | </desc>
|
---|
10643 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
10644 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
10645 | </attribute>
|
---|
10646 |
|
---|
10647 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
10648 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
10649 | </attribute>
|
---|
10650 |
|
---|
10651 | <attribute name="visible" type="boolean" readonly="no">
|
---|
10652 | <desc>
|
---|
10653 | Whether the overlay is currently visible.
|
---|
10654 | </desc>
|
---|
10655 | </attribute>
|
---|
10656 |
|
---|
10657 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
10658 | <desc>
|
---|
10659 | The global alpha value for the overlay. This may or may not be
|
---|
10660 | supported by a given front end.
|
---|
10661 | </desc>
|
---|
10662 | </attribute>
|
---|
10663 |
|
---|
10664 | <method name="move">
|
---|
10665 | <desc>
|
---|
10666 | Changes the overlay's position relative to the IFramebuffer.
|
---|
10667 | </desc>
|
---|
10668 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10669 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10670 | </method>
|
---|
10671 |
|
---|
10672 | </interface>
|
---|
10673 |
|
---|
10674 | <interface
|
---|
10675 | name="IDisplay" extends="$unknown"
|
---|
10676 | uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
|
---|
10677 | wsmap="suppress"
|
---|
10678 | >
|
---|
10679 | <desc>
|
---|
10680 | The IDisplay interface represents the virtual machine's display.
|
---|
10681 |
|
---|
10682 | The object implementing this interface is contained in each
|
---|
10683 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
10684 | output of the virtual machine.
|
---|
10685 |
|
---|
10686 | The virtual display supports pluggable output targets represented by the
|
---|
10687 | IFramebuffer interface. Examples of the output target are a window on
|
---|
10688 | the host computer or an RDP session's display on a remote computer.
|
---|
10689 | </desc>
|
---|
10690 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10691 | <desc>Current display width.</desc>
|
---|
10692 | </attribute>
|
---|
10693 |
|
---|
10694 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10695 | <desc>Current display height.</desc>
|
---|
10696 | </attribute>
|
---|
10697 |
|
---|
10698 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10699 | <desc>
|
---|
10700 | Current guest display color depth. Note that this may differ
|
---|
10701 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
10702 | </desc>
|
---|
10703 | </attribute>
|
---|
10704 |
|
---|
10705 | <method name="setupInternalFramebuffer">
|
---|
10706 | <desc>
|
---|
10707 | Prepares an internally managed frame buffer.
|
---|
10708 | </desc>
|
---|
10709 | <param name="depth" type="unsigned long" dir="in"/>
|
---|
10710 | </method>
|
---|
10711 |
|
---|
10712 | <method name="lockFramebuffer">
|
---|
10713 | <desc>
|
---|
10714 | Requests access to the internal frame buffer.
|
---|
10715 |
|
---|
10716 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10717 | Attempt to lock a non-internal frame buffer.
|
---|
10718 | </result>
|
---|
10719 |
|
---|
10720 | </desc>
|
---|
10721 | <param name="address" type="octet" mod="ptr" dir="return"/>
|
---|
10722 | </method>
|
---|
10723 |
|
---|
10724 | <method name="unlockFramebuffer">
|
---|
10725 | <desc>
|
---|
10726 | Releases access to the internal frame buffer.
|
---|
10727 |
|
---|
10728 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10729 | Attempt to unlock a non-internal frame buffer.
|
---|
10730 | </result>
|
---|
10731 |
|
---|
10732 | </desc>
|
---|
10733 | </method>
|
---|
10734 |
|
---|
10735 | <method name="registerExternalFramebuffer">
|
---|
10736 | <desc>
|
---|
10737 | Registers an external frame buffer.
|
---|
10738 | </desc>
|
---|
10739 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
10740 | </method>
|
---|
10741 |
|
---|
10742 | <method name="setFramebuffer">
|
---|
10743 | <desc>
|
---|
10744 | Sets the framebuffer for given screen.
|
---|
10745 | </desc>
|
---|
10746 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10747 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
10748 | </method>
|
---|
10749 |
|
---|
10750 | <method name="getFramebuffer">
|
---|
10751 | <desc>
|
---|
10752 | Queries the framebuffer for given screen.
|
---|
10753 | </desc>
|
---|
10754 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10755 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
10756 | <param name="xOrigin" type="long" dir="out"/>
|
---|
10757 | <param name="yOrigin" type="long" dir="out"/>
|
---|
10758 | </method>
|
---|
10759 |
|
---|
10760 | <method name="setVideoModeHint">
|
---|
10761 | <desc>
|
---|
10762 | Asks VirtualBox to request the given video mode from
|
---|
10763 | the guest. This is just a hint and it cannot be guaranteed
|
---|
10764 | that the requested resolution will be used. Guest Additions
|
---|
10765 | are required for the request to be seen by guests. The caller
|
---|
10766 | should issue the request and wait for a resolution change and
|
---|
10767 | after a timeout retry.
|
---|
10768 |
|
---|
10769 | Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
|
---|
10770 | parameters means that the corresponding values should be taken from the
|
---|
10771 | current video mode (i.e. left unchanged).
|
---|
10772 |
|
---|
10773 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
10774 | parameter specifies the number of the guest display to send the hint to:
|
---|
10775 | <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
|
---|
10776 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
10777 | must be <tt>0</tt>.
|
---|
10778 |
|
---|
10779 | <result name="E_INVALIDARG">
|
---|
10780 | The @a display is not associated with any monitor.
|
---|
10781 | </result>
|
---|
10782 |
|
---|
10783 | </desc>
|
---|
10784 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10785 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10786 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
10787 | <param name="display" type="unsigned long" dir="in"/>
|
---|
10788 | </method>
|
---|
10789 |
|
---|
10790 | <method name="setSeamlessMode">
|
---|
10791 | <desc>
|
---|
10792 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
10793 | integration) mode.
|
---|
10794 | <note>
|
---|
10795 | Calling this method has no effect if <link
|
---|
10796 | to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
|
---|
10797 | </note>
|
---|
10798 | </desc>
|
---|
10799 | <param name="enabled" type="boolean" dir="in"/>
|
---|
10800 | </method>
|
---|
10801 |
|
---|
10802 | <method name="takeScreenShot">
|
---|
10803 | <desc>
|
---|
10804 | Takes a screen shot of the requested size and copies it to the
|
---|
10805 | 32-bpp buffer allocated by the caller.
|
---|
10806 |
|
---|
10807 | <result name="E_NOTIMPL">
|
---|
10808 | Feature not implemented.
|
---|
10809 | </result>
|
---|
10810 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10811 | Could not take a screenshot.
|
---|
10812 | </result>
|
---|
10813 |
|
---|
10814 | </desc>
|
---|
10815 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10816 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10817 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10818 | </method>
|
---|
10819 |
|
---|
10820 | <method name="drawToScreen">
|
---|
10821 | <desc>
|
---|
10822 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
10823 | to the given point on the VM display.
|
---|
10824 |
|
---|
10825 | <result name="E_NOTIMPL">
|
---|
10826 | Feature not implemented.
|
---|
10827 | </result>
|
---|
10828 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10829 | Could not draw to screen.
|
---|
10830 | </result>
|
---|
10831 |
|
---|
10832 | </desc>
|
---|
10833 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10834 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10835 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10836 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10837 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10838 | </method>
|
---|
10839 |
|
---|
10840 | <method name="invalidateAndUpdate">
|
---|
10841 | <desc>
|
---|
10842 | Does a full invalidation of the VM display and instructs the VM
|
---|
10843 | to update it.
|
---|
10844 |
|
---|
10845 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10846 | Could not invalidate and update screen.
|
---|
10847 | </result>
|
---|
10848 |
|
---|
10849 | </desc>
|
---|
10850 | </method>
|
---|
10851 |
|
---|
10852 | <method name="resizeCompleted">
|
---|
10853 | <desc>
|
---|
10854 | Signals that a framebuffer has completed the resize operation.
|
---|
10855 |
|
---|
10856 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10857 | Operation only valid for external frame buffers.
|
---|
10858 | </result>
|
---|
10859 |
|
---|
10860 | </desc>
|
---|
10861 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10862 | </method>
|
---|
10863 |
|
---|
10864 | <method name="updateCompleted">
|
---|
10865 | <desc>
|
---|
10866 | Signals that a framebuffer has completed the update operation.
|
---|
10867 |
|
---|
10868 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10869 | Operation only valid for external frame buffers.
|
---|
10870 | </result>
|
---|
10871 |
|
---|
10872 | </desc>
|
---|
10873 | </method>
|
---|
10874 |
|
---|
10875 | </interface>
|
---|
10876 |
|
---|
10877 | <!--
|
---|
10878 | // INetworkAdapter
|
---|
10879 | /////////////////////////////////////////////////////////////////////////
|
---|
10880 | -->
|
---|
10881 |
|
---|
10882 | <enum
|
---|
10883 | name="NetworkAttachmentType"
|
---|
10884 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
10885 | >
|
---|
10886 | <desc>
|
---|
10887 | Network attachment type.
|
---|
10888 | </desc>
|
---|
10889 |
|
---|
10890 | <const name="Null" value="0">
|
---|
10891 | <desc>Null value, also means "not attached".</desc>
|
---|
10892 | </const>
|
---|
10893 | <const name="NAT" value="1"/>
|
---|
10894 | <const name="Bridged" value="2"/>
|
---|
10895 | <const name="Internal" value="3"/>
|
---|
10896 | <const name="HostOnly" value="4"/>
|
---|
10897 | </enum>
|
---|
10898 |
|
---|
10899 | <enum
|
---|
10900 | name="NetworkAdapterType"
|
---|
10901 | uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
|
---|
10902 | >
|
---|
10903 | <desc>
|
---|
10904 | Network adapter type.
|
---|
10905 | </desc>
|
---|
10906 |
|
---|
10907 | <const name="Null" value="0">
|
---|
10908 | <desc>Null value (never used by the API).</desc>
|
---|
10909 | </const>
|
---|
10910 | <const name="Am79C970A" value="1"/>
|
---|
10911 | <const name="Am79C973" value="2"/>
|
---|
10912 | <const name="I82540EM" value="3"/>
|
---|
10913 | <const name="I82543GC" value="4"/>
|
---|
10914 | <const name="I82545EM" value="5"/>
|
---|
10915 | </enum>
|
---|
10916 |
|
---|
10917 | <interface
|
---|
10918 | name="INetworkAdapter" extends="$unknown"
|
---|
10919 | uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
---|
10920 | wsmap="managed"
|
---|
10921 | >
|
---|
10922 | <desc>
|
---|
10923 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
10924 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
10925 | instance of this attached to each of them. Call
|
---|
10926 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
10927 | is attached to a given slot in a given machine.
|
---|
10928 |
|
---|
10929 | Each network adapter can be in one of five attachment modes, which are
|
---|
10930 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
10931 | see the <link to="#attachmentType" /> attribute.
|
---|
10932 | </desc>
|
---|
10933 |
|
---|
10934 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
10935 | <desc>
|
---|
10936 | Type of the virtual network adapter. Depending on this value,
|
---|
10937 | VirtualBox will provide a different virtual network hardware
|
---|
10938 | to the guest.
|
---|
10939 | </desc>
|
---|
10940 | </attribute>
|
---|
10941 |
|
---|
10942 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
10943 | <desc>
|
---|
10944 | Slot number this adapter is plugged into. Corresponds to
|
---|
10945 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
10946 | to obtain this instance.
|
---|
10947 | </desc>
|
---|
10948 | </attribute>
|
---|
10949 |
|
---|
10950 | <attribute name="enabled" type="boolean">
|
---|
10951 | <desc>
|
---|
10952 | Flag whether the network adapter is present in the
|
---|
10953 | guest system. If disabled, the virtual guest hardware will
|
---|
10954 | not contain this network adapter. Can only be changed when
|
---|
10955 | the VM is not running.
|
---|
10956 | </desc>
|
---|
10957 | </attribute>
|
---|
10958 |
|
---|
10959 | <attribute name="MACAddress" type="wstring">
|
---|
10960 | <desc>
|
---|
10961 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
10962 | it to NULL, VirtualBox will generate a unique MAC address.
|
---|
10963 | </desc>
|
---|
10964 | </attribute>
|
---|
10965 |
|
---|
10966 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
10967 |
|
---|
10968 | <attribute name="hostInterface" type="wstring">
|
---|
10969 | <desc>
|
---|
10970 | Name of the host network interface the VM is attached to.
|
---|
10971 | </desc>
|
---|
10972 | </attribute>
|
---|
10973 |
|
---|
10974 | <attribute name="internalNetwork" type="wstring">
|
---|
10975 | <desc>
|
---|
10976 | Name of the internal network the VM is attached to.
|
---|
10977 | </desc>
|
---|
10978 | </attribute>
|
---|
10979 |
|
---|
10980 | <attribute name="NATNetwork" type="wstring">
|
---|
10981 | <desc>
|
---|
10982 | Name of the NAT network the VM is attached to.
|
---|
10983 | </desc>
|
---|
10984 | </attribute>
|
---|
10985 |
|
---|
10986 | <attribute name="cableConnected" type="boolean">
|
---|
10987 | <desc>
|
---|
10988 | Flag whether the adapter reports the cable as connected or not.
|
---|
10989 | It can be used to report offline situations to a VM.
|
---|
10990 | </desc>
|
---|
10991 | </attribute>
|
---|
10992 |
|
---|
10993 | <attribute name="lineSpeed" type="unsigned long">
|
---|
10994 | <desc>
|
---|
10995 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
10996 | </desc>
|
---|
10997 | </attribute>
|
---|
10998 |
|
---|
10999 | <attribute name="traceEnabled" type="boolean">
|
---|
11000 | <desc>
|
---|
11001 | Flag whether network traffic from/to the network card should be traced.
|
---|
11002 | Can only be toggled when the VM is turned off.
|
---|
11003 | </desc>
|
---|
11004 | </attribute>
|
---|
11005 |
|
---|
11006 | <attribute name="traceFile" type="wstring">
|
---|
11007 | <desc>
|
---|
11008 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
11009 | will be used.
|
---|
11010 | </desc>
|
---|
11011 | </attribute>
|
---|
11012 |
|
---|
11013 | <method name="attachToNAT">
|
---|
11014 | <desc>
|
---|
11015 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
11016 | </desc>
|
---|
11017 | </method>
|
---|
11018 |
|
---|
11019 | <method name="attachToBridgedInterface">
|
---|
11020 | <desc>
|
---|
11021 | Attach the network adapter to a bridged host interface.
|
---|
11022 | </desc>
|
---|
11023 | </method>
|
---|
11024 |
|
---|
11025 | <method name="attachToInternalNetwork">
|
---|
11026 | <desc>
|
---|
11027 | Attach the network adapter to an internal network.
|
---|
11028 | </desc>
|
---|
11029 | </method>
|
---|
11030 |
|
---|
11031 | <method name="attachToHostOnlyInterface">
|
---|
11032 | <desc>
|
---|
11033 | Attach the network adapter to the host-only network.
|
---|
11034 | </desc>
|
---|
11035 | </method>
|
---|
11036 |
|
---|
11037 | <method name="detach">
|
---|
11038 | <desc>
|
---|
11039 | Detach the network adapter
|
---|
11040 | </desc>
|
---|
11041 | </method>
|
---|
11042 | </interface>
|
---|
11043 |
|
---|
11044 |
|
---|
11045 | <!--
|
---|
11046 | // ISerialPort
|
---|
11047 | /////////////////////////////////////////////////////////////////////////
|
---|
11048 | -->
|
---|
11049 |
|
---|
11050 | <enum
|
---|
11051 | name="PortMode"
|
---|
11052 | uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
|
---|
11053 | >
|
---|
11054 | <desc>
|
---|
11055 | The PortMode enumeration represents possible communication modes for
|
---|
11056 | the virtual serial port device.
|
---|
11057 | </desc>
|
---|
11058 |
|
---|
11059 | <const name="Disconnected" value="0">
|
---|
11060 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
11061 | </const>
|
---|
11062 | <const name="HostPipe" value="1">
|
---|
11063 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
11064 | </const>
|
---|
11065 | <const name="HostDevice" value="2">
|
---|
11066 | <desc>Virtual device is attached to a host device.</desc>
|
---|
11067 | </const>
|
---|
11068 | </enum>
|
---|
11069 |
|
---|
11070 | <interface
|
---|
11071 | name="ISerialPort" extends="$unknown"
|
---|
11072 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
11073 | wsmap="managed"
|
---|
11074 | >
|
---|
11075 |
|
---|
11076 | <desc>
|
---|
11077 | The ISerialPort interface represents the virtual serial port device.
|
---|
11078 |
|
---|
11079 | The virtual serial port device acts like an ordinary serial port
|
---|
11080 | inside the virtual machine. This device communicates to the real
|
---|
11081 | serial port hardware in one of two modes: host pipe or host device.
|
---|
11082 |
|
---|
11083 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
11084 | the host computer that represents a serial port. The #server attribute
|
---|
11085 | determines if this pipe is created by the virtual machine process at
|
---|
11086 | machine startup or it must already exist before starting machine
|
---|
11087 | execution.
|
---|
11088 |
|
---|
11089 | In host device mode, the #path attribute specifies the name of the
|
---|
11090 | serial port device on the host computer.
|
---|
11091 |
|
---|
11092 | There is also a third communication mode: the disconnected mode. In this
|
---|
11093 | mode, the guest OS running inside the virtual machine will be able to
|
---|
11094 | detect the serial port, but all port write operations will be discarded
|
---|
11095 | and all port read operations will return no data.
|
---|
11096 |
|
---|
11097 | <see>IMachine::getSerialPort</see>
|
---|
11098 | </desc>
|
---|
11099 |
|
---|
11100 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11101 | <desc>
|
---|
11102 | Slot number this serial port is plugged into. Corresponds to
|
---|
11103 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
11104 | to obtain this instance.
|
---|
11105 | </desc>
|
---|
11106 | </attribute>
|
---|
11107 |
|
---|
11108 | <attribute name="enabled" type="boolean">
|
---|
11109 | <desc>
|
---|
11110 | Flag whether the serial port is enabled. If disabled,
|
---|
11111 | the serial port will not be reported to the guest OS.
|
---|
11112 | </desc>
|
---|
11113 | </attribute>
|
---|
11114 |
|
---|
11115 | <attribute name="IOBase" type="unsigned long">
|
---|
11116 | <desc>Base I/O address of the serial port.</desc>
|
---|
11117 | </attribute>
|
---|
11118 |
|
---|
11119 | <attribute name="IRQ" type="unsigned long">
|
---|
11120 | <desc>IRQ number of the serial port.</desc>
|
---|
11121 | </attribute>
|
---|
11122 |
|
---|
11123 | <attribute name="hostMode" type="PortMode">
|
---|
11124 | <desc>
|
---|
11125 | How is this port connected to the host.
|
---|
11126 | <note>
|
---|
11127 | Changing this attribute may fail if the conditions for
|
---|
11128 | <link to="#path"/> are not met.
|
---|
11129 | </note>
|
---|
11130 | </desc>
|
---|
11131 | </attribute>
|
---|
11132 |
|
---|
11133 | <attribute name="server" type="boolean">
|
---|
11134 | <desc>
|
---|
11135 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
11136 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
11137 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
11138 | </desc>
|
---|
11139 | </attribute>
|
---|
11140 |
|
---|
11141 | <attribute name="path" type="wstring">
|
---|
11142 | <desc>
|
---|
11143 | Path to the serial port's pipe on the host when <link to="#hostMode"/> is
|
---|
11144 | PortMode_HostPipe, or the host serial device name when
|
---|
11145 | <link to="#hostMode"/> is PortMode_HostDevice. In either of the above
|
---|
11146 | cases, setting a @c null or an empty string as the attribute's value
|
---|
11147 | will result into an error. Otherwise, the value of this property is
|
---|
11148 | ignored.
|
---|
11149 | </desc>
|
---|
11150 | </attribute>
|
---|
11151 |
|
---|
11152 | </interface>
|
---|
11153 |
|
---|
11154 | <!--
|
---|
11155 | // IParallelPort
|
---|
11156 | /////////////////////////////////////////////////////////////////////////
|
---|
11157 | -->
|
---|
11158 |
|
---|
11159 | <interface
|
---|
11160 | name="IParallelPort" extends="$unknown"
|
---|
11161 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11162 | wsmap="managed"
|
---|
11163 | >
|
---|
11164 |
|
---|
11165 | <desc>
|
---|
11166 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11167 |
|
---|
11168 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11169 | inside the virtual machine. This device communicates to the real
|
---|
11170 | parallel port hardware using the name of the parallel device on the host
|
---|
11171 | computer specified in the #path attribute.
|
---|
11172 |
|
---|
11173 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11174 | IRQ number that will be reported to the guest operating system and used
|
---|
11175 | to operate the given parallel port from within the virtual machine.
|
---|
11176 |
|
---|
11177 | <see>IMachine::getParallelPort</see>
|
---|
11178 | </desc>
|
---|
11179 |
|
---|
11180 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11181 | <desc>
|
---|
11182 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11183 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11184 | to obtain this instance.
|
---|
11185 | </desc>
|
---|
11186 | </attribute>
|
---|
11187 |
|
---|
11188 | <attribute name="enabled" type="boolean">
|
---|
11189 | <desc>
|
---|
11190 | Flag whether the parallel port is enabled. If disabled,
|
---|
11191 | the parallel port will not be reported to the guest OS.
|
---|
11192 | </desc>
|
---|
11193 | </attribute>
|
---|
11194 |
|
---|
11195 | <attribute name="IOBase" type="unsigned long">
|
---|
11196 | <desc>Base I/O address of the parallel port.</desc>
|
---|
11197 | </attribute>
|
---|
11198 |
|
---|
11199 | <attribute name="IRQ" type="unsigned long">
|
---|
11200 | <desc>IRQ number of the parallel port.</desc>
|
---|
11201 | </attribute>
|
---|
11202 |
|
---|
11203 | <attribute name="path" type="wstring">
|
---|
11204 | <desc>
|
---|
11205 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
11206 | @c null or an empty string as this attribute's value will result into
|
---|
11207 | an error.
|
---|
11208 | </desc>
|
---|
11209 | </attribute>
|
---|
11210 |
|
---|
11211 | </interface>
|
---|
11212 |
|
---|
11213 |
|
---|
11214 | <!--
|
---|
11215 | // IMachineDebugger
|
---|
11216 | /////////////////////////////////////////////////////////////////////////
|
---|
11217 | -->
|
---|
11218 |
|
---|
11219 | <interface
|
---|
11220 | name="IMachineDebugger" extends="$unknown"
|
---|
11221 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
11222 | wsmap="suppress"
|
---|
11223 | >
|
---|
11224 | <method name="resetStats">
|
---|
11225 | <desc>
|
---|
11226 | Reset VM statistics.
|
---|
11227 | </desc>
|
---|
11228 | <param name="pattern" type="wstring" dir="in">
|
---|
11229 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11230 | </param>
|
---|
11231 | </method>
|
---|
11232 |
|
---|
11233 | <method name="dumpStats">
|
---|
11234 | <desc>
|
---|
11235 | Dumps VM statistics.
|
---|
11236 | </desc>
|
---|
11237 | <param name="pattern" type="wstring" dir="in">
|
---|
11238 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11239 | </param>
|
---|
11240 | </method>
|
---|
11241 |
|
---|
11242 | <method name="getStats">
|
---|
11243 | <desc>
|
---|
11244 | Get the VM statistics in a XMLish format.
|
---|
11245 | </desc>
|
---|
11246 | <param name="pattern" type="wstring" dir="in">
|
---|
11247 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11248 | </param>
|
---|
11249 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
11250 | <desc>Whether to include the descriptions.</desc>
|
---|
11251 | </param>
|
---|
11252 | <param name="stats" type="wstring" dir="out">
|
---|
11253 | <desc>The XML document containing the statistics.</desc>
|
---|
11254 | </param>
|
---|
11255 | </method>
|
---|
11256 |
|
---|
11257 | <method name="injectNMI">
|
---|
11258 | <desc>
|
---|
11259 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
11260 | </desc>
|
---|
11261 | </method>
|
---|
11262 |
|
---|
11263 | <attribute name="singlestep" type="boolean">
|
---|
11264 | <desc>Switch for enabling singlestepping.</desc>
|
---|
11265 | </attribute>
|
---|
11266 |
|
---|
11267 | <attribute name="recompileUser" type="boolean">
|
---|
11268 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
11269 | </attribute>
|
---|
11270 |
|
---|
11271 | <attribute name="recompileSupervisor" type="boolean">
|
---|
11272 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
11273 | </attribute>
|
---|
11274 |
|
---|
11275 | <attribute name="PATMEnabled" type="boolean">
|
---|
11276 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
11277 | </attribute>
|
---|
11278 |
|
---|
11279 | <attribute name="CSAMEnabled" type="boolean">
|
---|
11280 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
11281 | </attribute>
|
---|
11282 |
|
---|
11283 | <attribute name="logEnabled" type="boolean">
|
---|
11284 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
11285 | </attribute>
|
---|
11286 |
|
---|
11287 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
11288 | <desc>
|
---|
11289 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
11290 | virtualization extensions.
|
---|
11291 | </desc>
|
---|
11292 | </attribute>
|
---|
11293 |
|
---|
11294 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
11295 | <desc>
|
---|
11296 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
11297 | CPU hardware virtualization extension.
|
---|
11298 | </desc>
|
---|
11299 | </attribute>
|
---|
11300 |
|
---|
11301 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
11302 | <desc>
|
---|
11303 | Flag indicating whether the VM is currently making use of the VPID
|
---|
11304 | VT-x extension.
|
---|
11305 | </desc>
|
---|
11306 | </attribute>
|
---|
11307 |
|
---|
11308 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
11309 | <desc>
|
---|
11310 | Flag indicating whether the VM is currently making use of the Physical
|
---|
11311 | Address Extension CPU feature.
|
---|
11312 | </desc>
|
---|
11313 | </attribute>
|
---|
11314 |
|
---|
11315 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
11316 | <desc>
|
---|
11317 | The rate at which the virtual time runs expressed as a percentage.
|
---|
11318 | The accepted range is 2% to 20000%.
|
---|
11319 | </desc>
|
---|
11320 | </attribute>
|
---|
11321 |
|
---|
11322 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
11323 |
|
---|
11324 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
11325 | <desc>
|
---|
11326 | Gets the VM handle. This is only for internal use while
|
---|
11327 | we carve the details of this interface.
|
---|
11328 | </desc>
|
---|
11329 | </attribute>
|
---|
11330 |
|
---|
11331 | </interface>
|
---|
11332 |
|
---|
11333 | <!--
|
---|
11334 | // IUSBController
|
---|
11335 | /////////////////////////////////////////////////////////////////////////
|
---|
11336 | -->
|
---|
11337 |
|
---|
11338 | <interface
|
---|
11339 | name="IUSBController" extends="$unknown"
|
---|
11340 | uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
|
---|
11341 | wsmap="managed"
|
---|
11342 | >
|
---|
11343 | <attribute name="enabled" type="boolean">
|
---|
11344 | <desc>
|
---|
11345 | Flag whether the USB controller is present in the
|
---|
11346 | guest system. If disabled, the virtual guest hardware will
|
---|
11347 | not contain any USB controller. Can only be changed when
|
---|
11348 | the VM is powered off.
|
---|
11349 | </desc>
|
---|
11350 | </attribute>
|
---|
11351 |
|
---|
11352 | <attribute name="enabledEhci" type="boolean">
|
---|
11353 | <desc>
|
---|
11354 | Flag whether the USB EHCI controller is present in the
|
---|
11355 | guest system. If disabled, the virtual guest hardware will
|
---|
11356 | not contain a USB EHCI controller. Can only be changed when
|
---|
11357 | the VM is powered off.
|
---|
11358 | </desc>
|
---|
11359 | </attribute>
|
---|
11360 |
|
---|
11361 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
11362 | <desc>
|
---|
11363 | USB standard version which the controller implements.
|
---|
11364 | This is a BCD which means that the major version is in the
|
---|
11365 | high byte and minor version is in the low byte.
|
---|
11366 | </desc>
|
---|
11367 | </attribute>
|
---|
11368 |
|
---|
11369 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
11370 | <desc>
|
---|
11371 | List of USB device filters associated with the machine.
|
---|
11372 |
|
---|
11373 | If the machine is currently running, these filters are activated
|
---|
11374 | every time a new (supported) USB device is attached to the host
|
---|
11375 | computer that was not ignored by global filters
|
---|
11376 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
11377 |
|
---|
11378 | These filters are also activated when the machine is powered up.
|
---|
11379 | They are run against a list of all currently available USB
|
---|
11380 | devices (in states
|
---|
11381 | <link to="USBDeviceState_Available"/>,
|
---|
11382 | <link to="USBDeviceState_Busy"/>,
|
---|
11383 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
11384 | ignored by global filters.
|
---|
11385 |
|
---|
11386 | If at least one filter matches the USB device in question, this
|
---|
11387 | device is automatically captured (attached to) the virtual USB
|
---|
11388 | controller of this machine.
|
---|
11389 |
|
---|
11390 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
11391 | </desc>
|
---|
11392 | </attribute>
|
---|
11393 |
|
---|
11394 | <method name="createDeviceFilter">
|
---|
11395 | <desc>
|
---|
11396 | Creates a new USB device filter. All attributes except
|
---|
11397 | the filter name are set to <tt>null</tt> (any match),
|
---|
11398 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
11399 |
|
---|
11400 | The created filter can then be added to the list of filters using
|
---|
11401 | <link to="#insertDeviceFilter"/>.
|
---|
11402 |
|
---|
11403 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11404 | The virtual machine is not mutable.
|
---|
11405 | </result>
|
---|
11406 |
|
---|
11407 | <see>#deviceFilters</see>
|
---|
11408 | </desc>
|
---|
11409 | <param name="name" type="wstring" dir="in">
|
---|
11410 | <desc>
|
---|
11411 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
11412 | for more info.
|
---|
11413 | </desc>
|
---|
11414 | </param>
|
---|
11415 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11416 | <desc>Created filter object.</desc>
|
---|
11417 | </param>
|
---|
11418 | </method>
|
---|
11419 |
|
---|
11420 | <method name="insertDeviceFilter">
|
---|
11421 | <desc>
|
---|
11422 | Inserts the given USB device to the specified position
|
---|
11423 | in the list of filters.
|
---|
11424 |
|
---|
11425 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
11426 | position is equal to or greater than the number of elements in
|
---|
11427 | the list, the filter is added to the end of the collection.
|
---|
11428 |
|
---|
11429 | <note>
|
---|
11430 | Duplicates are not allowed, so an attempt to insert a
|
---|
11431 | filter that is already in the collection, will return an
|
---|
11432 | error.
|
---|
11433 | </note>
|
---|
11434 |
|
---|
11435 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11436 | Virtual machine is not mutable.
|
---|
11437 | </result>
|
---|
11438 | <result name="E_INVALIDARG">
|
---|
11439 | USB device filter not created within this VirtualBox instance.
|
---|
11440 | </result>
|
---|
11441 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
11442 | USB device filter already in list.
|
---|
11443 | </result>
|
---|
11444 |
|
---|
11445 | <see>#deviceFilters</see>
|
---|
11446 | </desc>
|
---|
11447 | <param name="position" type="unsigned long" dir="in">
|
---|
11448 | <desc>Position to insert the filter to.</desc>
|
---|
11449 | </param>
|
---|
11450 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
11451 | <desc>USB device filter to insert.</desc>
|
---|
11452 | </param>
|
---|
11453 | </method>
|
---|
11454 |
|
---|
11455 | <method name="removeDeviceFilter">
|
---|
11456 | <desc>
|
---|
11457 | Removes a USB device filter from the specified position in the
|
---|
11458 | list of filters.
|
---|
11459 |
|
---|
11460 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
11461 | position equal to or greater than the number of elements in
|
---|
11462 | the list will produce an error.
|
---|
11463 |
|
---|
11464 | <see>#deviceFilters</see>
|
---|
11465 |
|
---|
11466 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11467 | Virtual machine is not mutable.
|
---|
11468 | </result>
|
---|
11469 | <result name="E_INVALIDARG">
|
---|
11470 | USB device filter list empty or invalid @a position.
|
---|
11471 | </result>
|
---|
11472 |
|
---|
11473 | </desc>
|
---|
11474 | <param name="position" type="unsigned long" dir="in">
|
---|
11475 | <desc>Position to remove the filter from.</desc>
|
---|
11476 | </param>
|
---|
11477 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11478 | <desc>Removed USB device filter.</desc>
|
---|
11479 | </param>
|
---|
11480 | </method>
|
---|
11481 |
|
---|
11482 | </interface>
|
---|
11483 |
|
---|
11484 |
|
---|
11485 | <!--
|
---|
11486 | // IUSBDevice
|
---|
11487 | /////////////////////////////////////////////////////////////////////////
|
---|
11488 | -->
|
---|
11489 |
|
---|
11490 | <interface
|
---|
11491 | name="IUSBDevice" extends="$unknown"
|
---|
11492 | uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
|
---|
11493 | wsmap="managed"
|
---|
11494 | >
|
---|
11495 | <desc>
|
---|
11496 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
11497 | virtual machine.
|
---|
11498 |
|
---|
11499 | A collection of objects implementing this interface is stored in the
|
---|
11500 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
11501 | attached to a running virtual machine's USB controller.
|
---|
11502 | </desc>
|
---|
11503 |
|
---|
11504 | <attribute name="id" type="uuid" readonly="yes">
|
---|
11505 | <desc>
|
---|
11506 | Unique USB device ID. This ID is built from #vendorId,
|
---|
11507 | #productId, #revision and #serialNumber.
|
---|
11508 | </desc>
|
---|
11509 | </attribute>
|
---|
11510 |
|
---|
11511 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
11512 | <desc>Vendor ID.</desc>
|
---|
11513 | </attribute>
|
---|
11514 |
|
---|
11515 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
11516 | <desc>Product ID.</desc>
|
---|
11517 | </attribute>
|
---|
11518 |
|
---|
11519 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
11520 | <desc>
|
---|
11521 | Product revision number. This is a packed BCD represented as
|
---|
11522 | unsigned short. The high byte is the integer part and the low
|
---|
11523 | byte is the decimal.
|
---|
11524 | </desc>
|
---|
11525 | </attribute>
|
---|
11526 |
|
---|
11527 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
11528 | <desc>Manufacturer string.</desc>
|
---|
11529 | </attribute>
|
---|
11530 |
|
---|
11531 | <attribute name="product" type="wstring" readonly="yes">
|
---|
11532 | <desc>Product string.</desc>
|
---|
11533 | </attribute>
|
---|
11534 |
|
---|
11535 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
11536 | <desc>Serial number string.</desc>
|
---|
11537 | </attribute>
|
---|
11538 |
|
---|
11539 | <attribute name="address" type="wstring" readonly="yes">
|
---|
11540 | <desc>Host specific address of the device.</desc>
|
---|
11541 | </attribute>
|
---|
11542 |
|
---|
11543 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
11544 | <desc>
|
---|
11545 | Host USB port number the device is physically
|
---|
11546 | connected to.
|
---|
11547 | </desc>
|
---|
11548 | </attribute>
|
---|
11549 |
|
---|
11550 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
11551 | <desc>
|
---|
11552 | The major USB version of the device - 1 or 2.
|
---|
11553 | </desc>
|
---|
11554 | </attribute>
|
---|
11555 |
|
---|
11556 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
11557 | <desc>
|
---|
11558 | The major USB version of the host USB port the device is
|
---|
11559 | physically connected to - 1 or 2. For devices not connected to
|
---|
11560 | anything this will have the same value as the version attribute.
|
---|
11561 | </desc>
|
---|
11562 | </attribute>
|
---|
11563 |
|
---|
11564 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
11565 | <desc>
|
---|
11566 | Whether the device is physically connected to a remote VRDP
|
---|
11567 | client or to a local host machine.
|
---|
11568 | </desc>
|
---|
11569 | </attribute>
|
---|
11570 |
|
---|
11571 | </interface>
|
---|
11572 |
|
---|
11573 |
|
---|
11574 | <!--
|
---|
11575 | // IUSBDeviceFilter
|
---|
11576 | /////////////////////////////////////////////////////////////////////////
|
---|
11577 | -->
|
---|
11578 |
|
---|
11579 | <interface
|
---|
11580 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
11581 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
11582 | wsmap="managed"
|
---|
11583 | >
|
---|
11584 | <desc>
|
---|
11585 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
11586 | to perform actions on a group of USB devices.
|
---|
11587 |
|
---|
11588 | This type of filters is used by running virtual machines to
|
---|
11589 | automatically capture selected USB devices once they are physically
|
---|
11590 | attached to the host computer.
|
---|
11591 |
|
---|
11592 | A USB device is matched to the given device filter if and only if all
|
---|
11593 | attributes of the device match the corresponding attributes of the
|
---|
11594 | filter (that is, attributes are joined together using the logical AND
|
---|
11595 | operation). On the other hand, all together, filters in the list of
|
---|
11596 | filters carry the semantics of the logical OR operation. So if it is
|
---|
11597 | desirable to create a match like "this vendor id OR this product id",
|
---|
11598 | one needs to create two filters and specify "any match" (see below)
|
---|
11599 | for unused attributes.
|
---|
11600 |
|
---|
11601 | All filter attributes used for matching are strings. Each string
|
---|
11602 | is an expression representing a set of values of the corresponding
|
---|
11603 | device attribute, that will match the given filter. Currently, the
|
---|
11604 | following filtering expressions are supported:
|
---|
11605 |
|
---|
11606 | <ul>
|
---|
11607 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
11608 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
11609 | The format of the string is:
|
---|
11610 |
|
---|
11611 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
11612 |
|
---|
11613 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
11614 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
11615 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
11616 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
11617 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
11618 | possible integer is assumed.
|
---|
11619 | </li>
|
---|
11620 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
11621 | boolean device attributes. The format of the string is:
|
---|
11622 |
|
---|
11623 | <tt>true|false|yes|no|0|1</tt>
|
---|
11624 |
|
---|
11625 | </li>
|
---|
11626 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
11627 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
11628 | represents the exact match. String device attributes are compared to
|
---|
11629 | this string including case of symbols. Integer attributes are first
|
---|
11630 | converted to a string (see individual filter attributes) and then
|
---|
11631 | compared ignoring case.
|
---|
11632 |
|
---|
11633 | </li>
|
---|
11634 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
11635 | will match the given filter. An empty or <tt>null</tt> string is
|
---|
11636 | used to construct this type of filtering expressions.
|
---|
11637 |
|
---|
11638 | </li>
|
---|
11639 | </ul>
|
---|
11640 |
|
---|
11641 | <note>
|
---|
11642 | On the Windows host platform, interval filters are not currently
|
---|
11643 | available. Also all string filter attributes
|
---|
11644 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
11645 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
11646 | <i>any match</i> no matter what string expression is specified.
|
---|
11647 | </note>
|
---|
11648 |
|
---|
11649 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
11650 | </desc>
|
---|
11651 |
|
---|
11652 | <attribute name="name" type="wstring">
|
---|
11653 | <desc>
|
---|
11654 | Visible name for this filter.
|
---|
11655 | This name is used to visually distinguish one filter from another,
|
---|
11656 | so it can neither be <tt>null</tt> nor an empty string.
|
---|
11657 | </desc>
|
---|
11658 | </attribute>
|
---|
11659 |
|
---|
11660 | <attribute name="active" type="boolean">
|
---|
11661 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
11662 | </attribute>
|
---|
11663 |
|
---|
11664 | <attribute name="vendorId" type="wstring">
|
---|
11665 | <desc>
|
---|
11666 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
11667 | The string representation for the <i>exact matching</i>
|
---|
11668 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11669 | (including leading zeroes).
|
---|
11670 | </desc>
|
---|
11671 | </attribute>
|
---|
11672 |
|
---|
11673 | <attribute name="productId" type="wstring">
|
---|
11674 | <desc>
|
---|
11675 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
11676 | The string representation for the <i>exact matching</i>
|
---|
11677 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11678 | (including leading zeroes).
|
---|
11679 | </desc>
|
---|
11680 | </attribute>
|
---|
11681 |
|
---|
11682 | <attribute name="revision" type="wstring">
|
---|
11683 | <desc>
|
---|
11684 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
11685 | filter. The string representation for the <i>exact matching</i>
|
---|
11686 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
11687 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
11688 | decimal digit of its fractional part (including leading and
|
---|
11689 | trailing zeros).
|
---|
11690 | Note that for interval filters, it's best to use the hexadecimal
|
---|
11691 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
11692 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
11693 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
11694 | </desc>
|
---|
11695 | </attribute>
|
---|
11696 |
|
---|
11697 | <attribute name="manufacturer" type="wstring">
|
---|
11698 | <desc>
|
---|
11699 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
11700 | </desc>
|
---|
11701 | </attribute>
|
---|
11702 |
|
---|
11703 | <attribute name="product" type="wstring">
|
---|
11704 | <desc>
|
---|
11705 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
11706 | </desc>
|
---|
11707 | </attribute>
|
---|
11708 |
|
---|
11709 | <attribute name="serialNumber" type="wstring">
|
---|
11710 | <desc>
|
---|
11711 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
11712 | </desc>
|
---|
11713 | </attribute>
|
---|
11714 |
|
---|
11715 | <attribute name="port" type="wstring">
|
---|
11716 | <desc>
|
---|
11717 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
11718 | </desc>
|
---|
11719 | </attribute>
|
---|
11720 |
|
---|
11721 | <attribute name="remote" type="wstring">
|
---|
11722 | <desc>
|
---|
11723 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
11724 | <note>
|
---|
11725 | This filter makes sense only for machine USB filters,
|
---|
11726 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
11727 | </note>
|
---|
11728 | </desc>
|
---|
11729 | </attribute>
|
---|
11730 |
|
---|
11731 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
11732 | <desc>
|
---|
11733 | This is an advanced option for hiding one or more USB interfaces
|
---|
11734 | from the guest. The value is a bit mask where the bits that are set
|
---|
11735 | means the corresponding USB interface should be hidden, masked off
|
---|
11736 | if you like.
|
---|
11737 | This feature only works on Linux hosts.
|
---|
11738 | </desc>
|
---|
11739 | </attribute>
|
---|
11740 |
|
---|
11741 | </interface>
|
---|
11742 |
|
---|
11743 |
|
---|
11744 | <!--
|
---|
11745 | // IHostUSBDevice
|
---|
11746 | /////////////////////////////////////////////////////////////////////////
|
---|
11747 | -->
|
---|
11748 |
|
---|
11749 | <enum
|
---|
11750 | name="USBDeviceState"
|
---|
11751 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
11752 | >
|
---|
11753 | <desc>
|
---|
11754 | USB device state. This enumeration represents all possible states
|
---|
11755 | of the USB device physically attached to the host computer regarding
|
---|
11756 | its state on the host computer and availability to guest computers
|
---|
11757 | (all currently running virtual machines).
|
---|
11758 |
|
---|
11759 | Once a supported USB device is attached to the host, global USB
|
---|
11760 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
11761 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
11762 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
11763 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
11764 | activated that can put it to USBDeviceState_Captured state.
|
---|
11765 |
|
---|
11766 | If the device was ignored by global filters, or didn't match
|
---|
11767 | any filters at all (including guest ones), it is handled by the host
|
---|
11768 | in a normal way. In this case, the device state is determined by
|
---|
11769 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
11770 | or USBDeviceState_Available, depending on the current device usage.
|
---|
11771 |
|
---|
11772 | Besides auto-capturing based on filters, the device can be manually
|
---|
11773 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
11774 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
11775 | USBDeviceState_Held.
|
---|
11776 |
|
---|
11777 | <note>
|
---|
11778 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
11779 | states USBDeviceState_Busy and USBDeviceState_vailable are applicable
|
---|
11780 | only to the Linux version of the product. This also means that (<link
|
---|
11781 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
11782 | device state is USBDeviceState_Held.
|
---|
11783 | </note>
|
---|
11784 |
|
---|
11785 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
11786 | </desc>
|
---|
11787 |
|
---|
11788 | <const name="NotSupported" value="0">
|
---|
11789 | <desc>
|
---|
11790 | Not supported by the VirtualBox server, not available to guests.
|
---|
11791 | </desc>
|
---|
11792 | </const>
|
---|
11793 | <const name="Unavailable" value="1">
|
---|
11794 | <desc>
|
---|
11795 | Being used by the host computer exclusively,
|
---|
11796 | not available to guests.
|
---|
11797 | </desc>
|
---|
11798 | </const>
|
---|
11799 | <const name="Busy" value="2">
|
---|
11800 | <desc>
|
---|
11801 | Being used by the host computer, potentially available to guests.
|
---|
11802 | </desc>
|
---|
11803 | </const>
|
---|
11804 | <const name="Available" value="3">
|
---|
11805 | <desc>
|
---|
11806 | Not used by the host computer, available to guests (the host computer
|
---|
11807 | can also start using the device at any time).
|
---|
11808 | </desc>
|
---|
11809 | </const>
|
---|
11810 | <const name="Held" value="4">
|
---|
11811 | <desc>
|
---|
11812 | Held by the VirtualBox server (ignored by the host computer),
|
---|
11813 | available to guests.
|
---|
11814 | </desc>
|
---|
11815 | </const>
|
---|
11816 | <const name="Captured" value="5">
|
---|
11817 | <desc>
|
---|
11818 | Captured by one of the guest computers, not available
|
---|
11819 | to anybody else.
|
---|
11820 | </desc>
|
---|
11821 | </const>
|
---|
11822 | </enum>
|
---|
11823 |
|
---|
11824 | <interface
|
---|
11825 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
11826 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
11827 | wsmap="managed"
|
---|
11828 | >
|
---|
11829 | <desc>
|
---|
11830 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
11831 | to the host computer.
|
---|
11832 |
|
---|
11833 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
11834 | <link to="#state"/> property that holds the current state of the USB
|
---|
11835 | device.
|
---|
11836 |
|
---|
11837 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
11838 | </desc>
|
---|
11839 |
|
---|
11840 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
11841 | <desc>
|
---|
11842 | Current state of the device.
|
---|
11843 | </desc>
|
---|
11844 | </attribute>
|
---|
11845 |
|
---|
11846 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
11847 |
|
---|
11848 | </interface>
|
---|
11849 |
|
---|
11850 |
|
---|
11851 | <!--
|
---|
11852 | // IHostUSBDeviceFilter
|
---|
11853 | /////////////////////////////////////////////////////////////////////////
|
---|
11854 | -->
|
---|
11855 |
|
---|
11856 | <enum
|
---|
11857 | name="USBDeviceFilterAction"
|
---|
11858 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
11859 | >
|
---|
11860 | <desc>
|
---|
11861 | Actions for host USB device filters.
|
---|
11862 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
11863 | </desc>
|
---|
11864 |
|
---|
11865 | <const name="Null" value="0">
|
---|
11866 | <desc>Null value (never used by the API).</desc>
|
---|
11867 | </const>
|
---|
11868 | <const name="Ignore" value="1">
|
---|
11869 | <desc>Ignore the matched USB device.</desc>
|
---|
11870 | </const>
|
---|
11871 | <const name="Hold" value="2">
|
---|
11872 | <desc>Hold the matched USB device.</desc>
|
---|
11873 | </const>
|
---|
11874 | </enum>
|
---|
11875 |
|
---|
11876 | <interface
|
---|
11877 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
11878 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
11879 | wsmap="managed"
|
---|
11880 | >
|
---|
11881 | <desc>
|
---|
11882 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
11883 | physical USB device used by the host computer. Used indirectly in
|
---|
11884 | <link to="IHost::USBDeviceFilters"/>.
|
---|
11885 |
|
---|
11886 | Using filters of this type, the host computer determines the initial
|
---|
11887 | state of the USB device after it is physically attached to the
|
---|
11888 | host's USB controller.
|
---|
11889 |
|
---|
11890 | <note>
|
---|
11891 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
11892 | filters, because it makes sense only for
|
---|
11893 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
11894 | </note>
|
---|
11895 |
|
---|
11896 | <see>IHost::USBDeviceFilters</see>
|
---|
11897 | </desc>
|
---|
11898 |
|
---|
11899 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
11900 | <desc>
|
---|
11901 | Action performed by the host when an attached USB device
|
---|
11902 | matches this filter.
|
---|
11903 | </desc>
|
---|
11904 | </attribute>
|
---|
11905 |
|
---|
11906 | </interface>
|
---|
11907 |
|
---|
11908 | <!--
|
---|
11909 | // IAudioAdapter
|
---|
11910 | /////////////////////////////////////////////////////////////////////////
|
---|
11911 | -->
|
---|
11912 |
|
---|
11913 | <enum
|
---|
11914 | name="AudioDriverType"
|
---|
11915 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
11916 | >
|
---|
11917 | <desc>
|
---|
11918 | Host audio driver type.
|
---|
11919 | </desc>
|
---|
11920 |
|
---|
11921 | <const name="Null" value="0">
|
---|
11922 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
11923 | </const>
|
---|
11924 | <const name="WinMM" value="1"/>
|
---|
11925 | <const name="OSS" value="2"/>
|
---|
11926 | <const name="ALSA" value="3"/>
|
---|
11927 | <const name="DirectSound" value="4"/>
|
---|
11928 | <const name="CoreAudio" value="5"/>
|
---|
11929 | <const name="MMPM" value="6"/>
|
---|
11930 | <const name="Pulse" value="7"/>
|
---|
11931 | <const name="SolAudio" value="8"/>
|
---|
11932 | </enum>
|
---|
11933 |
|
---|
11934 | <enum
|
---|
11935 | name="AudioControllerType"
|
---|
11936 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
11937 | >
|
---|
11938 | <desc>
|
---|
11939 | Virtual audio controller type.
|
---|
11940 | </desc>
|
---|
11941 |
|
---|
11942 | <const name="AC97" value="0"/>
|
---|
11943 | <const name="SB16" value="1"/>
|
---|
11944 | </enum>
|
---|
11945 |
|
---|
11946 | <interface
|
---|
11947 | name="IAudioAdapter" extends="$unknown"
|
---|
11948 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
11949 | wsmap="managed"
|
---|
11950 | >
|
---|
11951 | <desc>
|
---|
11952 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
11953 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
11954 | </desc>
|
---|
11955 | <attribute name="enabled" type="boolean">
|
---|
11956 | <desc>
|
---|
11957 | Flag whether the audio adapter is present in the
|
---|
11958 | guest system. If disabled, the virtual guest hardware will
|
---|
11959 | not contain any audio adapter. Can only be changed when
|
---|
11960 | the VM is not running.
|
---|
11961 | </desc>
|
---|
11962 | </attribute>
|
---|
11963 | <attribute name="audioController" type="AudioControllerType">
|
---|
11964 | <desc>
|
---|
11965 | The audio hardware we emulate.
|
---|
11966 | </desc>
|
---|
11967 | </attribute>
|
---|
11968 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
11969 | <desc>
|
---|
11970 | Audio driver the adapter is connected to. This setting
|
---|
11971 | can only be changed when the VM is not running.
|
---|
11972 | </desc>
|
---|
11973 | </attribute>
|
---|
11974 | </interface>
|
---|
11975 |
|
---|
11976 | <!--
|
---|
11977 | // IVRDPServer
|
---|
11978 | /////////////////////////////////////////////////////////////////////////
|
---|
11979 | -->
|
---|
11980 |
|
---|
11981 | <enum
|
---|
11982 | name="VRDPAuthType"
|
---|
11983 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
11984 | >
|
---|
11985 | <desc>
|
---|
11986 | VRDP authentication type.
|
---|
11987 | </desc>
|
---|
11988 |
|
---|
11989 | <const name="Null" value="0">
|
---|
11990 | <desc>Null value, also means "no authentication".</desc>
|
---|
11991 | </const>
|
---|
11992 | <const name="External" value="1"/>
|
---|
11993 | <const name="Guest" value="2"/>
|
---|
11994 | </enum>
|
---|
11995 |
|
---|
11996 | <interface
|
---|
11997 | name="IVRDPServer" extends="$unknown"
|
---|
11998 | uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
|
---|
11999 | wsmap="managed"
|
---|
12000 | >
|
---|
12001 | <attribute name="enabled" type="boolean">
|
---|
12002 | <desc>VRDP server status.</desc>
|
---|
12003 | </attribute>
|
---|
12004 |
|
---|
12005 | <attribute name="port" type="unsigned long">
|
---|
12006 | <desc>
|
---|
12007 | VRDP server port number.
|
---|
12008 | <note>
|
---|
12009 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
12010 | number to the default value which is
|
---|
12011 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
12012 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
12013 | case the default port is returned).
|
---|
12014 | </note>
|
---|
12015 | </desc>
|
---|
12016 | </attribute>
|
---|
12017 |
|
---|
12018 | <attribute name="netAddress" type="wstring">
|
---|
12019 | <desc>VRDP server address.</desc>
|
---|
12020 | </attribute>
|
---|
12021 |
|
---|
12022 | <attribute name="authType" type="VRDPAuthType">
|
---|
12023 | <desc>VRDP authentication method.</desc>
|
---|
12024 | </attribute>
|
---|
12025 |
|
---|
12026 | <attribute name="authTimeout" type="unsigned long">
|
---|
12027 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
12028 | </attribute>
|
---|
12029 |
|
---|
12030 | <attribute name="allowMultiConnection" type="boolean">
|
---|
12031 | <desc>
|
---|
12032 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
12033 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
12034 | </desc>
|
---|
12035 | </attribute>
|
---|
12036 |
|
---|
12037 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
12038 | <desc>
|
---|
12039 | Flag whether the existing connection must be dropped and a new connection
|
---|
12040 | must be established by the VRDP server, when a new client connects in single
|
---|
12041 | connection mode.
|
---|
12042 | </desc>
|
---|
12043 | </attribute>
|
---|
12044 |
|
---|
12045 | </interface>
|
---|
12046 |
|
---|
12047 |
|
---|
12048 | <!--
|
---|
12049 | // ISharedFolder
|
---|
12050 | /////////////////////////////////////////////////////////////////////////
|
---|
12051 | -->
|
---|
12052 |
|
---|
12053 | <interface
|
---|
12054 | name="ISharedFolder" extends="$unknown"
|
---|
12055 | uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
|
---|
12056 | wsmap="struct"
|
---|
12057 | >
|
---|
12058 | <desc>
|
---|
12059 | The ISharedFolder interface represents a folder in the host computer's
|
---|
12060 | file system accessible from the guest OS running inside a virtual
|
---|
12061 | machine using an associated logical name.
|
---|
12062 |
|
---|
12063 | There are three types of shared folders:
|
---|
12064 | <ul>
|
---|
12065 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
12066 | folders available to all virtual machines.</li>
|
---|
12067 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
12068 | VM-specific shared folders available to the given virtual machine at
|
---|
12069 | startup.</li>
|
---|
12070 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
12071 | VM-specific shared folders created in the session context (for
|
---|
12072 | example, when the virtual machine is running) and automatically
|
---|
12073 | discarded when the session is closed (the VM is powered off).</li>
|
---|
12074 | </ul>
|
---|
12075 |
|
---|
12076 | Logical names of shared folders must be unique within the given scope
|
---|
12077 | (global, permanent or transient). However, they do not need to be unique
|
---|
12078 | across scopes. In this case, the definition of the shared folder in a
|
---|
12079 | more specific scope takes precedence over definitions in all other
|
---|
12080 | scopes. The order of precedence is (more specific to more general):
|
---|
12081 | <ol>
|
---|
12082 | <li>Transient definitions</li>
|
---|
12083 | <li>Permanent definitions</li>
|
---|
12084 | <li>Global definitions</li>
|
---|
12085 | </ol>
|
---|
12086 |
|
---|
12087 | For example, if MyMachine has a shared folder named
|
---|
12088 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
12089 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
12090 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
12091 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
12092 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
12093 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
12094 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
12095 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
12096 | to <tt>C:\\</tt> if it still exists.
|
---|
12097 |
|
---|
12098 | Note that permanent and transient shared folders of different machines
|
---|
12099 | are in different name spaces, so they don't overlap and don't need to
|
---|
12100 | have unique logical names.
|
---|
12101 |
|
---|
12102 | <note>
|
---|
12103 | Global shared folders are not implemented in the current version of the
|
---|
12104 | product.
|
---|
12105 | </note>
|
---|
12106 | </desc>
|
---|
12107 |
|
---|
12108 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12109 | <desc>Logical name of the shared folder.</desc>
|
---|
12110 | </attribute>
|
---|
12111 |
|
---|
12112 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
12113 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
12114 | </attribute>
|
---|
12115 |
|
---|
12116 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
12117 | <desc>
|
---|
12118 | Whether the folder defined by the host path is currently
|
---|
12119 | accessible or not.
|
---|
12120 | For example, the folder can be unaccessible if it is placed
|
---|
12121 | on the network share that is not available by the time
|
---|
12122 | this property is read.
|
---|
12123 | </desc>
|
---|
12124 | </attribute>
|
---|
12125 |
|
---|
12126 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
12127 | <desc>
|
---|
12128 | Whether the folder defined by the host path is writable or
|
---|
12129 | not.
|
---|
12130 | </desc>
|
---|
12131 | </attribute>
|
---|
12132 |
|
---|
12133 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
12134 | <desc>
|
---|
12135 | Text message that represents the result of the last accessibility
|
---|
12136 | check.
|
---|
12137 |
|
---|
12138 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
12139 | attribute is read. A @c null string is returned if the last
|
---|
12140 | accessibility check was successful. A non-null string indicates a
|
---|
12141 | failure and should normally describe a reason of the failure (for
|
---|
12142 | example, a file read error).
|
---|
12143 | </desc>
|
---|
12144 | </attribute>
|
---|
12145 |
|
---|
12146 | </interface>
|
---|
12147 |
|
---|
12148 | <!--
|
---|
12149 | // ISession
|
---|
12150 | /////////////////////////////////////////////////////////////////////////
|
---|
12151 | -->
|
---|
12152 |
|
---|
12153 | <interface
|
---|
12154 | name="IInternalSessionControl" extends="$unknown"
|
---|
12155 | uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
|
---|
12156 | internal="yes"
|
---|
12157 | wsmap="suppress"
|
---|
12158 | >
|
---|
12159 | <method name="getPID">
|
---|
12160 | <desc>PID of the process that has created this Session object.
|
---|
12161 | </desc>
|
---|
12162 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
12163 | </method>
|
---|
12164 |
|
---|
12165 | <method name="getRemoteConsole">
|
---|
12166 | <desc>
|
---|
12167 | Returns the console object suitable for remote control.
|
---|
12168 |
|
---|
12169 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12170 | Session state prevents operation.
|
---|
12171 | </result>
|
---|
12172 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12173 | Session type prevents operation.
|
---|
12174 | </result>
|
---|
12175 |
|
---|
12176 | </desc>
|
---|
12177 | <param name="console" type="IConsole" dir="return"/>
|
---|
12178 | </method>
|
---|
12179 |
|
---|
12180 | <method name="assignMachine">
|
---|
12181 | <desc>
|
---|
12182 | Assigns the machine object associated with this direct-type
|
---|
12183 | session or informs the session that it will be a remote one
|
---|
12184 | (if @a machine == NULL).
|
---|
12185 |
|
---|
12186 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12187 | Session state prevents operation.
|
---|
12188 | </result>
|
---|
12189 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12190 | Session type prevents operation.
|
---|
12191 | </result>
|
---|
12192 |
|
---|
12193 | </desc>
|
---|
12194 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12195 | </method>
|
---|
12196 |
|
---|
12197 | <method name="assignRemoteMachine">
|
---|
12198 | <desc>
|
---|
12199 | Assigns the machine and the (remote) console object associated with
|
---|
12200 | this remote-type session.
|
---|
12201 |
|
---|
12202 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12203 | Session state prevents operation.
|
---|
12204 | </result>
|
---|
12205 |
|
---|
12206 | </desc>
|
---|
12207 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12208 | <param name="console" type="IConsole" dir="in"/>
|
---|
12209 | </method>
|
---|
12210 |
|
---|
12211 | <method name="updateMachineState">
|
---|
12212 | <desc>
|
---|
12213 | Updates the machine state in the VM process.
|
---|
12214 | Must be called only in certain cases
|
---|
12215 | (see the method implementation).
|
---|
12216 |
|
---|
12217 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12218 | Session state prevents operation.
|
---|
12219 | </result>
|
---|
12220 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12221 | Session type prevents operation.
|
---|
12222 | </result>
|
---|
12223 |
|
---|
12224 | </desc>
|
---|
12225 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
12226 | </method>
|
---|
12227 |
|
---|
12228 | <method name="uninitialize">
|
---|
12229 | <desc>
|
---|
12230 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
12231 | the corresponding remote session when the direct session dies
|
---|
12232 | or gets closed.
|
---|
12233 |
|
---|
12234 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12235 | Session state prevents operation.
|
---|
12236 | </result>
|
---|
12237 |
|
---|
12238 | </desc>
|
---|
12239 | </method>
|
---|
12240 |
|
---|
12241 | <method name="onDVDDriveChange">
|
---|
12242 | <desc>
|
---|
12243 | Triggered when settings of the DVD drive object of the
|
---|
12244 | associated virtual machine have changed.
|
---|
12245 |
|
---|
12246 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12247 | Session state prevents operation.
|
---|
12248 | </result>
|
---|
12249 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12250 | Session type prevents operation.
|
---|
12251 | </result>
|
---|
12252 |
|
---|
12253 | </desc>
|
---|
12254 | </method>
|
---|
12255 |
|
---|
12256 | <method name="onFloppyDriveChange">
|
---|
12257 | <desc>
|
---|
12258 | Triggered when settings of the floppy drive object of the
|
---|
12259 | associated virtual machine have changed.
|
---|
12260 |
|
---|
12261 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12262 | Session state prevents operation.
|
---|
12263 | </result>
|
---|
12264 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12265 | Session type prevents operation.
|
---|
12266 | </result>
|
---|
12267 |
|
---|
12268 | </desc>
|
---|
12269 | </method>
|
---|
12270 |
|
---|
12271 | <method name="onNetworkAdapterChange">
|
---|
12272 | <desc>
|
---|
12273 | Triggered when settings of a network adapter of the
|
---|
12274 | associated virtual machine have changed.
|
---|
12275 |
|
---|
12276 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12277 | Session state prevents operation.
|
---|
12278 | </result>
|
---|
12279 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12280 | Session type prevents operation.
|
---|
12281 | </result>
|
---|
12282 |
|
---|
12283 | </desc>
|
---|
12284 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
12285 | </method>
|
---|
12286 |
|
---|
12287 | <method name="onSerialPortChange">
|
---|
12288 | <desc>
|
---|
12289 | Triggered when settings of a serial port of the
|
---|
12290 | associated virtual machine have changed.
|
---|
12291 |
|
---|
12292 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12293 | Session state prevents operation.
|
---|
12294 | </result>
|
---|
12295 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12296 | Session type prevents operation.
|
---|
12297 | </result>
|
---|
12298 |
|
---|
12299 | </desc>
|
---|
12300 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
12301 | </method>
|
---|
12302 |
|
---|
12303 | <method name="onParallelPortChange">
|
---|
12304 | <desc>
|
---|
12305 | Triggered when settings of a parallel port of the
|
---|
12306 | associated virtual machine have changed.
|
---|
12307 |
|
---|
12308 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12309 | Session state prevents operation.
|
---|
12310 | </result>
|
---|
12311 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12312 | Session type prevents operation.
|
---|
12313 | </result>
|
---|
12314 |
|
---|
12315 | </desc>
|
---|
12316 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
12317 | </method>
|
---|
12318 |
|
---|
12319 | <method name="onStorageControllerChange">
|
---|
12320 | <desc>
|
---|
12321 | Triggered when settings of a storage controller of the
|
---|
12322 | associated virtual machine have changed.
|
---|
12323 |
|
---|
12324 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12325 | Session state prevents operation.
|
---|
12326 | </result>
|
---|
12327 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12328 | Session type prevents operation.
|
---|
12329 | </result>
|
---|
12330 |
|
---|
12331 | </desc>
|
---|
12332 | </method>
|
---|
12333 |
|
---|
12334 | <method name="onVRDPServerChange">
|
---|
12335 | <desc>
|
---|
12336 | Triggered when settings of the VRDP server object of the
|
---|
12337 | associated virtual machine have changed.
|
---|
12338 |
|
---|
12339 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12340 | Session state prevents operation.
|
---|
12341 | </result>
|
---|
12342 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12343 | Session type prevents operation.
|
---|
12344 | </result>
|
---|
12345 |
|
---|
12346 | </desc>
|
---|
12347 | </method>
|
---|
12348 |
|
---|
12349 | <method name="onUSBControllerChange">
|
---|
12350 | <desc>
|
---|
12351 | Triggered when settings of the USB controller object of the
|
---|
12352 | associated virtual machine have changed.
|
---|
12353 |
|
---|
12354 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12355 | Session state prevents operation.
|
---|
12356 | </result>
|
---|
12357 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12358 | Session type prevents operation.
|
---|
12359 | </result>
|
---|
12360 |
|
---|
12361 | </desc>
|
---|
12362 | </method>
|
---|
12363 |
|
---|
12364 | <method name="onSharedFolderChange">
|
---|
12365 | <desc>
|
---|
12366 | Triggered when a permanent (global or machine) shared folder has been
|
---|
12367 | created or removed.
|
---|
12368 | <note>
|
---|
12369 | We don't pass shared folder parameters in this notification because
|
---|
12370 | the order in which parallel notifications are delivered is not defined,
|
---|
12371 | therefore it could happen that these parameters were outdated by the
|
---|
12372 | time of processing this notification.
|
---|
12373 | </note>
|
---|
12374 |
|
---|
12375 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12376 | Session state prevents operation.
|
---|
12377 | </result>
|
---|
12378 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12379 | Session type prevents operation.
|
---|
12380 | </result>
|
---|
12381 |
|
---|
12382 | </desc>
|
---|
12383 | <param name="global" type="boolean" dir="in"/>
|
---|
12384 | </method>
|
---|
12385 |
|
---|
12386 | <method name="onUSBDeviceAttach">
|
---|
12387 | <desc>
|
---|
12388 | Triggered when a request to capture a USB device (as a result
|
---|
12389 | of matched USB filters or direct call to
|
---|
12390 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
12391 | A @c null @a error object means success, otherwise it
|
---|
12392 | describes a failure.
|
---|
12393 |
|
---|
12394 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12395 | Session state prevents operation.
|
---|
12396 | </result>
|
---|
12397 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12398 | Session type prevents operation.
|
---|
12399 | </result>
|
---|
12400 |
|
---|
12401 | </desc>
|
---|
12402 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
12403 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12404 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
12405 | </method>
|
---|
12406 |
|
---|
12407 | <method name="onUSBDeviceDetach">
|
---|
12408 | <desc>
|
---|
12409 | Triggered when a request to release the USB device (as a result
|
---|
12410 | of machine termination or direct call to
|
---|
12411 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
12412 | A @c null @a error object means success, otherwise it
|
---|
12413 |
|
---|
12414 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12415 | Session state prevents operation.
|
---|
12416 | </result>
|
---|
12417 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12418 | Session type prevents operation.
|
---|
12419 | </result>
|
---|
12420 |
|
---|
12421 | </desc>
|
---|
12422 | <param name="id" type="uuid" dir="in"/>
|
---|
12423 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12424 | </method>
|
---|
12425 |
|
---|
12426 | <method name="onShowWindow">
|
---|
12427 | <desc>
|
---|
12428 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
12429 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
12430 | console callbacks
|
---|
12431 | <link to="IConsoleCallback::onCanShowWindow"/>
|
---|
12432 | and <link to="IConsoleCallback::onShowWindow"/>.
|
---|
12433 |
|
---|
12434 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12435 | Session type prevents operation.
|
---|
12436 | </result>
|
---|
12437 |
|
---|
12438 | </desc>
|
---|
12439 | <param name="check" type="boolean" dir="in"/>
|
---|
12440 | <param name="canShow" type="boolean" dir="out"/>
|
---|
12441 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
12442 | </method>
|
---|
12443 |
|
---|
12444 | <method name="accessGuestProperty">
|
---|
12445 | <desc>
|
---|
12446 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
12447 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
12448 | modify guest properties.
|
---|
12449 |
|
---|
12450 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12451 | Machine session is not open.
|
---|
12452 | </result>
|
---|
12453 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12454 | Session type is not direct.
|
---|
12455 | </result>
|
---|
12456 |
|
---|
12457 | </desc>
|
---|
12458 | <param name="name" type="wstring" dir="in"/>
|
---|
12459 | <param name="value" type="wstring" dir="in"/>
|
---|
12460 | <param name="flags" type="wstring" dir="in"/>
|
---|
12461 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
12462 | <param name="retValue" type="wstring" dir="out"/>
|
---|
12463 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
12464 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
12465 | </method>
|
---|
12466 |
|
---|
12467 | <method name="enumerateGuestProperties">
|
---|
12468 | <desc>
|
---|
12469 | Return a list of the guest properties matching a set of patterns along
|
---|
12470 | with their values, time stamps and flags.
|
---|
12471 |
|
---|
12472 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12473 | Machine session is not open.
|
---|
12474 | </result>
|
---|
12475 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12476 | Session type is not direct.
|
---|
12477 | </result>
|
---|
12478 |
|
---|
12479 | </desc>
|
---|
12480 | <param name="patterns" type="wstring" dir="in">
|
---|
12481 | <desc>
|
---|
12482 | The patterns to match the properties against as a comma-separated
|
---|
12483 | string. If this is empty, all properties currently set will be
|
---|
12484 | returned.
|
---|
12485 | </desc>
|
---|
12486 | </param>
|
---|
12487 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
12488 | <desc>
|
---|
12489 | The key names of the properties returned.
|
---|
12490 | </desc>
|
---|
12491 | </param>
|
---|
12492 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
12493 | <desc>
|
---|
12494 | The values of the properties returned. The array entries match the
|
---|
12495 | corresponding entries in the @a key array.
|
---|
12496 | </desc>
|
---|
12497 | </param>
|
---|
12498 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
12499 | <desc>
|
---|
12500 | The time stamps of the properties returned. The array entries match
|
---|
12501 | the corresponding entries in the @a key array.
|
---|
12502 | </desc>
|
---|
12503 | </param>
|
---|
12504 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
12505 | <desc>
|
---|
12506 | The flags of the properties returned. The array entries match the
|
---|
12507 | corresponding entries in the @a key array.
|
---|
12508 | </desc>
|
---|
12509 | </param>
|
---|
12510 | </method>
|
---|
12511 |
|
---|
12512 | </interface>
|
---|
12513 |
|
---|
12514 | <interface
|
---|
12515 | name="ISession" extends="$dispatched"
|
---|
12516 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
12517 | wsmap="managed"
|
---|
12518 | >
|
---|
12519 | <desc>
|
---|
12520 | The ISession interface represents a serialization primitive for virtual
|
---|
12521 | machines.
|
---|
12522 |
|
---|
12523 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
12524 | (e.g. change its settings or start execution), a session object is
|
---|
12525 | required. Such an object must be passed to one of the session methods
|
---|
12526 | that open the given session, which then initiates the machine manipulation.
|
---|
12527 |
|
---|
12528 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
12529 | code which process is currently working with the virtual machine, and it ensures
|
---|
12530 | that there are no incompatible requests from several processes for the
|
---|
12531 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
12532 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
12533 | several processes.
|
---|
12534 |
|
---|
12535 | How sessions objects are used depends on whether you use the Main API
|
---|
12536 | via COM or via the webservice:
|
---|
12537 |
|
---|
12538 | <ul>
|
---|
12539 | <li>When using the COM API directly, an object of the Session class from the
|
---|
12540 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
12541 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
12542 | This object will then act as a local session object in further calls to open
|
---|
12543 | a session.
|
---|
12544 | </li>
|
---|
12545 |
|
---|
12546 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
12547 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
12548 | is called. A managed object reference to that session object can be retrieved by
|
---|
12549 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
12550 | reference can then be used to open sessions.
|
---|
12551 | </li>
|
---|
12552 | </ul>
|
---|
12553 |
|
---|
12554 | Sessions are mainly used in two variations:
|
---|
12555 |
|
---|
12556 | <ul>
|
---|
12557 | <li>
|
---|
12558 | To start a virtual machine in a separate process, one would call
|
---|
12559 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
12560 | object as its first parameter. This session then identifies the caller
|
---|
12561 | and lets him control the started machine (for example, pause machine
|
---|
12562 | execution or power it down) as well as be notified about machine
|
---|
12563 | execution state changes.
|
---|
12564 | </li>
|
---|
12565 |
|
---|
12566 | <li>To alter machine settings, or to start machine execution within the
|
---|
12567 | current process, one needs to open a direct session for the machine first by
|
---|
12568 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
12569 | is open within one process, no any other process may open another direct
|
---|
12570 | session for the same machine. This prevents the machine from being changed
|
---|
12571 | by other processes while it is running or while the machine is being configured.
|
---|
12572 | </li>
|
---|
12573 | </ul>
|
---|
12574 |
|
---|
12575 | One also can attach to an existing direct session already opened by
|
---|
12576 | another process (for example, in order to send a control request to the
|
---|
12577 | virtual machine such as the pause or the reset request). This is done by
|
---|
12578 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
12579 |
|
---|
12580 | <note>
|
---|
12581 | Unless you are trying to write a new VirtualBox front-end that
|
---|
12582 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
12583 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
12584 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
12585 | session only to change virtual machine settings. If you simply want to
|
---|
12586 | start virtual machine execution using one of the existing front-ends
|
---|
12587 | (for example the VirtualBox GUI or headless server), simply use
|
---|
12588 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
12589 | will power up the machine automatically for you.
|
---|
12590 | </note>
|
---|
12591 | </desc>
|
---|
12592 |
|
---|
12593 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
12594 | <desc>Current state of this session.</desc>
|
---|
12595 | </attribute>
|
---|
12596 |
|
---|
12597 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
12598 | <desc>
|
---|
12599 | Type of this session. The value of this attribute is valid only
|
---|
12600 | if the session is currently open (i.e. its #state is
|
---|
12601 | SessionType_SessionOpen), otherwise an error will be returned.
|
---|
12602 | </desc>
|
---|
12603 | </attribute>
|
---|
12604 |
|
---|
12605 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
12606 | <desc>Machine object associated with this session.</desc>
|
---|
12607 | </attribute>
|
---|
12608 |
|
---|
12609 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
12610 | <desc>Console object associated with this session.</desc>
|
---|
12611 | </attribute>
|
---|
12612 |
|
---|
12613 | <method name="close">
|
---|
12614 | <desc>
|
---|
12615 | Closes a session that was previously opened.
|
---|
12616 |
|
---|
12617 | It is recommended that every time an "open session" method (such as
|
---|
12618 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
12619 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
12620 | manipulate a virtual machine, the caller invoke
|
---|
12621 | ISession::close() when it's done doing so. Since sessions are
|
---|
12622 | serialization primitives much like ordinary mutexes, they are
|
---|
12623 | best used the same way: for each "open" call, there should be
|
---|
12624 | a matching "close" call, even when errors occur.
|
---|
12625 |
|
---|
12626 | Otherwise, if a direct session for a machine opened with
|
---|
12627 | <link to="IVirtualBox::openSession"/> is not explicitly closed
|
---|
12628 | when the application terminates, the state of the machine will
|
---|
12629 | be set to <link to="MachineState_Aborted" /> on the server.
|
---|
12630 |
|
---|
12631 | Generally, it is recommended to close all open sessions explicitly
|
---|
12632 | before terminating the application (regardless of the reason for
|
---|
12633 | the termination).
|
---|
12634 |
|
---|
12635 | <note>
|
---|
12636 | Do not expect the session state (<link to="ISession::state" />
|
---|
12637 | to return to "Closed" immediately after you invoke
|
---|
12638 | ISession::close(), particularly if you have started a remote
|
---|
12639 | session to execute the VM in a new process. The session state will
|
---|
12640 | automatically return to "Closed" once the VM is no longer executing,
|
---|
12641 | which can of course take a very long time.
|
---|
12642 | </note>
|
---|
12643 |
|
---|
12644 | <result name="E_UNEXPECTED">
|
---|
12645 | Session is not open.
|
---|
12646 | </result>
|
---|
12647 |
|
---|
12648 | </desc>
|
---|
12649 | </method>
|
---|
12650 |
|
---|
12651 | </interface>
|
---|
12652 |
|
---|
12653 | <!--
|
---|
12654 | // IStorageController
|
---|
12655 | /////////////////////////////////////////////////////////////////////////
|
---|
12656 | -->
|
---|
12657 |
|
---|
12658 | <enum
|
---|
12659 | name="StorageBus"
|
---|
12660 | uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
|
---|
12661 | >
|
---|
12662 | <desc>
|
---|
12663 | The connection type of the storage controller.
|
---|
12664 | </desc>
|
---|
12665 | <const name="Null" value="0">
|
---|
12666 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
12667 | </const>
|
---|
12668 | <const name="IDE" value="1"/>
|
---|
12669 | <const name="SATA" value="2"/>
|
---|
12670 | <const name="SCSI" value="3"/>
|
---|
12671 | </enum>
|
---|
12672 |
|
---|
12673 | <enum
|
---|
12674 | name="StorageControllerType"
|
---|
12675 | uuid="685387db-a837-4320-a258-08f46a22f62a"
|
---|
12676 | >
|
---|
12677 | <desc>
|
---|
12678 | Storage controller type.
|
---|
12679 | </desc>
|
---|
12680 |
|
---|
12681 | <const name="Null" value="0">
|
---|
12682 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
12683 | </const>
|
---|
12684 | <const name="LsiLogic" value="1"/>
|
---|
12685 | <const name="BusLogic" value="2"/>
|
---|
12686 | <const name="IntelAhci" value="3"/>
|
---|
12687 | <const name="PIIX3" value="4"/>
|
---|
12688 | <const name="PIIX4" value="5"/>
|
---|
12689 | <const name="ICH6" value="6"/>
|
---|
12690 | </enum>
|
---|
12691 |
|
---|
12692 | <interface
|
---|
12693 | name="IStorageController" extends="$unknown"
|
---|
12694 | uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
|
---|
12695 | wsmap="managed"
|
---|
12696 | >
|
---|
12697 | <desc>
|
---|
12698 | Represents a storage controller that is attached to a virtual machine
|
---|
12699 | (<link to="IMachine" />). Just as hard disks are attached to storage
|
---|
12700 | controllers in a real computer, virtual hard disks (represented by
|
---|
12701 | <link to="IHardDisk" />) are attached to virtual storage controllers,
|
---|
12702 | represented by this interface.
|
---|
12703 |
|
---|
12704 | VirtualBox supports three types of virtual storage controller hardware:
|
---|
12705 | IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
|
---|
12706 | these three is used, certain sub-types are available and can be
|
---|
12707 | selected in <link to="#controllerType" />.
|
---|
12708 | </desc>
|
---|
12709 |
|
---|
12710 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12711 | <desc>
|
---|
12712 | Name of the storage controller, as originally specified with
|
---|
12713 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
12714 | identifies this controller with other method calls such as
|
---|
12715 | <link to="IMachine::attachHardDisk" />.
|
---|
12716 | </desc>
|
---|
12717 | </attribute>
|
---|
12718 |
|
---|
12719 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
12720 | <desc>
|
---|
12721 | Maximum number of devices which can be attached to one port.
|
---|
12722 | </desc>
|
---|
12723 | </attribute>
|
---|
12724 |
|
---|
12725 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
12726 | <desc>
|
---|
12727 | Minimum number of ports which can be set with
|
---|
12728 | <link to="IStorageController::SetPortCount"/>.
|
---|
12729 | </desc>
|
---|
12730 | </attribute>
|
---|
12731 |
|
---|
12732 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
12733 | <desc>
|
---|
12734 | Maximum number of ports which can be set with
|
---|
12735 | <link to="IStorageController::SetPortCount"/>.
|
---|
12736 | </desc>
|
---|
12737 | </attribute>
|
---|
12738 |
|
---|
12739 | <attribute name="instance" type="unsigned long">
|
---|
12740 | <desc>
|
---|
12741 | The instance number of the device in the running VM.
|
---|
12742 | </desc>
|
---|
12743 | </attribute>
|
---|
12744 |
|
---|
12745 | <attribute name="portCount" type="unsigned long">
|
---|
12746 | <desc>
|
---|
12747 | The number of currently usable ports on the controller.
|
---|
12748 | The minimum and maximum number of ports for one controller type can
|
---|
12749 | be determined with <link to="IStorageController::GetMinPortCount"/>
|
---|
12750 | and <link to="IStorageController::GetMaxPortCount"/>..
|
---|
12751 | </desc>
|
---|
12752 | </attribute>
|
---|
12753 |
|
---|
12754 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
12755 | <desc>
|
---|
12756 | The connection type of the storage controller.
|
---|
12757 | </desc>
|
---|
12758 | </attribute>
|
---|
12759 |
|
---|
12760 | <attribute name="controllerType" type="StorageControllerType">
|
---|
12761 | <desc>
|
---|
12762 | Type of the virtual storage controller. Depending on this value,
|
---|
12763 | VirtualBox will provide a different virtual storage controller hardware
|
---|
12764 | to the guest.
|
---|
12765 |
|
---|
12766 | For SCSI controllers, the default type is LsiLogic.
|
---|
12767 | </desc>
|
---|
12768 | </attribute>
|
---|
12769 |
|
---|
12770 | <method name="GetIDEEmulationPort">
|
---|
12771 | <desc>
|
---|
12772 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
12773 |
|
---|
12774 | <result name="E_INVALIDARG">
|
---|
12775 | The @a devicePosition is not in the range 0 to 3.
|
---|
12776 | </result>
|
---|
12777 | <result name="E_NOTIMPL">
|
---|
12778 | The storage controller type is not SATAIntelAhci.
|
---|
12779 | </result>
|
---|
12780 |
|
---|
12781 | </desc>
|
---|
12782 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12783 | <param name="portNumber" type="long" dir="return"/>
|
---|
12784 | </method>
|
---|
12785 |
|
---|
12786 | <method name="SetIDEEmulationPort">
|
---|
12787 | <desc>
|
---|
12788 | Sets the port number which is emulated as an IDE device.
|
---|
12789 |
|
---|
12790 | <result name="E_INVALIDARG">
|
---|
12791 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
12792 | @a portNumber is not in the range 0 to 29.
|
---|
12793 | </result>
|
---|
12794 | <result name="E_NOTIMPL">
|
---|
12795 | The storage controller type is not SATAIntelAhci.
|
---|
12796 | </result>
|
---|
12797 |
|
---|
12798 | </desc>
|
---|
12799 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12800 | <param name="portNumber" type="long" dir="in"/>
|
---|
12801 | </method>
|
---|
12802 |
|
---|
12803 | </interface>
|
---|
12804 |
|
---|
12805 | <if target="wsdl">
|
---|
12806 |
|
---|
12807 | <!--
|
---|
12808 | // IManagedObjectRef
|
---|
12809 | /////////////////////////////////////////////////////////////////////////
|
---|
12810 | -->
|
---|
12811 |
|
---|
12812 | <interface
|
---|
12813 | name="IManagedObjectRef" extends="$unknown"
|
---|
12814 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
12815 | internal="yes"
|
---|
12816 | wsmap="managed"
|
---|
12817 | wscpp="hardcoded"
|
---|
12818 | >
|
---|
12819 | <desc>
|
---|
12820 | Managed object reference.
|
---|
12821 |
|
---|
12822 | Only within the webservice, a managed object reference (which is really
|
---|
12823 | an opaque number) allows a webservice client to address an object
|
---|
12824 | that lives in the address space of the webservice server.
|
---|
12825 |
|
---|
12826 | Behind each managed object reference, there is a COM object that lives
|
---|
12827 | in the webservice server's address space. The COM object is not freed
|
---|
12828 | until the managed object reference is released, either by an explicit
|
---|
12829 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
12830 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
12831 | all objects created during the webservice session.
|
---|
12832 |
|
---|
12833 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
12834 | webservice representation of that method will instead return a
|
---|
12835 | managed object reference, which can then be used to invoke methods
|
---|
12836 | on that object.
|
---|
12837 | </desc>
|
---|
12838 |
|
---|
12839 | <method name="getInterfaceName">
|
---|
12840 | <desc>
|
---|
12841 | Returns the name of the interface that this managed object represents,
|
---|
12842 | for example, "IMachine", as a string.
|
---|
12843 | </desc>
|
---|
12844 | <param name="return" type="wstring" dir="return"/>
|
---|
12845 | </method>
|
---|
12846 |
|
---|
12847 | <method name="release">
|
---|
12848 | <desc>
|
---|
12849 | Releases this managed object reference and frees the resources that
|
---|
12850 | were allocated for it in the webservice server process. After calling
|
---|
12851 | this method, the identifier of the reference can no longer be used.
|
---|
12852 | </desc>
|
---|
12853 | </method>
|
---|
12854 |
|
---|
12855 | </interface>
|
---|
12856 |
|
---|
12857 | <!--
|
---|
12858 | // IWebsessionManager
|
---|
12859 | /////////////////////////////////////////////////////////////////////////
|
---|
12860 | -->
|
---|
12861 |
|
---|
12862 | <interface
|
---|
12863 | name="IWebsessionManager" extends="$unknown"
|
---|
12864 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
12865 | internal="yes"
|
---|
12866 | wsmap="global"
|
---|
12867 | wscpp="hardcoded"
|
---|
12868 | >
|
---|
12869 | <desc>
|
---|
12870 | Websession manager. This provides essential services
|
---|
12871 | to webservice clients.
|
---|
12872 | </desc>
|
---|
12873 | <method name="logon">
|
---|
12874 | <desc>
|
---|
12875 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
12876 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
12877 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
12878 | interface, in one way or the other.
|
---|
12879 | </desc>
|
---|
12880 | <param name="username" type="wstring" dir="in"/>
|
---|
12881 | <param name="password" type="wstring" dir="in"/>
|
---|
12882 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
12883 | </method>
|
---|
12884 |
|
---|
12885 | <method name="getSessionObject">
|
---|
12886 | <desc>
|
---|
12887 | Returns a managed object reference to the internal ISession object that was created
|
---|
12888 | for this web service session when the client logged on.
|
---|
12889 |
|
---|
12890 | <see>ISession</see>
|
---|
12891 | </desc>
|
---|
12892 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12893 | <param name="return" type="ISession" dir="return"/>
|
---|
12894 | </method>
|
---|
12895 |
|
---|
12896 | <method name="logoff">
|
---|
12897 | <desc>
|
---|
12898 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
12899 | and destroys all resources associated with the session (most importantly, all
|
---|
12900 | managed objects created in the server while the session was active).
|
---|
12901 | </desc>
|
---|
12902 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12903 | </method>
|
---|
12904 |
|
---|
12905 | </interface>
|
---|
12906 |
|
---|
12907 | </if>
|
---|
12908 |
|
---|
12909 | <!--
|
---|
12910 | // IPerformanceCollector & friends
|
---|
12911 | /////////////////////////////////////////////////////////////////////////
|
---|
12912 | -->
|
---|
12913 |
|
---|
12914 | <interface
|
---|
12915 | name="IPerformanceMetric" extends="$unknown"
|
---|
12916 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
12917 | >
|
---|
12918 | <desc>
|
---|
12919 | The IPerformanceMetric interface represents parameters of the given
|
---|
12920 | performance metric.
|
---|
12921 | </desc>
|
---|
12922 |
|
---|
12923 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
12924 | <desc>
|
---|
12925 | Name of the metric.
|
---|
12926 | </desc>
|
---|
12927 | </attribute>
|
---|
12928 |
|
---|
12929 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
12930 | <desc>
|
---|
12931 | Object this metric belongs to.
|
---|
12932 | </desc>
|
---|
12933 | </attribute>
|
---|
12934 |
|
---|
12935 | <attribute name="description" type="wstring" readonly="yes">
|
---|
12936 | <desc>
|
---|
12937 | Textual description of the metric.
|
---|
12938 | </desc>
|
---|
12939 | </attribute>
|
---|
12940 |
|
---|
12941 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
12942 | <desc>
|
---|
12943 | Time interval between samples, measured in seconds.
|
---|
12944 | </desc>
|
---|
12945 | </attribute>
|
---|
12946 |
|
---|
12947 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
12948 | <desc>
|
---|
12949 | Number of recent samples retained by the performance collector for this
|
---|
12950 | metric.
|
---|
12951 |
|
---|
12952 | When the collected sample count exceeds this number, older samples
|
---|
12953 | are discarded.
|
---|
12954 | </desc>
|
---|
12955 | </attribute>
|
---|
12956 |
|
---|
12957 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
12958 | <desc>
|
---|
12959 | Unit of measurement.
|
---|
12960 | </desc>
|
---|
12961 | </attribute>
|
---|
12962 |
|
---|
12963 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
12964 | <desc>
|
---|
12965 | Minimum possible value of this metric.
|
---|
12966 | </desc>
|
---|
12967 | </attribute>
|
---|
12968 |
|
---|
12969 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
12970 | <desc>
|
---|
12971 | Maximum possible value of this metric.
|
---|
12972 | </desc>
|
---|
12973 | </attribute>
|
---|
12974 | </interface>
|
---|
12975 |
|
---|
12976 | <interface
|
---|
12977 | name="IPerformanceCollector" extends="$unknown"
|
---|
12978 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
12979 | wsmap="managed"
|
---|
12980 | >
|
---|
12981 | <desc>
|
---|
12982 | The IPerformanceCollector interface represents a service that collects and
|
---|
12983 | stores performance metrics data.
|
---|
12984 |
|
---|
12985 | Performance metrics are associated with objects like IHost and
|
---|
12986 | IMachine. Each object has a distinct set of performance metrics.
|
---|
12987 | The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
12988 |
|
---|
12989 | Metric data are collected at the specified intervals and are retained
|
---|
12990 | internally. The interval and the number of samples retained can be set
|
---|
12991 | with <link to="IPerformanceCollector::setupMetrics" />.
|
---|
12992 |
|
---|
12993 | Metrics are organized hierarchically, each level separated by slash (/).
|
---|
12994 | General scheme for metric name is
|
---|
12995 | "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
|
---|
12996 | metric name stands for: CPU category, Load metric, User submetric, average
|
---|
12997 | aggregate. An aggregate function is computed over all retained data. Valid
|
---|
12998 | aggregate functions are:
|
---|
12999 |
|
---|
13000 | <ul>
|
---|
13001 | <li>avg -- average</li>
|
---|
13002 | <li>min -- minimum</li>
|
---|
13003 | <li>max -- maximum</li>
|
---|
13004 | </ul>
|
---|
13005 |
|
---|
13006 | "Category/Metric" together form base metric name. A base metric is the
|
---|
13007 | smallest unit for which a sampling interval and the number of retained
|
---|
13008 | samples can be set. Only base metrics can be enabled and disabled. All
|
---|
13009 | sub-metrics are collected when their base metric is collected.
|
---|
13010 | Collected values for any set of sub-metrics can be queried with
|
---|
13011 | <link to="IPerformanceCollector::queryMetricsData" />. When setting up
|
---|
13012 | metric parameters, querying metric data, enabling or disabling metrics
|
---|
13013 | wildcards can be used in metric names to specify a subset of metrics. For
|
---|
13014 | example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
|
---|
13015 | averages can be queried using <tt>*:avg</tt> and so on. To query metric
|
---|
13016 | values without aggregates <tt>*:</tt> can be used.
|
---|
13017 |
|
---|
13018 | The valid names for base metrics are:
|
---|
13019 |
|
---|
13020 | <ul>
|
---|
13021 | <li>CPU/Load</li>
|
---|
13022 | <li>CPU/MHz</li>
|
---|
13023 | <li>RAM/Usage</li>
|
---|
13024 | </ul>
|
---|
13025 |
|
---|
13026 | The general sequence for collecting and retrieving the metrics is:
|
---|
13027 | <ul>
|
---|
13028 | <li>
|
---|
13029 | Obtain an instance of IPerformanceCollector with
|
---|
13030 | <link to="IVirtualBox::performanceCollector" />
|
---|
13031 | </li>
|
---|
13032 | <li>
|
---|
13033 | Allocate and populate an array with references to objects the metrics
|
---|
13034 | will be collected for. Use references to IHost and IMachine objects.
|
---|
13035 | </li>
|
---|
13036 | <li>
|
---|
13037 | Allocate and populate an array with base metric names the data will be
|
---|
13038 | collected for.
|
---|
13039 | </li>
|
---|
13040 | <li>
|
---|
13041 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
|
---|
13042 | metric data will be collected and stored.
|
---|
13043 | </li>
|
---|
13044 | <li>
|
---|
13045 | Wait for the data to get collected.
|
---|
13046 | </li>
|
---|
13047 | <li>
|
---|
13048 | Allocate and populate an array with references to objects the metric
|
---|
13049 | values will be queried for. You can re-use the object array used for
|
---|
13050 | setting base metrics.
|
---|
13051 | </li>
|
---|
13052 | <li>
|
---|
13053 | Allocate and populate an array with metric names the data will be
|
---|
13054 | collected for. Note that metric names differ from base metric names.
|
---|
13055 | </li>
|
---|
13056 | <li>
|
---|
13057 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
|
---|
13058 | have been collected so far are returned. Note that the values are still
|
---|
13059 | retained internally and data collection continues.
|
---|
13060 | </li>
|
---|
13061 | </ul>
|
---|
13062 |
|
---|
13063 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
13064 | <ul>
|
---|
13065 | <li>
|
---|
13066 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
13067 | </li>
|
---|
13068 | <li>
|
---|
13069 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
13070 | </li>
|
---|
13071 | </ul>
|
---|
13072 | </desc>
|
---|
13073 |
|
---|
13074 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
13075 | <desc>
|
---|
13076 | Array of unique names of metrics.
|
---|
13077 |
|
---|
13078 | This array represents all metrics supported by the performance
|
---|
13079 | collector. Individual objects do not necessarily support all of them.
|
---|
13080 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
13081 | list of supported metrics for a particular object.
|
---|
13082 | </desc>
|
---|
13083 | </attribute>
|
---|
13084 |
|
---|
13085 | <method name="getMetrics">
|
---|
13086 | <desc>
|
---|
13087 | Returns parameters of specified metrics for a set of objects.
|
---|
13088 | <note>
|
---|
13089 | @c Null metrics array means all metrics. @c Null object array means
|
---|
13090 | all existing objects.
|
---|
13091 | </note>
|
---|
13092 | </desc>
|
---|
13093 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13094 | <desc>
|
---|
13095 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
13096 | is supported.
|
---|
13097 | </desc>
|
---|
13098 | </param>
|
---|
13099 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13100 | <desc>
|
---|
13101 | Set of objects to return metric parameters for.
|
---|
13102 | </desc>
|
---|
13103 | </param>
|
---|
13104 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13105 | <desc>
|
---|
13106 | Array of returned metric parameters.
|
---|
13107 | </desc>
|
---|
13108 | </param>
|
---|
13109 | </method>
|
---|
13110 |
|
---|
13111 | <method name="setupMetrics">
|
---|
13112 | <desc>
|
---|
13113 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
13114 | an array of <link to="IPerformanceMetric" /> describing the metrics have
|
---|
13115 | been affected.
|
---|
13116 | <note>
|
---|
13117 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13118 | object array means all existing objects. If metric name array contains
|
---|
13119 | a single element and object array contains many, the single metric
|
---|
13120 | name array element is applied to each object array element to form
|
---|
13121 | metric/object pairs.
|
---|
13122 | </note>
|
---|
13123 | </desc>
|
---|
13124 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13125 | <desc>
|
---|
13126 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13127 | support.
|
---|
13128 | </desc>
|
---|
13129 | </param>
|
---|
13130 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13131 | <desc>
|
---|
13132 | Set of objects to setup metric parameters for.
|
---|
13133 | </desc>
|
---|
13134 | </param>
|
---|
13135 | <param name="period" type="unsigned long" dir="in">
|
---|
13136 | <desc>
|
---|
13137 | Time interval in seconds between two consecutive samples of performance
|
---|
13138 | data.
|
---|
13139 | </desc>
|
---|
13140 | </param>
|
---|
13141 | <param name="count" type="unsigned long" dir="in">
|
---|
13142 | <desc>
|
---|
13143 | Number of samples to retain in performance data history. Older samples
|
---|
13144 | get discarded.
|
---|
13145 | </desc>
|
---|
13146 | </param>
|
---|
13147 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13148 | <desc>
|
---|
13149 | Array of metrics that have been modified by the call to this method.
|
---|
13150 | </desc>
|
---|
13151 | </param>
|
---|
13152 | </method>
|
---|
13153 |
|
---|
13154 | <method name="enableMetrics">
|
---|
13155 | <desc>
|
---|
13156 | Turns on collecting specified base metrics. Returns an array of
|
---|
13157 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13158 | affected.
|
---|
13159 | <note>
|
---|
13160 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13161 | object array means all existing objects. If metric name array contains
|
---|
13162 | a single element and object array contains many, the single metric
|
---|
13163 | name array element is applied to each object array element to form
|
---|
13164 | metric/object pairs.
|
---|
13165 | </note>
|
---|
13166 | </desc>
|
---|
13167 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13168 | <desc>
|
---|
13169 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13170 | support.
|
---|
13171 | </desc>
|
---|
13172 | </param>
|
---|
13173 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13174 | <desc>
|
---|
13175 | Set of objects to enable metrics for.
|
---|
13176 | </desc>
|
---|
13177 | </param>
|
---|
13178 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13179 | <desc>
|
---|
13180 | Array of metrics that have been modified by the call to this method.
|
---|
13181 | </desc>
|
---|
13182 | </param>
|
---|
13183 | </method>
|
---|
13184 |
|
---|
13185 | <method name="disableMetrics">
|
---|
13186 | <desc>
|
---|
13187 | Turns off collecting specified base metrics. Returns an array of
|
---|
13188 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13189 | affected.
|
---|
13190 | <note>
|
---|
13191 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13192 | object array means all existing objects. If metric name array contains
|
---|
13193 | a single element and object array contains many, the single metric
|
---|
13194 | name array element is applied to each object array element to form
|
---|
13195 | metric/object pairs.
|
---|
13196 | </note>
|
---|
13197 | </desc>
|
---|
13198 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13199 | <desc>
|
---|
13200 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13201 | support.
|
---|
13202 | </desc>
|
---|
13203 | </param>
|
---|
13204 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13205 | <desc>
|
---|
13206 | Set of objects to disable metrics for.
|
---|
13207 | </desc>
|
---|
13208 | </param>
|
---|
13209 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13210 | <desc>
|
---|
13211 | Array of metrics that have been modified by the call to this method.
|
---|
13212 | </desc>
|
---|
13213 | </param>
|
---|
13214 | </method>
|
---|
13215 |
|
---|
13216 | <method name="queryMetricsData">
|
---|
13217 | <desc>
|
---|
13218 | Queries collected metrics data for a set of objects.
|
---|
13219 |
|
---|
13220 | The data itself and related metric information are returned in seven
|
---|
13221 | parallel and one flattened array of arrays. Elements of
|
---|
13222 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
13223 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
13224 | the same index describe one set of values corresponding to a single
|
---|
13225 | metric.
|
---|
13226 |
|
---|
13227 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
13228 | start and length of a sub-array is indicated by
|
---|
13229 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
13230 | value for metric <tt>metricNames[i]</tt> is at
|
---|
13231 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
13232 |
|
---|
13233 | <note>
|
---|
13234 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13235 | object array means all existing objects. If metric name array contains
|
---|
13236 | a single element and object array contains many, the single metric
|
---|
13237 | name array element is applied to each object array element to form
|
---|
13238 | metric/object pairs.
|
---|
13239 | </note>
|
---|
13240 | <note>
|
---|
13241 | Data collection continues behind the scenes after call to
|
---|
13242 | @c queryMetricsData. The return data can be seen as the snapshot of
|
---|
13243 | the current state at the time of @c queryMetricsData call. The
|
---|
13244 | internally kept metric values are not cleared by the call. This makes
|
---|
13245 | possible querying different subsets of metrics or aggregates with
|
---|
13246 | subsequent calls. If periodic querying is needed it is highly
|
---|
13247 | suggested to query the values with @c interval*count period to avoid
|
---|
13248 | confusion. This way a completely new set of data values will be
|
---|
13249 | provided by each query.
|
---|
13250 | </note>
|
---|
13251 | </desc>
|
---|
13252 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13253 | <desc>
|
---|
13254 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13255 | support.
|
---|
13256 | </desc>
|
---|
13257 | </param>
|
---|
13258 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13259 | <desc>
|
---|
13260 | Set of objects to query metrics for.
|
---|
13261 | </desc>
|
---|
13262 | </param>
|
---|
13263 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
13264 | <desc>
|
---|
13265 | Names of metrics returned in @c returnData.
|
---|
13266 | </desc>
|
---|
13267 | </param>
|
---|
13268 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
13269 | <desc>
|
---|
13270 | Objects associated with metrics returned in @c returnData.
|
---|
13271 | </desc>
|
---|
13272 | </param>
|
---|
13273 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
13274 | <desc>
|
---|
13275 | Units of measurement for each returned metric.
|
---|
13276 | </desc>
|
---|
13277 | </param>
|
---|
13278 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
13279 | <desc>
|
---|
13280 | Divisor that should be applied to return values in order to get
|
---|
13281 | floating point values. For example:
|
---|
13282 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
13283 | will retrieve the floating point value of i-th sample of the first
|
---|
13284 | metric.
|
---|
13285 | </desc>
|
---|
13286 | </param>
|
---|
13287 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
13288 | <desc>
|
---|
13289 | Sequence numbers of the first elements of value sequences of particular metrics
|
---|
13290 | returned in @c returnData. For aggregate metrics it is the sequence number of
|
---|
13291 | the sample the aggregate started calculation from.
|
---|
13292 | </desc>
|
---|
13293 | </param>
|
---|
13294 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
13295 | <desc>
|
---|
13296 | Indices of the first elements of value sequences of particular metrics
|
---|
13297 | returned in @c returnData.
|
---|
13298 | </desc>
|
---|
13299 | </param>
|
---|
13300 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
13301 | <desc>
|
---|
13302 | Lengths of value sequences of particular metrics.
|
---|
13303 | </desc>
|
---|
13304 | </param>
|
---|
13305 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
13306 | <desc>
|
---|
13307 | Flattened array of all metric data containing sequences of values for
|
---|
13308 | each metric.
|
---|
13309 | </desc>
|
---|
13310 | </param>
|
---|
13311 | </method>
|
---|
13312 |
|
---|
13313 | </interface>
|
---|
13314 |
|
---|
13315 | <module name="VBoxSVC" context="LocalServer">
|
---|
13316 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
13317 | namespace="virtualbox.org">
|
---|
13318 | <interface name="IVirtualBox" default="yes"/>
|
---|
13319 | </class>
|
---|
13320 | </module>
|
---|
13321 |
|
---|
13322 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
13323 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
13324 | namespace="virtualbox.org">
|
---|
13325 | <interface name="ISession" default="yes"/>
|
---|
13326 | </class>
|
---|
13327 | </module>
|
---|
13328 |
|
---|
13329 | </library>
|
---|
13330 |
|
---|
13331 | </idl>
|
---|
13332 |
|
---|
13333 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|