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, @c null). 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="AccessMode"
|
---|
350 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
351 | >
|
---|
352 | <desc>
|
---|
353 | Access mode for opening files.
|
---|
354 | </desc>
|
---|
355 |
|
---|
356 | <const name="ReadOnly" value="1"/>
|
---|
357 | <const name="ReadWrite" value="2"/>
|
---|
358 | </enum>
|
---|
359 |
|
---|
360 | <enum
|
---|
361 | name="MachineState"
|
---|
362 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
363 | >
|
---|
364 | <desc>
|
---|
365 | Virtual machine execution state.
|
---|
366 |
|
---|
367 | This enumeration represents possible values of the <link
|
---|
368 | to="IMachine::state"/> attribute.
|
---|
369 |
|
---|
370 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
371 | changes during virtual machine execution. The text in square braces shows
|
---|
372 | a method of the IConsole interface that performs the given state
|
---|
373 | transition.
|
---|
374 |
|
---|
375 | <pre>
|
---|
376 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
377 | V |
|
---|
378 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
379 | | | | | V |
|
---|
380 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
381 | | | ^ | ^ |
|
---|
382 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
383 | | ^ | | | |
|
---|
384 | | | +-----------------------------------------+-|-------------------+ +
|
---|
385 | | | | | |
|
---|
386 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
387 | | | | |
|
---|
388 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
389 | | | |
|
---|
390 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
391 | </pre>
|
---|
392 |
|
---|
393 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
394 | above diagram are called <i>online VM states</i>. These states
|
---|
395 | represent the virtual machine which is being executed in a dedicated
|
---|
396 | process (usually with a GUI window attached to it where you can see the
|
---|
397 | activity of the virtual machine and interact with it). There are two
|
---|
398 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
399 | relational expressions to detect if the given machine state is online or
|
---|
400 | not:
|
---|
401 |
|
---|
402 | <pre>
|
---|
403 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
404 | machine.GetState() <= MachineState_LastOnline)
|
---|
405 | {
|
---|
406 | ...the machine is being executed...
|
---|
407 | }
|
---|
408 | </pre>
|
---|
409 |
|
---|
410 | When the virtual machine is in one of the online VM states (that is, being
|
---|
411 | executed), only a few machine settings can be modified. Methods working
|
---|
412 | with such settings contain an explicit note about that. An attempt to
|
---|
413 | change any oter setting or perform a modifying operation during this time
|
---|
414 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
415 |
|
---|
416 | All online states except Running, Paused and Stuck are transitional: they
|
---|
417 | represent temporary conditions of the virtual machine that will last as
|
---|
418 | long as the operation that initiated such a condition.
|
---|
419 |
|
---|
420 | The Stuck state is a special case. It means that execution of the machine
|
---|
421 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
422 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
423 | result of either an unhandled low-level virtual hardware exception or one
|
---|
424 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
425 | condition).
|
---|
426 |
|
---|
427 | Note also that any online VM state may transit to the Aborted state. This
|
---|
428 | happens if the process that is executing the virtual machine terminates
|
---|
429 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
430 | equivalent to PoweredOff.
|
---|
431 |
|
---|
432 | There are also a few additional state diagrams that do not deal with
|
---|
433 | virtual machine execution and therefore are shown separately. The states
|
---|
434 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
435 | PoweredOff, Aborted and Saved too).
|
---|
436 |
|
---|
437 | The first diagram shows what happens when a lengthy setup operation is
|
---|
438 | being executed (such as <link to="IMachine::attachHardDisk"/>).
|
---|
439 |
|
---|
440 | <pre>
|
---|
441 | +----------------------------------(same state as before the call)------+
|
---|
442 | | |
|
---|
443 | +-> PoweredOff --+ |
|
---|
444 | | | |
|
---|
445 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
446 | | |
|
---|
447 | +-> Saved -------+
|
---|
448 | </pre>
|
---|
449 |
|
---|
450 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
451 | powered off virtual machine and performing one of the "discard..."
|
---|
452 | operations, respectively.
|
---|
453 |
|
---|
454 | <pre>
|
---|
455 | +----------------------------------(same state as before the call)------+
|
---|
456 | | |
|
---|
457 | +-> PoweredOff --+ |
|
---|
458 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
459 | +-> Aborted -----+
|
---|
460 |
|
---|
461 | +-> PoweredOff --+
|
---|
462 | | |
|
---|
463 | | Aborted -----+-->[discardSnapshot() ]-------------> Discarding --+
|
---|
464 | | | [discardCurrentState()] |
|
---|
465 | +-> Saved -------+ [discardCurrentSnapshotAndState()] |
|
---|
466 | | |
|
---|
467 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
468 | </pre>
|
---|
469 |
|
---|
470 | Note that the Saving state is present in both the offline state group and
|
---|
471 | online state group. Currently, the only way to determine what group is
|
---|
472 | assumed in a particular case is to remember the previous machine state: if
|
---|
473 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
474 | an offline state. This inconsistency may be removed in one of the future
|
---|
475 | versions of VirtualBox by adding a new state.
|
---|
476 |
|
---|
477 | <note internal="yes">
|
---|
478 | For whoever decides to touch this enum: In order to keep the
|
---|
479 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
480 | the numeric values of these states must be correspondingly updated if
|
---|
481 | needed: for any online VM state, the condition
|
---|
482 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
483 | @c true. The same relates to transient states for which
|
---|
484 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
485 | @c true.
|
---|
486 | </note>
|
---|
487 | </desc>
|
---|
488 |
|
---|
489 | <const name="Null" value="0">
|
---|
490 | <desc>Null value (never used by the API).</desc>
|
---|
491 | </const>
|
---|
492 | <const name="PoweredOff" value="1">
|
---|
493 | <desc>
|
---|
494 | The machine is not running and has no saved execution state; it has
|
---|
495 | either never been started or been shut down successfully.
|
---|
496 | </desc>
|
---|
497 | </const>
|
---|
498 | <const name="Saved" value="2">
|
---|
499 | <desc>
|
---|
500 | The machine is not currently running, but the execution state of the machine
|
---|
501 | has been saved to an external file when it was running, from where
|
---|
502 | it can be resumed.
|
---|
503 | </desc>
|
---|
504 | </const>
|
---|
505 | <const name="Aborted" value="3">
|
---|
506 | <desc>
|
---|
507 | The process running the machine has terminated abnormally. This may
|
---|
508 | indicate a crash of the VM process in host execution context, or
|
---|
509 | the VM process has been terminated externally.
|
---|
510 | </desc>
|
---|
511 | </const>
|
---|
512 | <const name="Running" value="4">
|
---|
513 | <desc>
|
---|
514 | The machine is currently being executed.
|
---|
515 | <note internal="yes">
|
---|
516 | For whoever decides to touch this enum: In order to keep the
|
---|
517 | comparisons in the old source code valid, this state must immediately
|
---|
518 | precede the Paused state.
|
---|
519 | </note>
|
---|
520 | </desc>
|
---|
521 | </const>
|
---|
522 | <const name="Paused" value="5">
|
---|
523 | <desc>
|
---|
524 | Execution of the machine has been paused.
|
---|
525 | <note internal="yes">
|
---|
526 | For whoever decides to touch this enum: In order to keep the
|
---|
527 | comparisons in the old source code valid, this state must immediately
|
---|
528 | follow the Running state.
|
---|
529 | </note>
|
---|
530 | </desc>
|
---|
531 | </const>
|
---|
532 | <const name="Stuck" value="6">
|
---|
533 | <desc>
|
---|
534 | Execution of the machine has reached the "Guru Meditation"
|
---|
535 | condition. This indicates a severe error in the hypervisor itself.
|
---|
536 | </desc>
|
---|
537 | </const>
|
---|
538 | <const name="Starting" value="7">
|
---|
539 | <desc>
|
---|
540 | Machine is being started after powering it on from a
|
---|
541 | zero execution state.
|
---|
542 | </desc>
|
---|
543 | </const>
|
---|
544 | <const name="Stopping" value="8">
|
---|
545 | <desc>
|
---|
546 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
547 | has initiated a shutdown sequence.
|
---|
548 | </desc>
|
---|
549 | </const>
|
---|
550 | <const name="Saving" value="9">
|
---|
551 | <desc>
|
---|
552 | Machine is saving its execution state to a file, or an online
|
---|
553 | snapshot of the machine is being taken.
|
---|
554 | </desc>
|
---|
555 | </const>
|
---|
556 | <const name="Restoring" value="10">
|
---|
557 | <desc>
|
---|
558 | Execution state of the machine is being restored from a file
|
---|
559 | after powering it on from the saved execution state.
|
---|
560 | </desc>
|
---|
561 | </const>
|
---|
562 | <const name="Discarding" value="11">
|
---|
563 | <desc>
|
---|
564 | Snapshot of the machine is being discarded.
|
---|
565 | </desc>
|
---|
566 | </const>
|
---|
567 | <const name="SettingUp" value="12">
|
---|
568 | <desc>
|
---|
569 | Lengthy setup operation is in progress.
|
---|
570 | </desc>
|
---|
571 | </const>
|
---|
572 |
|
---|
573 | <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
|
---|
574 | <desc>
|
---|
575 | Pseudo-state: first online state (for use in relational expressions).
|
---|
576 | </desc>
|
---|
577 | </const>
|
---|
578 | <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
|
---|
579 | <desc>
|
---|
580 | Pseudo-state: last online state (for use in relational expressions).
|
---|
581 | </desc>
|
---|
582 | </const>
|
---|
583 |
|
---|
584 | <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
|
---|
585 | <desc>
|
---|
586 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
587 | </desc>
|
---|
588 | </const>
|
---|
589 | <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
|
---|
590 | <desc>
|
---|
591 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
592 | </desc>
|
---|
593 | </const>
|
---|
594 |
|
---|
595 | </enum>
|
---|
596 |
|
---|
597 | <enum
|
---|
598 | name="SessionState"
|
---|
599 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
600 | >
|
---|
601 | <desc>
|
---|
602 | Session state. This enumeration represents possible values of
|
---|
603 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
604 | attributes. See individual enumerator descriptions for the meaning for
|
---|
605 | every value.
|
---|
606 | </desc>
|
---|
607 |
|
---|
608 | <const name="Null" value="0">
|
---|
609 | <desc>Null value (never used by the API).</desc>
|
---|
610 | </const>
|
---|
611 | <const name="Closed" value="1">
|
---|
612 | <desc>
|
---|
613 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
614 | the session is closed (<link to="ISession::state"/>)
|
---|
615 | </desc>
|
---|
616 | </const>
|
---|
617 | <const name="Open" value="2">
|
---|
618 | <desc>
|
---|
619 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
620 | the session is open (<link to="ISession::state"/>)
|
---|
621 | </desc>
|
---|
622 | </const>
|
---|
623 | <const name="Spawning" value="3">
|
---|
624 | <desc>
|
---|
625 | A new (direct) session is being opened for the machine
|
---|
626 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
627 | call (<link to="IMachine::sessionState"/>);
|
---|
628 | the session is currently being opened
|
---|
629 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
630 | call (<link to="ISession::state"/>)
|
---|
631 | </desc>
|
---|
632 | </const>
|
---|
633 | <const name="Closing" value="4">
|
---|
634 | <desc>
|
---|
635 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
636 | the session is being closed (<link to="ISession::state"/>)
|
---|
637 | </desc>
|
---|
638 | </const>
|
---|
639 | </enum>
|
---|
640 |
|
---|
641 | <enum
|
---|
642 | name="SessionType"
|
---|
643 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
644 | >
|
---|
645 | <desc>
|
---|
646 | Session type. This enumeration represents possible values of the
|
---|
647 | <link to="ISession::type"/> attribute.
|
---|
648 | </desc>
|
---|
649 |
|
---|
650 | <const name="Null" value="0">
|
---|
651 | <desc>Null value (never used by the API).</desc>
|
---|
652 | </const>
|
---|
653 | <const name="Direct" value="1">
|
---|
654 | <desc>
|
---|
655 | Direct session
|
---|
656 | (opened by <link to="IVirtualBox::openSession"/>)
|
---|
657 | </desc>
|
---|
658 | </const>
|
---|
659 | <const name="Remote" value="2">
|
---|
660 | <desc>
|
---|
661 | Remote session
|
---|
662 | (opened by <link to="IVirtualBox::openRemoteSession"/>)
|
---|
663 | </desc>
|
---|
664 | </const>
|
---|
665 | <const name="Existing" value="3">
|
---|
666 | <desc>
|
---|
667 | Existing session
|
---|
668 | (opened by <link to="IVirtualBox::openExistingSession"/>)
|
---|
669 | </desc>
|
---|
670 | </const>
|
---|
671 | </enum>
|
---|
672 |
|
---|
673 | <enum
|
---|
674 | name="DeviceType"
|
---|
675 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
676 | >
|
---|
677 | <desc>
|
---|
678 | Device type.
|
---|
679 | </desc>
|
---|
680 | <const name="Null" value="0">
|
---|
681 | <desc>
|
---|
682 | Null value, may also mean "no device" (not allowed for
|
---|
683 | <link to="IConsole::getDeviceActivity"/>).
|
---|
684 | </desc>
|
---|
685 | </const>
|
---|
686 | <const name="Floppy" value="1">
|
---|
687 | <desc>Floppy device.</desc>
|
---|
688 | </const>
|
---|
689 | <const name="DVD" value="2">
|
---|
690 | <desc>CD/DVD-ROM device.</desc>
|
---|
691 | </const>
|
---|
692 | <const name="HardDisk" value="3">
|
---|
693 | <desc>Hard disk device.</desc>
|
---|
694 | </const>
|
---|
695 | <const name="Network" value="4">
|
---|
696 | <desc>Network device.</desc>
|
---|
697 | </const>
|
---|
698 | <const name="USB" value="5">
|
---|
699 | <desc>USB device.</desc>
|
---|
700 | </const>
|
---|
701 | <const name="SharedFolder" value="6">
|
---|
702 | <desc>Shared folder device.</desc>
|
---|
703 | </const>
|
---|
704 | </enum>
|
---|
705 |
|
---|
706 | <enum
|
---|
707 | name="DeviceActivity"
|
---|
708 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
709 | >
|
---|
710 | <desc>
|
---|
711 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
712 | </desc>
|
---|
713 |
|
---|
714 | <const name="Null" value="0"/>
|
---|
715 | <const name="Idle" value="1"/>
|
---|
716 | <const name="Reading" value="2"/>
|
---|
717 | <const name="Writing" value="3"/>
|
---|
718 | </enum>
|
---|
719 |
|
---|
720 | <enum
|
---|
721 | name="ClipboardMode"
|
---|
722 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
723 | >
|
---|
724 | <desc>
|
---|
725 | Host-Guest clipboard interchange mode.
|
---|
726 | </desc>
|
---|
727 |
|
---|
728 | <const name="Disabled" value="0"/>
|
---|
729 | <const name="HostToGuest" value="1"/>
|
---|
730 | <const name="GuestToHost" value="2"/>
|
---|
731 | <const name="Bidirectional" value="3"/>
|
---|
732 | </enum>
|
---|
733 |
|
---|
734 | <enum
|
---|
735 | name="Scope"
|
---|
736 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
737 | >
|
---|
738 | <desc>
|
---|
739 | Scope of the operation.
|
---|
740 |
|
---|
741 | A generic enumeration used in various methods to define the action or
|
---|
742 | argument scope.
|
---|
743 | </desc>
|
---|
744 |
|
---|
745 | <const name="Global" value="0"/>
|
---|
746 | <const name="Machine" value="1"/>
|
---|
747 | <const name="Session" value="2"/>
|
---|
748 | </enum>
|
---|
749 |
|
---|
750 | <enum
|
---|
751 | name="GuestStatisticType"
|
---|
752 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
753 | >
|
---|
754 | <desc>
|
---|
755 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
756 | </desc>
|
---|
757 |
|
---|
758 | <const name="CPULoad_Idle" value="0">
|
---|
759 | <desc>
|
---|
760 | Idle CPU load (0-100%) for last interval.
|
---|
761 | </desc>
|
---|
762 | </const>
|
---|
763 | <const name="CPULoad_Kernel" value="1">
|
---|
764 | <desc>
|
---|
765 | Kernel CPU load (0-100%) for last interval.
|
---|
766 | </desc>
|
---|
767 | </const>
|
---|
768 | <const name="CPULoad_User" value="2">
|
---|
769 | <desc>
|
---|
770 | User CPU load (0-100%) for last interval.
|
---|
771 | </desc>
|
---|
772 | </const>
|
---|
773 | <const name="Threads" value="3">
|
---|
774 | <desc>
|
---|
775 | Total number of threads in the system.
|
---|
776 | </desc>
|
---|
777 | </const>
|
---|
778 | <const name="Processes" value="4">
|
---|
779 | <desc>
|
---|
780 | Total number of processes in the system.
|
---|
781 | </desc>
|
---|
782 | </const>
|
---|
783 | <const name="Handles" value="5">
|
---|
784 | <desc>
|
---|
785 | Total number of handles in the system.
|
---|
786 | </desc>
|
---|
787 | </const>
|
---|
788 | <const name="MemoryLoad" value="6">
|
---|
789 | <desc>
|
---|
790 | Memory load (0-100%).
|
---|
791 | </desc>
|
---|
792 | </const>
|
---|
793 | <const name="PhysMemTotal" value="7">
|
---|
794 | <desc>
|
---|
795 | Total physical memory in megabytes.
|
---|
796 | </desc>
|
---|
797 | </const>
|
---|
798 | <const name="PhysMemAvailable" value="8">
|
---|
799 | <desc>
|
---|
800 | Free physical memory in megabytes.
|
---|
801 | </desc>
|
---|
802 | </const>
|
---|
803 | <const name="PhysMemBalloon" value="9">
|
---|
804 | <desc>
|
---|
805 | Ballooned physical memory in megabytes.
|
---|
806 | </desc>
|
---|
807 | </const>
|
---|
808 | <const name="MemCommitTotal" value="10">
|
---|
809 | <desc>
|
---|
810 | Total amount of memory in the committed state in megabytes.
|
---|
811 | </desc>
|
---|
812 | </const>
|
---|
813 | <const name="MemKernelTotal" value="11">
|
---|
814 | <desc>
|
---|
815 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
816 | </desc>
|
---|
817 | </const>
|
---|
818 | <const name="MemKernelPaged" value="12">
|
---|
819 | <desc>
|
---|
820 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
821 | </desc>
|
---|
822 | </const>
|
---|
823 | <const name="MemKernelNonpaged" value="13">
|
---|
824 | <desc>
|
---|
825 | Total amount of non-paged memory used by the guest OS's kernel in megabytes.
|
---|
826 | </desc>
|
---|
827 | </const>
|
---|
828 | <const name="MemSystemCache" value="14">
|
---|
829 | <desc>
|
---|
830 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
831 | </desc>
|
---|
832 | </const>
|
---|
833 | <const name="PageFileSize" value="15">
|
---|
834 | <desc>
|
---|
835 | Pagefile size in megabytes.
|
---|
836 | </desc>
|
---|
837 | </const>
|
---|
838 | <const name="SampleNumber" value="16">
|
---|
839 | <desc>
|
---|
840 | Statistics sample number
|
---|
841 | </desc>
|
---|
842 | </const>
|
---|
843 | <const name="MaxVal" value="17"/>
|
---|
844 | </enum>
|
---|
845 |
|
---|
846 | <enum
|
---|
847 | name="BIOSBootMenuMode"
|
---|
848 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
849 | >
|
---|
850 | <desc>
|
---|
851 | BIOS boot menu mode.
|
---|
852 | </desc>
|
---|
853 |
|
---|
854 | <const name="Disabled" value="0"/>
|
---|
855 | <const name="MenuOnly" value="1"/>
|
---|
856 | <const name="MessageAndMenu" value="2"/>
|
---|
857 | </enum>
|
---|
858 |
|
---|
859 | <enum
|
---|
860 | name="DriveState"
|
---|
861 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
862 | >
|
---|
863 | <const name="Null" value="0">
|
---|
864 | <desc>Null value (never used by the API).</desc>
|
---|
865 | </const>
|
---|
866 | <const name="NotMounted" value="1"/>
|
---|
867 | <const name="ImageMounted" value="2"/>
|
---|
868 | <const name="HostDriveCaptured" value="3"/>
|
---|
869 | </enum>
|
---|
870 |
|
---|
871 | <enum
|
---|
872 | name="ProcessorFeature"
|
---|
873 | uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
|
---|
874 | >
|
---|
875 | <desc>
|
---|
876 | CPU features.
|
---|
877 | </desc>
|
---|
878 |
|
---|
879 | <const name="HWVirtEx" value="0"/>
|
---|
880 | <const name="PAE" value="1"/>
|
---|
881 | <const name="LongMode" value="2"/>
|
---|
882 | </enum>
|
---|
883 |
|
---|
884 |
|
---|
885 | <!--
|
---|
886 | // IVirtualBoxErrorInfo
|
---|
887 | /////////////////////////////////////////////////////////////////////////
|
---|
888 | -->
|
---|
889 |
|
---|
890 | <interface
|
---|
891 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
892 | uuid="bcae7fc3-3fd0-4bac-923c-ec1596c7bc83"
|
---|
893 | supportsErrorInfo="no"
|
---|
894 | wsmap="managed"
|
---|
895 | >
|
---|
896 | <desc>
|
---|
897 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
898 |
|
---|
899 | Extended error information can be set by VirtualBox components after
|
---|
900 | unsuccessful or partially successful method invocation. This information
|
---|
901 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
902 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
903 |
|
---|
904 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
905 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
906 | it provides a set of common attributes to retrieve error
|
---|
907 | information.
|
---|
908 |
|
---|
909 | Sometimes invocation of some component's method may involve methods of
|
---|
910 | other components that may also fail (independently of this method's
|
---|
911 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
912 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
913 | information about all errors happened during method invocation and deliver
|
---|
914 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
915 | specifically for this purpose and allows to represent a chain of errors
|
---|
916 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
917 |
|
---|
918 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
919 | initial error object you query right after method invocation is the last
|
---|
920 | error set by the callee, the object it points to in the @a next attribute
|
---|
921 | is the previous error and so on, up to the first error (which is the last
|
---|
922 | in the chain).
|
---|
923 | </desc>
|
---|
924 |
|
---|
925 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
926 | <desc>
|
---|
927 | Result code of the error.
|
---|
928 | Usually, it will be the same as the result code returned
|
---|
929 | by the method that provided this error information, but not
|
---|
930 | always. For example, on Win32, CoCreateInstance() will most
|
---|
931 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
932 | instantiation attempt, but not the value the component factory
|
---|
933 | returned. Value is typed 'long', not 'result',
|
---|
934 | to make interface usable from scripting languages.
|
---|
935 | <note>
|
---|
936 | In MS COM, there is no equivalent.
|
---|
937 | In XPCOM, it is the same as nsIException::result.
|
---|
938 | </note>
|
---|
939 | </desc>
|
---|
940 | </attribute>
|
---|
941 |
|
---|
942 | <attribute name="interfaceID" type="wstring" readonly="yes">
|
---|
943 | <desc>
|
---|
944 | UUID of the interface that defined the error.
|
---|
945 | <note>
|
---|
946 | In MS COM, it is the same as IErrorInfo::GetGUID, except for the
|
---|
947 | data type.
|
---|
948 | In XPCOM, there is no equivalent.
|
---|
949 | </note>
|
---|
950 | </desc>
|
---|
951 | </attribute>
|
---|
952 |
|
---|
953 | <attribute name="component" type="wstring" readonly="yes">
|
---|
954 | <desc>
|
---|
955 | Name of the component that generated the error.
|
---|
956 | <note>
|
---|
957 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
958 | In XPCOM, there is no equivalent.
|
---|
959 | </note>
|
---|
960 | </desc>
|
---|
961 | </attribute>
|
---|
962 |
|
---|
963 | <attribute name="text" type="wstring" readonly="yes">
|
---|
964 | <desc>
|
---|
965 | Text description of the error.
|
---|
966 | <note>
|
---|
967 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
968 | In XPCOM, it is the same as nsIException::message.
|
---|
969 | </note>
|
---|
970 | </desc>
|
---|
971 | </attribute>
|
---|
972 |
|
---|
973 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
974 | <desc>
|
---|
975 | Next error object if there is any, or @c null otherwise.
|
---|
976 | <note>
|
---|
977 | In MS COM, there is no equivalent.
|
---|
978 | In XPCOM, it is the same as nsIException::inner.
|
---|
979 | </note>
|
---|
980 | </desc>
|
---|
981 | </attribute>
|
---|
982 |
|
---|
983 | </interface>
|
---|
984 |
|
---|
985 |
|
---|
986 | <!--
|
---|
987 | // IVirtualBox
|
---|
988 | /////////////////////////////////////////////////////////////////////////
|
---|
989 | -->
|
---|
990 |
|
---|
991 | <interface
|
---|
992 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
993 | uuid="2990059f-5bc8-4635-8415-658917cd3186"
|
---|
994 | wsmap="suppress"
|
---|
995 | >
|
---|
996 | <method name="onMachineStateChange">
|
---|
997 | <desc>
|
---|
998 | The execution state of the given machine has changed.
|
---|
999 | <see>IMachine::state</see>
|
---|
1000 | </desc>
|
---|
1001 | <param name="machineId" type="wstring" dir="in">
|
---|
1002 | <desc>ID of the machine this event relates to.</desc>
|
---|
1003 | </param>
|
---|
1004 | <param name="state" type="MachineState" dir="in">
|
---|
1005 | <desc>New execution state.</desc>
|
---|
1006 | </param>
|
---|
1007 | </method>
|
---|
1008 |
|
---|
1009 | <method name="onMachineDataChange">
|
---|
1010 | <desc>
|
---|
1011 | Any of the settings of the given machine has changed.
|
---|
1012 | </desc>
|
---|
1013 | <param name="machineId" type="wstring" dir="in">
|
---|
1014 | <desc>ID of the machine this event relates to.</desc>
|
---|
1015 | </param>
|
---|
1016 | </method>
|
---|
1017 |
|
---|
1018 | <method name="onExtraDataCanChange">
|
---|
1019 | <desc>
|
---|
1020 | Notification when someone tries to change extra data for
|
---|
1021 | either the given machine or (if @c null) global extra data.
|
---|
1022 | This gives the chance to veto against changes.
|
---|
1023 | </desc>
|
---|
1024 | <param name="machineId" type="wstring" dir="in">
|
---|
1025 | <desc>
|
---|
1026 | ID of the machine this event relates to
|
---|
1027 | (@c null ID for global extra data change requests).
|
---|
1028 | </desc>
|
---|
1029 | </param>
|
---|
1030 | <param name="key" type="wstring" dir="in">
|
---|
1031 | <desc>
|
---|
1032 | Extra data key for the attempted write.
|
---|
1033 | </desc>
|
---|
1034 | </param>
|
---|
1035 | <param name="value" type="wstring" dir="in">
|
---|
1036 | <desc>
|
---|
1037 | Extra data value for the given key.
|
---|
1038 | </desc>
|
---|
1039 | </param>
|
---|
1040 | <param name="error" type="wstring" dir="out">
|
---|
1041 | <desc>
|
---|
1042 | Optional error message describing the reason of the
|
---|
1043 | veto (ignored if this notification returns @c true).
|
---|
1044 | </desc>
|
---|
1045 | </param>
|
---|
1046 | <param name="allowChange" type="boolean" dir="return">
|
---|
1047 | <desc>
|
---|
1048 | Flag to indicate whether the callee agrees (@c true)
|
---|
1049 | or vetoes against the change (@c false).
|
---|
1050 | </desc>
|
---|
1051 | </param>
|
---|
1052 | </method>
|
---|
1053 |
|
---|
1054 | <method name="onExtraDataChange">
|
---|
1055 | <desc>
|
---|
1056 | Notification when machine specific or global extra data
|
---|
1057 | has changed.
|
---|
1058 | </desc>
|
---|
1059 | <param name="machineId" type="wstring" dir="in">
|
---|
1060 | <desc>
|
---|
1061 | ID of the machine this event relates to.
|
---|
1062 | Null for global extra data changes.
|
---|
1063 | </desc>
|
---|
1064 | </param>
|
---|
1065 | <param name="key" type="wstring" dir="in">
|
---|
1066 | <desc>
|
---|
1067 | Extra data key that has changed.
|
---|
1068 | </desc>
|
---|
1069 | </param>
|
---|
1070 | <param name="value" type="wstring" dir="in">
|
---|
1071 | <desc>
|
---|
1072 | Extra data value for the given key.
|
---|
1073 | </desc>
|
---|
1074 | </param>
|
---|
1075 | </method>
|
---|
1076 |
|
---|
1077 | <method name="onMediaRegistered">
|
---|
1078 | <desc>
|
---|
1079 | The given media was registered or unregistered
|
---|
1080 | within this VirtualBox installation.
|
---|
1081 |
|
---|
1082 | The @a mediaType parameter describes what type of
|
---|
1083 | media the specified @a mediaId refers to. Possible
|
---|
1084 | values are:
|
---|
1085 |
|
---|
1086 | <ul>
|
---|
1087 | <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
|
---|
1088 | that, if registered, can be obtained using the
|
---|
1089 | <link to="IVirtualBox::getHardDisk"/> call.</li>
|
---|
1090 | <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
|
---|
1091 | that, if registered, can be obtained using the
|
---|
1092 | <link to="IVirtualBox::getDVDImage"/> call.</li>
|
---|
1093 | <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
|
---|
1094 | that, if registered, can be obtained using the
|
---|
1095 | <link to="IVirtualBox::getFloppyImage"/> call.</li>
|
---|
1096 | </ul>
|
---|
1097 |
|
---|
1098 | Note that if this is a deregistration notification,
|
---|
1099 | there is no way to access the object representing the
|
---|
1100 | unregistered media. It is supposed that the
|
---|
1101 | application will do required cleanup based on the
|
---|
1102 | @a mediaId value.
|
---|
1103 | </desc>
|
---|
1104 | <param name="mediaId" type="wstring" dir="in">
|
---|
1105 | <desc>ID of the media this event relates to.</desc>
|
---|
1106 | </param>
|
---|
1107 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
1108 | <desc>Type of the media this event relates to.</desc>
|
---|
1109 | </param>
|
---|
1110 | <param name="registered" type="boolean" dir="in">
|
---|
1111 | <desc>
|
---|
1112 | If @c true, the media was registered, otherwise it was
|
---|
1113 | unregistered.
|
---|
1114 | </desc>
|
---|
1115 | </param>
|
---|
1116 | </method>
|
---|
1117 |
|
---|
1118 | <method name="onMachineRegistered">
|
---|
1119 | <desc>
|
---|
1120 | The given machine was registered or unregistered
|
---|
1121 | within this VirtualBox installation.
|
---|
1122 | </desc>
|
---|
1123 | <param name="machineId" type="wstring" dir="in">
|
---|
1124 | <desc>ID of the machine this event relates to.</desc>
|
---|
1125 | </param>
|
---|
1126 | <param name="registered" type="boolean" dir="in">
|
---|
1127 | <desc>
|
---|
1128 | If @c true, the machine was registered, otherwise it was
|
---|
1129 | unregistered.
|
---|
1130 | </desc>
|
---|
1131 | </param>
|
---|
1132 | </method>
|
---|
1133 |
|
---|
1134 | <method name="onSessionStateChange">
|
---|
1135 | <desc>
|
---|
1136 | The state of the session for the given machine was changed.
|
---|
1137 | <see>IMachine::sessionState</see>
|
---|
1138 | </desc>
|
---|
1139 | <param name="machineId" type="wstring" dir="in">
|
---|
1140 | <desc>ID of the machine this event relates to.</desc>
|
---|
1141 | </param>
|
---|
1142 | <param name="state" type="SessionState" dir="in">
|
---|
1143 | <desc>New session state.</desc>
|
---|
1144 | </param>
|
---|
1145 | </method>
|
---|
1146 |
|
---|
1147 | <method name="onSnapshotTaken">
|
---|
1148 | <desc>
|
---|
1149 | A new snapshot of the machine has been taken.
|
---|
1150 | <see>ISnapshot</see>
|
---|
1151 | </desc>
|
---|
1152 | <param name="machineId" type="wstring" dir="in">
|
---|
1153 | <desc>ID of the machine this event relates to.</desc>
|
---|
1154 | </param>
|
---|
1155 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1156 | <desc>ID of the new snapshot.</desc>
|
---|
1157 | </param>
|
---|
1158 | </method>
|
---|
1159 |
|
---|
1160 | <method name="onSnapshotDiscarded">
|
---|
1161 | <desc>
|
---|
1162 | Snapshot of the given machine has been discarded.
|
---|
1163 |
|
---|
1164 | <note>
|
---|
1165 | This notification is delivered <b>after</b> the snapshot
|
---|
1166 | object has been uninitialized on the server (so that any
|
---|
1167 | attempt to call its methods will return an error).
|
---|
1168 | </note>
|
---|
1169 |
|
---|
1170 | <see>ISnapshot</see>
|
---|
1171 | </desc>
|
---|
1172 | <param name="machineId" type="wstring" dir="in">
|
---|
1173 | <desc>ID of the machine this event relates to.</desc>
|
---|
1174 | </param>
|
---|
1175 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1176 | <desc>
|
---|
1177 | ID of the discarded snapshot. @c null means the current machine
|
---|
1178 | state has been discarded (restored from the current snapshot).
|
---|
1179 | </desc>
|
---|
1180 | </param>
|
---|
1181 | </method>
|
---|
1182 |
|
---|
1183 | <method name="onSnapshotChange">
|
---|
1184 | <desc>
|
---|
1185 | Snapshot properties (name and/or description) have been changed.
|
---|
1186 | <see>ISnapshot</see>
|
---|
1187 | </desc>
|
---|
1188 | <param name="machineId" type="wstring" dir="in">
|
---|
1189 | <desc>ID of the machine this event relates to.</desc>
|
---|
1190 | </param>
|
---|
1191 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1192 | <desc>ID of the changed snapshot.</desc>
|
---|
1193 | </param>
|
---|
1194 | </method>
|
---|
1195 |
|
---|
1196 | <method name="onGuestPropertyChange">
|
---|
1197 | <desc>
|
---|
1198 | Notification when a guest property has changed.
|
---|
1199 | </desc>
|
---|
1200 | <param name="machineId" type="wstring" dir="in">
|
---|
1201 | <desc>
|
---|
1202 | ID of the machine this event relates to.
|
---|
1203 | </desc>
|
---|
1204 | </param>
|
---|
1205 | <param name="name" type="wstring" dir="in">
|
---|
1206 | <desc>
|
---|
1207 | The name of the property that has changed.
|
---|
1208 | </desc>
|
---|
1209 | </param>
|
---|
1210 | <param name="value" type="wstring" dir="in">
|
---|
1211 | <desc>
|
---|
1212 | The new property value.
|
---|
1213 | </desc>
|
---|
1214 | </param>
|
---|
1215 | <param name="flags" type="wstring" dir="in">
|
---|
1216 | <desc>
|
---|
1217 | The new property flags.
|
---|
1218 | </desc>
|
---|
1219 | </param>
|
---|
1220 | </method>
|
---|
1221 |
|
---|
1222 | </interface>
|
---|
1223 |
|
---|
1224 | <interface
|
---|
1225 | name="IDHCPServer" extends="$unknown"
|
---|
1226 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1227 | wsmap="managed"
|
---|
1228 | >
|
---|
1229 | <desc>
|
---|
1230 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1231 |
|
---|
1232 | To enumerate all the dhcp servers on the host, use the
|
---|
1233 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1234 | </desc>
|
---|
1235 |
|
---|
1236 | <attribute name="enabled" type="boolean">
|
---|
1237 | <desc>
|
---|
1238 | specifies if the dhcp server is enabled
|
---|
1239 | </desc>
|
---|
1240 | </attribute>
|
---|
1241 |
|
---|
1242 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1243 | <desc>
|
---|
1244 | specifies server IP
|
---|
1245 | </desc>
|
---|
1246 | </attribute>
|
---|
1247 |
|
---|
1248 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1249 | <desc>
|
---|
1250 | specifies server network mask
|
---|
1251 | </desc>
|
---|
1252 | </attribute>
|
---|
1253 |
|
---|
1254 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1255 | <desc>
|
---|
1256 | specifies internal network name the server is used for
|
---|
1257 | </desc>
|
---|
1258 | </attribute>
|
---|
1259 |
|
---|
1260 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1261 | <desc>
|
---|
1262 | specifies from IP adrres in server address range
|
---|
1263 | </desc>
|
---|
1264 | </attribute>
|
---|
1265 |
|
---|
1266 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1267 | <desc>
|
---|
1268 | specifies to IP adrres in server address range
|
---|
1269 | </desc>
|
---|
1270 | </attribute>
|
---|
1271 |
|
---|
1272 | <method name="setConfiguration">
|
---|
1273 | <desc>
|
---|
1274 | configures the server
|
---|
1275 | <result name="E_INVALIDARG">
|
---|
1276 | invalid configuration supplied
|
---|
1277 | </result>
|
---|
1278 | </desc>
|
---|
1279 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1280 | <desc>
|
---|
1281 | server IP address
|
---|
1282 | </desc>
|
---|
1283 | </param>
|
---|
1284 | <param name="networkMask" type="wstring" dir="in">
|
---|
1285 | <desc>
|
---|
1286 | server network mask
|
---|
1287 | </desc>
|
---|
1288 | </param>
|
---|
1289 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1290 | <desc>
|
---|
1291 | server From IP address for address range
|
---|
1292 | </desc>
|
---|
1293 | </param>
|
---|
1294 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1295 | <desc>
|
---|
1296 | server To IP address for address range
|
---|
1297 | </desc>
|
---|
1298 | </param>
|
---|
1299 | </method>
|
---|
1300 |
|
---|
1301 | <method name="start">
|
---|
1302 | <desc>
|
---|
1303 | Starts DHCP server process.
|
---|
1304 | <result name="E_FAIL">
|
---|
1305 | Failed to start the process.
|
---|
1306 | </result>
|
---|
1307 | </desc>
|
---|
1308 | <param name="networkName" type="wstring" dir="in">
|
---|
1309 | <desc>
|
---|
1310 | Name of internal network DHCP server should attach to.
|
---|
1311 | </desc>
|
---|
1312 | </param>
|
---|
1313 | <param name="trunkName" type="wstring" dir="in">
|
---|
1314 | <desc>
|
---|
1315 | Name of internal network trunk.
|
---|
1316 | </desc>
|
---|
1317 | </param>
|
---|
1318 | <param name="trunkType" type="wstring" dir="in">
|
---|
1319 | <desc>
|
---|
1320 | Type of internal network trunk.
|
---|
1321 | </desc>
|
---|
1322 | </param>
|
---|
1323 | </method>
|
---|
1324 |
|
---|
1325 | <method name="stop">
|
---|
1326 | <desc>
|
---|
1327 | Stops DHCP server process.
|
---|
1328 | <result name="E_FAIL">
|
---|
1329 | Failed to stop the process.
|
---|
1330 | </result>
|
---|
1331 | </desc>
|
---|
1332 | </method>
|
---|
1333 | </interface>
|
---|
1334 |
|
---|
1335 | <interface
|
---|
1336 | name="IVirtualBox" extends="$dispatched"
|
---|
1337 | uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
|
---|
1338 | wsmap="managed"
|
---|
1339 | >
|
---|
1340 | <desc>
|
---|
1341 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1342 | product that provides virtual machine management.
|
---|
1343 |
|
---|
1344 | An instance of IVirtualBox is required for the product to do anything
|
---|
1345 | useful. Even though the interface does not expose this, internally,
|
---|
1346 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1347 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1348 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1349 | host, regardless of which frontend started them.
|
---|
1350 |
|
---|
1351 | To enumerate all the virtual machines on the host, use the
|
---|
1352 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1353 | </desc>
|
---|
1354 |
|
---|
1355 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1356 | <desc>
|
---|
1357 | A string representing the version number of the product. The
|
---|
1358 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1359 | last number represents the build number and will frequently change.
|
---|
1360 | </desc>
|
---|
1361 | </attribute>
|
---|
1362 |
|
---|
1363 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1364 | <desc>
|
---|
1365 | The internal build revision number of the product.
|
---|
1366 | </desc>
|
---|
1367 | </attribute>
|
---|
1368 |
|
---|
1369 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1370 | <desc>
|
---|
1371 | A string representing the package type of this product. The
|
---|
1372 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1373 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1374 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1375 | this.
|
---|
1376 | </desc>
|
---|
1377 | </attribute>
|
---|
1378 |
|
---|
1379 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1380 | <desc>
|
---|
1381 | Full path to the directory where the global settings file,
|
---|
1382 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1383 |
|
---|
1384 | In this version of VirtualBox, the value of this property is
|
---|
1385 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1386 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1387 | as determined by the host OS), and cannot be changed.
|
---|
1388 |
|
---|
1389 | This path is also used as the base to resolve relative paths in
|
---|
1390 | places where relative paths are allowed (unless otherwise
|
---|
1391 | expressly indicated).
|
---|
1392 | </desc>
|
---|
1393 | </attribute>
|
---|
1394 |
|
---|
1395 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1396 | <desc>
|
---|
1397 | Full name of the global settings file.
|
---|
1398 | The value of this property corresponds to the value of
|
---|
1399 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1400 | </desc>
|
---|
1401 | </attribute>
|
---|
1402 |
|
---|
1403 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
1404 | <desc>
|
---|
1405 | Current version of the format of the global VirtualBox settings file
|
---|
1406 | (<tt>VirtualBox.xml</tt>).
|
---|
1407 |
|
---|
1408 | The version string has the following format:
|
---|
1409 | <pre>
|
---|
1410 | x.y-platform
|
---|
1411 | </pre>
|
---|
1412 | where @c x and @c y are the major and the minor format
|
---|
1413 | versions, and @c platform is the platform identifier.
|
---|
1414 |
|
---|
1415 | The current version usually matches the value of the
|
---|
1416 | <link to="#settingsFormatVersion"/> attribute unless the
|
---|
1417 | settings file was created by an older version of VirtualBox and there
|
---|
1418 | was a change of the settings file format since then.
|
---|
1419 |
|
---|
1420 | Note that VirtualBox automatically converts settings files from older
|
---|
1421 | versions to the most recent version when reading them (usually at
|
---|
1422 | VirtualBox startup) but it doesn't save the changes back until
|
---|
1423 | you call a method that implicitly saves settings (such as
|
---|
1424 | <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
|
---|
1425 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
1426 | value of <link to="#settingsFormatVersion"/>, then it
|
---|
1427 | means that the settings file was converted but the result of the
|
---|
1428 | conversion is not yet saved to disk.
|
---|
1429 |
|
---|
1430 | The above feature may be used by interactive front-ends to inform users
|
---|
1431 | about the settings file format change and offer them to explicitly save
|
---|
1432 | all converted settings files (the global and VM-specific ones),
|
---|
1433 | optionally create backup copies of the old settings files before saving,
|
---|
1434 | etc.
|
---|
1435 |
|
---|
1436 | <see>settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
1437 | </desc>
|
---|
1438 | </attribute>
|
---|
1439 |
|
---|
1440 | <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
|
---|
1441 | <desc>
|
---|
1442 | Most recent version of the settings file format.
|
---|
1443 |
|
---|
1444 | The version string has the following format:
|
---|
1445 | <pre>
|
---|
1446 | x.y-platform
|
---|
1447 | </pre>
|
---|
1448 | where @c x and @c y are the major and the minor format
|
---|
1449 | versions, and @c platform is the platform identifier.
|
---|
1450 |
|
---|
1451 | VirtualBox uses this version of the format when saving settings files
|
---|
1452 | (either as a result of method calls that require to save settings or as
|
---|
1453 | a result of an explicit call to <link to="#saveSettings"/>).
|
---|
1454 |
|
---|
1455 | <see>settingsFileVersion</see>
|
---|
1456 | </desc>
|
---|
1457 | </attribute>
|
---|
1458 |
|
---|
1459 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1460 | <desc>Associated host object.</desc>
|
---|
1461 | </attribute>
|
---|
1462 |
|
---|
1463 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1464 | <desc>Associated system information object.</desc>
|
---|
1465 | </attribute>
|
---|
1466 |
|
---|
1467 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1468 | <desc>
|
---|
1469 | Array of machine objects registered within this VirtualBox instance.
|
---|
1470 | </desc>
|
---|
1471 | </attribute>
|
---|
1472 |
|
---|
1473 | <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
|
---|
1474 | <desc>
|
---|
1475 | Array of hard disk objects known to this VirtualBox installation.
|
---|
1476 |
|
---|
1477 | This array contains only base (root) hard disks. All differencing
|
---|
1478 | hard disks of the given base hard disk can be enumerated using
|
---|
1479 | <link to="IHardDisk::children"/>.
|
---|
1480 | </desc>
|
---|
1481 | </attribute>
|
---|
1482 |
|
---|
1483 | <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
|
---|
1484 | <desc>
|
---|
1485 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1486 | </desc>
|
---|
1487 | </attribute>
|
---|
1488 |
|
---|
1489 | <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
|
---|
1490 | <desc>
|
---|
1491 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1492 | </desc>
|
---|
1493 | </attribute>
|
---|
1494 |
|
---|
1495 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1496 |
|
---|
1497 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1498 |
|
---|
1499 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1500 | <desc>
|
---|
1501 | Collection of global shared folders. Global shared folders are
|
---|
1502 | available to all virtual machines.
|
---|
1503 |
|
---|
1504 | New shared folders are added to the collection using
|
---|
1505 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1506 | removed using <link to="#removeSharedFolder"/>.
|
---|
1507 |
|
---|
1508 | <note>
|
---|
1509 | In the current version of the product, global shared folders are not
|
---|
1510 | implemented and therefore this collection is always empty.
|
---|
1511 | </note>
|
---|
1512 | </desc>
|
---|
1513 | </attribute>
|
---|
1514 |
|
---|
1515 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1516 | <desc>
|
---|
1517 | Associated performance collector object.
|
---|
1518 | </desc>
|
---|
1519 | </attribute>
|
---|
1520 |
|
---|
1521 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1522 | <desc>
|
---|
1523 | dhcp server settings.
|
---|
1524 | </desc>
|
---|
1525 | </attribute>
|
---|
1526 |
|
---|
1527 | <method name="createMachine">
|
---|
1528 | <desc>
|
---|
1529 | Creates a new virtual machine.
|
---|
1530 |
|
---|
1531 | The new machine is created unregistered, with the initial configuration
|
---|
1532 | set according to the specified guest OS type. A typical sequence of
|
---|
1533 | actions to create a new virtual machine is as follows:
|
---|
1534 |
|
---|
1535 | <ol>
|
---|
1536 | <li>
|
---|
1537 | Call this method to have a new machine created. The returned machine
|
---|
1538 | object will be "mutable" allowing to change any machine property.
|
---|
1539 | </li>
|
---|
1540 |
|
---|
1541 | <li>
|
---|
1542 | Configure the machine using the appropriate attributes and methods.
|
---|
1543 | </li>
|
---|
1544 |
|
---|
1545 | <li>
|
---|
1546 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1547 | to the machine's XML settings file. The configuration of the newly
|
---|
1548 | created machine will not be saved to disk until this method is
|
---|
1549 | called.
|
---|
1550 | </li>
|
---|
1551 |
|
---|
1552 | <li>
|
---|
1553 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1554 | of machines known to VirtualBox.
|
---|
1555 | </li>
|
---|
1556 | </ol>
|
---|
1557 |
|
---|
1558 | You should specify valid name for the newly created machine when calling
|
---|
1559 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1560 | for more details about the machine name.
|
---|
1561 |
|
---|
1562 | The specified guest OS type identifier must match an ID of one of known
|
---|
1563 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1564 | array.
|
---|
1565 |
|
---|
1566 | Every machine has a <i>settings file</i> that is used to store
|
---|
1567 | the machine configuration. This file is stored in a directory called the
|
---|
1568 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1569 | will have a name that corresponds to the name of the virtual machine.
|
---|
1570 | You can specify where to create the machine setting subfolder using the
|
---|
1571 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1572 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1573 | directory</link>.
|
---|
1574 |
|
---|
1575 | If @a baseFolder is a @c null or empty string (which is recommended), the
|
---|
1576 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1577 | settings folder</link> will be used as a base folder for the created
|
---|
1578 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1579 | the full path to the resulting settings file has the following
|
---|
1580 | structure:
|
---|
1581 | <pre>
|
---|
1582 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1583 | </pre>
|
---|
1584 |
|
---|
1585 | Note that if the resulting settings file already exists, this method
|
---|
1586 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1587 |
|
---|
1588 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1589 | However, this is not recommended and you should normally pass an empty
|
---|
1590 | (@c null) UUID to this method so that a new UUID will be automatically
|
---|
1591 | generated for every created machine. You can use UUID
|
---|
1592 | 00000000-0000-0000-0000-000000000000 as @c null value.
|
---|
1593 |
|
---|
1594 | <note>
|
---|
1595 | There is no way to change the name of the settings file or
|
---|
1596 | subfolder of the created machine directly.
|
---|
1597 | </note>
|
---|
1598 |
|
---|
1599 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1600 | @a osTypeId is invalid.
|
---|
1601 | </result>
|
---|
1602 | <result name="VBOX_E_FILE_ERROR">
|
---|
1603 | Resulting settings file name is invalid or the settings file already
|
---|
1604 | exists or could not be created due to an I/O error.
|
---|
1605 | </result>
|
---|
1606 | <result name="E_INVALIDARG">
|
---|
1607 | @a name is empty or @c null.
|
---|
1608 | </result>
|
---|
1609 | </desc>
|
---|
1610 |
|
---|
1611 | <param name="name" type="wstring" dir="in">
|
---|
1612 | <desc>Machine name.</desc>
|
---|
1613 | </param>
|
---|
1614 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1615 | <desc>Guest OS Type ID.</desc>
|
---|
1616 | </param>
|
---|
1617 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1618 | <desc>Base machine folder (optional).</desc>
|
---|
1619 | </param>
|
---|
1620 | <param name="id" type="wstring" dir="in">
|
---|
1621 | <desc>Machine UUID (optional).</desc>
|
---|
1622 | </param>
|
---|
1623 | <param name="machine" type="IMachine" dir="return">
|
---|
1624 | <desc>Created machine object.</desc>
|
---|
1625 | </param>
|
---|
1626 | </method>
|
---|
1627 |
|
---|
1628 | <method name="createLegacyMachine">
|
---|
1629 | <desc>
|
---|
1630 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1631 | settings file to store machine settings.
|
---|
1632 |
|
---|
1633 | As opposed to machines created by <link to="#createMachine"/>,
|
---|
1634 | the settings file of the machine created in "legacy" mode is not
|
---|
1635 | automatically renamed when the machine name is changed -- it will always
|
---|
1636 | remain the same as specified in this method call.
|
---|
1637 |
|
---|
1638 | The specified settings file name can be absolute (full path) or relative
|
---|
1639 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1640 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1641 | default extension (.xml) will be appended.
|
---|
1642 |
|
---|
1643 | Note that the configuration of the newly created machine is not
|
---|
1644 | saved to disk (and therefore no settings file is created)
|
---|
1645 | until <link to="IMachine::saveSettings"/> is called. If the
|
---|
1646 | specified settings file already exists, this method
|
---|
1647 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1648 |
|
---|
1649 | See <link to="#createMachine"/> for more information.
|
---|
1650 |
|
---|
1651 | @deprecated This method may be removed later. Use <link
|
---|
1652 | to="IVirtualBox::createMachine"/> instead.
|
---|
1653 |
|
---|
1654 | <note>
|
---|
1655 | There is no way to change the name of the settings file
|
---|
1656 | of the machine created in "legacy" mode.
|
---|
1657 | </note>
|
---|
1658 |
|
---|
1659 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1660 | @a osTypeId is invalid.
|
---|
1661 | </result>
|
---|
1662 | <result name="VBOX_E_FILE_ERROR">
|
---|
1663 | @a settingsFile is invalid or the settings file already exists or
|
---|
1664 | could not be created due to an I/O error.
|
---|
1665 | </result>
|
---|
1666 | <result name="E_INVALIDARG">
|
---|
1667 | @a name or @a settingsFile is empty or @c null.
|
---|
1668 | </result>
|
---|
1669 | </desc>
|
---|
1670 |
|
---|
1671 | <param name="name" type="wstring" dir="in">
|
---|
1672 | <desc>Machine name.</desc>
|
---|
1673 | </param>
|
---|
1674 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1675 | <desc>Machine OS Type ID.</desc>
|
---|
1676 | </param>
|
---|
1677 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1678 | <desc>Name of the machine settings file.</desc>
|
---|
1679 | </param>
|
---|
1680 | <param name="id" type="wstring" dir="in">
|
---|
1681 | <desc>Machine UUID (optional).</desc>
|
---|
1682 | </param>
|
---|
1683 | <param name="machine" type="IMachine" dir="return">
|
---|
1684 | <desc>Created machine object.</desc>
|
---|
1685 | </param>
|
---|
1686 | </method>
|
---|
1687 |
|
---|
1688 | <method name="openMachine">
|
---|
1689 | <desc>
|
---|
1690 | Opens a virtual machine from the existing settings file.
|
---|
1691 | The opened machine remains unregistered until you call
|
---|
1692 | <link to="#registerMachine"/>.
|
---|
1693 |
|
---|
1694 | The specified settings file name can be absolute
|
---|
1695 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1696 | VirtualBox home directory</link>. This file must exist
|
---|
1697 | and must be a valid machine settings file whose contents
|
---|
1698 | will be used to construct the machine object.
|
---|
1699 |
|
---|
1700 | @deprecated Will be removed soon.
|
---|
1701 | <result name="VBOX_E_FILE_ERROR">
|
---|
1702 | Settings file name invalid, not found or sharing violation.
|
---|
1703 | </result>
|
---|
1704 | </desc>
|
---|
1705 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1706 | <desc>
|
---|
1707 | Name of the machine settings file.
|
---|
1708 | </desc>
|
---|
1709 | </param>
|
---|
1710 | <param name="machine" type="IMachine" dir="return">
|
---|
1711 | <desc>Opened machine object.</desc>
|
---|
1712 | </param>
|
---|
1713 | <note>
|
---|
1714 | <link to="IMachine::settingsModified"/> will return
|
---|
1715 | @c false for the created machine, until any of machine settings
|
---|
1716 | are changed.
|
---|
1717 | </note>
|
---|
1718 | </method>
|
---|
1719 |
|
---|
1720 | <method name="registerMachine">
|
---|
1721 | <desc>
|
---|
1722 |
|
---|
1723 | Registers the machine previously created using
|
---|
1724 | <link to="#createMachine"/> or opened using
|
---|
1725 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1726 | successful method invocation, the
|
---|
1727 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1728 | to all registered callbacks.
|
---|
1729 |
|
---|
1730 | <note>
|
---|
1731 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1732 | to save all current machine settings before registering it.
|
---|
1733 | </note>
|
---|
1734 |
|
---|
1735 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1736 | No matching virtual machine found.
|
---|
1737 | </result>
|
---|
1738 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1739 | Virtual machine was not created within this VirtualBox instance.
|
---|
1740 | </result>
|
---|
1741 |
|
---|
1742 | </desc>
|
---|
1743 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1744 | </method>
|
---|
1745 |
|
---|
1746 | <method name="getMachine">
|
---|
1747 | <desc>
|
---|
1748 | Attempts to find a virtual machine given its UUID.
|
---|
1749 | To look up a machine by name, use <link to="IVirtualBox::findMachine" />
|
---|
1750 | instead.
|
---|
1751 |
|
---|
1752 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1753 | Could not find registered machine matching @a id.
|
---|
1754 | </result>
|
---|
1755 |
|
---|
1756 | </desc>
|
---|
1757 | <param name="id" type="wstring" dir="in"/>
|
---|
1758 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1759 | </method>
|
---|
1760 |
|
---|
1761 | <method name="findMachine">
|
---|
1762 | <desc>
|
---|
1763 | Attempts to find a virtual machine given its name.
|
---|
1764 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
|
---|
1765 | instead.
|
---|
1766 |
|
---|
1767 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1768 | Could not find registered machine matching @a name.
|
---|
1769 | </result>
|
---|
1770 |
|
---|
1771 | </desc>
|
---|
1772 | <param name="name" type="wstring" dir="in"/>
|
---|
1773 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1774 | </method>
|
---|
1775 |
|
---|
1776 | <method name="unregisterMachine">
|
---|
1777 | <desc>
|
---|
1778 |
|
---|
1779 | Unregisters the machine previously registered using
|
---|
1780 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1781 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1782 | to all registered callbacks.
|
---|
1783 |
|
---|
1784 | <note>
|
---|
1785 | The specified machine must not be in the Saved state, have an open
|
---|
1786 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1787 | have hard disks attached.
|
---|
1788 | </note>
|
---|
1789 |
|
---|
1790 | <note>
|
---|
1791 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1792 | save all current machine settings before unregistering it.
|
---|
1793 | </note>
|
---|
1794 |
|
---|
1795 | <note>
|
---|
1796 | If the given machine is inaccessible (see
|
---|
1797 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1798 | fully uninitialized right afterwards. As a result, the returned
|
---|
1799 | machine object will be unusable and an attempt to call
|
---|
1800 | <b>any</b> method will return the "Object not ready" error.
|
---|
1801 | </note>
|
---|
1802 |
|
---|
1803 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1804 | Could not find registered machine matching @a id.
|
---|
1805 | </result>
|
---|
1806 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
1807 | Machine is in Saved state.
|
---|
1808 | </result>
|
---|
1809 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1810 | Machine has snapshot or open session or hard disk attached.
|
---|
1811 | </result>
|
---|
1812 |
|
---|
1813 | </desc>
|
---|
1814 | <param name="id" type="wstring" dir="in">
|
---|
1815 | <desc>UUID of the machine to unregister.</desc>
|
---|
1816 | </param>
|
---|
1817 | <param name="machine" type="IMachine" dir="return">
|
---|
1818 | <desc>Unregistered machine object.</desc>
|
---|
1819 | </param>
|
---|
1820 | </method>
|
---|
1821 |
|
---|
1822 | <method name="createAppliance">
|
---|
1823 | <desc>
|
---|
1824 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
1825 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
1826 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
1827 | </desc>
|
---|
1828 | <param name="appliance" type="IAppliance" dir="return">
|
---|
1829 | <desc>New appliance.</desc>
|
---|
1830 | </param>
|
---|
1831 | </method>
|
---|
1832 |
|
---|
1833 | <method name="createHardDisk">
|
---|
1834 | <desc>
|
---|
1835 | Creates a new base hard disk object that will use the given storage
|
---|
1836 | format and location for hard disk data.
|
---|
1837 |
|
---|
1838 | Note that the actual storage unit is not created by this method. In
|
---|
1839 | order to do it, and before you are able to attach the created hard disk
|
---|
1840 | to virtual machines, you must call one of the following methods to
|
---|
1841 | allocate a format-specific storage unit at the specified location:
|
---|
1842 | <ul>
|
---|
1843 | <li><link to="IHardDisk::createBaseStorage"/></li>
|
---|
1844 | <li><link to="IHardDisk::createDiffStorage"/></li>
|
---|
1845 | </ul>
|
---|
1846 |
|
---|
1847 | Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
|
---|
1848 | remain uninitialized until the hard disk storage unit is successfully
|
---|
1849 | created by one of the above methods.
|
---|
1850 |
|
---|
1851 | After the storage unit is successfully created, the hard disk gets
|
---|
1852 | remembered by this VirtualBox installation and will be accessible
|
---|
1853 | through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
|
---|
1854 | methods. Remembered root (base) hard disks are also returned as part of
|
---|
1855 | the <link to="#hardDisks"/> array. See IHardDisk for more details.
|
---|
1856 |
|
---|
1857 | The list of all storage formats supported by this VirtualBox
|
---|
1858 | installation can be obtained using
|
---|
1859 | <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
|
---|
1860 | attribute is empty or @c null then the default storage format
|
---|
1861 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
1862 | be used for creating a storage unit of the hard disk.
|
---|
1863 |
|
---|
1864 | Note that the format of the location string is storage format specific.
|
---|
1865 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1866 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1867 |
|
---|
1868 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1869 | @a format identifier is invalid. See
|
---|
1870 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
1871 | </result>
|
---|
1872 | <result name="VBOX_E_FILE_ERROR">
|
---|
1873 | @a location is a not valid file name (for file-based formats only).
|
---|
1874 | </result>
|
---|
1875 | </desc>
|
---|
1876 | <param name="format" type="wstring" dir="in">
|
---|
1877 | <desc>
|
---|
1878 | Identifier of the storage format to use for the new hard disk.
|
---|
1879 | </desc>
|
---|
1880 | </param>
|
---|
1881 | <param name="location" type="wstring" dir="in">
|
---|
1882 | <desc>
|
---|
1883 | Location of the storage unit for the new hard disk.
|
---|
1884 | </desc>
|
---|
1885 | </param>
|
---|
1886 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1887 | <desc>Created hard disk object.</desc>
|
---|
1888 | </param>
|
---|
1889 | </method>
|
---|
1890 |
|
---|
1891 | <method name="openHardDisk">
|
---|
1892 | <desc>
|
---|
1893 | Opens a hard disk from an existing location, optionally replacing
|
---|
1894 | the image UUID and/or parent UUID.
|
---|
1895 |
|
---|
1896 | After the hard disk is successfully opened by this method, it gets
|
---|
1897 | remembered by (known to) this VirtualBox installation and will be
|
---|
1898 | accessible through <link to="#getHardDisk"/> and
|
---|
1899 | <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
|
---|
1900 | are also returned as part of the <link to="#hardDisks"/> array and can
|
---|
1901 | be attached to virtual machines. See IHardDisk for more details.
|
---|
1902 |
|
---|
1903 | If a differencing hard disk is to be opened by this method, the
|
---|
1904 | operation will succeed only if its parent hard disk and all ancestors,
|
---|
1905 | if any, are already known to this VirtualBox installation (for example,
|
---|
1906 | were opened by this method before).
|
---|
1907 |
|
---|
1908 | This method tries to guess the storage format of the specified hard disk
|
---|
1909 | by reading hard disk data at the specified location.
|
---|
1910 |
|
---|
1911 | If @a write is ReadWrite (which it should be), the image is opened for
|
---|
1912 | read/write access and must have according permissions, as VirtualBox
|
---|
1913 | may actually write status information into the disk's metadata sections.
|
---|
1914 |
|
---|
1915 | Note that write access is required for all typical image usage in VirtualBox,
|
---|
1916 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
1917 | The only exception is opening a source image temporarily for copying and
|
---|
1918 | cloning when the image will quickly be closed again.
|
---|
1919 |
|
---|
1920 | Note that the format of the location string is storage format specific.
|
---|
1921 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1922 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1923 |
|
---|
1924 | <result name="VBOX_E_FILE_ERROR">
|
---|
1925 | Invalid hard disk storage file location or could not find the hard
|
---|
1926 | disk at the specified location.
|
---|
1927 | </result>
|
---|
1928 | <result name="VBOX_E_IPRT_ERROR">
|
---|
1929 | Could not get hard disk storage format.
|
---|
1930 | </result>
|
---|
1931 | <result name="E_INVALIDARG">
|
---|
1932 | Invalid hard disk storage format.
|
---|
1933 | </result>
|
---|
1934 |
|
---|
1935 | </desc>
|
---|
1936 | <param name="location" type="wstring" dir="in">
|
---|
1937 | <desc>
|
---|
1938 | Location of the storage unit that contains hard disk data in one of
|
---|
1939 | the supported storage formats.
|
---|
1940 | </desc>
|
---|
1941 | </param>
|
---|
1942 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
1943 | <desc>
|
---|
1944 | Determines whether to open the image in read/write or read-only mode.
|
---|
1945 | </desc>
|
---|
1946 | </param>
|
---|
1947 | <param name="setImageId" type="boolean" dir="in">
|
---|
1948 | <desc>
|
---|
1949 | Select whether a new image UUID is set or not.
|
---|
1950 | </desc>
|
---|
1951 | </param>
|
---|
1952 | <param name="imageId" type="wstring" dir="in">
|
---|
1953 | <desc>
|
---|
1954 | New UUID for the image. If an empty string is passed, then a new
|
---|
1955 | UUID is automatically created. Specifying a zero UUIDs is not valid.
|
---|
1956 | </desc>
|
---|
1957 | </param>
|
---|
1958 | <param name="setParentId" type="boolean" dir="in">
|
---|
1959 | <desc>
|
---|
1960 | Select whether a new parent UUID is set or not.
|
---|
1961 | </desc>
|
---|
1962 | </param>
|
---|
1963 | <param name="parentId" type="wstring" dir="in">
|
---|
1964 | <desc>
|
---|
1965 | New parent UUID for the image. If an empty string is passed, then a
|
---|
1966 | new UUID is automatically created, provided @a setParentId is
|
---|
1967 | @c true. A zero UUID is valid.
|
---|
1968 | </desc>
|
---|
1969 | </param>
|
---|
1970 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1971 | <desc>Opened hard disk object.</desc>
|
---|
1972 | </param>
|
---|
1973 | </method>
|
---|
1974 |
|
---|
1975 | <method name="getHardDisk" const="yes">
|
---|
1976 | <desc>
|
---|
1977 | Returns a hard disk with the given UUID.
|
---|
1978 |
|
---|
1979 | The hard disk with the given UUID must be known to this VirtualBox
|
---|
1980 | installation, i.e. it must be previously created by
|
---|
1981 | <link to="#createHardDisk"/> or opened by <link
|
---|
1982 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
1983 |
|
---|
1984 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1985 | No hard disk object matching @a id found.
|
---|
1986 | </result>
|
---|
1987 |
|
---|
1988 | </desc>
|
---|
1989 | <param name="id" type="wstring" dir="in">
|
---|
1990 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1991 | </param>
|
---|
1992 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1993 | <desc>Found hard disk object.</desc>
|
---|
1994 | </param>
|
---|
1995 | </method>
|
---|
1996 |
|
---|
1997 | <method name="findHardDisk">
|
---|
1998 | <desc>
|
---|
1999 | Returns a hard disk that uses the given location to store hard
|
---|
2000 | disk data.
|
---|
2001 |
|
---|
2002 | The given hard disk must be known to this VirtualBox installation, i.e.
|
---|
2003 | it must be previously created by
|
---|
2004 | <link to="#createHardDisk"/> or opened by <link
|
---|
2005 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2006 |
|
---|
2007 | The search is done by comparing the value of the @a location argument to
|
---|
2008 | the <link to="IHardDisk::location"/> attribute of each known hard
|
---|
2009 | disk.
|
---|
2010 |
|
---|
2011 | For locations represented by file names in the host's file system, the
|
---|
2012 | requested location can be a path relative to the
|
---|
2013 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2014 | only a file name without any path is given, the
|
---|
2015 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2016 | folder</link> will be prepended to the file name before searching. Note
|
---|
2017 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2018 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2019 |
|
---|
2020 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2021 | No hard disk object matching @a location found.
|
---|
2022 | </result>
|
---|
2023 |
|
---|
2024 | </desc>
|
---|
2025 | <param name="location" type="wstring" dir="in">
|
---|
2026 | <desc>Location string to search for.</desc>
|
---|
2027 | </param>
|
---|
2028 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
2029 | <desc>Found hard disk object.</desc>
|
---|
2030 | </param>
|
---|
2031 | </method>
|
---|
2032 |
|
---|
2033 | <method name="openDVDImage">
|
---|
2034 | <desc>
|
---|
2035 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
2036 | format and assigns it the given UUID.
|
---|
2037 |
|
---|
2038 | After the image is successfully opened by this method, it gets
|
---|
2039 | remembered by (known to) this VirtualBox installation and will be
|
---|
2040 | accessible through <link to="#getDVDImage"/> and
|
---|
2041 | <link to="#findDVDImage"/> methods. Remembered images are also
|
---|
2042 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
2043 | to virtual machines. See IMedium for more details.
|
---|
2044 |
|
---|
2045 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2046 | of the location string.
|
---|
2047 |
|
---|
2048 | <note>
|
---|
2049 | Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
|
---|
2050 | </note>
|
---|
2051 |
|
---|
2052 | <result name="VBOX_E_FILE_ERROR">
|
---|
2053 | Invalid CD/DVD image file location or could not find the CD/DVD
|
---|
2054 | image at the specified location.
|
---|
2055 | </result>
|
---|
2056 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2057 | CD/DVD image already exists in the media registry.
|
---|
2058 | </result>
|
---|
2059 |
|
---|
2060 | </desc>
|
---|
2061 | <param name="location" type="wstring" dir="in">
|
---|
2062 | <desc>
|
---|
2063 | Full path to the file that contains a valid CD/DVD image.
|
---|
2064 | </desc>
|
---|
2065 | </param>
|
---|
2066 | <param name="id" type="wstring" dir="in">
|
---|
2067 | <desc>
|
---|
2068 | UUID to assign to the given image within this VirtualBox installation.
|
---|
2069 | If an empty (@c null) UUID is specified, the system will randomly
|
---|
2070 | generate a new UUID.
|
---|
2071 | </desc>
|
---|
2072 | </param>
|
---|
2073 | <param name="image" type="IDVDImage" dir="return">
|
---|
2074 | <desc>Opened CD/DVD image object.</desc>
|
---|
2075 | </param>
|
---|
2076 | </method>
|
---|
2077 |
|
---|
2078 | <method name="getDVDImage">
|
---|
2079 | <desc>
|
---|
2080 | Returns a CD/DVD image with the given UUID.
|
---|
2081 |
|
---|
2082 | The image with the given UUID must be known to this VirtualBox
|
---|
2083 | installation, i.e. it must be previously opened by <link
|
---|
2084 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2085 |
|
---|
2086 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2087 | No matching DVD image found in the media registry.
|
---|
2088 | </result>
|
---|
2089 |
|
---|
2090 | </desc>
|
---|
2091 | <param name="id" type="wstring" dir="in">
|
---|
2092 | <desc>UUID of the image to look for.</desc>
|
---|
2093 | </param>
|
---|
2094 | <param name="image" type="IDVDImage" dir="return">
|
---|
2095 | <desc>Found CD/DVD image object.</desc>
|
---|
2096 | </param>
|
---|
2097 | </method>
|
---|
2098 |
|
---|
2099 | <method name="findDVDImage">
|
---|
2100 | <desc>
|
---|
2101 | Returns a CD/DVD image with the given image location.
|
---|
2102 |
|
---|
2103 | The image with the given UUID must be known to this VirtualBox
|
---|
2104 | installation, i.e. it must be previously opened by <link
|
---|
2105 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2106 |
|
---|
2107 | The search is done by comparing the value of the @a location argument to
|
---|
2108 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
2109 |
|
---|
2110 | The requested location can be a path relative to the
|
---|
2111 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2112 | only a file name without any path is given, the
|
---|
2113 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2114 | folder</link> will be prepended to the file name before searching. Note
|
---|
2115 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2116 | performed, otherwise the case in the file path is ignored.
|
---|
2117 |
|
---|
2118 | <result name="VBOX_E_FILE_ERROR">
|
---|
2119 | Invalid image file location.
|
---|
2120 | </result>
|
---|
2121 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2122 | No matching DVD image found in the media registry.
|
---|
2123 | </result>
|
---|
2124 |
|
---|
2125 | </desc>
|
---|
2126 | <param name="location" type="wstring" dir="in">
|
---|
2127 | <desc>CD/DVD image file path to look for.</desc>
|
---|
2128 | </param>
|
---|
2129 | <param name="image" type="IDVDImage" dir="return">
|
---|
2130 | <desc>Found CD/DVD image object.</desc>
|
---|
2131 | </param>
|
---|
2132 | </method>
|
---|
2133 |
|
---|
2134 | <method name="openFloppyImage">
|
---|
2135 | <desc>
|
---|
2136 | Opens a floppy image contained in the specified file of the supported
|
---|
2137 | format and assigns it the given UUID.
|
---|
2138 |
|
---|
2139 | After the image is successfully opened by this method, it gets
|
---|
2140 | remembered by (known to) this VirtualBox installation and will be
|
---|
2141 | accessible through <link to="#getFloppyImage"/> and
|
---|
2142 | <link to="#findFloppyImage"/> methods. Remembered images are also
|
---|
2143 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
2144 | mounted to virtual machines. See IMedium for more details.
|
---|
2145 |
|
---|
2146 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2147 | of the location string.
|
---|
2148 |
|
---|
2149 | <result name="VBOX_E_FILE_ERROR">
|
---|
2150 | Invalid floppy image file location or could not find the floppy
|
---|
2151 | image at the specified location.
|
---|
2152 | </result>
|
---|
2153 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2154 | Floppy image already exists in the media registry.
|
---|
2155 | </result>
|
---|
2156 |
|
---|
2157 | <note>
|
---|
2158 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
2159 | </note>
|
---|
2160 | </desc>
|
---|
2161 | <param name="location" type="wstring" dir="in">
|
---|
2162 | <desc>
|
---|
2163 | Full path to the file that contains a valid floppy image.
|
---|
2164 | </desc>
|
---|
2165 | </param>
|
---|
2166 | <param name="id" type="wstring" dir="in">
|
---|
2167 | <desc>
|
---|
2168 | UUID to assign to the given image file within this VirtualBox
|
---|
2169 | installation. If an empty (@c null) UUID is specified, the system will
|
---|
2170 | randomly generate a new UUID.
|
---|
2171 | </desc>
|
---|
2172 | </param>
|
---|
2173 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2174 | <desc>Opened floppy image object.</desc>
|
---|
2175 | </param>
|
---|
2176 | </method>
|
---|
2177 |
|
---|
2178 | <method name="getFloppyImage">
|
---|
2179 | <desc>
|
---|
2180 | Returns a floppy image with the given UUID.
|
---|
2181 |
|
---|
2182 | The image with the given UUID must be known to this VirtualBox
|
---|
2183 | installation, i.e. it must be previously opened by <link
|
---|
2184 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2185 |
|
---|
2186 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2187 | No matching floppy image found in the media registry.
|
---|
2188 | </result>
|
---|
2189 |
|
---|
2190 | </desc>
|
---|
2191 | <param name="id" type="wstring" dir="in">
|
---|
2192 | <desc>UUID of the image to look for.</desc>
|
---|
2193 | </param>
|
---|
2194 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2195 | <desc>Found floppy image object.</desc>
|
---|
2196 | </param>
|
---|
2197 | </method>
|
---|
2198 |
|
---|
2199 | <method name="findFloppyImage">
|
---|
2200 | <desc>
|
---|
2201 | Returns a floppy image with the given image location.
|
---|
2202 |
|
---|
2203 | The image with the given UUID must be known to this VirtualBox
|
---|
2204 | installation, i.e. it must be previously opened by <link
|
---|
2205 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2206 |
|
---|
2207 | The search is done by comparing the value of the @a location argument to
|
---|
2208 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
2209 |
|
---|
2210 | The requested location can be a path relative to the
|
---|
2211 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2212 | only a file name without any path is given, the
|
---|
2213 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2214 | folder</link> will be prepended to the file name before searching. Note
|
---|
2215 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2216 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2217 |
|
---|
2218 | <result name="VBOX_E_FILE_ERROR">
|
---|
2219 | Invalid image file location.
|
---|
2220 | </result>
|
---|
2221 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2222 | No matching floppy image found in the media registry.
|
---|
2223 | </result>
|
---|
2224 |
|
---|
2225 | </desc>
|
---|
2226 | <param name="location" type="wstring" dir="in">
|
---|
2227 | <desc>Floppy image file path to look for.</desc>
|
---|
2228 | </param>
|
---|
2229 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2230 | <desc>Found floppy image object.</desc>
|
---|
2231 | </param>
|
---|
2232 | </method>
|
---|
2233 |
|
---|
2234 | <method name="getGuestOSType">
|
---|
2235 | <desc>
|
---|
2236 | Returns an object describing the specified guest OS type.
|
---|
2237 |
|
---|
2238 | The requested guest OS type is specified using a string which is a
|
---|
2239 | mnemonic identifier of the guest operating system, such as
|
---|
2240 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
2241 | particular virtual machine can be read or set using the
|
---|
2242 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
2243 |
|
---|
2244 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
2245 | available guest OS type objects. Each object has an
|
---|
2246 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
2247 | the guest OS this object describes.
|
---|
2248 |
|
---|
2249 | <result name="E_INVALIDARG">
|
---|
2250 | @a id is not a valid Guest OS type.
|
---|
2251 | </result>
|
---|
2252 |
|
---|
2253 | </desc>
|
---|
2254 | <param name="id" type="wstring" dir="in">
|
---|
2255 | <desc>Guest OS type ID string.</desc>
|
---|
2256 | </param>
|
---|
2257 | <param name="type" type="IGuestOSType" dir="return">
|
---|
2258 | <desc>Guest OS type object.</desc>
|
---|
2259 | </param>
|
---|
2260 | </method>
|
---|
2261 |
|
---|
2262 | <method name="createSharedFolder">
|
---|
2263 | <desc>
|
---|
2264 | Creates a new global shared folder by associating the given logical
|
---|
2265 | name with the given host path, adds it to the collection of shared
|
---|
2266 | folders and starts sharing it. Refer to the description of
|
---|
2267 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
2268 | <note>
|
---|
2269 | In the current implementation, this operation is not
|
---|
2270 | implemented.
|
---|
2271 | </note>
|
---|
2272 | </desc>
|
---|
2273 | <param name="name" type="wstring" dir="in">
|
---|
2274 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2275 | </param>
|
---|
2276 | <param name="hostPath" type="wstring" dir="in">
|
---|
2277 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2278 | </param>
|
---|
2279 | <param name="writable" type="boolean" dir="in">
|
---|
2280 | <desc>Whether the share is writable or readonly</desc>
|
---|
2281 | </param>
|
---|
2282 | </method>
|
---|
2283 |
|
---|
2284 | <method name="removeSharedFolder">
|
---|
2285 | <desc>
|
---|
2286 | Removes the global shared folder with the given name previously
|
---|
2287 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
2288 | shared folders and stops sharing it.
|
---|
2289 | <note>
|
---|
2290 | In the current implementation, this operation is not
|
---|
2291 | implemented.
|
---|
2292 | </note>
|
---|
2293 | </desc>
|
---|
2294 | <param name="name" type="wstring" dir="in">
|
---|
2295 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2296 | </param>
|
---|
2297 | </method>
|
---|
2298 |
|
---|
2299 | <method name="getNextExtraDataKey">
|
---|
2300 | <desc>
|
---|
2301 | Returns the global extra data key name following the supplied key.
|
---|
2302 |
|
---|
2303 | An error is returned if the supplied @a key does not exist. An empty
|
---|
2304 | string is returned in @a nextKey if the supplied key is the last key. When
|
---|
2305 | supplying @c null or an empty string for the @a key, the first key item
|
---|
2306 | is returned in @a nextKey (if there is any). @a nextValue is an optional
|
---|
2307 | parameter and if supplied, the next key's value is returned in it.
|
---|
2308 |
|
---|
2309 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2310 | Extra data @a key not found.
|
---|
2311 | </result>
|
---|
2312 |
|
---|
2313 | </desc>
|
---|
2314 | <param name="key" type="wstring" dir="in">
|
---|
2315 | <desc>Name of the data key to follow.</desc>
|
---|
2316 | </param>
|
---|
2317 | <param name="nextKey" type="wstring" dir="out">
|
---|
2318 | <desc>Name of the next data key.</desc>
|
---|
2319 | </param>
|
---|
2320 | <param name="nextValue" type="wstring" dir="out">
|
---|
2321 | <desc>Value of the next data key.</desc>
|
---|
2322 | </param>
|
---|
2323 | </method>
|
---|
2324 |
|
---|
2325 | <method name="getExtraData">
|
---|
2326 | <desc>
|
---|
2327 | Returns associated global extra data.
|
---|
2328 |
|
---|
2329 | If the requested data @a key does not exist, this function will
|
---|
2330 | succeed and return an empty string in the @a value argument.
|
---|
2331 |
|
---|
2332 | <result name="VBOX_E_FILE_ERROR">
|
---|
2333 | Settings file not accessible.
|
---|
2334 | </result>
|
---|
2335 | <result name="VBOX_E_XML_ERROR">
|
---|
2336 | Could not parse the settings file.
|
---|
2337 | </result>
|
---|
2338 |
|
---|
2339 | </desc>
|
---|
2340 | <param name="key" type="wstring" dir="in">
|
---|
2341 | <desc>Name of the data key to get.</desc>
|
---|
2342 | </param>
|
---|
2343 | <param name="value" type="wstring" dir="return">
|
---|
2344 | <desc>Value of the requested data key.</desc>
|
---|
2345 | </param>
|
---|
2346 | </method>
|
---|
2347 |
|
---|
2348 | <method name="setExtraData">
|
---|
2349 | <desc>
|
---|
2350 | Sets associated global extra data.
|
---|
2351 |
|
---|
2352 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
2353 | will be deleted.
|
---|
2354 |
|
---|
2355 | <note>
|
---|
2356 | Before performing the actual data change, this method will ask all
|
---|
2357 | registered callbacks using the
|
---|
2358 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
2359 | notification for a permission. If one of the callbacks refuses the
|
---|
2360 | new value, the change will not be performed.
|
---|
2361 | </note>
|
---|
2362 | <note>
|
---|
2363 | On success, the
|
---|
2364 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
2365 | is called to inform all registered callbacks about a successful data
|
---|
2366 | change.
|
---|
2367 | </note>
|
---|
2368 |
|
---|
2369 | <result name="VBOX_E_FILE_ERROR">
|
---|
2370 | Settings file not accessible.
|
---|
2371 | </result>
|
---|
2372 | <result name="VBOX_E_XML_ERROR">
|
---|
2373 | Could not parse the settings file.
|
---|
2374 | </result>
|
---|
2375 | <result name="E_ACCESSDENIED">
|
---|
2376 | Modification request refused.
|
---|
2377 | </result>
|
---|
2378 |
|
---|
2379 | </desc>
|
---|
2380 | <param name="key" type="wstring" dir="in">
|
---|
2381 | <desc>Name of the data key to set.</desc>
|
---|
2382 | </param>
|
---|
2383 | <param name="value" type="wstring" dir="in">
|
---|
2384 | <desc>Value to assign to the key.</desc>
|
---|
2385 | </param>
|
---|
2386 | </method>
|
---|
2387 |
|
---|
2388 | <method name="openSession">
|
---|
2389 | <desc>
|
---|
2390 | Opens a new direct session with the given virtual machine.
|
---|
2391 |
|
---|
2392 | A direct session acts as a local lock on the given VM.
|
---|
2393 | There can be only one direct session open at a time for every
|
---|
2394 | virtual machine, protecting the VM from being manipulated by
|
---|
2395 | conflicting actions from different processes. Only after a
|
---|
2396 | direct session has been opened, one can change all VM settings
|
---|
2397 | and execute the VM in the process space of the session object.
|
---|
2398 |
|
---|
2399 | Sessions therefore can be compared to mutex semaphores that
|
---|
2400 | lock a given VM for modification and execution.
|
---|
2401 | See <link to="ISession">ISession</link> for details.
|
---|
2402 |
|
---|
2403 | <note>Unless you are writing a new VM frontend, you will not
|
---|
2404 | want to execute a VM in the current process. To spawn a new
|
---|
2405 | process that executes a VM, use
|
---|
2406 | <link to="IVirtualBox::openRemoteSession" />
|
---|
2407 | instead.</note>
|
---|
2408 |
|
---|
2409 | Upon successful return, the session object can be used to
|
---|
2410 | get access to the machine and to the VM console.
|
---|
2411 |
|
---|
2412 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2413 | a session has been opened. Note that the "mutable" machine
|
---|
2414 | object, on which you may invoke IMachine methods to change its
|
---|
2415 | settings, will be a different object from the immutable IMachine
|
---|
2416 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2417 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2418 | use the <link to="ISession::machine" /> attribute.
|
---|
2419 |
|
---|
2420 | One must always call <link to="ISession::close" /> to release the
|
---|
2421 | lock on the machine, or the machine's state will eventually be
|
---|
2422 | set to "Aborted".
|
---|
2423 |
|
---|
2424 | In other words, to change settings on a machine, the following
|
---|
2425 | sequence is typically performed:
|
---|
2426 |
|
---|
2427 | <ol>
|
---|
2428 | <li>Call this method (openSession) to have a machine locked for
|
---|
2429 | the current session.</li>
|
---|
2430 |
|
---|
2431 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2432 |
|
---|
2433 | <li>Change the settings of the machine.</li>
|
---|
2434 |
|
---|
2435 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2436 |
|
---|
2437 | <li>Close the session by calling <link to="ISession::close"/>.</li>
|
---|
2438 | </ol>
|
---|
2439 |
|
---|
2440 | <result name="E_UNEXPECTED">
|
---|
2441 | Virtual machine not registered.
|
---|
2442 | </result>
|
---|
2443 | <result name="E_ACCESSDENIED">
|
---|
2444 | Process not started by OpenRemoteSession.
|
---|
2445 | </result>
|
---|
2446 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2447 | No matching virtual machine found.
|
---|
2448 | </result>
|
---|
2449 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2450 | Session already open or being opened.
|
---|
2451 | </result>
|
---|
2452 | <result name="VBOX_E_VM_ERROR">
|
---|
2453 | Failed to assign machine to session.
|
---|
2454 | </result>
|
---|
2455 |
|
---|
2456 | </desc>
|
---|
2457 | <param name="session" type="ISession" dir="in">
|
---|
2458 | <desc>
|
---|
2459 | Session object that will represent the opened session after
|
---|
2460 | successful method invocation. This object must not represent
|
---|
2461 | the already open session.
|
---|
2462 | <note>
|
---|
2463 | This session will be automatically closed if the
|
---|
2464 | VirtualBox server is terminated for some reason.
|
---|
2465 | </note>
|
---|
2466 | </desc>
|
---|
2467 | </param>
|
---|
2468 | <param name="machineId" type="wstring" dir="in">
|
---|
2469 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2470 | </param>
|
---|
2471 | </method>
|
---|
2472 |
|
---|
2473 | <method name="openRemoteSession">
|
---|
2474 | <desc>
|
---|
2475 | Spawns a new process that executes a virtual machine (called a
|
---|
2476 | "remote session").
|
---|
2477 |
|
---|
2478 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2479 | process that opens a direct session with the given VM. As a result, the
|
---|
2480 | VM is locked by that direct session in the new process, preventing
|
---|
2481 | conflicting changes from other processes. Since sessions act as locks
|
---|
2482 | that prevent conflicting changes, one cannot open a remote session
|
---|
2483 | for a VM that already has another open session (direct or remote), or
|
---|
2484 | is currently in the process of opening one (see <link
|
---|
2485 | to="IMachine::sessionState"/>).
|
---|
2486 |
|
---|
2487 | While the remote session still provides some level of control over the
|
---|
2488 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2489 | not all VM settings are available for modification within the remote
|
---|
2490 | session context.
|
---|
2491 |
|
---|
2492 | This operation can take some time (a new VM is started in a new process,
|
---|
2493 | for which memory and other resources need to be set up). Because of this,
|
---|
2494 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2495 | asynchronous operation to be completed. Until then, the remote session
|
---|
2496 | object remains in the closed state, and accessing the machine or its
|
---|
2497 | console through it is invalid. It is recommended to use
|
---|
2498 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2499 | completion.
|
---|
2500 |
|
---|
2501 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2502 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2503 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2504 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2505 | until the VM is no longer running). In that case, however, the state of
|
---|
2506 | the session will automatically change back to "Closed".
|
---|
2507 |
|
---|
2508 | Currently supported session types (values of the @a type
|
---|
2509 | argument) are:
|
---|
2510 | <ul>
|
---|
2511 | <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
|
---|
2512 | <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
|
---|
2513 | <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
|
---|
2514 | </ul>
|
---|
2515 |
|
---|
2516 | The @a environment argument is a string containing definitions of
|
---|
2517 | environment variables in the following format:
|
---|
2518 | @code
|
---|
2519 | NAME[=VALUE]\n
|
---|
2520 | NAME[=VALUE]\n
|
---|
2521 | ...
|
---|
2522 | @endcode
|
---|
2523 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2524 | variables will be appended to the environment of the VirtualBox server
|
---|
2525 | process. If an environment variable exists both in the server process
|
---|
2526 | and in this list, the value from this list takes precedence over the
|
---|
2527 | server's variable. If the value of the environment variable is
|
---|
2528 | omitted, this variable will be removed from the resulting environment.
|
---|
2529 | If the environment string is @c null or empty, the server environment
|
---|
2530 | is inherited by the started process as is.
|
---|
2531 |
|
---|
2532 | <see>openExistingSession</see>
|
---|
2533 |
|
---|
2534 | <result name="E_UNEXPECTED">
|
---|
2535 | Virtual machine not registered.
|
---|
2536 | </result>
|
---|
2537 | <result name="E_INVALIDARG">
|
---|
2538 | Invalid session type @a type.
|
---|
2539 | </result>
|
---|
2540 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2541 | No machine matching @a machineId found.
|
---|
2542 | </result>
|
---|
2543 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2544 | Session already open or being opened.
|
---|
2545 | </result>
|
---|
2546 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2547 | Launching process for machine failed.
|
---|
2548 | </result>
|
---|
2549 | <result name="VBOX_E_VM_ERROR">
|
---|
2550 | Failed to assign machine to session.
|
---|
2551 | </result>
|
---|
2552 |
|
---|
2553 | </desc>
|
---|
2554 | <param name="session" type="ISession" dir="in">
|
---|
2555 | <desc>
|
---|
2556 | Session object that will represent the opened remote session
|
---|
2557 | after successful method invocation (this object must not
|
---|
2558 | represent an already open session).
|
---|
2559 | </desc>
|
---|
2560 | </param>
|
---|
2561 | <param name="machineId" type="wstring" dir="in">
|
---|
2562 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2563 | </param>
|
---|
2564 | <param name="type" type="wstring" dir="in">
|
---|
2565 | <desc>
|
---|
2566 | Type of the remote session (case sensitive).
|
---|
2567 | </desc>
|
---|
2568 | </param>
|
---|
2569 | <param name="environment" type="wstring" dir="in">
|
---|
2570 | <desc>
|
---|
2571 | Environment to pass to the opened session.
|
---|
2572 | </desc>
|
---|
2573 | </param>
|
---|
2574 | <param name="progress" type="IProgress" dir="return">
|
---|
2575 | <desc>Progress object to track the operation completion.</desc>
|
---|
2576 | </param>
|
---|
2577 | </method>
|
---|
2578 |
|
---|
2579 | <method name="openExistingSession">
|
---|
2580 | <desc>
|
---|
2581 | Opens a new remote session with the virtual machine for
|
---|
2582 | which a direct session is already open.
|
---|
2583 |
|
---|
2584 | The remote session provides some level of control over the VM
|
---|
2585 | execution (using the IConsole interface) to the caller; however,
|
---|
2586 | within the remote session context, not all VM settings are available
|
---|
2587 | for modification.
|
---|
2588 |
|
---|
2589 | As opposed to <link to="#openRemoteSession"/>, the number of
|
---|
2590 | remote sessions opened this way is not limited by the API
|
---|
2591 |
|
---|
2592 | <note>
|
---|
2593 | It is an error to open a remote session with the machine that
|
---|
2594 | doesn't have an open direct session.
|
---|
2595 | </note>
|
---|
2596 |
|
---|
2597 | <result name="E_UNEXPECTED">
|
---|
2598 | Virtual machine not registered.
|
---|
2599 | </result>
|
---|
2600 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2601 | No machine matching @a machineId found.
|
---|
2602 | </result>
|
---|
2603 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2604 | Session already open or being opened.
|
---|
2605 | </result>
|
---|
2606 | <result name="VBOX_E_INVALID_SESSION_STATE">
|
---|
2607 | Direct session state not Open.
|
---|
2608 | </result>
|
---|
2609 | <result name="VBOX_E_VM_ERROR">
|
---|
2610 | Failed to get console object from direct session or assign
|
---|
2611 | machine to session.
|
---|
2612 | </result>
|
---|
2613 |
|
---|
2614 | <see>openRemoteSession</see>
|
---|
2615 | </desc>
|
---|
2616 | <param name="session" type="ISession" dir="in">
|
---|
2617 | <desc>
|
---|
2618 | Session object that will represent the open remote session
|
---|
2619 | after successful method invocation. This object must not
|
---|
2620 | represent an already open session.
|
---|
2621 | <note>
|
---|
2622 | This session will be automatically closed when the peer
|
---|
2623 | (direct) session dies or gets closed.
|
---|
2624 | </note>
|
---|
2625 | </desc>
|
---|
2626 | </param>
|
---|
2627 | <param name="machineId" type="wstring" dir="in">
|
---|
2628 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2629 | </param>
|
---|
2630 | </method>
|
---|
2631 |
|
---|
2632 | <method name="registerCallback">
|
---|
2633 | <desc>
|
---|
2634 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2635 | callback object will be called by VirtualBox when an appropriate
|
---|
2636 | event occurs.
|
---|
2637 |
|
---|
2638 | <result name="E_INVALIDARG">
|
---|
2639 | A @c null callback cannot be registered.
|
---|
2640 | </result>
|
---|
2641 |
|
---|
2642 | </desc>
|
---|
2643 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2644 | <desc>Callback object to register.</desc>
|
---|
2645 | </param>
|
---|
2646 | </method>
|
---|
2647 |
|
---|
2648 | <method name="unregisterCallback">
|
---|
2649 | <desc>
|
---|
2650 | Unregisters the previously registered global VirtualBox callback.
|
---|
2651 |
|
---|
2652 | <result name="E_INVALIDARG">
|
---|
2653 | Specified @a callback not registered.
|
---|
2654 | </result>
|
---|
2655 |
|
---|
2656 | </desc>
|
---|
2657 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2658 | <desc>Callback object to unregister.</desc>
|
---|
2659 | </param>
|
---|
2660 | </method>
|
---|
2661 |
|
---|
2662 | <method name="waitForPropertyChange">
|
---|
2663 | <desc>
|
---|
2664 | Blocks the caller until any of the properties represented by the
|
---|
2665 | @a what argument changes the value or until the given timeout interval
|
---|
2666 | expires.
|
---|
2667 |
|
---|
2668 | The @a what argument is a comma separated list of property masks that
|
---|
2669 | describe properties the caller is interested in. The property mask is
|
---|
2670 | a string in the following format:
|
---|
2671 |
|
---|
2672 | <pre>
|
---|
2673 | [[group.]subgroup.]name
|
---|
2674 | </pre>
|
---|
2675 |
|
---|
2676 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2677 | or more property group specifiers. Each element (group or name) in
|
---|
2678 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2679 | (@c "*") which is used to match any string for the given element. A
|
---|
2680 | property mask that doesn't contain asterisk symbols represents a
|
---|
2681 | single fully qualified property name.
|
---|
2682 |
|
---|
2683 | Groups in the fully qualified property name go from more generic (the
|
---|
2684 | left-most part) to more specific (the right-most part). The first
|
---|
2685 | element is usually a name of the object the property belongs to. The
|
---|
2686 | second element may be either a property name, or a child object name,
|
---|
2687 | or an index if the preceding element names an object which is one of
|
---|
2688 | many objects of the same type. This way, property names form a
|
---|
2689 | hierarchy of properties. Here are some examples of property names:
|
---|
2690 |
|
---|
2691 | <table>
|
---|
2692 | <tr>
|
---|
2693 | <td><tt>VirtualBox.version</tt></td>
|
---|
2694 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2695 | </tr>
|
---|
2696 | <tr>
|
---|
2697 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2698 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2699 | given UUID</td>
|
---|
2700 | </tr>
|
---|
2701 | </table>
|
---|
2702 |
|
---|
2703 | Most property names directly correspond to the properties of objects
|
---|
2704 | (components) provided by the VirtualBox library and may be used to
|
---|
2705 | track changes to these properties. However, there may be
|
---|
2706 | pseudo-property names that don't correspond to any existing object's
|
---|
2707 | property directly, as well as there may be object properties that
|
---|
2708 | don't have a corresponding property name that is understood by this
|
---|
2709 | method, and therefore changes to such properties cannot be
|
---|
2710 | tracked. See individual object's property descriptions to get a
|
---|
2711 | fully qualified property name that can be used with this method (if
|
---|
2712 | any).
|
---|
2713 |
|
---|
2714 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2715 | single asterisk symbol) that can be used to match all properties.
|
---|
2716 | Below are more examples of property masks:
|
---|
2717 |
|
---|
2718 | <table>
|
---|
2719 | <tr>
|
---|
2720 | <td><tt>VirtualBox.*</tt></td>
|
---|
2721 | <td>Track all properties of the VirtualBox object</td>
|
---|
2722 | </tr>
|
---|
2723 | <tr>
|
---|
2724 | <td><tt>Machine.*.name</tt></td>
|
---|
2725 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2726 | all registered virtual machines</td>
|
---|
2727 | </tr>
|
---|
2728 | </table>
|
---|
2729 |
|
---|
2730 | <note>
|
---|
2731 | This function is not implemented in the current version of the
|
---|
2732 | product.
|
---|
2733 | </note>
|
---|
2734 | </desc>
|
---|
2735 | <param name="what" type="wstring" dir="in">
|
---|
2736 | <desc>Comma separated list of property masks.</desc>
|
---|
2737 | </param>
|
---|
2738 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2739 | <desc>
|
---|
2740 | Wait timeout in milliseconds.
|
---|
2741 | Specify -1 for an indefinite wait.
|
---|
2742 | </desc>
|
---|
2743 | </param>
|
---|
2744 | <param name="changed" type="wstring" dir="out">
|
---|
2745 | <desc>
|
---|
2746 | Comma separated list of properties that have been changed and caused
|
---|
2747 | this method to return to the caller.
|
---|
2748 | </desc>
|
---|
2749 | </param>
|
---|
2750 | <param name="values" type="wstring" dir="out">
|
---|
2751 | <desc>Reserved, not currently used.</desc>
|
---|
2752 | </param>
|
---|
2753 | </method>
|
---|
2754 |
|
---|
2755 | <method name="saveSettings">
|
---|
2756 | <desc>
|
---|
2757 | Saves the global settings to the global settings file
|
---|
2758 | (<link to="#settingsFilePath"/>).
|
---|
2759 |
|
---|
2760 | This method is only useful for explicitly saving the global settings
|
---|
2761 | file after it has been auto-converted from the old format to the most
|
---|
2762 | recent format (see <link to="#settingsFileVersion"/> for details).
|
---|
2763 | Normally, the global settings file is implicitly saved when a global
|
---|
2764 | setting is changed.
|
---|
2765 |
|
---|
2766 | <result name="VBOX_E_FILE_ERROR">
|
---|
2767 | Settings file not accessible.
|
---|
2768 | </result>
|
---|
2769 | <result name="VBOX_E_XML_ERROR">
|
---|
2770 | Could not parse the settings file.
|
---|
2771 | </result>
|
---|
2772 |
|
---|
2773 | </desc>
|
---|
2774 | </method>
|
---|
2775 |
|
---|
2776 | <method name="saveSettingsWithBackup">
|
---|
2777 | <desc>
|
---|
2778 | Creates a backup copy of the global settings file
|
---|
2779 | (<link to="IVirtualBox::settingsFilePath"/>) in case of auto-conversion,
|
---|
2780 | and then calls <link to="IVirtualBox::saveSettings"/>.
|
---|
2781 |
|
---|
2782 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
2783 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
2784 | details). Otherwise, this call is fully equivalent to
|
---|
2785 | <link to="IVirtualBox::saveSettings"/> and no backup copying is done.
|
---|
2786 |
|
---|
2787 | The backup copy is created in the same directory where the original
|
---|
2788 | settings file is located. It is given the following file name:
|
---|
2789 | <pre>
|
---|
2790 | original.xml.x.y-platform.bak
|
---|
2791 | </pre>
|
---|
2792 | where <tt>original.xml</tt> is the original settings file name
|
---|
2793 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
2794 | format of the settings file (before auto-conversion).
|
---|
2795 |
|
---|
2796 | If the given backup file already exists, this method will try to add the
|
---|
2797 | <tt>.N</tt> suffix to the backup file name (where @c N counts from
|
---|
2798 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
2799 | occupied, or if any other copy error occurs, this method will return a
|
---|
2800 | failure.
|
---|
2801 |
|
---|
2802 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
2803 | receive a full path to the created backup file (for informational
|
---|
2804 | purposes). Note that this will happen even if the subsequent
|
---|
2805 | <link to="#saveSettings"/> call performed by this method after the
|
---|
2806 | copy operation, fails.
|
---|
2807 |
|
---|
2808 | <note>
|
---|
2809 | The VirtualBox API never calls this method. It is intended purely for
|
---|
2810 | the purposes of creating backup copies of the settings files by
|
---|
2811 | front-ends before saving the results of the automatically performed
|
---|
2812 | settings conversion to disk.
|
---|
2813 | </note>
|
---|
2814 |
|
---|
2815 | <see>settingsFileVersion</see>
|
---|
2816 |
|
---|
2817 | <result name="VBOX_E_FILE_ERROR">
|
---|
2818 | Settings file not accessible.
|
---|
2819 | </result>
|
---|
2820 | <result name="VBOX_E_XML_ERROR">
|
---|
2821 | Could not parse the settings file.
|
---|
2822 | </result>
|
---|
2823 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2824 | Could not copy the settings file.
|
---|
2825 | </result>
|
---|
2826 |
|
---|
2827 | </desc>
|
---|
2828 | <param name="bakFileName" type="wstring" dir="return">
|
---|
2829 | <desc>Full path to the created backup copy.</desc>
|
---|
2830 | </param>
|
---|
2831 | </method>
|
---|
2832 |
|
---|
2833 | <!--method name="createDHCPServerForInterface">
|
---|
2834 | <desc>
|
---|
2835 | Creates a dhcp server settings to be used for the given interface
|
---|
2836 | <result name="E_INVALIDARG">
|
---|
2837 | Host network interface @a name already exists.
|
---|
2838 | </result>
|
---|
2839 | </desc>
|
---|
2840 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2841 | <desc>Network Interface</desc>
|
---|
2842 | </param>
|
---|
2843 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2844 | <desc>Dhcp server settings</desc>
|
---|
2845 | </param>
|
---|
2846 | </method-->
|
---|
2847 |
|
---|
2848 | <method name="createDHCPServer">
|
---|
2849 | <desc>
|
---|
2850 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2851 | <result name="E_INVALIDARG">
|
---|
2852 | Host network interface @a name already exists.
|
---|
2853 | </result>
|
---|
2854 | </desc>
|
---|
2855 | <param name="name" type="wstring" dir="in">
|
---|
2856 | <desc>server name</desc>
|
---|
2857 | </param>
|
---|
2858 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2859 | <desc>Dhcp server settings</desc>
|
---|
2860 | </param>
|
---|
2861 | </method>
|
---|
2862 |
|
---|
2863 | <method name="findDHCPServerByNetworkName">
|
---|
2864 | <desc>
|
---|
2865 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2866 | <result name="E_INVALIDARG">
|
---|
2867 | Host network interface @a name already exists.
|
---|
2868 | </result>
|
---|
2869 |
|
---|
2870 | </desc>
|
---|
2871 | <param name="name" type="wstring" dir="in">
|
---|
2872 | <desc>server name</desc>
|
---|
2873 | </param>
|
---|
2874 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2875 | <desc>Dhcp server settings</desc>
|
---|
2876 | </param>
|
---|
2877 | </method>
|
---|
2878 |
|
---|
2879 | <!--method name="findDHCPServerForInterface">
|
---|
2880 | <desc>
|
---|
2881 | Searches a dhcp server settings to be used for the given interface
|
---|
2882 | <result name="E_INVALIDARG">
|
---|
2883 | Host network interface @a name already exists.
|
---|
2884 | </result>
|
---|
2885 | </desc>
|
---|
2886 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2887 | <desc>Network Interface</desc>
|
---|
2888 | </param>
|
---|
2889 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2890 | <desc>Dhcp server settings</desc>
|
---|
2891 | </param>
|
---|
2892 | </method-->
|
---|
2893 |
|
---|
2894 | <method name="removeDHCPServer">
|
---|
2895 | <desc>
|
---|
2896 | Removes the dhcp server settings
|
---|
2897 | <result name="E_INVALIDARG">
|
---|
2898 | Host network interface @a name already exists.
|
---|
2899 | </result>
|
---|
2900 | </desc>
|
---|
2901 | <param name="server" type="IDHCPServer" dir="in">
|
---|
2902 | <desc>Dhcp server settings to be removed</desc>
|
---|
2903 | </param>
|
---|
2904 | </method>
|
---|
2905 |
|
---|
2906 | </interface>
|
---|
2907 |
|
---|
2908 | <!--
|
---|
2909 | // IVFSExplorer
|
---|
2910 | /////////////////////////////////////////////////////////////////////////
|
---|
2911 | -->
|
---|
2912 |
|
---|
2913 | <enum
|
---|
2914 | name="VFSType"
|
---|
2915 | uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
|
---|
2916 | >
|
---|
2917 | <desc>
|
---|
2918 | Virtual file systems supported by VFSExplorer.
|
---|
2919 | </desc>
|
---|
2920 |
|
---|
2921 | <const name="File" value="1" />
|
---|
2922 | <const name="Cloud" value="2" />
|
---|
2923 | <const name="S3" value="3" />
|
---|
2924 | <const name="WebDav" value="4" />
|
---|
2925 | </enum>
|
---|
2926 |
|
---|
2927 | <enum
|
---|
2928 | name="VFSFileType"
|
---|
2929 | uuid="714333cd-44e2-415f-a245-d378fa9b1242"
|
---|
2930 | >
|
---|
2931 | <desc>
|
---|
2932 | File types known by VFSExplorer.
|
---|
2933 | </desc>
|
---|
2934 |
|
---|
2935 | <const name="Unknown" value="1" />
|
---|
2936 | <const name="Fifo" value="2" />
|
---|
2937 | <const name="DevChar" value="3" />
|
---|
2938 | <const name="Directory" value="4" />
|
---|
2939 | <const name="DevBlock" value="5" />
|
---|
2940 | <const name="File" value="6" />
|
---|
2941 | <const name="SymLink" value="7" />
|
---|
2942 | <const name="Socket" value="8" />
|
---|
2943 | <const name="WhiteOut" value="9" />
|
---|
2944 | </enum>
|
---|
2945 |
|
---|
2946 | <interface
|
---|
2947 | name="IVFSExplorer" extends="$unknown"
|
---|
2948 | uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
|
---|
2949 | wsmap="managed"
|
---|
2950 | >
|
---|
2951 | <desc>
|
---|
2952 | The VFSExplorer interface unifies access to different file system
|
---|
2953 | types. This includes local file systems as well remote file systems like
|
---|
2954 | S3. For a list of supported types see <link to="VFSType" />.
|
---|
2955 | An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
|
---|
2956 | </desc>
|
---|
2957 |
|
---|
2958 | <attribute name="path" type="wstring" readonly="yes">
|
---|
2959 | <desc>Returns the current path in the virtual file system.</desc>
|
---|
2960 | </attribute>
|
---|
2961 |
|
---|
2962 | <attribute name="type" type="VFSType" readonly="yes">
|
---|
2963 | <desc>Returns the file system type which is currently in use.</desc>
|
---|
2964 | </attribute>
|
---|
2965 |
|
---|
2966 | <method name="update">
|
---|
2967 | <desc>Updates the internal list of files/directories from the
|
---|
2968 | current directory level. Use <link to="#entryList" /> to get the full list
|
---|
2969 | after a call to this method.</desc>
|
---|
2970 |
|
---|
2971 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2972 | <desc>Progress object to track the operation completion.</desc>
|
---|
2973 | </param>
|
---|
2974 | </method>
|
---|
2975 |
|
---|
2976 | <method name="cd">
|
---|
2977 | <desc>Change the current directory level.</desc>
|
---|
2978 |
|
---|
2979 | <param name="aDir" type="wstring" dir="in">
|
---|
2980 | <desc>The name of the directory to go in.</desc>
|
---|
2981 | </param>
|
---|
2982 |
|
---|
2983 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2984 | <desc>Progress object to track the operation completion.</desc>
|
---|
2985 | </param>
|
---|
2986 | </method>
|
---|
2987 |
|
---|
2988 | <method name="cdUp">
|
---|
2989 | <desc>Go one directory upwards from the current directory level.</desc>
|
---|
2990 |
|
---|
2991 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2992 | <desc>Progress object to track the operation completion.</desc>
|
---|
2993 | </param>
|
---|
2994 | </method>
|
---|
2995 |
|
---|
2996 | <method name="entryList">
|
---|
2997 | <desc>Returns a list of files/directories after a call to <link
|
---|
2998 | to="#update" />. The user is responsible for keeping this internal
|
---|
2999 | list up do date.</desc>
|
---|
3000 |
|
---|
3001 | <param name="aNames" type="wstring" safearray="yes" dir="out">
|
---|
3002 | <desc>The list of names for the entries.</desc>
|
---|
3003 | </param>
|
---|
3004 |
|
---|
3005 | <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
|
---|
3006 | <desc>The list of types for the entries.</desc>
|
---|
3007 | </param>
|
---|
3008 | </method>
|
---|
3009 |
|
---|
3010 | <method name="exists">
|
---|
3011 | <desc>Checks if the given file list exists in the current directory
|
---|
3012 | level.</desc>
|
---|
3013 |
|
---|
3014 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3015 | <desc>The names to check.</desc>
|
---|
3016 | </param>
|
---|
3017 |
|
---|
3018 | <param name="aExists" type="wstring" safearray="yes" dir="return">
|
---|
3019 | <desc>The names which exist.</desc>
|
---|
3020 | </param>
|
---|
3021 | </method>
|
---|
3022 |
|
---|
3023 | <method name="remove">
|
---|
3024 | <desc>Deletes the given files in the current directory level.</desc>
|
---|
3025 |
|
---|
3026 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3027 | <desc>The names to remove.</desc>
|
---|
3028 | </param>
|
---|
3029 |
|
---|
3030 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3031 | <desc>Progress object to track the operation completion.</desc>
|
---|
3032 | </param>
|
---|
3033 | </method>
|
---|
3034 |
|
---|
3035 | </interface>
|
---|
3036 |
|
---|
3037 | <!--
|
---|
3038 | // IAppliance
|
---|
3039 | /////////////////////////////////////////////////////////////////////////
|
---|
3040 | -->
|
---|
3041 |
|
---|
3042 | <interface
|
---|
3043 | name="IAppliance" extends="$unknown"
|
---|
3044 | uuid="e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
|
---|
3045 | wsmap="managed"
|
---|
3046 | >
|
---|
3047 | <desc>
|
---|
3048 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
3049 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
3050 | appliances with VirtualBox.
|
---|
3051 |
|
---|
3052 | The OVF standard suggests two different physical file formats:
|
---|
3053 |
|
---|
3054 | <ol>
|
---|
3055 | <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
|
---|
3056 | path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
|
---|
3057 | this descriptor file references other files, as OVF appliances distributed as a set of
|
---|
3058 | files most likely do, those files must be in the same directory as the descriptor file.</li>
|
---|
3059 |
|
---|
3060 | <li>If the OVF is distributed as a single file, it must be in TAR format and have the
|
---|
3061 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
3062 | files and optionally other files.
|
---|
3063 |
|
---|
3064 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
3065 | be added with a later version.</li>
|
---|
3066 | </ol>
|
---|
3067 |
|
---|
3068 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
3069 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
3070 |
|
---|
3071 | <ol>
|
---|
3072 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
3073 | </li>
|
---|
3074 |
|
---|
3075 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
3076 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
3077 | and return an instance of IAppliance that contains the parsed data from the OVF file.
|
---|
3078 | </li>
|
---|
3079 |
|
---|
3080 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
3081 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
3082 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
3083 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
3084 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
3085 | systems in the OVF, which in turn describe the virtual hardware prescribed by the
|
---|
3086 | OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
3087 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
3088 | </li>
|
---|
3089 |
|
---|
3090 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3091 | virtual system to override the suggestions made by the interpret() routine.
|
---|
3092 | </li>
|
---|
3093 |
|
---|
3094 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
3095 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
3096 | virtual system descriptions.
|
---|
3097 | </li>
|
---|
3098 | </ol>
|
---|
3099 |
|
---|
3100 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
3101 |
|
---|
3102 | <ol>
|
---|
3103 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
3104 | an empty IAppliance object.
|
---|
3105 | </li>
|
---|
3106 |
|
---|
3107 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
3108 | with the IAppliance object you just created. This creates an instance of
|
---|
3109 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
3110 | </li>
|
---|
3111 |
|
---|
3112 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3113 | virtual system to override the suggestions made by the export() routine.
|
---|
3114 | </li>
|
---|
3115 |
|
---|
3116 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
3117 | file written.</li>
|
---|
3118 | </ol>
|
---|
3119 |
|
---|
3120 | </desc>
|
---|
3121 |
|
---|
3122 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3123 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
3124 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
3125 | <link to="#write" /> (for export).
|
---|
3126 | This attribute is empty until one of these methods has been called.
|
---|
3127 | </desc>
|
---|
3128 | </attribute>
|
---|
3129 |
|
---|
3130 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
3131 | <desc>
|
---|
3132 | Array of virtual disk definitions. One such description exists for each
|
---|
3133 | disk definition in the OVF; each string array item represents one such piece of
|
---|
3134 | disk information, with the information fields separated by tab (\\t) characters.
|
---|
3135 |
|
---|
3136 | The caller should be prepared for additional fields being appended to
|
---|
3137 | this string in future versions of VirtualBox and therefore check for
|
---|
3138 | the number of tabs in the strings returned.
|
---|
3139 |
|
---|
3140 | In the current version, the following eight fields are returned per string
|
---|
3141 | in the array:
|
---|
3142 |
|
---|
3143 | <ol>
|
---|
3144 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
3145 |
|
---|
3146 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
3147 |
|
---|
3148 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
3149 | disk; can be approximate; -1 if unspecified)</li>
|
---|
3150 |
|
---|
3151 | <li>Format (string identifying the disk format, typically
|
---|
3152 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
3153 |
|
---|
3154 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
3155 | then the disk should be created on import)</li>
|
---|
3156 |
|
---|
3157 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
3158 | which need not necessarily be the same as the values specified above, since
|
---|
3159 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
3160 |
|
---|
3161 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
3162 | presently unsupported and always -1)</li>
|
---|
3163 |
|
---|
3164 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
3165 | </ol>
|
---|
3166 | </desc>
|
---|
3167 | </attribute>
|
---|
3168 |
|
---|
3169 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
3170 | <desc> Array of virtual system descriptions. One such description is created
|
---|
3171 | for each virtual system found in the OVF.
|
---|
3172 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
3173 | (for export) has been called.
|
---|
3174 | </desc>
|
---|
3175 | </attribute>
|
---|
3176 |
|
---|
3177 | <method name="read">
|
---|
3178 | <desc>
|
---|
3179 | Reads an OVF file into the appliance object.
|
---|
3180 |
|
---|
3181 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
3182 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
3183 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
3184 | </desc>
|
---|
3185 | <param name="file" type="wstring" dir="in">
|
---|
3186 | <desc>
|
---|
3187 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3188 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3189 | </desc>
|
---|
3190 | </param>
|
---|
3191 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3192 | <desc></desc>
|
---|
3193 | </param>
|
---|
3194 | </method>
|
---|
3195 |
|
---|
3196 | <method name="interpret">
|
---|
3197 | <desc>
|
---|
3198 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
3199 | calling this method, one can inspect the
|
---|
3200 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
3201 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
3202 | the appliance.
|
---|
3203 |
|
---|
3204 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
3205 | see <link to="IAppliance" /> for an overview.
|
---|
3206 |
|
---|
3207 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
3208 | if problems were encountered during the processing which might later lead to
|
---|
3209 | errors.
|
---|
3210 | </desc>
|
---|
3211 | </method>
|
---|
3212 |
|
---|
3213 | <method name="importMachines">
|
---|
3214 | <desc>
|
---|
3215 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
3216 | and other interfaces that match the information contained in the appliance as
|
---|
3217 | closely as possible, as represented by the import instructions in the
|
---|
3218 | <link to="#virtualSystemDescriptions" /> array.
|
---|
3219 |
|
---|
3220 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
3221 | see <link to="IAppliance" /> for an overview.
|
---|
3222 |
|
---|
3223 | Since importing the appliance will most probably involve copying and converting
|
---|
3224 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3225 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3226 | </desc>
|
---|
3227 |
|
---|
3228 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3229 | <desc></desc>
|
---|
3230 | </param>
|
---|
3231 | </method>
|
---|
3232 |
|
---|
3233 | <method name="createVFSExplorer">
|
---|
3234 | <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
|
---|
3235 |
|
---|
3236 | <param name="aUri" type="wstring" dir="in">
|
---|
3237 | <desc>The URI describing the file system to use.</desc>
|
---|
3238 | </param>
|
---|
3239 |
|
---|
3240 | <param name="aExplorer" type="IVFSExplorer" dir="return">
|
---|
3241 | <desc></desc>
|
---|
3242 | </param>
|
---|
3243 | </method>
|
---|
3244 |
|
---|
3245 | <method name="write">
|
---|
3246 | <desc>
|
---|
3247 | Writes the contents of the appliance exports into a new OVF file.
|
---|
3248 |
|
---|
3249 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
3250 | see <link to="IAppliance" /> for an overview.
|
---|
3251 |
|
---|
3252 | Since exporting the appliance will most probably involve copying and converting
|
---|
3253 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3254 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3255 | </desc>
|
---|
3256 | <param name="format" type="wstring" dir="in">
|
---|
3257 | <desc>
|
---|
3258 | Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
|
---|
3259 | future versions of VirtualBox may support additional formats.
|
---|
3260 | </desc>
|
---|
3261 | </param>
|
---|
3262 | <param name="path" type="wstring" dir="in">
|
---|
3263 | <desc>
|
---|
3264 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3265 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3266 | </desc>
|
---|
3267 | </param>
|
---|
3268 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3269 | <desc>Progress object to track the operation completion.</desc>
|
---|
3270 | </param>
|
---|
3271 | </method>
|
---|
3272 |
|
---|
3273 | <method name="getWarnings">
|
---|
3274 | <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
|
---|
3275 |
|
---|
3276 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
3277 | <desc></desc>
|
---|
3278 | </param>
|
---|
3279 | </method>
|
---|
3280 |
|
---|
3281 | </interface>
|
---|
3282 |
|
---|
3283 | <enum
|
---|
3284 | name="VirtualSystemDescriptionType"
|
---|
3285 | uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
|
---|
3286 | >
|
---|
3287 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
3288 | a configuration value.</desc>
|
---|
3289 |
|
---|
3290 | <const name="Ignore" value="1" />
|
---|
3291 | <const name="OS" value="2" />
|
---|
3292 | <const name="Name" value="3" />
|
---|
3293 | <const name="Product" value="4" />
|
---|
3294 | <const name="Vendor" value="5" />
|
---|
3295 | <const name="Version" value="6" />
|
---|
3296 | <const name="ProductUrl" value="7" />
|
---|
3297 | <const name="VendorUrl" value="8" />
|
---|
3298 | <const name="Description" value="9" />
|
---|
3299 | <const name="License" value="10" />
|
---|
3300 | <const name="Miscellaneous" value="11" />
|
---|
3301 | <const name="CPU" value="12" />
|
---|
3302 | <const name="Memory" value="13" />
|
---|
3303 | <const name="HardDiskControllerIDE" value="14" />
|
---|
3304 | <const name="HardDiskControllerSATA" value="15" />
|
---|
3305 | <const name="HardDiskControllerSCSI" value="16" />
|
---|
3306 | <const name="HardDiskImage" value="17" />
|
---|
3307 | <const name="Floppy" value="18" />
|
---|
3308 | <const name="CDROM" value="19" />
|
---|
3309 | <const name="NetworkAdapter" value="20" />
|
---|
3310 | <const name="USBController" value="21" />
|
---|
3311 | <const name="SoundCard" value="22" />
|
---|
3312 |
|
---|
3313 | </enum>
|
---|
3314 |
|
---|
3315 | <enum
|
---|
3316 | name="VirtualSystemDescriptionValueType"
|
---|
3317 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
3318 | >
|
---|
3319 | <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
|
---|
3320 | type to fetch.</desc>
|
---|
3321 |
|
---|
3322 | <const name="Reference" value="1" />
|
---|
3323 | <const name="Original" value="2" />
|
---|
3324 | <const name="Auto" value="3" />
|
---|
3325 | <const name="ExtraConfig" value="4" />
|
---|
3326 |
|
---|
3327 | </enum>
|
---|
3328 |
|
---|
3329 | <interface
|
---|
3330 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
3331 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
3332 | wsmap="managed"
|
---|
3333 | >
|
---|
3334 |
|
---|
3335 | <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
|
---|
3336 | After <link to="IAppliance::interpret" /> has been called, that array contains
|
---|
3337 | information about how the virtual systems described in the OVF should best be imported into VirtualBox
|
---|
3338 | virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
|
---|
3339 | into VirtualBox.
|
---|
3340 | </desc>
|
---|
3341 |
|
---|
3342 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
3343 | <desc>Return the number of virtual system description entries.</desc>
|
---|
3344 | </attribute>
|
---|
3345 |
|
---|
3346 | <method name="getDescription">
|
---|
3347 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
3348 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
3349 |
|
---|
3350 | The list below identifies the value sets that are possible depending on the
|
---|
3351 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
|
---|
3352 | the array item with the same index in aOvfValues[] will contain the original value as contained
|
---|
3353 | in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
|
---|
3354 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
3355 | the aExtraConfigValues[] array item may also be used.
|
---|
3356 |
|
---|
3357 | <ul>
|
---|
3358 | <li>
|
---|
3359 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
3360 | corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
3361 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
3362 | item in aOvfValues[] will contain a numerical value that described the operating system in the OVF.
|
---|
3363 | </li>
|
---|
3364 | <li>
|
---|
3365 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
3366 | if none is present on import, then an automatic name will be created from the operating system
|
---|
3367 | type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
|
---|
3368 | from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
|
---|
3369 | <link to="IMachine" /> name that does not exist yet.
|
---|
3370 | </li>
|
---|
3371 | <li>
|
---|
3372 | "Description": an arbitrary description.
|
---|
3373 | </li>
|
---|
3374 | <li>
|
---|
3375 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
3376 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
3377 | </li>
|
---|
3378 | <li>
|
---|
3379 | Miscellaneous: reserved for future use.
|
---|
3380 | </li>
|
---|
3381 | <li>
|
---|
3382 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
3383 | </li>
|
---|
3384 | <li>
|
---|
3385 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
3386 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
3387 | type.
|
---|
3388 | </li>
|
---|
3389 | <li>
|
---|
3390 | "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
|
---|
3391 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3392 | The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
3393 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
3394 | </li>
|
---|
3395 | <li>
|
---|
3396 | "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
3397 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3398 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3399 | </li>
|
---|
3400 | <li>
|
---|
3401 | "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
3402 | The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
|
---|
3403 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3404 | </li>
|
---|
3405 | <li>
|
---|
3406 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
3407 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
3408 |
|
---|
3409 | The array item in aOvfValues[] will contain the file specification from the OVF file (without
|
---|
3410 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
3411 | item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
3412 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
3413 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
3414 | On import, the target image will also be registered with VirtualBox.
|
---|
3415 |
|
---|
3416 | The matching item in the aExtraConfigValues[] array must contain a string of the following
|
---|
3417 | format: "controller=<index>;channel=<c>"
|
---|
3418 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
3419 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
3420 | types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
|
---|
3421 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
3422 | this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
|
---|
3423 | secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
|
---|
3424 | SCSI conrollers, the channel can range from 0-29.
|
---|
3425 | </li>
|
---|
3426 | <li>
|
---|
3427 | "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
|
---|
3428 | for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
|
---|
3429 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
3430 | </li>
|
---|
3431 | <li>
|
---|
3432 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
3433 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
3434 | </li>
|
---|
3435 | <li>
|
---|
3436 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
3437 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
3438 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
3439 | may be different from the virtual soundcard expected by the appliance.
|
---|
3440 | </li>
|
---|
3441 | </ul>
|
---|
3442 |
|
---|
3443 | </desc>
|
---|
3444 |
|
---|
3445 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3446 | <desc></desc>
|
---|
3447 | </param>
|
---|
3448 |
|
---|
3449 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3450 | <desc></desc>
|
---|
3451 | </param>
|
---|
3452 |
|
---|
3453 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3454 | <desc></desc>
|
---|
3455 | </param>
|
---|
3456 |
|
---|
3457 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3458 | <desc></desc>
|
---|
3459 | </param>
|
---|
3460 |
|
---|
3461 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3462 | <desc></desc>
|
---|
3463 | </param>
|
---|
3464 |
|
---|
3465 | </method>
|
---|
3466 |
|
---|
3467 | <method name="getDescriptionByType">
|
---|
3468 | <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
|
---|
3469 | should be returned.</desc>
|
---|
3470 |
|
---|
3471 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3472 | <desc></desc>
|
---|
3473 | </param>
|
---|
3474 |
|
---|
3475 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3476 | <desc></desc>
|
---|
3477 | </param>
|
---|
3478 |
|
---|
3479 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3480 | <desc></desc>
|
---|
3481 | </param>
|
---|
3482 |
|
---|
3483 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3484 | <desc></desc>
|
---|
3485 | </param>
|
---|
3486 |
|
---|
3487 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3488 | <desc></desc>
|
---|
3489 | </param>
|
---|
3490 |
|
---|
3491 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3492 | <desc></desc>
|
---|
3493 | </param>
|
---|
3494 |
|
---|
3495 | </method>
|
---|
3496 |
|
---|
3497 | <method name="getValuesByType">
|
---|
3498 | <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
|
---|
3499 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
3500 | values.</desc>
|
---|
3501 |
|
---|
3502 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3503 | <desc></desc>
|
---|
3504 | </param>
|
---|
3505 |
|
---|
3506 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
3507 | <desc></desc>
|
---|
3508 | </param>
|
---|
3509 |
|
---|
3510 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
3511 | <desc></desc>
|
---|
3512 | </param>
|
---|
3513 |
|
---|
3514 | </method>
|
---|
3515 |
|
---|
3516 | <method name="setFinalValues">
|
---|
3517 | <desc>
|
---|
3518 | This method allows the appliance's user to change the configuration for the virtual
|
---|
3519 | system descriptions. For each array item returned from <link to="#getDescription" />,
|
---|
3520 | you must pass in one boolean value and one configuration value.
|
---|
3521 |
|
---|
3522 | Each item in the boolean array determines whether the particular configuration item
|
---|
3523 | should be enabled.
|
---|
3524 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
3525 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
3526 | and SoundCard.
|
---|
3527 |
|
---|
3528 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
3529 | as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
|
---|
3530 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
3531 | for valid configuration values for the individual array item types. If the
|
---|
3532 | corresponding item in the aEnabled array is @c false, the configuration value is ignored.
|
---|
3533 | </desc>
|
---|
3534 |
|
---|
3535 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
3536 | <desc></desc>
|
---|
3537 | </param>
|
---|
3538 |
|
---|
3539 | <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
|
---|
3540 | <desc></desc>
|
---|
3541 | </param>
|
---|
3542 |
|
---|
3543 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
3544 | <desc></desc>
|
---|
3545 | </param>
|
---|
3546 | </method>
|
---|
3547 |
|
---|
3548 | <method name="addDescription">
|
---|
3549 | <desc>
|
---|
3550 | This method adds an additional description entry to the stack of already
|
---|
3551 | available descriptions for this virtual system. This is handy for writing
|
---|
3552 | values which aren't directly supported by VirtualBox. One example would
|
---|
3553 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
3554 | </desc>
|
---|
3555 |
|
---|
3556 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3557 | <desc></desc>
|
---|
3558 | </param>
|
---|
3559 |
|
---|
3560 | <param name="aVBoxValue" type="wstring" dir="in">
|
---|
3561 | <desc></desc>
|
---|
3562 | </param>
|
---|
3563 |
|
---|
3564 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
3565 | <desc></desc>
|
---|
3566 | </param>
|
---|
3567 | </method>
|
---|
3568 | </interface>
|
---|
3569 |
|
---|
3570 |
|
---|
3571 | <!--
|
---|
3572 | // IMachine
|
---|
3573 | /////////////////////////////////////////////////////////////////////////
|
---|
3574 | -->
|
---|
3575 |
|
---|
3576 | <interface
|
---|
3577 | name="IInternalMachineControl" extends="$unknown"
|
---|
3578 | uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
|
---|
3579 | internal="yes"
|
---|
3580 | wsmap="suppress"
|
---|
3581 | >
|
---|
3582 | <method name="setRemoveSavedState">
|
---|
3583 | <desc>
|
---|
3584 | Updates the flag whether saved state is removed on a machine state
|
---|
3585 | change from Saved to PoweredOff.
|
---|
3586 | </desc>
|
---|
3587 | <param name="aRemove" type="boolean" dir="in"/>
|
---|
3588 | </method>
|
---|
3589 |
|
---|
3590 | <method name="updateState">
|
---|
3591 | <desc>
|
---|
3592 | Updates the VM state.
|
---|
3593 | <note>
|
---|
3594 | This operation will also update the settings file with
|
---|
3595 | the correct information about the saved state file
|
---|
3596 | and delete this file from disk when appropriate.
|
---|
3597 | </note>
|
---|
3598 | </desc>
|
---|
3599 | <param name="state" type="MachineState" dir="in"/>
|
---|
3600 | </method>
|
---|
3601 |
|
---|
3602 | <method name="getIPCId">
|
---|
3603 | <param name="id" type="wstring" dir="return"/>
|
---|
3604 | </method>
|
---|
3605 |
|
---|
3606 | <method name="runUSBDeviceFilters">
|
---|
3607 | <desc>
|
---|
3608 | Asks the server to run USB devices filters of the associated
|
---|
3609 | machine against the given USB device and tell if there is
|
---|
3610 | a match.
|
---|
3611 | <note>
|
---|
3612 | Intended to be used only for remote USB devices. Local
|
---|
3613 | ones don't require to call this method (this is done
|
---|
3614 | implicitly by the Host and USBProxyService).
|
---|
3615 | </note>
|
---|
3616 | </desc>
|
---|
3617 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3618 | <param name="matched" type="boolean" dir="out"/>
|
---|
3619 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3620 | </method>
|
---|
3621 |
|
---|
3622 | <method name="captureUSBDevice">
|
---|
3623 | <desc>
|
---|
3624 | Requests a capture of the given host USB device.
|
---|
3625 | When the request is completed, the VM process will
|
---|
3626 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3627 | notification.
|
---|
3628 | </desc>
|
---|
3629 | <param name="id" type="wstring" dir="in"/>
|
---|
3630 | </method>
|
---|
3631 |
|
---|
3632 | <method name="detachUSBDevice">
|
---|
3633 | <desc>
|
---|
3634 | Notification that a VM is going to detach (@a done = @c false) or has
|
---|
3635 | already detached (@a done = @c true) the given USB device.
|
---|
3636 | When the @a done = @c true request is completed, the VM process will
|
---|
3637 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3638 | notification.
|
---|
3639 | <note>
|
---|
3640 | In the @a done = @c true case, the server must run its own filters
|
---|
3641 | and filters of all VMs but this one on the detached device
|
---|
3642 | as if it were just attached to the host computer.
|
---|
3643 | </note>
|
---|
3644 | </desc>
|
---|
3645 | <param name="id" type="wstring" dir="in"/>
|
---|
3646 | <param name="done" type="boolean" dir="in"/>
|
---|
3647 | </method>
|
---|
3648 |
|
---|
3649 | <method name="autoCaptureUSBDevices">
|
---|
3650 | <desc>
|
---|
3651 | Requests a capture all matching USB devices attached to the host.
|
---|
3652 | When the request is completed, the VM process will
|
---|
3653 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3654 | notification per every captured device.
|
---|
3655 | </desc>
|
---|
3656 | </method>
|
---|
3657 |
|
---|
3658 | <method name="detachAllUSBDevices">
|
---|
3659 | <desc>
|
---|
3660 | Notification that a VM that is being powered down. The done
|
---|
3661 | parameter indicates whether which stage of the power down
|
---|
3662 | we're at. When @a done = @c false the VM is announcing its
|
---|
3663 | intentions, while when @a done = @c true the VM is reporting
|
---|
3664 | what it has done.
|
---|
3665 | <note>
|
---|
3666 | In the @a done = @c true case, the server must run its own filters
|
---|
3667 | and filters of all VMs but this one on all detach devices as
|
---|
3668 | if they were just attached to the host computer.
|
---|
3669 | </note>
|
---|
3670 | </desc>
|
---|
3671 | <param name="done" type="boolean" dir="in"/>
|
---|
3672 | </method>
|
---|
3673 |
|
---|
3674 | <method name="onSessionEnd">
|
---|
3675 | <desc>
|
---|
3676 | Triggered by the given session object when the session is about
|
---|
3677 | to close normally.
|
---|
3678 | </desc>
|
---|
3679 | <param name="session" type="ISession" dir="in">
|
---|
3680 | <desc>Session that is being closed</desc>
|
---|
3681 | </param>
|
---|
3682 | <param name="progress" type="IProgress" dir="return">
|
---|
3683 | <desc>
|
---|
3684 | Used to wait until the corresponding machine is actually
|
---|
3685 | dissociated from the given session on the server.
|
---|
3686 | Returned only when this session is a direct one.
|
---|
3687 | </desc>
|
---|
3688 | </param>
|
---|
3689 | </method>
|
---|
3690 |
|
---|
3691 | <method name="beginSavingState">
|
---|
3692 | <desc>
|
---|
3693 | Called by the VM process to inform the server it wants to
|
---|
3694 | save the current state and stop the VM execution.
|
---|
3695 | </desc>
|
---|
3696 | <param name="progress" type="IProgress" dir="in">
|
---|
3697 | <desc>
|
---|
3698 | Progress object created by the VM process to wait until
|
---|
3699 | the state is saved.
|
---|
3700 | </desc>
|
---|
3701 | </param>
|
---|
3702 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3703 | <desc>
|
---|
3704 | File path the VM process must save the execution state to.
|
---|
3705 | </desc>
|
---|
3706 | </param>
|
---|
3707 | </method>
|
---|
3708 |
|
---|
3709 | <method name="endSavingState">
|
---|
3710 | <desc>
|
---|
3711 | Called by the VM process to inform the server that saving
|
---|
3712 | the state previously requested by #beginSavingState is either
|
---|
3713 | successfully finished or there was a failure.
|
---|
3714 |
|
---|
3715 | <result name="VBOX_E_FILE_ERROR">
|
---|
3716 | Settings file not accessible.
|
---|
3717 | </result>
|
---|
3718 | <result name="VBOX_E_XML_ERROR">
|
---|
3719 | Could not parse the settings file.
|
---|
3720 | </result>
|
---|
3721 |
|
---|
3722 | </desc>
|
---|
3723 |
|
---|
3724 | <param name="success" type="boolean" dir="in">
|
---|
3725 | <desc>@c true to indicate success and @c false otherwise.
|
---|
3726 | </desc>
|
---|
3727 | </param>
|
---|
3728 | </method>
|
---|
3729 |
|
---|
3730 | <method name="adoptSavedState">
|
---|
3731 | <desc>
|
---|
3732 | Gets called by IConsole::adoptSavedState.
|
---|
3733 | <result name="VBOX_E_FILE_ERROR">
|
---|
3734 | Invalid saved state file path.
|
---|
3735 | </result>
|
---|
3736 | </desc>
|
---|
3737 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3738 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3739 | </param>
|
---|
3740 | </method>
|
---|
3741 |
|
---|
3742 | <method name="beginTakingSnapshot">
|
---|
3743 | <desc>
|
---|
3744 | Called by the VM process to inform the server it wants to
|
---|
3745 | take a snapshot.
|
---|
3746 |
|
---|
3747 | <result name="VBOX_E_FILE_ERROR">
|
---|
3748 | Settings file not accessible.
|
---|
3749 | </result>
|
---|
3750 | <result name="VBOX_E_XML_ERROR">
|
---|
3751 | Could not parse the settings file.
|
---|
3752 | </result>
|
---|
3753 | </desc>
|
---|
3754 | <param name="initiator" type="IConsole" dir="in">
|
---|
3755 | <desc>The console object that initiated this call.</desc>
|
---|
3756 | </param>
|
---|
3757 | <param name="name" type="wstring" dir="in">
|
---|
3758 | <desc>Snapshot name.</desc>
|
---|
3759 | </param>
|
---|
3760 | <param name="description" type="wstring" dir="in">
|
---|
3761 | <desc>Snapshot description.</desc>
|
---|
3762 | </param>
|
---|
3763 | <param name="progress" type="IProgress" dir="in">
|
---|
3764 | <desc>
|
---|
3765 | Progress object created by the VM process to wait until
|
---|
3766 | the state is saved (only for online snapshots).
|
---|
3767 | </desc>
|
---|
3768 | </param>
|
---|
3769 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3770 | <desc>
|
---|
3771 | File path the VM process must save the execution state to.
|
---|
3772 | </desc>
|
---|
3773 | </param>
|
---|
3774 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
3775 | <desc>
|
---|
3776 | Progress object created by the server process to wait until
|
---|
3777 | the snapshot is taken (VDI diff creation, etc.).
|
---|
3778 | </desc>
|
---|
3779 | </param>
|
---|
3780 | </method>
|
---|
3781 |
|
---|
3782 | <method name="endTakingSnapshot">
|
---|
3783 | <desc>
|
---|
3784 | Called by the VM process to inform the server that the snapshot
|
---|
3785 | previously requested by #beginTakingSnapshot is either
|
---|
3786 | successfully taken or there was a failure.
|
---|
3787 | </desc>
|
---|
3788 |
|
---|
3789 | <param name="success" type="boolean" dir="in">
|
---|
3790 | <desc>@c true to indicate success and @c false otherwise</desc>
|
---|
3791 | </param>
|
---|
3792 | </method>
|
---|
3793 |
|
---|
3794 | <method name="discardSnapshot">
|
---|
3795 | <desc>
|
---|
3796 | Gets called by IConsole::discardSnapshot.
|
---|
3797 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3798 | Snapshot has more than one child snapshot.
|
---|
3799 | </result>
|
---|
3800 | </desc>
|
---|
3801 | <param name="initiator" type="IConsole" dir="in">
|
---|
3802 | <desc>The console object that initiated this call.</desc>
|
---|
3803 | </param>
|
---|
3804 | <param name="id" type="wstring" dir="in">
|
---|
3805 | <desc>UUID of the snapshot to discard.</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="discardCurrentState">
|
---|
3816 | <desc>
|
---|
3817 | Gets called by IConsole::discardCurrentState.
|
---|
3818 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3819 | Virtual machine does not have any snapshot.
|
---|
3820 | </result>
|
---|
3821 | </desc>
|
---|
3822 | <param name="initiator" type="IConsole" dir="in">
|
---|
3823 | <desc>The console object that initiated this call.</desc>
|
---|
3824 | </param>
|
---|
3825 | <param name="machineState" type="MachineState" dir="out">
|
---|
3826 | <desc>New machine state after this operation is started.</desc>
|
---|
3827 | </param>
|
---|
3828 | <param name="progress" type="IProgress" dir="return">
|
---|
3829 | <desc>Progress object to track the operation completion.</desc>
|
---|
3830 | </param>
|
---|
3831 | </method>
|
---|
3832 |
|
---|
3833 | <method name="discardCurrentSnapshotAndState">
|
---|
3834 | <desc>
|
---|
3835 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
3836 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3837 | Virtual machine does not have any snapshot.
|
---|
3838 | </result>
|
---|
3839 | </desc>
|
---|
3840 | <param name="initiator" type="IConsole" dir="in">
|
---|
3841 | <desc>The console object that initiated this call.</desc>
|
---|
3842 | </param>
|
---|
3843 | <param name="machineState" type="MachineState" dir="out">
|
---|
3844 | <desc>New machine state after this operation is started.</desc>
|
---|
3845 | </param>
|
---|
3846 | <param name="progress" type="IProgress" dir="return">
|
---|
3847 | <desc>Progress object to track the operation completion.</desc>
|
---|
3848 | </param>
|
---|
3849 | </method>
|
---|
3850 |
|
---|
3851 | <method name="pullGuestProperties">
|
---|
3852 | <desc>
|
---|
3853 | Get the list of the guest properties matching a set of patterns along
|
---|
3854 | with their values, time stamps and flags and give responsibility for
|
---|
3855 | managing properties to the console.
|
---|
3856 | </desc>
|
---|
3857 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3858 | <desc>
|
---|
3859 | The names of the properties returned.
|
---|
3860 | </desc>
|
---|
3861 | </param>
|
---|
3862 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
3863 | <desc>
|
---|
3864 | The values of the properties returned. The array entries match the
|
---|
3865 | corresponding entries in the @a name array.
|
---|
3866 | </desc>
|
---|
3867 | </param>
|
---|
3868 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
3869 | <desc>
|
---|
3870 | The time stamps of the properties returned. The array entries match
|
---|
3871 | the corresponding entries in the @a name array.
|
---|
3872 | </desc>
|
---|
3873 | </param>
|
---|
3874 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
3875 | <desc>
|
---|
3876 | The flags of the properties returned. The array entries match the
|
---|
3877 | corresponding entries in the @a name array.
|
---|
3878 | </desc>
|
---|
3879 | </param>
|
---|
3880 | </method>
|
---|
3881 |
|
---|
3882 | <method name="pushGuestProperties">
|
---|
3883 | <desc>
|
---|
3884 | Set the list of the guest properties matching a set of patterns along
|
---|
3885 | with their values, time stamps and flags and return responsibility for
|
---|
3886 | managing properties to IMachine.
|
---|
3887 | </desc>
|
---|
3888 | <param name="name" type="wstring" dir="in" safearray="yes">
|
---|
3889 | <desc>
|
---|
3890 | The names of the properties.
|
---|
3891 | </desc>
|
---|
3892 | </param>
|
---|
3893 | <param name="value" type="wstring" dir="in" safearray="yes">
|
---|
3894 | <desc>
|
---|
3895 | The values of the properties. The array entries match the
|
---|
3896 | corresponding entries in the @a name array.
|
---|
3897 | </desc>
|
---|
3898 | </param>
|
---|
3899 | <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
|
---|
3900 | <desc>
|
---|
3901 | The time stamps of the properties. The array entries match
|
---|
3902 | the corresponding entries in the @a name array.
|
---|
3903 | </desc>
|
---|
3904 | </param>
|
---|
3905 | <param name="flags" type="wstring" dir="in" safearray="yes">
|
---|
3906 | <desc>
|
---|
3907 | The flags of the properties. The array entries match the
|
---|
3908 | corresponding entries in the @a name array.
|
---|
3909 | </desc>
|
---|
3910 | </param>
|
---|
3911 | </method>
|
---|
3912 | <method name="pushGuestProperty">
|
---|
3913 | <desc>
|
---|
3914 | Update a single guest property in IMachine.
|
---|
3915 | </desc>
|
---|
3916 | <param name="name" type="wstring" dir="in">
|
---|
3917 | <desc>
|
---|
3918 | The name of the property to be updated.
|
---|
3919 | </desc>
|
---|
3920 | </param>
|
---|
3921 | <param name="value" type="wstring" dir="in">
|
---|
3922 | <desc>
|
---|
3923 | The value of the property.
|
---|
3924 | </desc>
|
---|
3925 | </param>
|
---|
3926 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
3927 | <desc>
|
---|
3928 | The timestamp of the property.
|
---|
3929 | </desc>
|
---|
3930 | </param>
|
---|
3931 | <param name="flags" type="wstring" dir="in">
|
---|
3932 | <desc>
|
---|
3933 | The flags of the property.
|
---|
3934 | </desc>
|
---|
3935 | </param>
|
---|
3936 | </method>
|
---|
3937 |
|
---|
3938 | <method name="lockMedia">
|
---|
3939 | <desc>
|
---|
3940 | Locks all media attached to the machine for writing and parents of
|
---|
3941 | attahced different hard disks (if any) for reading. This operation is
|
---|
3942 | atomic so that if it fails no media is actually locked.
|
---|
3943 |
|
---|
3944 | This method is intended to be called when the machine is in Starting or
|
---|
3945 | Restoring state. The locked media will be automatically unlocked when
|
---|
3946 | the machine is powered off or crashed.
|
---|
3947 | </desc>
|
---|
3948 | </method>
|
---|
3949 | </interface>
|
---|
3950 |
|
---|
3951 | <interface
|
---|
3952 | name="IBIOSSettings" extends="$unknown"
|
---|
3953 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
3954 | wsmap="managed"
|
---|
3955 | >
|
---|
3956 | <desc>
|
---|
3957 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
3958 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
3959 | </desc>
|
---|
3960 | <attribute name="logoFadeIn" type="boolean">
|
---|
3961 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
3962 | </attribute>
|
---|
3963 |
|
---|
3964 | <attribute name="logoFadeOut" type="boolean">
|
---|
3965 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
3966 | </attribute>
|
---|
3967 |
|
---|
3968 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
3969 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
3970 | </attribute>
|
---|
3971 |
|
---|
3972 | <attribute name="logoImagePath" type="wstring">
|
---|
3973 | <desc>Local file system path for external BIOS image.</desc>
|
---|
3974 | </attribute>
|
---|
3975 |
|
---|
3976 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
3977 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
3978 | </attribute>
|
---|
3979 |
|
---|
3980 | <attribute name="ACPIEnabled" type="boolean">
|
---|
3981 | <desc>ACPI support flag.</desc>
|
---|
3982 | </attribute>
|
---|
3983 |
|
---|
3984 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
3985 | <desc>
|
---|
3986 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
3987 | and support IRQs above 15.
|
---|
3988 | </desc>
|
---|
3989 | </attribute>
|
---|
3990 |
|
---|
3991 | <attribute name="timeOffset" type="long long">
|
---|
3992 | <desc>
|
---|
3993 | Offset in milliseconds from the host system time. This allows for
|
---|
3994 | guests running with a different system date/time than the host.
|
---|
3995 | It is equivalent to setting the system date/time in the BIOS except
|
---|
3996 | it is not an absolute value but a relative one. Guest Additions
|
---|
3997 | time synchronization honors this offset.
|
---|
3998 | </desc>
|
---|
3999 | </attribute>
|
---|
4000 |
|
---|
4001 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
4002 | <desc>
|
---|
4003 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
4004 | PXE trace information to the release log.
|
---|
4005 | </desc>
|
---|
4006 | </attribute>
|
---|
4007 |
|
---|
4008 | </interface>
|
---|
4009 |
|
---|
4010 | <interface
|
---|
4011 | name="IMachine" extends="$unknown"
|
---|
4012 | uuid="540dcfda-3df2-49c6-88fa-033a28c2ff85"
|
---|
4013 | wsmap="managed"
|
---|
4014 | >
|
---|
4015 | <desc>
|
---|
4016 | The IMachine interface represents a virtual machine, or guest, created
|
---|
4017 | in VirtualBox.
|
---|
4018 |
|
---|
4019 | This interface is used in two contexts. First of all, a collection of
|
---|
4020 | objects implementing this interface is stored in the
|
---|
4021 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
4022 | machines that are currently registered with this VirtualBox
|
---|
4023 | installation. Also, once a session has been opened for the given virtual
|
---|
4024 | machine (e.g. the virtual machine is running), the machine object
|
---|
4025 | associated with the open session can be queried from the session object;
|
---|
4026 | see <link to="ISession"/> for details.
|
---|
4027 |
|
---|
4028 | The main role of this interface is to expose the settings of the virtual
|
---|
4029 | machine and provide methods to change various aspects of the virtual
|
---|
4030 | machine's configuration. For machine objects stored in the
|
---|
4031 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
4032 | read-only unless explicitly stated otherwise in individual attribute
|
---|
4033 | and method descriptions. In order to change a machine setting, a session
|
---|
4034 | for this machine must be opened using one of
|
---|
4035 | <link to="IVirtualBox::openSession"/>,
|
---|
4036 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4037 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
4038 | session has been successfully opened, a mutable machine object needs to
|
---|
4039 | be queried from the session object and then the desired settings changes
|
---|
4040 | can be applied to the returned object using IMachine attributes and
|
---|
4041 | methods. See the ISession interface description for more information
|
---|
4042 | about sessions.
|
---|
4043 |
|
---|
4044 | Note that the IMachine interface does not provide methods to control
|
---|
4045 | virtual machine execution (such as start the machine, or power it
|
---|
4046 | down) -- these methods are grouped in a separate IConsole
|
---|
4047 | interface. Refer to the IConsole interface description to get more
|
---|
4048 | information about this topic.
|
---|
4049 |
|
---|
4050 | <see>ISession, IConsole</see>
|
---|
4051 | </desc>
|
---|
4052 |
|
---|
4053 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
4054 | <desc>Associated parent object.</desc>
|
---|
4055 | </attribute>
|
---|
4056 |
|
---|
4057 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
4058 | <desc>
|
---|
4059 | Whether this virtual machine is currently accessible or not.
|
---|
4060 |
|
---|
4061 | The machine is considered to be inaccessible when:
|
---|
4062 | <ul>
|
---|
4063 | <li>It is a registered virtual machine, and
|
---|
4064 | </li>
|
---|
4065 | <li>Its settings file is inaccessible (for example, it is
|
---|
4066 | located on a network share that is not accessible during
|
---|
4067 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
4068 | the settings file can be read but is invalid).
|
---|
4069 | </li>
|
---|
4070 | </ul>
|
---|
4071 |
|
---|
4072 | Otherwise, the value of this property is always @c true.
|
---|
4073 |
|
---|
4074 | Every time this property is read, the accessibility state of
|
---|
4075 | this machine is re-evaluated. If the returned value is @c false,
|
---|
4076 | the <link to="#accessError"/> property may be used to get the
|
---|
4077 | detailed error information describing the reason of
|
---|
4078 | inaccessibility.
|
---|
4079 |
|
---|
4080 | When the machine is inaccessible, only the following properties
|
---|
4081 | can be used on it:
|
---|
4082 | <ul>
|
---|
4083 | <li><link to="#parent"/></li>
|
---|
4084 | <li><link to="#id"/></li>
|
---|
4085 | <li><link to="#settingsFilePath"/></li>
|
---|
4086 | <li><link to="#accessible"/></li>
|
---|
4087 | <li><link to="#accessError"/></li>
|
---|
4088 | </ul>
|
---|
4089 |
|
---|
4090 | An attempt to access any other property or method will return
|
---|
4091 | an error.
|
---|
4092 |
|
---|
4093 | The only possible action you can perform on an inaccessible
|
---|
4094 | machine is to unregister it using the
|
---|
4095 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
4096 | for the accessibility state once more by querying this
|
---|
4097 | property).
|
---|
4098 |
|
---|
4099 | <note>
|
---|
4100 | In the current implementation, once this property returns
|
---|
4101 | @c true, the machine will never become inaccessible
|
---|
4102 | later, even if its settings file cannot be successfully
|
---|
4103 | read/written any more (at least, until the VirtualBox
|
---|
4104 | server is restarted). This limitation may be removed in
|
---|
4105 | future releases.
|
---|
4106 | </note>
|
---|
4107 | </desc>
|
---|
4108 | </attribute>
|
---|
4109 |
|
---|
4110 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4111 | <desc>
|
---|
4112 | Error information describing the reason of machine
|
---|
4113 | inaccessibility.
|
---|
4114 |
|
---|
4115 | Reading this property is only valid after the last call to
|
---|
4116 | <link to="#accessible"/> returned @c false (i.e. the
|
---|
4117 | machine is currently unaccessible). Otherwise, a @c null
|
---|
4118 | IVirtualBoxErrorInfo object will be returned.
|
---|
4119 | </desc>
|
---|
4120 | </attribute>
|
---|
4121 |
|
---|
4122 | <attribute name="name" type="wstring">
|
---|
4123 | <desc>
|
---|
4124 | Name of the virtual machine.
|
---|
4125 |
|
---|
4126 | Besides being used for human-readable identification purposes
|
---|
4127 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
4128 | as a name of the machine's settings file and as a name of the
|
---|
4129 | subdirectory this settings file resides in. Thus, every time you
|
---|
4130 | change the value of this property, the settings file will be
|
---|
4131 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
4132 | change. The containing subdirectory will be also renamed, but
|
---|
4133 | only if it has exactly the same name as the settings file
|
---|
4134 | itself prior to changing this property (for backward compatibility
|
---|
4135 | with previous API releases). The above implies the following
|
---|
4136 | limitations:
|
---|
4137 | <ul>
|
---|
4138 | <li>The machine name cannot be empty.</li>
|
---|
4139 | <li>The machine name can contain only characters that are valid
|
---|
4140 | file name characters according to the rules of the file
|
---|
4141 | system used to store VirtualBox configuration.</li>
|
---|
4142 | <li>You cannot have two or more machines with the same name
|
---|
4143 | if they use the same subdirectory for storing the machine
|
---|
4144 | settings files.</li>
|
---|
4145 | <li>You cannot change the name of the machine if it is running,
|
---|
4146 | or if any file in the directory containing the settings file
|
---|
4147 | is being used by another running machine or by any other
|
---|
4148 | process in the host operating system at a time when
|
---|
4149 | <link to="#saveSettings"/> is called.
|
---|
4150 | </li>
|
---|
4151 | </ul>
|
---|
4152 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
4153 | will return an appropriate error message explaining the exact
|
---|
4154 | reason and the changes you made to this machine will not be
|
---|
4155 | saved.
|
---|
4156 | <note>
|
---|
4157 | For "legacy" machines created using the
|
---|
4158 | <link to="IVirtualBox::createLegacyMachine"/> call,
|
---|
4159 | the above naming limitations do not apply because the
|
---|
4160 | machine name does not affect the settings file name.
|
---|
4161 | The settings file name remains the same as it was specified
|
---|
4162 | during machine creation and never changes.
|
---|
4163 | </note>
|
---|
4164 | </desc>
|
---|
4165 | </attribute>
|
---|
4166 |
|
---|
4167 | <attribute name="description" type="wstring">
|
---|
4168 | <desc>
|
---|
4169 | Description of the virtual machine.
|
---|
4170 |
|
---|
4171 | The description attribute can contain any text and is
|
---|
4172 | typically used to describe the hardware and software
|
---|
4173 | configuration of the virtual machine in detail (i.e. network
|
---|
4174 | settings, versions of the installed software and so on).
|
---|
4175 | </desc>
|
---|
4176 | </attribute>
|
---|
4177 |
|
---|
4178 | <attribute name="id" type="wstring" readonly="yes">
|
---|
4179 | <desc>UUID of the virtual machine.</desc>
|
---|
4180 | </attribute>
|
---|
4181 |
|
---|
4182 | <attribute name="OSTypeId" type="wstring">
|
---|
4183 | <desc>
|
---|
4184 | User-defined identifier of the Guest OS type.
|
---|
4185 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4186 | an IGuestOSType object representing details about the given
|
---|
4187 | Guest OS type.
|
---|
4188 | <note>
|
---|
4189 | This value may differ from the value returned by
|
---|
4190 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
4191 | installed to the guest OS.
|
---|
4192 | </note>
|
---|
4193 | </desc>
|
---|
4194 | </attribute>
|
---|
4195 |
|
---|
4196 | <attribute name="HardwareVersion" type="wstring">
|
---|
4197 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
4198 | </attribute>
|
---|
4199 |
|
---|
4200 | <attribute name="CPUCount" type="unsigned long">
|
---|
4201 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
4202 | </attribute>
|
---|
4203 |
|
---|
4204 | <attribute name="memorySize" type="unsigned long">
|
---|
4205 | <desc>System memory size in megabytes.</desc>
|
---|
4206 | </attribute>
|
---|
4207 |
|
---|
4208 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4209 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
4210 | </attribute>
|
---|
4211 |
|
---|
4212 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4213 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
4214 | </attribute>
|
---|
4215 |
|
---|
4216 | <attribute name="VRAMSize" type="unsigned long">
|
---|
4217 | <desc>Video memory size in megabytes.</desc>
|
---|
4218 | </attribute>
|
---|
4219 |
|
---|
4220 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
4221 | <desc>
|
---|
4222 | This setting determines whether VirtualBox allows guests to make use
|
---|
4223 | of the 3D graphics support available on the host. Currently limited
|
---|
4224 | to OpenGL only. </desc>
|
---|
4225 | </attribute>
|
---|
4226 |
|
---|
4227 | <attribute name="monitorCount" type="unsigned long">
|
---|
4228 | <desc>
|
---|
4229 | Number of virtual monitors.
|
---|
4230 | <note>
|
---|
4231 | Only effective on Windows XP and later guests with
|
---|
4232 | Guest Additions installed.
|
---|
4233 | </note>
|
---|
4234 | </desc>
|
---|
4235 | </attribute>
|
---|
4236 |
|
---|
4237 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
4238 | <desc>Object containing all BIOS settings.</desc>
|
---|
4239 | </attribute>
|
---|
4240 |
|
---|
4241 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
4242 | <desc>
|
---|
4243 | This setting determines whether VirtualBox will try to make use of
|
---|
4244 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
4245 | and AMD-V. Note that in case such extensions are not available,
|
---|
4246 | they will not be used.
|
---|
4247 | </desc>
|
---|
4248 | </attribute>
|
---|
4249 |
|
---|
4250 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
|
---|
4251 | <desc>
|
---|
4252 | This setting determines whether VirtualBox will try to make use of
|
---|
4253 | the nested paging extension of Intel VT-x and AMD-V. Note that in case
|
---|
4254 | such extensions are not available, they will not be used.
|
---|
4255 | </desc>
|
---|
4256 | </attribute>
|
---|
4257 |
|
---|
4258 | <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
|
---|
4259 | <desc>
|
---|
4260 | This setting determines whether VirtualBox will try to make use of
|
---|
4261 | the VPID extension of Intel VT-x. Note that in case such extensions are
|
---|
4262 | not available, they will not be used.
|
---|
4263 | </desc>
|
---|
4264 | </attribute>
|
---|
4265 |
|
---|
4266 | <attribute name="PAEEnabled" type="boolean" default="false">
|
---|
4267 | <desc>
|
---|
4268 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
4269 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
4270 | is not available, it will not be reported.
|
---|
4271 | </desc>
|
---|
4272 | </attribute>
|
---|
4273 |
|
---|
4274 | <attribute name="snapshotFolder" type="wstring">
|
---|
4275 | <desc>
|
---|
4276 | Full path to the directory used to store snapshot data
|
---|
4277 | (differencing hard disks and saved state files) of this machine.
|
---|
4278 |
|
---|
4279 | The initial value of this property is
|
---|
4280 | <tt><</tt><link to="#settingsFilePath">
|
---|
4281 | path_to_settings_file</link><tt>>/<</tt>
|
---|
4282 | <link to="#id">machine_uuid</link>
|
---|
4283 | <tt>></tt>.
|
---|
4284 |
|
---|
4285 | Currently, it is an error to try to change this property on
|
---|
4286 | a machine that has snapshots (because this would require to
|
---|
4287 | move possibly large files to a different location).
|
---|
4288 | A separate method will be available for this purpose later.
|
---|
4289 |
|
---|
4290 | <note>
|
---|
4291 | Setting this property to @c null or to an empty string will restore
|
---|
4292 | the initial value.
|
---|
4293 | </note>
|
---|
4294 | <note>
|
---|
4295 | When setting this property, the specified path can be
|
---|
4296 | absolute (full path) or relative to the directory where the
|
---|
4297 | <link to="#settingsFilePath">machine settings file</link>
|
---|
4298 | is located. When reading this property, a full path is
|
---|
4299 | always returned.
|
---|
4300 | </note>
|
---|
4301 | <note>
|
---|
4302 | The specified path may not exist, it will be created
|
---|
4303 | when necessary.
|
---|
4304 | </note>
|
---|
4305 | </desc>
|
---|
4306 | </attribute>
|
---|
4307 |
|
---|
4308 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
4309 | <desc>VRDP server object.</desc>
|
---|
4310 | </attribute>
|
---|
4311 |
|
---|
4312 | <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
|
---|
4313 | <desc>Array of hard disks attached to this machine.</desc>
|
---|
4314 | </attribute>
|
---|
4315 |
|
---|
4316 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
4317 | <desc>Associated DVD drive object.</desc>
|
---|
4318 | </attribute>
|
---|
4319 |
|
---|
4320 | <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
4321 | <desc>Associated floppy drive object.</desc>
|
---|
4322 | </attribute>
|
---|
4323 |
|
---|
4324 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
4325 | <desc>
|
---|
4326 | Associated USB controller object.
|
---|
4327 |
|
---|
4328 | <note>
|
---|
4329 | If USB functionality is not available in the given edition of
|
---|
4330 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4331 | </note>
|
---|
4332 | </desc>
|
---|
4333 | </attribute>
|
---|
4334 |
|
---|
4335 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
4336 | <desc>Associated audio adapter, always present.</desc>
|
---|
4337 | </attribute>
|
---|
4338 |
|
---|
4339 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
4340 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
4341 | </attribute>
|
---|
4342 |
|
---|
4343 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
4344 | <desc>
|
---|
4345 | Full name of the file containing machine settings data.
|
---|
4346 | </desc>
|
---|
4347 | </attribute>
|
---|
4348 |
|
---|
4349 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
4350 | <desc>
|
---|
4351 | Current version of the format of the settings file of this machine
|
---|
4352 | (<link to="IMachine::settingsFilePath"/>).
|
---|
4353 |
|
---|
4354 | The version string has the following format:
|
---|
4355 | <pre>
|
---|
4356 | x.y-platform
|
---|
4357 | </pre>
|
---|
4358 | where @c x and @c y are the major and the minor format
|
---|
4359 | versions, and @c platform is the platform identifier.
|
---|
4360 |
|
---|
4361 | The current version usually matches the value of the
|
---|
4362 | <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
|
---|
4363 | settings file was created by an older version of VirtualBox and there
|
---|
4364 | was a change of the settings file format since then.
|
---|
4365 |
|
---|
4366 | Note that VirtualBox automatically converts settings files from older
|
---|
4367 | versions to the most recent version when reading them (usually at
|
---|
4368 | VirtualBox startup) but it doesn't save the changes back until
|
---|
4369 | you call a method that implicitly saves settings (such as
|
---|
4370 | <link to="#setExtraData"/>) or call <link to="#saveSettings"/>
|
---|
4371 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
4372 | value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
|
---|
4373 | means that the settings file was converted but the result of the
|
---|
4374 | conversion is not yet saved to disk.
|
---|
4375 |
|
---|
4376 | The above feature may be used by interactive front-ends to inform users
|
---|
4377 | about the settings file format change and offer them to explicitly save
|
---|
4378 | all converted settings files (the global and VM-specific ones),
|
---|
4379 | optionally create backup copies of the old settings files before saving,
|
---|
4380 | etc.
|
---|
4381 |
|
---|
4382 | <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
4383 | </desc>
|
---|
4384 | </attribute>
|
---|
4385 |
|
---|
4386 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
4387 | <desc>
|
---|
4388 | Whether the settings of this machine have been modified
|
---|
4389 | (but neither yet saved nor discarded).
|
---|
4390 | <note>
|
---|
4391 | Reading this property is only valid on instances returned
|
---|
4392 | by <link to="ISession::machine"/> and on new machines
|
---|
4393 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
4394 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
4395 | yet registered, or on unregistered machines after calling
|
---|
4396 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
4397 | cases, the settings can never be modified.
|
---|
4398 | </note>
|
---|
4399 | <note>
|
---|
4400 | For newly created unregistered machines, the value of this
|
---|
4401 | property is always @c true until <link to="#saveSettings"/>
|
---|
4402 | is called (no matter if any machine settings have been
|
---|
4403 | changed after the creation or not). For opened machines
|
---|
4404 | the value is set to @c false (and then follows to normal rules).
|
---|
4405 | </note>
|
---|
4406 | </desc>
|
---|
4407 | </attribute>
|
---|
4408 |
|
---|
4409 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
4410 | <desc>Current session state for this machine.</desc>
|
---|
4411 | </attribute>
|
---|
4412 |
|
---|
4413 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
4414 | <desc>
|
---|
4415 | Type of the session. If <link to="#sessionState"/> is
|
---|
4416 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
4417 | same value as passed to the
|
---|
4418 | <link to="IVirtualBox::openRemoteSession"/> method in the
|
---|
4419 | @a type parameter. If the session was opened directly using
|
---|
4420 | <link to="IVirtualBox::openSession"/>, or if
|
---|
4421 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
4422 | attribute is an empty string.
|
---|
4423 | </desc>
|
---|
4424 | </attribute>
|
---|
4425 |
|
---|
4426 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
4427 | <desc>
|
---|
4428 | Identifier of the session process. This attribute contains the
|
---|
4429 | platform-dependent identifier of the process that has opened a
|
---|
4430 | direct session for this machine using the
|
---|
4431 | <link to="IVirtualBox::openSession"/> call. The returned value
|
---|
4432 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
4433 | SessionClosing (i.e. a session is currently open or being
|
---|
4434 | closed) by the time this property is read.
|
---|
4435 | </desc>
|
---|
4436 | </attribute>
|
---|
4437 |
|
---|
4438 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4439 | <desc>Current execution state of this machine.</desc>
|
---|
4440 | </attribute>
|
---|
4441 |
|
---|
4442 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
4443 | <desc>
|
---|
4444 | Time stamp of the last execution state change,
|
---|
4445 | in milliseconds since 1970-01-01 UTC.
|
---|
4446 | </desc>
|
---|
4447 | </attribute>
|
---|
4448 |
|
---|
4449 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
4450 | <desc>
|
---|
4451 | Full path to the file that stores the execution state of
|
---|
4452 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
4453 | <note>
|
---|
4454 | When the machine is not in the Saved state, this attribute is
|
---|
4455 | an empty string.
|
---|
4456 | </note>
|
---|
4457 | </desc>
|
---|
4458 | </attribute>
|
---|
4459 |
|
---|
4460 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
4461 | <desc>
|
---|
4462 | Full path to the folder that stores a set of rotated log files
|
---|
4463 | recorded during machine execution. The most recent log file is
|
---|
4464 | named <tt>VBox.log</tt>, the previous log file is
|
---|
4465 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
4466 | in the current version).
|
---|
4467 | </desc>
|
---|
4468 | </attribute>
|
---|
4469 |
|
---|
4470 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
4471 | <desc>
|
---|
4472 | Current snapshot of this machine. This is @c null if the machine
|
---|
4473 | currently has no snapshots. Otherwise, this is always the last snapshot
|
---|
4474 | in the current implementation; see <link to="ISnapshot"/> for details.
|
---|
4475 | </desc>
|
---|
4476 | </attribute>
|
---|
4477 |
|
---|
4478 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
4479 | <desc>
|
---|
4480 | Number of snapshots taken on this machine. Zero means the
|
---|
4481 | machine doesn't have any snapshots.
|
---|
4482 | </desc>
|
---|
4483 | </attribute>
|
---|
4484 |
|
---|
4485 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
4486 | <desc>
|
---|
4487 | Returns @c true if the current state of the machine is not
|
---|
4488 | identical to the state stored in the current snapshot.
|
---|
4489 |
|
---|
4490 | The current state is identical to the current snapshot right
|
---|
4491 | after one of the following calls are made:
|
---|
4492 | <ul>
|
---|
4493 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
4494 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
4495 | </li>
|
---|
4496 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
4497 | powered off or saved machine, for which
|
---|
4498 | <link to="#settingsModified"/> returns @c false)
|
---|
4499 | </li>
|
---|
4500 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
4501 | </li>
|
---|
4502 | </ul>
|
---|
4503 |
|
---|
4504 | The current state remains identical until one of the following
|
---|
4505 | happens:
|
---|
4506 | <ul>
|
---|
4507 | <li>settings of the machine are changed</li>
|
---|
4508 | <li>the saved state is discarded</li>
|
---|
4509 | <li>the current snapshot is discarded</li>
|
---|
4510 | <li>an attempt to execute the machine is made</li>
|
---|
4511 | </ul>
|
---|
4512 |
|
---|
4513 | <note>
|
---|
4514 | For machines that don't have snapshots, this property is
|
---|
4515 | always @c false.
|
---|
4516 | </note>
|
---|
4517 | </desc>
|
---|
4518 | </attribute>
|
---|
4519 |
|
---|
4520 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
4521 | <desc>
|
---|
4522 | Collection of shared folders for this machine (permanent shared
|
---|
4523 | folders). These folders are shared automatically at machine startup
|
---|
4524 | and available only to the guest OS installed within this machine.
|
---|
4525 |
|
---|
4526 | New shared folders are added to the collection using
|
---|
4527 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4528 | removed using <link to="#removeSharedFolder"/>.
|
---|
4529 | </desc>
|
---|
4530 | </attribute>
|
---|
4531 |
|
---|
4532 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
4533 | <desc>
|
---|
4534 | Synchronization mode between the host OS clipboard
|
---|
4535 | and the guest OS clipboard.
|
---|
4536 | </desc>
|
---|
4537 | </attribute>
|
---|
4538 |
|
---|
4539 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
4540 | <desc>
|
---|
4541 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
4542 | properties whose name matches one of the patterns will generate an
|
---|
4543 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
4544 | </desc>
|
---|
4545 | </attribute>
|
---|
4546 |
|
---|
4547 | <method name="setBootOrder">
|
---|
4548 | <desc>
|
---|
4549 | Puts the given device to the specified position in
|
---|
4550 | the boot order.
|
---|
4551 |
|
---|
4552 | To indicate that no device is associated with the given position,
|
---|
4553 | <link to="DeviceType_Null"/> should be used.
|
---|
4554 |
|
---|
4555 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4556 |
|
---|
4557 | <result name="E_INVALIDARG">
|
---|
4558 | Boot @a position out of range.
|
---|
4559 | </result>
|
---|
4560 | <result name="E_NOTIMPL">
|
---|
4561 | Booting from USB @a device currently not supported.
|
---|
4562 | </result>
|
---|
4563 |
|
---|
4564 | </desc>
|
---|
4565 | <param name="position" type="unsigned long" dir="in">
|
---|
4566 | <desc>
|
---|
4567 | Position in the boot order (@c 1 to the total number of
|
---|
4568 | devices the machine can boot from, as returned by
|
---|
4569 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4570 | </desc>
|
---|
4571 | </param>
|
---|
4572 | <param name="device" type="DeviceType" dir="in">
|
---|
4573 | <desc>
|
---|
4574 | The type of the device used to boot at the given position.
|
---|
4575 | </desc>
|
---|
4576 | </param>
|
---|
4577 | </method>
|
---|
4578 |
|
---|
4579 | <method name="getBootOrder" const="yes">
|
---|
4580 | <desc>
|
---|
4581 | Returns the device type that occupies the specified
|
---|
4582 | position in the boot order.
|
---|
4583 |
|
---|
4584 | @todo [remove?]
|
---|
4585 | If the machine can have more than one device of the returned type
|
---|
4586 | (such as hard disks), then a separate method should be used to
|
---|
4587 | retrieve the individual device that occupies the given position.
|
---|
4588 |
|
---|
4589 | If here are no devices at the given position, then
|
---|
4590 | <link to="DeviceType_Null"/> is returned.
|
---|
4591 |
|
---|
4592 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4593 |
|
---|
4594 | <result name="E_INVALIDARG">
|
---|
4595 | Boot @a position out of range.
|
---|
4596 | </result>
|
---|
4597 |
|
---|
4598 | </desc>
|
---|
4599 | <param name="position" type="unsigned long" dir="in">
|
---|
4600 | <desc>
|
---|
4601 | Position in the boot order (@c 1 to the total number of
|
---|
4602 | devices the machine can boot from, as returned by
|
---|
4603 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4604 | </desc>
|
---|
4605 | </param>
|
---|
4606 | <param name="device" type="DeviceType" dir="return">
|
---|
4607 | <desc>
|
---|
4608 | Device at the given position.
|
---|
4609 | </desc>
|
---|
4610 | </param>
|
---|
4611 | </method>
|
---|
4612 |
|
---|
4613 | <method name="attachHardDisk">
|
---|
4614 | <desc>
|
---|
4615 | Attaches a virtual hard disk (<link to="IHardDisk" />, identified
|
---|
4616 | by the given UUID @a id) to the given hard disk controller
|
---|
4617 | (<link to="IStorageController" />, identified by @a name),
|
---|
4618 | at the indicated port and device.
|
---|
4619 |
|
---|
4620 | For the IDE bus, the @a controllerPort parameter can be either
|
---|
4621 | @c 0 or @c 1, to specify the primary or secondary IDE controller,
|
---|
4622 | respectively. For the primary controller of the IDE bus,
|
---|
4623 | @a device can be either @c 0 or @c 1, to specify the master or the
|
---|
4624 | slave device, respectively. For the secondary IDE controller, the
|
---|
4625 | device number must be @c 1 because VirtualBox reserves the
|
---|
4626 | secondary master for the CD-ROM drive.
|
---|
4627 |
|
---|
4628 | For an SATA controller, @a controllerPort must be a number ranging
|
---|
4629 | from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
|
---|
4630 | be a number ranging from @c 0 to @c 15.
|
---|
4631 |
|
---|
4632 | For both SCSI and SATA, the @a device parameter is unused and must
|
---|
4633 | be @c 0.
|
---|
4634 |
|
---|
4635 | The specified device slot must not have another disk attached to it, or
|
---|
4636 | this method will fail.
|
---|
4637 |
|
---|
4638 | See <link to="IHardDisk"/> for more detailed information about
|
---|
4639 | attaching hard disks.
|
---|
4640 |
|
---|
4641 | <note>
|
---|
4642 | You cannot attach a hard disk to a running machine. Also, you cannot
|
---|
4643 | attach a hard disk to a newly created machine until this machine's
|
---|
4644 | settings are saved to disk using <link to="#saveSettings"/>.
|
---|
4645 | </note>
|
---|
4646 | <note>
|
---|
4647 | If the hard disk is being attached indirectly, a new differencing hard
|
---|
4648 | disk will implicitly be created for it and attached instead. If the
|
---|
4649 | changes made to the machine settings (including this indirect
|
---|
4650 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4651 | this implicitly created differencing hard disk will implicitly
|
---|
4652 | be deleted.
|
---|
4653 | </note>
|
---|
4654 |
|
---|
4655 | <result name="E_INVALIDARG">
|
---|
4656 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4657 | </result>
|
---|
4658 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4659 | Attempt to attach hard disk to an unregistered virtual machine.
|
---|
4660 | </result>
|
---|
4661 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4662 | Invalid machine state.
|
---|
4663 | </result>
|
---|
4664 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4665 | Hard disk already attached to this or another virtual machine.
|
---|
4666 | </result>
|
---|
4667 |
|
---|
4668 | </desc>
|
---|
4669 | <param name="id" type="wstring" dir="in">
|
---|
4670 | <desc>UUID of the hard disk to attach.</desc>
|
---|
4671 | </param>
|
---|
4672 | <param name="name" type="wstring" dir="in">
|
---|
4673 | <desc>Name of the storage controller to attach the hard disk to.</desc>
|
---|
4674 | </param>
|
---|
4675 | <param name="controllerPort" type="long" dir="in">
|
---|
4676 | <desc>Port to attach the hard disk to.</desc>
|
---|
4677 | </param>
|
---|
4678 | <param name="device" type="long" dir="in">
|
---|
4679 | <desc>
|
---|
4680 | Device slot in the given port to attach the hard disk to.
|
---|
4681 | </desc>
|
---|
4682 | </param>
|
---|
4683 | </method>
|
---|
4684 |
|
---|
4685 | <method name="getHardDisk" const="yes">
|
---|
4686 | <desc>
|
---|
4687 | Returns the virtual hard disk attached to a device slot of the specified
|
---|
4688 | bus.
|
---|
4689 |
|
---|
4690 | Note that if the hard disk was indirectly attached by
|
---|
4691 | <link to="#attachHardDisk"/> to the given device slot then this
|
---|
4692 | method will return not the same object as passed to the
|
---|
4693 | <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
|
---|
4694 | more detailed information about attaching hard disks.
|
---|
4695 |
|
---|
4696 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4697 | No hard disk attached to given slot/bus.
|
---|
4698 | </result>
|
---|
4699 |
|
---|
4700 | </desc>
|
---|
4701 | <param name="name" type="wstring" dir="in">
|
---|
4702 | <desc>Name of the storage controller the hard disk is attached to.</desc>
|
---|
4703 | </param>
|
---|
4704 | <param name="controllerPort" type="long" dir="in">
|
---|
4705 | <desc>Port to query.</desc>
|
---|
4706 | </param>
|
---|
4707 | <param name="device" type="long" dir="in">
|
---|
4708 | <desc>Device slot in the given port to query.</desc>
|
---|
4709 | </param>
|
---|
4710 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
4711 | <desc>Attached hard disk object.</desc>
|
---|
4712 | </param>
|
---|
4713 | </method>
|
---|
4714 |
|
---|
4715 | <method name="detachHardDisk">
|
---|
4716 | <desc>
|
---|
4717 | Detaches the virtual hard disk attached to a device slot of the
|
---|
4718 | specified bus.
|
---|
4719 |
|
---|
4720 | Detaching the hard disk from the virtual machine is deferred. This means
|
---|
4721 | that the hard disk remains associated with the machine when this method
|
---|
4722 | returns and gets actually de-associated only after a successful
|
---|
4723 | <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
|
---|
4724 | for more detailed information about attaching hard disks.
|
---|
4725 |
|
---|
4726 | <note>
|
---|
4727 | You cannot detach the hard disk from a running machine.
|
---|
4728 | </note>
|
---|
4729 | <note>
|
---|
4730 | Detaching differencing hard disks implicitly created by <link
|
---|
4731 | to="#attachHardDisk"/> for the indirect attachment using this
|
---|
4732 | method will <b>not</b> implicitly delete them. The
|
---|
4733 | <link to="IHardDisk::deleteStorage"/> operation should be
|
---|
4734 | explicitly performed by the caller after the hard disk is successfully
|
---|
4735 | detached and the settings are saved with
|
---|
4736 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4737 | </note>
|
---|
4738 |
|
---|
4739 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4740 | Attempt to detach hard disk from a running virtual machine.
|
---|
4741 | </result>
|
---|
4742 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4743 | No hard disk attached to given slot/bus.
|
---|
4744 | </result>
|
---|
4745 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4746 | Hard disk format does not support storage deletion.
|
---|
4747 | </result>
|
---|
4748 |
|
---|
4749 | </desc>
|
---|
4750 | <param name="name" type="wstring" dir="in">
|
---|
4751 | <desc>name of the storage controller to detach the hard disk from.</desc>
|
---|
4752 | </param>
|
---|
4753 | <param name="controllerPort" type="long" dir="in">
|
---|
4754 | <desc>Port number to detach the hard disk from.</desc>
|
---|
4755 | </param>
|
---|
4756 | <param name="device" type="long" dir="in">
|
---|
4757 | <desc>Device slot number to detach the hard disk from.</desc>
|
---|
4758 | </param>
|
---|
4759 | </method>
|
---|
4760 |
|
---|
4761 | <method name="getHardDiskAttachmentsOfController" const="yes">
|
---|
4762 | <desc>
|
---|
4763 | Returns an array of hard disk attachments which are attached to the
|
---|
4764 | the controller with the given name.
|
---|
4765 |
|
---|
4766 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4767 | A storage controller with given name doesn't exist.
|
---|
4768 | </result>
|
---|
4769 | </desc>
|
---|
4770 | <param name="name" type="wstring" dir="in"/>
|
---|
4771 | <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
|
---|
4772 | </method>
|
---|
4773 |
|
---|
4774 | <method name="getNetworkAdapter" const="yes">
|
---|
4775 | <desc>
|
---|
4776 | Returns the network adapter associated with the given slot.
|
---|
4777 | Slots are numbered sequentially, starting with zero. The total
|
---|
4778 | number of adapters per machine is defined by the
|
---|
4779 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
4780 | so the maximum slot number is one less than that property's value.
|
---|
4781 |
|
---|
4782 | <result name="E_INVALIDARG">
|
---|
4783 | Invalid @a slot number.
|
---|
4784 | </result>
|
---|
4785 |
|
---|
4786 | </desc>
|
---|
4787 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4788 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
4789 | </method>
|
---|
4790 |
|
---|
4791 | <method name="addStorageController">
|
---|
4792 | <desc>
|
---|
4793 | Adds a new storage controller (SCSI or SATA controller) to the
|
---|
4794 | machine and returns it as an instance of
|
---|
4795 | <link to="IStorageController" />.
|
---|
4796 |
|
---|
4797 | @a name identifies the controller for subsequent calls such as
|
---|
4798 | <link to="#getStorageControllerByName" /> or
|
---|
4799 | <link to="#removeStorageController" /> or
|
---|
4800 | <link to="#attachHardDisk" />.
|
---|
4801 |
|
---|
4802 | After the controller has been added, you can set its exact
|
---|
4803 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
4804 |
|
---|
4805 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4806 | A storage controller with given name exists already.
|
---|
4807 | </result>
|
---|
4808 | <result name="E_INVALIDARG">
|
---|
4809 | Invalid @a controllerType.
|
---|
4810 | </result>
|
---|
4811 | </desc>
|
---|
4812 | <param name="name" type="wstring" dir="in"/>
|
---|
4813 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
4814 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
4815 | </method>
|
---|
4816 |
|
---|
4817 | <method name="getStorageControllerByName" const="yes">
|
---|
4818 | <desc>
|
---|
4819 | Returns a storage controller with the given name.
|
---|
4820 |
|
---|
4821 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4822 | A storage controller with given name doesn't exist.
|
---|
4823 | </result>
|
---|
4824 | </desc>
|
---|
4825 | <param name="name" type="wstring" dir="in"/>
|
---|
4826 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
4827 | </method>
|
---|
4828 |
|
---|
4829 | <method name="removeStorageController">
|
---|
4830 | <desc>
|
---|
4831 | Removes a storage controller from the machine.
|
---|
4832 |
|
---|
4833 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4834 | A storage controller with given name doesn't exist.
|
---|
4835 | </result>
|
---|
4836 | </desc>
|
---|
4837 | <param name="name" type="wstring" dir="in"/>
|
---|
4838 | </method>
|
---|
4839 |
|
---|
4840 | <method name="getSerialPort" const="yes">
|
---|
4841 | <desc>
|
---|
4842 | Returns the serial port associated with the given slot.
|
---|
4843 | Slots are numbered sequentially, starting with zero. The total
|
---|
4844 | number of serial ports per machine is defined by the
|
---|
4845 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
4846 | so the maximum slot number is one less than that property's value.
|
---|
4847 |
|
---|
4848 | <result name="E_INVALIDARG">
|
---|
4849 | Invalid @a slot number.
|
---|
4850 | </result>
|
---|
4851 |
|
---|
4852 | </desc>
|
---|
4853 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4854 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
4855 | </method>
|
---|
4856 |
|
---|
4857 | <method name="getParallelPort" const="yes">
|
---|
4858 | <desc>
|
---|
4859 | Returns the parallel port associated with the given slot.
|
---|
4860 | Slots are numbered sequentially, starting with zero. The total
|
---|
4861 | number of parallel ports per machine is defined by the
|
---|
4862 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
4863 | so the maximum slot number is one less than that property's value.
|
---|
4864 |
|
---|
4865 | <result name="E_INVALIDARG">
|
---|
4866 | Invalid @a slot number.
|
---|
4867 | </result>
|
---|
4868 |
|
---|
4869 | </desc>
|
---|
4870 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4871 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
4872 | </method>
|
---|
4873 |
|
---|
4874 | <method name="getNextExtraDataKey">
|
---|
4875 | <desc>
|
---|
4876 | Returns the machine-specific extra data key name following the
|
---|
4877 | supplied key.
|
---|
4878 |
|
---|
4879 | An error is returned if the supplied @a key does not exist. An empty
|
---|
4880 | string is returned in @a nextKey if the supplied key is the last key.
|
---|
4881 | When supplying @c null or an empty string for the @a key, the first key
|
---|
4882 | item is returned in @a nextKey (if there is any). @a nextValue is an
|
---|
4883 | optional parameter and if supplied, the next key's value is returned in
|
---|
4884 | it.
|
---|
4885 |
|
---|
4886 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4887 | Extra data @a key not found.
|
---|
4888 | </result>
|
---|
4889 |
|
---|
4890 | </desc>
|
---|
4891 | <param name="key" type="wstring" dir="in">
|
---|
4892 | <desc>Name of the data key to follow.</desc>
|
---|
4893 | </param>
|
---|
4894 | <param name="nextKey" type="wstring" dir="out">
|
---|
4895 | <desc>Name of the next data key.</desc>
|
---|
4896 | </param>
|
---|
4897 | <param name="nextValue" type="wstring" dir="out">
|
---|
4898 | <desc>Value of the next data key.</desc>
|
---|
4899 | </param>
|
---|
4900 | </method>
|
---|
4901 |
|
---|
4902 | <method name="getExtraData">
|
---|
4903 | <desc>
|
---|
4904 | Returns associated machine-specific extra data.
|
---|
4905 |
|
---|
4906 | If the requested data @a key does not exist, this function will
|
---|
4907 | succeed and return an empty string in the @a value argument.
|
---|
4908 |
|
---|
4909 | <result name="VBOX_E_FILE_ERROR">
|
---|
4910 | Settings file not accessible.
|
---|
4911 | </result>
|
---|
4912 | <result name="VBOX_E_XML_ERROR">
|
---|
4913 | Could not parse the settings file.
|
---|
4914 | </result>
|
---|
4915 |
|
---|
4916 | </desc>
|
---|
4917 | <param name="key" type="wstring" dir="in">
|
---|
4918 | <desc>Name of the data key to get.</desc>
|
---|
4919 | </param>
|
---|
4920 | <param name="value" type="wstring" dir="return">
|
---|
4921 | <desc>Value of the requested data key.</desc>
|
---|
4922 | </param>
|
---|
4923 | </method>
|
---|
4924 |
|
---|
4925 | <method name="setExtraData">
|
---|
4926 | <desc>
|
---|
4927 | Sets associated machine-specific extra data.
|
---|
4928 |
|
---|
4929 | If you pass @c null or an empty string as a key @a value, the given
|
---|
4930 | @a key will be deleted.
|
---|
4931 |
|
---|
4932 | <note>
|
---|
4933 | Before performing the actual data change, this method will ask all
|
---|
4934 | registered callbacks using the
|
---|
4935 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
4936 | notification for a permission. If one of the callbacks refuses the
|
---|
4937 | new value, the change will not be performed.
|
---|
4938 | </note>
|
---|
4939 | <note>
|
---|
4940 | On success, the
|
---|
4941 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
4942 | is called to inform all registered callbacks about a successful data
|
---|
4943 | change.
|
---|
4944 | </note>
|
---|
4945 | <note>
|
---|
4946 | This method can be called outside the machine session and therefore
|
---|
4947 | it's a caller's responsibility to handle possible race conditions
|
---|
4948 | when several clients change the same key at the same time.
|
---|
4949 | </note>
|
---|
4950 |
|
---|
4951 | <result name="VBOX_E_FILE_ERROR">
|
---|
4952 | Settings file not accessible.
|
---|
4953 | </result>
|
---|
4954 | <result name="VBOX_E_XML_ERROR">
|
---|
4955 | Could not parse the settings file.
|
---|
4956 | </result>
|
---|
4957 |
|
---|
4958 | </desc>
|
---|
4959 | <param name="key" type="wstring" dir="in">
|
---|
4960 | <desc>Name of the data key to set.</desc>
|
---|
4961 | </param>
|
---|
4962 | <param name="value" type="wstring" dir="in">
|
---|
4963 | <desc>Value to assign to the key.</desc>
|
---|
4964 | </param>
|
---|
4965 | </method>
|
---|
4966 |
|
---|
4967 | <method name="saveSettings">
|
---|
4968 | <desc>
|
---|
4969 | Saves any changes to machine settings made since the session
|
---|
4970 | has been opened or a new machine has been created, or since the
|
---|
4971 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
4972 | For registered machines, new settings become visible to all
|
---|
4973 | other VirtualBox clients after successful invocation of this
|
---|
4974 | method.
|
---|
4975 | <note>
|
---|
4976 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
4977 | notification event after the configuration has been successfully
|
---|
4978 | saved (only for registered machines).
|
---|
4979 | </note>
|
---|
4980 | <note>
|
---|
4981 | Calling this method is only valid on instances returned
|
---|
4982 | by <link to="ISession::machine"/> and on new machines
|
---|
4983 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
4984 | yet registered, or on unregistered machines after calling
|
---|
4985 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
4986 | </note>
|
---|
4987 |
|
---|
4988 | <result name="VBOX_E_FILE_ERROR">
|
---|
4989 | Settings file not accessible.
|
---|
4990 | </result>
|
---|
4991 | <result name="VBOX_E_XML_ERROR">
|
---|
4992 | Could not parse the settings file.
|
---|
4993 | </result>
|
---|
4994 | <result name="E_ACCESSDENIED">
|
---|
4995 | Modification request refused.
|
---|
4996 | </result>
|
---|
4997 |
|
---|
4998 | </desc>
|
---|
4999 | </method>
|
---|
5000 |
|
---|
5001 | <method name="saveSettingsWithBackup">
|
---|
5002 | <desc>
|
---|
5003 | Creates a backup copy of the machine settings file (<link
|
---|
5004 | to="IMachine::settingsFilePath"/>) in case of auto-conversion, and then calls
|
---|
5005 | <link to="IMachine::saveSettings"/>.
|
---|
5006 |
|
---|
5007 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
5008 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
5009 | details). Otherwise, this call is fully equivalent to
|
---|
5010 | <link to="IMachine::saveSettings"/> and no backup copying is done.
|
---|
5011 |
|
---|
5012 | The backup copy is created in the same directory where the original
|
---|
5013 | settings file is located. It is given the following file name:
|
---|
5014 | <pre>
|
---|
5015 | original.xml.x.y-platform.bak
|
---|
5016 | </pre>
|
---|
5017 | where <tt>original.xml</tt> is the original settings file name
|
---|
5018 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
5019 | format of the settings file (before auto-conversion).
|
---|
5020 |
|
---|
5021 | If the given backup file already exists, this method will try to add the
|
---|
5022 | <tt>.N</tt> suffix to the backup file name (where @c N counts from
|
---|
5023 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
5024 | occupied, or if any other copy error occurs, this method will return a
|
---|
5025 | failure.
|
---|
5026 |
|
---|
5027 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
5028 | receive a full path to the created backup file (for informational
|
---|
5029 | purposes). Note that this will happen even if the subsequent
|
---|
5030 | <link to="#saveSettings"/> call performed by this method after the
|
---|
5031 | copy operation, fails.
|
---|
5032 |
|
---|
5033 | <note>
|
---|
5034 | The VirtualBox API never calls this method. It is intended purely for
|
---|
5035 | the purposes of creating backup copies of the settings files by
|
---|
5036 | front-ends before saving the results of the automatically performed
|
---|
5037 | settings conversion to disk.
|
---|
5038 | </note>
|
---|
5039 |
|
---|
5040 | <see>settingsFileVersion</see>
|
---|
5041 |
|
---|
5042 | <result name="VBOX_E_FILE_ERROR">
|
---|
5043 | Settings file not accessible.
|
---|
5044 | </result>
|
---|
5045 | <result name="VBOX_E_XML_ERROR">
|
---|
5046 | Could not parse the settings file.
|
---|
5047 | </result>
|
---|
5048 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5049 | Virtual machine is not mutable.
|
---|
5050 | </result>
|
---|
5051 | <result name="E_ACCESSDENIED">
|
---|
5052 | Modification request refused.
|
---|
5053 | </result>
|
---|
5054 |
|
---|
5055 | </desc>
|
---|
5056 | <param name="bakFileName" type="wstring" dir="return">
|
---|
5057 | <desc>Full path to the created backup copy.</desc>
|
---|
5058 | </param>
|
---|
5059 | </method>
|
---|
5060 |
|
---|
5061 | <method name="discardSettings">
|
---|
5062 | <desc>
|
---|
5063 | Discards any changes to the machine settings made since the session
|
---|
5064 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
5065 | or <link to="#discardSettings"/>.
|
---|
5066 | <note>
|
---|
5067 | Calling this method is only valid on instances returned
|
---|
5068 | by <link to="ISession::machine"/> and on new machines
|
---|
5069 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5070 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5071 | yet registered, or on unregistered machines after calling
|
---|
5072 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5073 | </note>
|
---|
5074 |
|
---|
5075 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5076 | Virtual machine is not mutable.
|
---|
5077 | </result>
|
---|
5078 |
|
---|
5079 | </desc>
|
---|
5080 | </method>
|
---|
5081 |
|
---|
5082 | <method name="deleteSettings">
|
---|
5083 | <desc>
|
---|
5084 | Deletes the settings file of this machine from disk.
|
---|
5085 | The machine must not be registered in order for this operation
|
---|
5086 | to succeed.
|
---|
5087 | <note>
|
---|
5088 | <link to="#settingsModified"/> will return @c true after this
|
---|
5089 | method successfully returns.
|
---|
5090 | </note>
|
---|
5091 | <note>
|
---|
5092 | Calling this method is only valid on instances returned
|
---|
5093 | by <link to="ISession::machine"/> and on new machines
|
---|
5094 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5095 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5096 | yet registered, or on unregistered machines after calling
|
---|
5097 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
5098 | </note>
|
---|
5099 | <note>
|
---|
5100 | The deleted machine settings file can be restored (saved again)
|
---|
5101 | by calling <link to="#saveSettings"/>.
|
---|
5102 | </note>
|
---|
5103 |
|
---|
5104 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5105 | Cannot delete settings of a registered machine or
|
---|
5106 | machine not mutable.
|
---|
5107 | </result>
|
---|
5108 | <result name="VBOX_E_IPRT_ERROR">
|
---|
5109 | Could not delete the settings file.
|
---|
5110 | </result>
|
---|
5111 |
|
---|
5112 | </desc>
|
---|
5113 | </method>
|
---|
5114 |
|
---|
5115 | <method name="export">
|
---|
5116 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
5117 | steps required to export VirtualBox machines to OVF.
|
---|
5118 | </desc>
|
---|
5119 |
|
---|
5120 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
5121 | <desc>Appliance to export this machine to.</desc>
|
---|
5122 | </param>
|
---|
5123 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
5124 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
5125 | </param>
|
---|
5126 | </method >
|
---|
5127 |
|
---|
5128 | <method name="getSnapshot">
|
---|
5129 | <desc>
|
---|
5130 | Returns a snapshot of this machine with the given UUID.
|
---|
5131 | A @c null UUID can be used to obtain the first snapshot
|
---|
5132 | taken on this machine. This is useful if you want to traverse
|
---|
5133 | the whole tree of snapshots starting from the root.
|
---|
5134 |
|
---|
5135 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5136 | Virtual machine has no snapshots or snapshot not found.
|
---|
5137 | </result>
|
---|
5138 |
|
---|
5139 | </desc>
|
---|
5140 | <param name="id" type="wstring" dir="in">
|
---|
5141 | <desc>UUID of the snapshot to get</desc>
|
---|
5142 | </param>
|
---|
5143 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5144 | <desc>Snapshot object with the given UUID.</desc>
|
---|
5145 | </param>
|
---|
5146 | </method>
|
---|
5147 |
|
---|
5148 | <method name="findSnapshot">
|
---|
5149 | <desc>
|
---|
5150 | Returns a snapshot of this machine with the given name.
|
---|
5151 |
|
---|
5152 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5153 | Virtual machine has no snapshots or snapshot not found.
|
---|
5154 | </result>
|
---|
5155 |
|
---|
5156 | </desc>
|
---|
5157 | <param name="name" type="wstring" dir="in">
|
---|
5158 | <desc>Name of the snapshot to find</desc>
|
---|
5159 | </param>
|
---|
5160 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5161 | <desc>Snapshot object with the given name.</desc>
|
---|
5162 | </param>
|
---|
5163 | </method>
|
---|
5164 |
|
---|
5165 | <method name="setCurrentSnapshot">
|
---|
5166 | <desc>
|
---|
5167 | Sets the current snapshot of this machine.
|
---|
5168 | <note>
|
---|
5169 | In the current implementation, this operation is not
|
---|
5170 | implemented.
|
---|
5171 | </note>
|
---|
5172 | </desc>
|
---|
5173 | <param name="id" type="wstring" dir="in">
|
---|
5174 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
5175 | </param>
|
---|
5176 | </method>
|
---|
5177 |
|
---|
5178 | <method name="createSharedFolder">
|
---|
5179 | <desc>
|
---|
5180 | Creates a new permanent shared folder by associating the given logical
|
---|
5181 | name with the given host path, adds it to the collection of shared
|
---|
5182 | folders and starts sharing it. Refer to the description of
|
---|
5183 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5184 |
|
---|
5185 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5186 | Shared folder already exists.
|
---|
5187 | </result>
|
---|
5188 | <result name="VBOX_E_FILE_ERROR">
|
---|
5189 | Shared folder @a hostPath not accessible.
|
---|
5190 | </result>
|
---|
5191 |
|
---|
5192 | </desc>
|
---|
5193 | <param name="name" type="wstring" dir="in">
|
---|
5194 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5195 | </param>
|
---|
5196 | <param name="hostPath" type="wstring" dir="in">
|
---|
5197 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5198 | </param>
|
---|
5199 | <param name="writable" type="boolean" dir="in">
|
---|
5200 | <desc>Whether the share is writable or readonly</desc>
|
---|
5201 | </param>
|
---|
5202 | </method>
|
---|
5203 |
|
---|
5204 | <method name="removeSharedFolder">
|
---|
5205 | <desc>
|
---|
5206 | Removes the permanent shared folder with the given name previously
|
---|
5207 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5208 | shared folders and stops sharing it.
|
---|
5209 |
|
---|
5210 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5211 | Virtual machine is not mutable.
|
---|
5212 | </result>
|
---|
5213 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5214 | Shared folder @a name does not exist.
|
---|
5215 | </result>
|
---|
5216 |
|
---|
5217 | </desc>
|
---|
5218 | <param name="name" type="wstring" dir="in">
|
---|
5219 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5220 | </param>
|
---|
5221 | </method>
|
---|
5222 |
|
---|
5223 | <method name="canShowConsoleWindow">
|
---|
5224 | <desc>
|
---|
5225 | Returns @c true if the VM console process can activate the
|
---|
5226 | console window and bring it to foreground on the desktop of
|
---|
5227 | the host PC.
|
---|
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="canShow" type="boolean" dir="return">
|
---|
5239 | <desc>
|
---|
5240 | @c true if the console window can be shown and @c false otherwise.
|
---|
5241 | </desc>
|
---|
5242 | </param>
|
---|
5243 | </method>
|
---|
5244 |
|
---|
5245 | <method name="showConsoleWindow">
|
---|
5246 | <desc>
|
---|
5247 | Activates the console window and brings it to foreground on
|
---|
5248 | the desktop of the host PC. Many modern window managers on
|
---|
5249 | many platforms implement some sort of focus stealing
|
---|
5250 | prevention logic, so that it may be impossible to activate
|
---|
5251 | a window without the help of the currently active
|
---|
5252 | application. In this case, this method will return a non-zero
|
---|
5253 | identifier that represents the top-level window of the VM
|
---|
5254 | console process. The caller, if it represents a currently
|
---|
5255 | active process, is responsible to use this identifier (in a
|
---|
5256 | platform-dependent manner) to perform actual window
|
---|
5257 | activation.
|
---|
5258 | <note>
|
---|
5259 | This method will fail if a session for this machine is not
|
---|
5260 | currently open.
|
---|
5261 | </note>
|
---|
5262 |
|
---|
5263 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5264 | Machine session is not open.
|
---|
5265 | </result>
|
---|
5266 |
|
---|
5267 | </desc>
|
---|
5268 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5269 | <desc>
|
---|
5270 | Platform-dependent identifier of the top-level VM console
|
---|
5271 | window, or zero if this method has performed all actions
|
---|
5272 | necessary to implement the <i>show window</i> semantics for
|
---|
5273 | the given platform and/or VirtualBox front-end.
|
---|
5274 | </desc>
|
---|
5275 | </param>
|
---|
5276 | </method>
|
---|
5277 |
|
---|
5278 | <method name="getGuestProperty">
|
---|
5279 | <desc>
|
---|
5280 | Reads an entry from the machine's guest property store.
|
---|
5281 |
|
---|
5282 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5283 | Machine session is not open.
|
---|
5284 | </result>
|
---|
5285 |
|
---|
5286 | </desc>
|
---|
5287 | <param name="name" type="wstring" dir="in">
|
---|
5288 | <desc>
|
---|
5289 | The name of the property to read.
|
---|
5290 | </desc>
|
---|
5291 | </param>
|
---|
5292 | <param name="value" type="wstring" dir="out">
|
---|
5293 | <desc>
|
---|
5294 | The value of the property. If the property does not exist then this
|
---|
5295 | will be empty.
|
---|
5296 | </desc>
|
---|
5297 | </param>
|
---|
5298 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
5299 | <desc>
|
---|
5300 | The time at which the property was last modified, as seen by the
|
---|
5301 | server process.
|
---|
5302 | </desc>
|
---|
5303 | </param>
|
---|
5304 | <param name="flags" type="wstring" dir="out">
|
---|
5305 | <desc>
|
---|
5306 | Additional property parameters, passed as a comma-separated list of
|
---|
5307 | "name=value" type entries.
|
---|
5308 | </desc>
|
---|
5309 | </param>
|
---|
5310 | </method>
|
---|
5311 |
|
---|
5312 | <method name="getGuestPropertyValue">
|
---|
5313 | <desc>
|
---|
5314 | Reads a value from the machine's guest property store.
|
---|
5315 |
|
---|
5316 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5317 | Machine session is not open.
|
---|
5318 | </result>
|
---|
5319 |
|
---|
5320 | </desc>
|
---|
5321 | <param name="property" type="wstring" dir="in">
|
---|
5322 | <desc>
|
---|
5323 | The name of the property to read.
|
---|
5324 | </desc>
|
---|
5325 | </param>
|
---|
5326 | <param name="value" type="wstring" dir="return">
|
---|
5327 | <desc>
|
---|
5328 | The value of the property. If the property does not exist then this
|
---|
5329 | will be empty.
|
---|
5330 | </desc>
|
---|
5331 | </param>
|
---|
5332 | </method>
|
---|
5333 |
|
---|
5334 | <method name="getGuestPropertyTimestamp">
|
---|
5335 | <desc>
|
---|
5336 | Reads a property timestamp from the machine's guest property store.
|
---|
5337 |
|
---|
5338 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5339 | Machine session is not open.
|
---|
5340 | </result>
|
---|
5341 |
|
---|
5342 | </desc>
|
---|
5343 | <param name="property" type="wstring" dir="in">
|
---|
5344 | <desc>
|
---|
5345 | The name of the property to read.
|
---|
5346 | </desc>
|
---|
5347 | </param>
|
---|
5348 | <param name="value" type="unsigned long long" dir="return">
|
---|
5349 | <desc>
|
---|
5350 | The timestamp. If the property does not exist then this will be
|
---|
5351 | empty.
|
---|
5352 | </desc>
|
---|
5353 | </param>
|
---|
5354 | </method>
|
---|
5355 |
|
---|
5356 | <method name="setGuestProperty">
|
---|
5357 | <desc>
|
---|
5358 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5359 | store.
|
---|
5360 |
|
---|
5361 | <result name="E_ACCESSDENIED">
|
---|
5362 | Property cannot be changed.
|
---|
5363 | </result>
|
---|
5364 | <result name="E_INVALIDARG">
|
---|
5365 | Invalid @a flags.
|
---|
5366 | </result>
|
---|
5367 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5368 | Virtual machine is not mutable or session not open.
|
---|
5369 | </result>
|
---|
5370 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5371 | Cannot set transient property when machine not running.
|
---|
5372 | </result>
|
---|
5373 |
|
---|
5374 | </desc>
|
---|
5375 | <param name="property" type="wstring" dir="in">
|
---|
5376 | <desc>
|
---|
5377 | The name of the property to set, change or delete.
|
---|
5378 | </desc>
|
---|
5379 | </param>
|
---|
5380 | <param name="value" type="wstring" dir="in">
|
---|
5381 | <desc>
|
---|
5382 | The new value of the property to set, change or delete. If the
|
---|
5383 | property does not yet exist and value is non-empty, it will be
|
---|
5384 | created. If the value is @c null or empty, the property will be
|
---|
5385 | deleted if it exists.
|
---|
5386 | </desc>
|
---|
5387 | </param>
|
---|
5388 | <param name="flags" type="wstring" dir="in">
|
---|
5389 | <desc>
|
---|
5390 | Additional property parameters, passed as a comma-separated list of
|
---|
5391 | "name=value" type entries.
|
---|
5392 | </desc>
|
---|
5393 | </param>
|
---|
5394 | </method>
|
---|
5395 |
|
---|
5396 | <method name="setGuestPropertyValue">
|
---|
5397 | <desc>
|
---|
5398 | Sets, changes or deletes a value in the machine's guest property
|
---|
5399 | store. The flags field will be left unchanged or created empty for a
|
---|
5400 | new property.
|
---|
5401 |
|
---|
5402 | <result name="E_ACCESSDENIED">
|
---|
5403 | Property cannot be changed.
|
---|
5404 | </result>
|
---|
5405 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5406 | Virtual machine is not mutable or session not open.
|
---|
5407 | </result>
|
---|
5408 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5409 | Cannot set transient property when machine not running.
|
---|
5410 | </result>
|
---|
5411 | </desc>
|
---|
5412 |
|
---|
5413 | <param name="property" type="wstring" dir="in">
|
---|
5414 | <desc>
|
---|
5415 | The name of the property to set, change or delete.
|
---|
5416 | </desc>
|
---|
5417 | </param>
|
---|
5418 | <param name="value" type="wstring" dir="in">
|
---|
5419 | <desc>
|
---|
5420 | The new value of the property to set, change or delete. If the
|
---|
5421 | property does not yet exist and value is non-empty, it will be
|
---|
5422 | created. If the value is @c null or empty, the property will be
|
---|
5423 | deleted if it exists.
|
---|
5424 | </desc>
|
---|
5425 | </param>
|
---|
5426 | </method>
|
---|
5427 |
|
---|
5428 | <method name="enumerateGuestProperties">
|
---|
5429 | <desc>
|
---|
5430 | Return a list of the guest properties matching a set of patterns along
|
---|
5431 | with their values, time stamps and flags.
|
---|
5432 | </desc>
|
---|
5433 | <param name="patterns" type="wstring" dir="in">
|
---|
5434 | <desc>
|
---|
5435 | The patterns to match the properties against, separated by '|'
|
---|
5436 | characters. If this is empty or @c null, all properties will match.
|
---|
5437 | </desc>
|
---|
5438 | </param>
|
---|
5439 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5440 | <desc>
|
---|
5441 | The names of the properties returned.
|
---|
5442 | </desc>
|
---|
5443 | </param>
|
---|
5444 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5445 | <desc>
|
---|
5446 | The values of the properties returned. The array entries match the
|
---|
5447 | corresponding entries in the @a name array.
|
---|
5448 | </desc>
|
---|
5449 | </param>
|
---|
5450 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
5451 | <desc>
|
---|
5452 | The time stamps of the properties returned. The array entries match
|
---|
5453 | the corresponding entries in the @a name array.
|
---|
5454 | </desc>
|
---|
5455 | </param>
|
---|
5456 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5457 | <desc>
|
---|
5458 | The flags of the properties returned. The array entries match the
|
---|
5459 | corresponding entries in the @a name array.
|
---|
5460 | </desc>
|
---|
5461 | </param>
|
---|
5462 | </method>
|
---|
5463 | </interface>
|
---|
5464 |
|
---|
5465 | <!--
|
---|
5466 | // IConsole
|
---|
5467 | /////////////////////////////////////////////////////////////////////////
|
---|
5468 | -->
|
---|
5469 |
|
---|
5470 | <interface
|
---|
5471 | name="IConsoleCallback" extends="$unknown"
|
---|
5472 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
5473 | wsmap="suppress"
|
---|
5474 | >
|
---|
5475 |
|
---|
5476 | <desc>
|
---|
5477 | This interface is used by a client of the Main API that need to
|
---|
5478 | be notified of events. For example, a graphical user interface
|
---|
5479 | can use this to learn about machine state changes so they can
|
---|
5480 | update the list of virtual machines without having to rely
|
---|
5481 | on polling.
|
---|
5482 |
|
---|
5483 | Whenever relevant events occur in VirtualBox, the callbacks in
|
---|
5484 | objects of this interface are called. In order for this to be
|
---|
5485 | useful, a client needs to create its own subclass that implements
|
---|
5486 | this interface in which the methods for the relevant callbacks
|
---|
5487 | are overridden. An instance of this subclass interface can then
|
---|
5488 | be passed to <link to="IConsole::registerCallback" />.
|
---|
5489 | </desc>
|
---|
5490 |
|
---|
5491 | <method name="onMousePointerShapeChange">
|
---|
5492 | <desc>
|
---|
5493 | Notification when the guest mouse pointer shape has
|
---|
5494 | changed. The new shape data is given.
|
---|
5495 | </desc>
|
---|
5496 | <param name="visible" type="boolean" dir="in">
|
---|
5497 | <desc>
|
---|
5498 | Flag whether the pointer is visible.
|
---|
5499 | </desc>
|
---|
5500 | </param>
|
---|
5501 | <param name="alpha" type="boolean" dir="in">
|
---|
5502 | <desc>
|
---|
5503 | Flag whether the pointer has an alpha channel.
|
---|
5504 | </desc>
|
---|
5505 | </param>
|
---|
5506 | <param name="xHot" type="unsigned long" dir="in">
|
---|
5507 | <desc>
|
---|
5508 | The pointer hot spot x coordinate.
|
---|
5509 | </desc>
|
---|
5510 | </param>
|
---|
5511 | <param name="yHot" type="unsigned long" dir="in">
|
---|
5512 | <desc>
|
---|
5513 | The pointer hot spot y coordinate.
|
---|
5514 | </desc>
|
---|
5515 | </param>
|
---|
5516 | <param name="width" type="unsigned long" dir="in">
|
---|
5517 | <desc>
|
---|
5518 | Width of the pointer shape in pixels.
|
---|
5519 | </desc>
|
---|
5520 | </param>
|
---|
5521 | <param name="height" type="unsigned long" dir="in">
|
---|
5522 | <desc>
|
---|
5523 | Height of the pointer shape in pixels.
|
---|
5524 | </desc>
|
---|
5525 | </param>
|
---|
5526 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
5527 | <desc>
|
---|
5528 | Address of the shape buffer.
|
---|
5529 |
|
---|
5530 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
5531 | followed by a 32-bpp XOR (color) mask.
|
---|
5532 |
|
---|
5533 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
5534 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
5535 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
5536 |
|
---|
5537 | An AND mask is used for pointers with alpha channel, so if the
|
---|
5538 | callback does not support alpha, the pointer could be
|
---|
5539 | displayed as a normal color pointer.
|
---|
5540 |
|
---|
5541 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
5542 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
5543 | height</tt>. The padding bits at the end of each scanline are
|
---|
5544 | undefined.
|
---|
5545 |
|
---|
5546 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
5547 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
5548 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
5549 | The XOR mask scanlines have no gap between them and the size of
|
---|
5550 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
5551 |
|
---|
5552 | <note>
|
---|
5553 | If @a shape is 0, only the pointer visibility is changed.
|
---|
5554 | </note>
|
---|
5555 | </desc>
|
---|
5556 | </param>
|
---|
5557 | </method>
|
---|
5558 |
|
---|
5559 | <method name="onMouseCapabilityChange">
|
---|
5560 | <desc>
|
---|
5561 | Notification when the mouse capabilities reported by the
|
---|
5562 | guest have changed. The new capabilities are passed.
|
---|
5563 | </desc>
|
---|
5564 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
5565 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
5566 | </method>
|
---|
5567 |
|
---|
5568 | <method name="onKeyboardLedsChange">
|
---|
5569 | <desc>
|
---|
5570 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
5571 | to alter the state of the keyboard LEDs.
|
---|
5572 | </desc>
|
---|
5573 | <param name="numLock" type="boolean" dir="in"/>
|
---|
5574 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
5575 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
5576 | </method>
|
---|
5577 |
|
---|
5578 | <method name="onStateChange">
|
---|
5579 | <desc>
|
---|
5580 | Notification when the execution state of the machine has changed.
|
---|
5581 | The new state will be given.
|
---|
5582 | </desc>
|
---|
5583 | <param name="state" type="MachineState" dir="in"/>
|
---|
5584 | </method>
|
---|
5585 |
|
---|
5586 | <method name="onAdditionsStateChange">
|
---|
5587 | <desc>
|
---|
5588 | Notification when a Guest Additions property changes.
|
---|
5589 | Interested callees should query IGuest attributes to
|
---|
5590 | find out what has changed.
|
---|
5591 | </desc>
|
---|
5592 | </method>
|
---|
5593 |
|
---|
5594 | <method name="onDVDDriveChange">
|
---|
5595 | <desc>
|
---|
5596 | Notification when a property of the
|
---|
5597 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
5598 | Interested callees should use IDVDDrive methods to find out what has
|
---|
5599 | changed.
|
---|
5600 | </desc>
|
---|
5601 | </method>
|
---|
5602 |
|
---|
5603 | <method name="onFloppyDriveChange">
|
---|
5604 | <desc>
|
---|
5605 | Notification when a property of the
|
---|
5606 | virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
|
---|
5607 | Interested callees should use IFloppyDrive methods to find out what
|
---|
5608 | has changed.
|
---|
5609 | </desc>
|
---|
5610 | </method>
|
---|
5611 |
|
---|
5612 | <method name="onNetworkAdapterChange">
|
---|
5613 | <desc>
|
---|
5614 | Notification when a property of one of the
|
---|
5615 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
5616 | changes. Interested callees should use INetworkAdapter methods and
|
---|
5617 | attributes to find out what has changed.
|
---|
5618 | </desc>
|
---|
5619 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
5620 | <desc>Network adapter that is subject to change.</desc>
|
---|
5621 | </param>
|
---|
5622 | </method>
|
---|
5623 |
|
---|
5624 | <method name="onSerialPortChange">
|
---|
5625 | <desc>
|
---|
5626 | Notification when a property of one of the
|
---|
5627 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
5628 | Interested callees should use ISerialPort methods and attributes
|
---|
5629 | to find out what has changed.
|
---|
5630 | </desc>
|
---|
5631 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
5632 | <desc>Serial port that is subject to change.</desc>
|
---|
5633 | </param>
|
---|
5634 | </method>
|
---|
5635 |
|
---|
5636 | <method name="onParallelPortChange">
|
---|
5637 | <desc>
|
---|
5638 | Notification when a property of one of the
|
---|
5639 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
5640 | changes. Interested callees should use ISerialPort methods and
|
---|
5641 | attributes to find out what has changed.
|
---|
5642 | </desc>
|
---|
5643 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
5644 | <desc>Parallel port that is subject to change.</desc>
|
---|
5645 | </param>
|
---|
5646 | </method>
|
---|
5647 |
|
---|
5648 | <method name="onStorageControllerChange">
|
---|
5649 | <desc>
|
---|
5650 | Notification when a property of one of the
|
---|
5651 | virtual <link to="IMachine::storageControllers">storage controllers</link>
|
---|
5652 | changes. Interested callees should query the corresponding collections
|
---|
5653 | to find out what has changed.
|
---|
5654 | </desc>
|
---|
5655 | </method>
|
---|
5656 |
|
---|
5657 | <method name="onVRDPServerChange">
|
---|
5658 | <desc>
|
---|
5659 | Notification when a property of the
|
---|
5660 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
5661 | Interested callees should use IVRDPServer methods and attributes to
|
---|
5662 | find out what has changed.
|
---|
5663 | </desc>
|
---|
5664 | </method>
|
---|
5665 |
|
---|
5666 | <method name="onUSBControllerChange">
|
---|
5667 | <desc>
|
---|
5668 | Notification when a property of the virtual
|
---|
5669 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
5670 | Interested callees should use IUSBController methods and attributes to
|
---|
5671 | find out what has changed.
|
---|
5672 | </desc>
|
---|
5673 | </method>
|
---|
5674 |
|
---|
5675 | <method name="onUSBDeviceStateChange">
|
---|
5676 | <desc>
|
---|
5677 | Notification when a USB device is attached to or detached from
|
---|
5678 | the virtual USB controller.
|
---|
5679 |
|
---|
5680 | This notification is sent as a result of the indirect
|
---|
5681 | request to attach the device because it matches one of the
|
---|
5682 | machine USB filters, or as a result of the direct request
|
---|
5683 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
5684 | <link to="IConsole::detachUSBDevice"/>.
|
---|
5685 |
|
---|
5686 | This notification is sent in case of both a succeeded and a
|
---|
5687 | failed request completion. When the request succeeds, the
|
---|
5688 | @a error parameter is @c null, and the given device has been
|
---|
5689 | already added to (when @a attached is @c true) or removed from
|
---|
5690 | (when @a attached is @c false) the collection represented by
|
---|
5691 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
5692 | doesn't change and the @a error parameter represents the error
|
---|
5693 | message describing the failure.
|
---|
5694 |
|
---|
5695 | </desc>
|
---|
5696 | <param name="device" type="IUSBDevice" dir="in">
|
---|
5697 | <desc>Device that is subject to state change.</desc>
|
---|
5698 | </param>
|
---|
5699 | <param name="attached" type="boolean" dir="in">
|
---|
5700 | <desc>
|
---|
5701 | @c true if the device was attached and @c false otherwise.
|
---|
5702 | </desc>
|
---|
5703 | </param>
|
---|
5704 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
5705 | <desc>
|
---|
5706 | @c null on success or an error message object on failure.
|
---|
5707 | </desc>
|
---|
5708 | </param>
|
---|
5709 | </method>
|
---|
5710 |
|
---|
5711 | <method name="onSharedFolderChange">
|
---|
5712 | <desc>
|
---|
5713 | Notification when a shared folder is added or removed.
|
---|
5714 | The @a scope argument defines one of three scopes:
|
---|
5715 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
5716 | (<link to="Scope_Global">Global</link>),
|
---|
5717 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
5718 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
5719 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
5720 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
5721 | should use query the corresponding collections to find out what has
|
---|
5722 | changed.
|
---|
5723 | </desc>
|
---|
5724 | <param name="scope" type="Scope" dir="in">
|
---|
5725 | <desc>Scope of the notification.</desc>
|
---|
5726 | </param>
|
---|
5727 | </method>
|
---|
5728 |
|
---|
5729 | <method name="onRuntimeError">
|
---|
5730 | <desc>
|
---|
5731 | Notification when an error happens during the virtual
|
---|
5732 | machine execution.
|
---|
5733 |
|
---|
5734 | There are three kinds of runtime errors:
|
---|
5735 | <ul>
|
---|
5736 | <li><i>fatal</i></li>
|
---|
5737 | <li><i>non-fatal with retry</i></li>
|
---|
5738 | <li><i>non-fatal warnings</i></li>
|
---|
5739 | </ul>
|
---|
5740 |
|
---|
5741 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
5742 | to @c true. In case of fatal errors, the virtual machine
|
---|
5743 | execution is always paused before calling this notification, and
|
---|
5744 | the notification handler is supposed either to immediately save
|
---|
5745 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
5746 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
5747 | Resuming the execution can lead to unpredictable results.
|
---|
5748 |
|
---|
5749 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
5750 | @a fatal parameter set to @c false. If the virtual machine
|
---|
5751 | is in the Paused state by the time the error notification is
|
---|
5752 | received, it means that the user can <i>try to resume</i> the machine
|
---|
5753 | execution after attempting to solve the problem that caused the
|
---|
5754 | error. In this case, the notification handler is supposed
|
---|
5755 | to show an appropriate message to the user (depending on the
|
---|
5756 | value of the @a id parameter) that offers several actions such
|
---|
5757 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
5758 | wants to retry, the notification handler should continue
|
---|
5759 | the machine execution using the <link to="IConsole::resume"/>
|
---|
5760 | call. If the machine execution is not Paused during this
|
---|
5761 | notification, then it means this notification is a <i>warning</i>
|
---|
5762 | (for example, about a fatal condition that can happen very soon);
|
---|
5763 | no immediate action is required from the user, the machine
|
---|
5764 | continues its normal execution.
|
---|
5765 |
|
---|
5766 | Note that in either case the notification handler
|
---|
5767 | <b>must not</b> perform any action directly on a thread
|
---|
5768 | where this notification is called. Everything it is allowed to
|
---|
5769 | do is to post a message to another thread that will then talk
|
---|
5770 | to the user and take the corresponding action.
|
---|
5771 |
|
---|
5772 | Currently, the following error identifiers are known:
|
---|
5773 | <ul>
|
---|
5774 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
5775 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
5776 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
5777 | </ul>
|
---|
5778 |
|
---|
5779 | <note>
|
---|
5780 | This notification is not designed to be implemented by
|
---|
5781 | more than one callback at a time. If you have multiple
|
---|
5782 | IConsoleCallback instances registered on the given
|
---|
5783 | IConsole object, make sure you simply do nothing but
|
---|
5784 | return @c S_OK from all but one of them that does actual
|
---|
5785 | user notification and performs necessary actions.
|
---|
5786 | </note>
|
---|
5787 |
|
---|
5788 | </desc>
|
---|
5789 | <param name="fatal" type="boolean" dir="in">
|
---|
5790 | <desc>Whether the error is fatal or not</desc>
|
---|
5791 | </param>
|
---|
5792 | <param name="id" type="wstring" dir="in">
|
---|
5793 | <desc>Error identifier</desc>
|
---|
5794 | </param>
|
---|
5795 | <param name="message" type="wstring" dir="in">
|
---|
5796 | <desc>Optional error message</desc>
|
---|
5797 | </param>
|
---|
5798 | </method>
|
---|
5799 |
|
---|
5800 | <method name="onCanShowWindow">
|
---|
5801 | <desc>
|
---|
5802 | Notification when a call to
|
---|
5803 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
5804 | front-end to check if a subsequent call to
|
---|
5805 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
5806 |
|
---|
5807 | The callee should give an answer appropriate to the current
|
---|
5808 | machine state in the @a canShow argument. This answer must
|
---|
5809 | remain valid at least until the next
|
---|
5810 | <link to="IConsole::state">machine state</link> change.
|
---|
5811 |
|
---|
5812 | <note>
|
---|
5813 | This notification is not designed to be implemented by
|
---|
5814 | more than one callback at a time. If you have multiple
|
---|
5815 | IConsoleCallback instances registered on the given
|
---|
5816 | IConsole object, make sure you simply do nothing but
|
---|
5817 | return @c true and @c S_OK from all but one of them that
|
---|
5818 | actually manages console window activation.
|
---|
5819 | </note>
|
---|
5820 | </desc>
|
---|
5821 | <param name="canShow" type="boolean" dir="return">
|
---|
5822 | <desc>
|
---|
5823 | @c true if the console window can be shown and @c false otherwise.
|
---|
5824 | </desc>
|
---|
5825 | </param>
|
---|
5826 | </method>
|
---|
5827 |
|
---|
5828 | <method name="onShowWindow">
|
---|
5829 | <desc>
|
---|
5830 | Notification when a call to
|
---|
5831 | <link to="IMachine::showConsoleWindow"/>
|
---|
5832 | requests the console window to be activated and brought to
|
---|
5833 | foreground on the desktop of the host PC.
|
---|
5834 |
|
---|
5835 | This notification should cause the VM console process to
|
---|
5836 | perform the requested action as described above. If it is
|
---|
5837 | impossible to do it at a time of this notification, this
|
---|
5838 | method should return a failure.
|
---|
5839 |
|
---|
5840 | Note that many modern window managers on many platforms
|
---|
5841 | implement some sort of focus stealing prevention logic, so
|
---|
5842 | that it may be impossible to activate a window without the
|
---|
5843 | help of the currently active application (which is supposedly
|
---|
5844 | an initiator of this notification). In this case, this method
|
---|
5845 | must return a non-zero identifier that represents the
|
---|
5846 | top-level window of the VM console process. The caller, if it
|
---|
5847 | represents a currently active process, is responsible to use
|
---|
5848 | this identifier (in a platform-dependent manner) to perform
|
---|
5849 | actual window activation.
|
---|
5850 |
|
---|
5851 | This method must set @a winId to zero if it has performed all
|
---|
5852 | actions necessary to complete the request and the console
|
---|
5853 | window is now active and in foreground, to indicate that no
|
---|
5854 | further action is required on the caller's side.
|
---|
5855 |
|
---|
5856 | <note>
|
---|
5857 | This notification is not designed to be implemented by
|
---|
5858 | more than one callback at a time. If you have multiple
|
---|
5859 | IConsoleCallback instances registered on the given
|
---|
5860 | IConsole object, make sure you simply do nothing but
|
---|
5861 | return @c S_OK from all but one of them that actually
|
---|
5862 | manages console window activation.
|
---|
5863 | </note>
|
---|
5864 | </desc>
|
---|
5865 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5866 | <desc>
|
---|
5867 | Platform-dependent identifier of the top-level VM console
|
---|
5868 | window, or zero if this method has performed all actions
|
---|
5869 | necessary to implement the <i>show window</i> semantics for
|
---|
5870 | the given platform and/or this VirtualBox front-end.
|
---|
5871 | </desc>
|
---|
5872 | </param>
|
---|
5873 | </method>
|
---|
5874 |
|
---|
5875 | </interface>
|
---|
5876 |
|
---|
5877 | <interface
|
---|
5878 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
5879 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
5880 | wsmap="struct"
|
---|
5881 | >
|
---|
5882 | <desc>
|
---|
5883 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
5884 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
5885 | </desc>
|
---|
5886 |
|
---|
5887 | <attribute name="active" type="boolean" readonly="yes">
|
---|
5888 | <desc>
|
---|
5889 | Whether the remote display connection is active.
|
---|
5890 | </desc>
|
---|
5891 | </attribute>
|
---|
5892 |
|
---|
5893 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
5894 | <desc>
|
---|
5895 | How many times a client connected.
|
---|
5896 | </desc>
|
---|
5897 | </attribute>
|
---|
5898 |
|
---|
5899 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
5900 | <desc>
|
---|
5901 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
5902 | </desc>
|
---|
5903 | </attribute>
|
---|
5904 |
|
---|
5905 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
5906 | <desc>
|
---|
5907 | When the last connection was terminated or the current time, if
|
---|
5908 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
5909 | </desc>
|
---|
5910 | </attribute>
|
---|
5911 |
|
---|
5912 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
5913 | <desc>
|
---|
5914 | How many bytes were sent in last or current, if still active, connection.
|
---|
5915 | </desc>
|
---|
5916 | </attribute>
|
---|
5917 |
|
---|
5918 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
5919 | <desc>
|
---|
5920 | How many bytes were sent in all connections.
|
---|
5921 | </desc>
|
---|
5922 | </attribute>
|
---|
5923 |
|
---|
5924 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
5925 | <desc>
|
---|
5926 | How many bytes were received in last or current, if still active, connection.
|
---|
5927 | </desc>
|
---|
5928 | </attribute>
|
---|
5929 |
|
---|
5930 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
5931 | <desc>
|
---|
5932 | How many bytes were received in all connections.
|
---|
5933 | </desc>
|
---|
5934 | </attribute>
|
---|
5935 |
|
---|
5936 | <attribute name="user" type="wstring" readonly="yes">
|
---|
5937 | <desc>
|
---|
5938 | Login user name supplied by the client.
|
---|
5939 | </desc>
|
---|
5940 | </attribute>
|
---|
5941 |
|
---|
5942 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
5943 | <desc>
|
---|
5944 | Login domain name supplied by the client.
|
---|
5945 | </desc>
|
---|
5946 | </attribute>
|
---|
5947 |
|
---|
5948 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
5949 | <desc>
|
---|
5950 | The client name supplied by the client.
|
---|
5951 | </desc>
|
---|
5952 | </attribute>
|
---|
5953 |
|
---|
5954 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
5955 | <desc>
|
---|
5956 | The IP address of the client.
|
---|
5957 | </desc>
|
---|
5958 | </attribute>
|
---|
5959 |
|
---|
5960 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
5961 | <desc>
|
---|
5962 | The client software version number.
|
---|
5963 | </desc>
|
---|
5964 | </attribute>
|
---|
5965 |
|
---|
5966 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
5967 | <desc>
|
---|
5968 | Public key exchange method used when connection was established.
|
---|
5969 | Values: 0 - RDP4 public key exchange scheme.
|
---|
5970 | 1 - X509 certificates were sent to client.
|
---|
5971 | </desc>
|
---|
5972 | </attribute>
|
---|
5973 |
|
---|
5974 | </interface>
|
---|
5975 |
|
---|
5976 | <interface
|
---|
5977 | name="IConsole" extends="$unknown"
|
---|
5978 | uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
|
---|
5979 | wsmap="managed"
|
---|
5980 | >
|
---|
5981 | <desc>
|
---|
5982 | The IConsole interface represents an interface to control virtual
|
---|
5983 | machine execution.
|
---|
5984 |
|
---|
5985 | The console object that implements the IConsole interface is obtained
|
---|
5986 | from a session object after the session for the given machine has been
|
---|
5987 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
5988 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
5989 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
5990 |
|
---|
5991 | Methods of the IConsole interface allow the caller to query the current
|
---|
5992 | virtual machine execution state, pause the machine or power it down, save
|
---|
5993 | the machine state or take a snapshot, attach and detach removable media
|
---|
5994 | and so on.
|
---|
5995 |
|
---|
5996 | <see>ISession</see>
|
---|
5997 | </desc>
|
---|
5998 |
|
---|
5999 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
6000 | <desc>
|
---|
6001 | Machine object this console is sessioned with.
|
---|
6002 | <note>
|
---|
6003 | This is a convenience property, it has the same value as
|
---|
6004 | <link to="ISession::machine"/> of the corresponding session
|
---|
6005 | object.
|
---|
6006 | </note>
|
---|
6007 | </desc>
|
---|
6008 | </attribute>
|
---|
6009 |
|
---|
6010 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
6011 | <desc>
|
---|
6012 | Current execution state of the machine.
|
---|
6013 | <note>
|
---|
6014 | This property always returns the same value as the corresponding
|
---|
6015 | property of the IMachine object this console is sessioned with.
|
---|
6016 | For the process that owns (executes) the VM, this is the
|
---|
6017 | preferable way of querying the VM state, because no IPC
|
---|
6018 | calls are made.
|
---|
6019 | </note>
|
---|
6020 | </desc>
|
---|
6021 | </attribute>
|
---|
6022 |
|
---|
6023 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
6024 | <desc>Guest object.</desc>
|
---|
6025 | </attribute>
|
---|
6026 |
|
---|
6027 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
6028 | <desc>
|
---|
6029 | Virtual keyboard object.
|
---|
6030 | <note>
|
---|
6031 | If the machine is not running, any attempt to use
|
---|
6032 | the returned object will result in an error.
|
---|
6033 | </note>
|
---|
6034 | </desc>
|
---|
6035 | </attribute>
|
---|
6036 |
|
---|
6037 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
6038 | <desc>
|
---|
6039 | Virtual mouse object.
|
---|
6040 | <note>
|
---|
6041 | If the machine is not running, any attempt to use
|
---|
6042 | the returned object will result in an error.
|
---|
6043 | </note>
|
---|
6044 | </desc>
|
---|
6045 | </attribute>
|
---|
6046 |
|
---|
6047 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
6048 | <desc>Virtual display object.
|
---|
6049 | <note>
|
---|
6050 | If the machine is not running, any attempt to use
|
---|
6051 | the returned object will result in an error.
|
---|
6052 | </note>
|
---|
6053 | </desc>
|
---|
6054 | </attribute>
|
---|
6055 |
|
---|
6056 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
6057 | <desc>Debugging interface.</desc>
|
---|
6058 | </attribute>
|
---|
6059 |
|
---|
6060 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
6061 | <desc>
|
---|
6062 | Collection of USB devices currently attached to the virtual
|
---|
6063 | USB controller.
|
---|
6064 | <note>
|
---|
6065 | The collection is empty if the machine is not running.
|
---|
6066 | </note>
|
---|
6067 | </desc>
|
---|
6068 | </attribute>
|
---|
6069 |
|
---|
6070 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6071 | <desc>
|
---|
6072 | List of USB devices currently attached to the remote VRDP client.
|
---|
6073 | Once a new device is physically attached to the remote host computer,
|
---|
6074 | it appears in this list and remains there until detached.
|
---|
6075 | </desc>
|
---|
6076 | </attribute>
|
---|
6077 |
|
---|
6078 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
6079 | <desc>
|
---|
6080 | Collection of shared folders for the current session. These folders
|
---|
6081 | are called transient shared folders because they are available to the
|
---|
6082 | guest OS running inside the associated virtual machine only for the
|
---|
6083 | duration of the session (as opposed to
|
---|
6084 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
6085 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
6086 | these folders are automatically discarded.
|
---|
6087 |
|
---|
6088 | New shared folders are added to the collection using
|
---|
6089 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
6090 | removed using <link to="#removeSharedFolder"/>.
|
---|
6091 | </desc>
|
---|
6092 | </attribute>
|
---|
6093 |
|
---|
6094 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
6095 | <desc>
|
---|
6096 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
6097 | </desc>
|
---|
6098 | </attribute>
|
---|
6099 |
|
---|
6100 | <method name="powerUp">
|
---|
6101 | <desc>
|
---|
6102 | Starts the virtual machine execution using the current machine
|
---|
6103 | state (that is, its current execution state, current settings and
|
---|
6104 | current hard disks).
|
---|
6105 |
|
---|
6106 | If the machine is powered off or aborted, the execution will
|
---|
6107 | start from the beginning (as if the real hardware were just
|
---|
6108 | powered on).
|
---|
6109 |
|
---|
6110 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
6111 | it will continue its execution the point where the state has
|
---|
6112 | been saved.
|
---|
6113 |
|
---|
6114 | <note>
|
---|
6115 | Unless you are trying to write a new VirtualBox front-end that
|
---|
6116 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
6117 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
6118 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
6119 | session only to change virtual machine settings. If you simply want to
|
---|
6120 | start virtual machine execution using one of the existing front-ends
|
---|
6121 | (for example the VirtualBox GUI or headless server), simply use
|
---|
6122 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
6123 | power up the machine automatically for you.
|
---|
6124 | </note>
|
---|
6125 |
|
---|
6126 | <see>#saveState</see>
|
---|
6127 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6128 | Virtual machine already running.
|
---|
6129 | </result>
|
---|
6130 | <result name="VBOX_E_HOST_ERROR">
|
---|
6131 | Host interface does not exist or name not set.
|
---|
6132 | </result>
|
---|
6133 | <result name="VBOX_E_FILE_ERROR">
|
---|
6134 | Invalid saved state file.
|
---|
6135 | </result>
|
---|
6136 | </desc>
|
---|
6137 | <param name="progress" type="IProgress" dir="return">
|
---|
6138 | <desc>Progress object to track the operation completion.</desc>
|
---|
6139 | </param>
|
---|
6140 | </method>
|
---|
6141 |
|
---|
6142 | <method name="powerUpPaused">
|
---|
6143 | <desc>
|
---|
6144 | Identical to powerUp except that the VM will enter the
|
---|
6145 | <link to="MachineState_Paused"/> state, instead of
|
---|
6146 | <link to="MachineState_Running"/>.
|
---|
6147 |
|
---|
6148 | <see>#powerUp</see>
|
---|
6149 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6150 | Virtual machine already running.
|
---|
6151 | </result>
|
---|
6152 | <result name="VBOX_E_HOST_ERROR">
|
---|
6153 | Host interface does not exist or name not set.
|
---|
6154 | </result>
|
---|
6155 | <result name="VBOX_E_FILE_ERROR">
|
---|
6156 | Invalid saved state file.
|
---|
6157 | </result>
|
---|
6158 | </desc>
|
---|
6159 | <param name="progress" type="IProgress" dir="return">
|
---|
6160 | <desc>Progress object to track the operation completion.</desc>
|
---|
6161 | </param>
|
---|
6162 | </method>
|
---|
6163 |
|
---|
6164 | <method name="powerDown">
|
---|
6165 | <desc>
|
---|
6166 | Initiates the power down procedure to stop the virtual machine
|
---|
6167 | execution.
|
---|
6168 |
|
---|
6169 | The completion of the power down procedure is tracked using the returned
|
---|
6170 | IProgress object. After the operation is complete, the machine will go
|
---|
6171 | to the PoweredOff state.
|
---|
6172 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6173 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6174 | </result>
|
---|
6175 | </desc>
|
---|
6176 | <param name="progress" type="IProgress" dir="return">
|
---|
6177 | <desc>Progress object to track the operation completion.</desc>
|
---|
6178 | </param>
|
---|
6179 | </method>
|
---|
6180 |
|
---|
6181 | <method name="reset">
|
---|
6182 | <desc>Resets the virtual machine.
|
---|
6183 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6184 | Virtual machine not in Running state.
|
---|
6185 | </result>
|
---|
6186 | <result name="VBOX_E_VM_ERROR">
|
---|
6187 | Virtual machine error in reset operation.
|
---|
6188 | </result>
|
---|
6189 | </desc>
|
---|
6190 | </method>
|
---|
6191 |
|
---|
6192 | <method name="pause">
|
---|
6193 | <desc>Pauses the virtual machine execution.
|
---|
6194 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6195 | Virtual machine not in Running state.
|
---|
6196 | </result>
|
---|
6197 | <result name="VBOX_E_VM_ERROR">
|
---|
6198 | Virtual machine error in suspend operation.
|
---|
6199 | </result>
|
---|
6200 | </desc>
|
---|
6201 | </method>
|
---|
6202 |
|
---|
6203 | <method name="resume">
|
---|
6204 | <desc>Resumes the virtual machine execution.
|
---|
6205 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6206 | Virtual machine not in Paused state.
|
---|
6207 | </result>
|
---|
6208 | <result name="VBOX_E_VM_ERROR">
|
---|
6209 | Virtual machine error in resume operation.
|
---|
6210 | </result>
|
---|
6211 | </desc>
|
---|
6212 | </method>
|
---|
6213 |
|
---|
6214 | <method name="powerButton">
|
---|
6215 | <desc>Sends the ACPI power button event to the guest.
|
---|
6216 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6217 | Virtual machine not in Running state.
|
---|
6218 | </result>
|
---|
6219 | <result name="VBOX_E_PDM_ERROR">
|
---|
6220 | Controlled power off failed.
|
---|
6221 | </result>
|
---|
6222 | </desc>
|
---|
6223 | </method>
|
---|
6224 |
|
---|
6225 | <method name="sleepButton">
|
---|
6226 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6227 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6228 | Virtual machine not in Running state.
|
---|
6229 | </result>
|
---|
6230 | <result name="VBOX_E_PDM_ERROR">
|
---|
6231 | Sending sleep button event failed.
|
---|
6232 | </result>
|
---|
6233 | </desc>
|
---|
6234 | </method>
|
---|
6235 |
|
---|
6236 | <method name="getPowerButtonHandled">
|
---|
6237 | <desc>Checks if the last power button event was handled by guest.
|
---|
6238 | <result name="VBOX_E_PDM_ERROR">
|
---|
6239 | Checking if the event was handled by the guest OS failed.
|
---|
6240 | </result>
|
---|
6241 | </desc>
|
---|
6242 | <param name="handled" type="boolean" dir="return"/>
|
---|
6243 | </method>
|
---|
6244 |
|
---|
6245 | <method name="getGuestEnteredACPIMode">
|
---|
6246 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6247 | G1 (sleeping). If this method returns @c false, the guest will
|
---|
6248 | most likely not respond to external ACPI events.
|
---|
6249 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6250 | Virtual machine not in Running state.
|
---|
6251 | </result>
|
---|
6252 | </desc>
|
---|
6253 | <param name="entered" type="boolean" dir="return"/>
|
---|
6254 | </method>
|
---|
6255 |
|
---|
6256 | <method name="saveState">
|
---|
6257 | <desc>
|
---|
6258 | Saves the current execution state of a running virtual machine
|
---|
6259 | and stops its execution.
|
---|
6260 |
|
---|
6261 | After this operation completes, the machine will go to the
|
---|
6262 | Saved state. Next time it is powered up, this state will
|
---|
6263 | be restored and the machine will continue its execution from
|
---|
6264 | the place where it was saved.
|
---|
6265 |
|
---|
6266 | This operation differs from taking a snapshot to the effect
|
---|
6267 | that it doesn't create new differencing hard disks. Also, once
|
---|
6268 | the machine is powered up from the state saved using this method,
|
---|
6269 | the saved state is deleted, so it will be impossible to return
|
---|
6270 | to this state later.
|
---|
6271 |
|
---|
6272 | <note>
|
---|
6273 | On success, this method implicitly calls
|
---|
6274 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6275 | settings (including runtime changes to the DVD drive, etc.).
|
---|
6276 | Together with the impossibility to change any VM settings when it is
|
---|
6277 | in the Saved state, this guarantees adequate hardware
|
---|
6278 | configuration of the machine when it is restored from the saved
|
---|
6279 | state file.
|
---|
6280 | </note>
|
---|
6281 |
|
---|
6282 | <note>
|
---|
6283 | The machine must be in the Running or Paused state, otherwise
|
---|
6284 | the operation will fail.
|
---|
6285 | </note>
|
---|
6286 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6287 | Virtual machine state neither Running nor Paused.
|
---|
6288 | </result>
|
---|
6289 | <result name="VBOX_E_FILE_ERROR">
|
---|
6290 | Failed to create directory for saved state file.
|
---|
6291 | </result>
|
---|
6292 |
|
---|
6293 | <see><link to="#takeSnapshot"/></see>
|
---|
6294 | </desc>
|
---|
6295 | <param name="progress" type="IProgress" dir="return">
|
---|
6296 | <desc>Progress object to track the operation completion.</desc>
|
---|
6297 | </param>
|
---|
6298 | </method>
|
---|
6299 |
|
---|
6300 | <method name="adoptSavedState">
|
---|
6301 | <desc>
|
---|
6302 | Associates the given saved state file to the virtual machine.
|
---|
6303 |
|
---|
6304 | On success, the machine will go to the Saved state. Next time it is
|
---|
6305 | powered up, it will be restored from the adopted saved state and
|
---|
6306 | continue execution from the place where the saved state file was
|
---|
6307 | created.
|
---|
6308 |
|
---|
6309 | The specified saved state file path may be absolute or relative to the
|
---|
6310 | folder the VM normally saves the state to (usually,
|
---|
6311 | <link to="IMachine::snapshotFolder"/>).
|
---|
6312 |
|
---|
6313 | <note>
|
---|
6314 | It's a caller's responsibility to make sure the given saved state
|
---|
6315 | file is compatible with the settings of this virtual machine that
|
---|
6316 | represent its virtual hardware (memory size, hard disk configuration
|
---|
6317 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6318 | is undefined.
|
---|
6319 | </note>
|
---|
6320 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6321 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6322 | </result>
|
---|
6323 | </desc>
|
---|
6324 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6325 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6326 | </param>
|
---|
6327 | </method>
|
---|
6328 |
|
---|
6329 | <method name="forgetSavedState">
|
---|
6330 | <desc>
|
---|
6331 | Forgets the saved state of the virtual machine previously created
|
---|
6332 | by <link to="#saveState"/>. Next time the machine is powered up, a
|
---|
6333 | clean boot will occur. If @a remove is @c true the saved state file
|
---|
6334 | is deleted.
|
---|
6335 | <note>
|
---|
6336 | This operation is equivalent to resetting or powering off
|
---|
6337 | the machine without doing a proper shutdown in the guest OS.
|
---|
6338 | </note>
|
---|
6339 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6340 | Virtual machine not in state Saved.
|
---|
6341 | </result>
|
---|
6342 | </desc>
|
---|
6343 | <param name="remove" type="boolean" dir="in">
|
---|
6344 | <desc>If @c true remove the saved state file.</desc>
|
---|
6345 | </param>
|
---|
6346 | </method>
|
---|
6347 |
|
---|
6348 | <method name="getDeviceActivity">
|
---|
6349 | <desc>
|
---|
6350 | Gets the current activity type of a given device or device group.
|
---|
6351 | <result name="E_INVALIDARG">
|
---|
6352 | Invalid device type.
|
---|
6353 | </result>
|
---|
6354 | </desc>
|
---|
6355 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6356 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6357 | </method>
|
---|
6358 |
|
---|
6359 | <method name="attachUSBDevice">
|
---|
6360 | <desc>
|
---|
6361 | Attaches a host USB device with the given UUID to the
|
---|
6362 | USB controller of the virtual machine.
|
---|
6363 |
|
---|
6364 | The device needs to be in one of the following states:
|
---|
6365 | <link to="USBDeviceState_Busy"/>,
|
---|
6366 | <link to="USBDeviceState_Available"/> or
|
---|
6367 | <link to="USBDeviceState_Held"/>,
|
---|
6368 | otherwise an error is immediately returned.
|
---|
6369 |
|
---|
6370 | When the device state is
|
---|
6371 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6372 | be returned if the host computer refuses to release it for some reason.
|
---|
6373 |
|
---|
6374 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6375 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6376 | Virtual machine state neither Running nor Paused.
|
---|
6377 | </result>
|
---|
6378 | <result name="VBOX_E_PDM_ERROR">
|
---|
6379 | Virtual machine does not have a USB controller.
|
---|
6380 | </result>
|
---|
6381 | </desc>
|
---|
6382 | <param name="id" type="wstring" dir="in">
|
---|
6383 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6384 | </param>
|
---|
6385 | </method>
|
---|
6386 |
|
---|
6387 | <method name="detachUSBDevice">
|
---|
6388 | <desc>
|
---|
6389 | Detaches an USB device with the given UUID from the USB controller
|
---|
6390 | of the virtual machine.
|
---|
6391 |
|
---|
6392 | After this method succeeds, the VirtualBox server re-initiates
|
---|
6393 | all USB filters as if the device were just physically attached
|
---|
6394 | to the host, but filters of this machine are ignored to avoid
|
---|
6395 | a possible automatic re-attachment.
|
---|
6396 |
|
---|
6397 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6398 |
|
---|
6399 | <result name="VBOX_E_PDM_ERROR">
|
---|
6400 | Virtual machine does not have a USB controller.
|
---|
6401 | </result>
|
---|
6402 | <result name="E_INVALIDARG">
|
---|
6403 | USB device not attached to this virtual machine.
|
---|
6404 | </result>
|
---|
6405 | </desc>
|
---|
6406 | <param name="id" type="wstring" dir="in">
|
---|
6407 | <desc>UUID of the USB device to detach.</desc>
|
---|
6408 | </param>
|
---|
6409 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6410 | <desc>Detached USB device.</desc>
|
---|
6411 | </param>
|
---|
6412 | </method>
|
---|
6413 |
|
---|
6414 | <method name="findUSBDeviceByAddress">
|
---|
6415 | <desc>
|
---|
6416 | Searches for a USB device with the given host address.
|
---|
6417 |
|
---|
6418 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6419 | Given @c name does not correspond to any USB device.
|
---|
6420 | </result>
|
---|
6421 |
|
---|
6422 | <see>IUSBDevice::address</see>
|
---|
6423 | </desc>
|
---|
6424 | <param name="name" type="wstring" dir="in">
|
---|
6425 | <desc>
|
---|
6426 | Address of the USB device (as assigned by the host) to
|
---|
6427 | search for.
|
---|
6428 | </desc>
|
---|
6429 | </param>
|
---|
6430 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6431 | <desc>Found USB device object.</desc>
|
---|
6432 | </param>
|
---|
6433 | </method>
|
---|
6434 |
|
---|
6435 | <method name="findUSBDeviceById">
|
---|
6436 | <desc>
|
---|
6437 | Searches for a USB device with the given UUID.
|
---|
6438 |
|
---|
6439 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6440 | Given @c id does not correspond to any USB device.
|
---|
6441 | </result>
|
---|
6442 |
|
---|
6443 | <see>IUSBDevice::id</see>
|
---|
6444 | </desc>
|
---|
6445 | <param name="id" type="wstring" dir="in">
|
---|
6446 | <desc>UUID of the USB device to search for.</desc>
|
---|
6447 | </param>
|
---|
6448 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6449 | <desc>Found USB device object.</desc>
|
---|
6450 | </param>
|
---|
6451 | </method>
|
---|
6452 |
|
---|
6453 | <method name="createSharedFolder">
|
---|
6454 | <desc>
|
---|
6455 | Creates a transient new shared folder by associating the given logical
|
---|
6456 | name with the given host path, adds it to the collection of shared
|
---|
6457 | folders and starts sharing it. Refer to the description of
|
---|
6458 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
6459 |
|
---|
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 already exists or not accessible.
|
---|
6465 | </result>
|
---|
6466 | </desc>
|
---|
6467 | <param name="name" type="wstring" dir="in">
|
---|
6468 | <desc>Unique logical name of the shared folder.</desc>
|
---|
6469 | </param>
|
---|
6470 | <param name="hostPath" type="wstring" dir="in">
|
---|
6471 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
6472 | </param>
|
---|
6473 | <param name="writable" type="boolean" dir="in">
|
---|
6474 | <desc>Whether the share is writable or readonly</desc>
|
---|
6475 | </param>
|
---|
6476 | </method>
|
---|
6477 |
|
---|
6478 | <method name="removeSharedFolder">
|
---|
6479 | <desc>
|
---|
6480 | Removes a transient shared folder with the given name previously
|
---|
6481 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
6482 | shared folders and stops sharing it.
|
---|
6483 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6484 | Virtual machine in Saved state or currently changing state.
|
---|
6485 | </result>
|
---|
6486 | <result name="VBOX_E_FILE_ERROR">
|
---|
6487 | Shared folder does not exists.
|
---|
6488 | </result>
|
---|
6489 | </desc>
|
---|
6490 | <param name="name" type="wstring" dir="in">
|
---|
6491 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
6492 | </param>
|
---|
6493 | </method>
|
---|
6494 |
|
---|
6495 | <method name="takeSnapshot">
|
---|
6496 | <desc>
|
---|
6497 | Saves the current execution state
|
---|
6498 | and all settings of the machine and creates differencing images
|
---|
6499 | for all normal (non-independent) hard disks.
|
---|
6500 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6501 |
|
---|
6502 | This method can be called for a PoweredOff, Saved (see
|
---|
6503 | <link to="#saveState"/>), Running or
|
---|
6504 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
6505 | offline snapshot is created, an online snapshot otherwise.
|
---|
6506 |
|
---|
6507 | The taken snapshot is always based on the
|
---|
6508 | <link to="IMachine::currentSnapshot">current snapshot</link>
|
---|
6509 | of the associated virtual machine and becomes a new current snapshot.
|
---|
6510 |
|
---|
6511 | <note>
|
---|
6512 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
6513 | save all current machine settings before taking an offline snapshot.
|
---|
6514 | </note>
|
---|
6515 |
|
---|
6516 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6517 | Virtual machine currently changing state.
|
---|
6518 | </result>
|
---|
6519 | </desc>
|
---|
6520 | <param name="name" type="wstring" dir="in">
|
---|
6521 | <desc>Short name for the snapshot.</desc>
|
---|
6522 | </param>
|
---|
6523 | <param name="description" type="wstring" dir="in">
|
---|
6524 | <desc>Optional description of the snapshot.</desc>
|
---|
6525 | </param>
|
---|
6526 | <param name="progress" type="IProgress" dir="return">
|
---|
6527 | <desc>Progress object to track the operation completion.</desc>
|
---|
6528 | </param>
|
---|
6529 | </method>
|
---|
6530 |
|
---|
6531 | <method name="discardSnapshot">
|
---|
6532 | <desc>
|
---|
6533 | Starts discarding the specified snapshot asynchronously.
|
---|
6534 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6535 |
|
---|
6536 | The execution state
|
---|
6537 | and settings of the associated machine stored in the snapshot
|
---|
6538 | will be deleted. The contents of all differencing hard disks of
|
---|
6539 | this snapshot will be merged with the contents of their
|
---|
6540 | dependent child hard disks to keep the disks valid (in other
|
---|
6541 | words, all changes represented by hard disks being discarded
|
---|
6542 | will be propagated to their child hard disks). After that, this
|
---|
6543 | snapshot's differencing hard disks will be deleted. The parent
|
---|
6544 | of this snapshot will become a new parent for all its child
|
---|
6545 | snapshots.
|
---|
6546 |
|
---|
6547 | If the discarded snapshot is the current one, its parent
|
---|
6548 | snapshot will become a new current snapshot. The current machine
|
---|
6549 | state is not directly affected in this case, except that
|
---|
6550 | currently attached differencing hard disks based on hard disks
|
---|
6551 | of the discarded snapshot will be also merged as described
|
---|
6552 | above.
|
---|
6553 |
|
---|
6554 | If the discarded snapshot is the first one (the root snapshot)
|
---|
6555 | and it has exactly one child snapshot, this child snapshot will
|
---|
6556 | become the first snapshot after discarding. If there are no
|
---|
6557 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
6558 | the machine), both the current and the first snapshot of the
|
---|
6559 | machine will be set to @c null. In all other cases, the first
|
---|
6560 | snapshot cannot be discarded.
|
---|
6561 |
|
---|
6562 | You cannot discard the snapshot if it
|
---|
6563 | stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
|
---|
6564 | hard disks that have differencing hard disks based on them. Snapshots of
|
---|
6565 | such kind can be discarded only when every normal hard disk has either
|
---|
6566 | no children at all or exactly one child. In the former case, the normal
|
---|
6567 | hard disk simply becomes unused (i.e. not attached to any VM). In the
|
---|
6568 | latter case, it receives all the changes stored in the child hard disk,
|
---|
6569 | and then it replaces the child hard disk in the configuration of the
|
---|
6570 | corresponding snapshot or machine.
|
---|
6571 |
|
---|
6572 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
6573 | (of any type) having differencing child hard disks that belong
|
---|
6574 | to other machines. Such snapshots can be only discarded after
|
---|
6575 | you discard all snapshots of other machines containing "foreign"
|
---|
6576 | child disks, or detach these "foreign" child disks from machines
|
---|
6577 | they are attached to.
|
---|
6578 |
|
---|
6579 | One particular example of the snapshot storing normal hard disks
|
---|
6580 | is the first snapshot of a virtual machine that had normal hard
|
---|
6581 | disks attached when taking the snapshot. Be careful when
|
---|
6582 | discarding such snapshots because this implicitly commits
|
---|
6583 | changes (made since the snapshot being discarded has been taken)
|
---|
6584 | to normal hard disks (as described above), which may be not what
|
---|
6585 | you want.
|
---|
6586 |
|
---|
6587 | The virtual machine is put to
|
---|
6588 | the <link to="MachineState_Discarding">Discarding</link> state until
|
---|
6589 | the discard operation is completed.
|
---|
6590 |
|
---|
6591 | <note>
|
---|
6592 | The machine must not be running, otherwise the operation
|
---|
6593 | will fail.
|
---|
6594 | </note>
|
---|
6595 |
|
---|
6596 | <note>
|
---|
6597 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
6598 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
6599 | operation to succeed. In particular, this means that all virtual
|
---|
6600 | machines, whose hard disks are directly or indirectly based on the
|
---|
6601 | hard disks of discarded snapshot, must be powered off.
|
---|
6602 | </note>
|
---|
6603 | <note>
|
---|
6604 | Merging hard disk contents can be very time and disk space
|
---|
6605 | consuming, if these disks are big in size and have many
|
---|
6606 | children. However, if the snapshot being discarded is the last
|
---|
6607 | (head) snapshot on the branch, the operation will be rather
|
---|
6608 | quick.
|
---|
6609 | </note>
|
---|
6610 | <note>
|
---|
6611 | Note that discarding the current snapshot
|
---|
6612 | will implicitly call <link to="IMachine::saveSettings"/> to
|
---|
6613 | make all current machine settings permanent.
|
---|
6614 | </note>
|
---|
6615 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6616 | Virtual machine is running.
|
---|
6617 | </result>
|
---|
6618 | </desc>
|
---|
6619 | <param name="id" type="wstring" dir="in">
|
---|
6620 | <desc>UUID of the snapshot to discard.</desc>
|
---|
6621 | </param>
|
---|
6622 | <param name="progress" type="IProgress" dir="return">
|
---|
6623 | <desc>Progress object to track the operation completion.</desc>
|
---|
6624 | </param>
|
---|
6625 | </method>
|
---|
6626 |
|
---|
6627 | <method name="discardCurrentState">
|
---|
6628 | <desc>
|
---|
6629 | Starts resetting the machine's current state to the state contained
|
---|
6630 | in the current snapshot, asynchronously. All current settings of the
|
---|
6631 | machine will be reset and changes stored in differencing hard disks
|
---|
6632 | will be lost.
|
---|
6633 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6634 |
|
---|
6635 | After this operation is successfully completed, new empty differencing
|
---|
6636 | hard disks are created for all normal hard disks of the machine.
|
---|
6637 |
|
---|
6638 | If the current snapshot of the machine is an online snapshot, the
|
---|
6639 | machine will go to the <link to="MachineState_Saved"> saved
|
---|
6640 | state</link>, so that the next time it is powered on, the execution
|
---|
6641 | state will be restored from the current snapshot.
|
---|
6642 |
|
---|
6643 | <note>
|
---|
6644 | The machine must not be running, otherwise the operation will fail.
|
---|
6645 | </note>
|
---|
6646 |
|
---|
6647 | <note>
|
---|
6648 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6649 | prior to this operation, the saved state file will be implicitly
|
---|
6650 | discarded (as if <link to="IConsole::forgetSavedState"/> were
|
---|
6651 | called).
|
---|
6652 | </note>
|
---|
6653 |
|
---|
6654 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6655 | Virtual machine is running.
|
---|
6656 | </result>
|
---|
6657 | </desc>
|
---|
6658 | <param name="progress" type="IProgress" dir="return">
|
---|
6659 | <desc>Progress object to track the operation completion.</desc>
|
---|
6660 | </param>
|
---|
6661 | </method>
|
---|
6662 |
|
---|
6663 | <method name="discardCurrentSnapshotAndState">
|
---|
6664 | <desc>
|
---|
6665 |
|
---|
6666 | This method is equivalent to
|
---|
6667 | doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
|
---|
6668 | (currentSnapshot.id(), progress) followed by
|
---|
6669 | <link to="IConsole::discardCurrentState"/>.
|
---|
6670 |
|
---|
6671 | As a result, the machine will be fully restored from the
|
---|
6672 | snapshot preceding the current snapshot, while both the current
|
---|
6673 | snapshot and the current machine state will be discarded.
|
---|
6674 |
|
---|
6675 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
6676 | has the only snapshot), the current machine state will be
|
---|
6677 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
6678 | machine will be restored from its last snapshot, before discarding
|
---|
6679 | it. This differs from performing a single
|
---|
6680 | <link to="IConsole::discardSnapshot"/> call (note that no
|
---|
6681 | <link to="IConsole::discardCurrentState"/> will be possible after it)
|
---|
6682 | to the effect that the latter will preserve the current state instead of
|
---|
6683 | discarding it.
|
---|
6684 |
|
---|
6685 | Unless explicitly mentioned otherwise, all remarks and
|
---|
6686 | limitations of the above two methods also apply to this method.
|
---|
6687 |
|
---|
6688 | <note>
|
---|
6689 | The machine must not be running, otherwise the operation
|
---|
6690 | will fail.
|
---|
6691 | </note>
|
---|
6692 |
|
---|
6693 | <note>
|
---|
6694 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6695 | prior to this operation, the saved state file will be implicitly
|
---|
6696 | discarded (as if <link to="#forgetSavedState"/> were
|
---|
6697 | called).
|
---|
6698 | </note>
|
---|
6699 |
|
---|
6700 | <note>
|
---|
6701 | This method is more efficient than calling both of the above
|
---|
6702 | methods separately: it requires less IPC calls and provides
|
---|
6703 | a single progress object.
|
---|
6704 | </note>
|
---|
6705 |
|
---|
6706 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6707 | Virtual machine is running.
|
---|
6708 | </result>
|
---|
6709 | </desc>
|
---|
6710 | <param name="progress" type="IProgress" dir="return">
|
---|
6711 | <desc>Progress object to track the operation completion.</desc>
|
---|
6712 | </param>
|
---|
6713 | </method>
|
---|
6714 |
|
---|
6715 | <method name="registerCallback">
|
---|
6716 | <desc>
|
---|
6717 | Registers a new console callback on this instance. The methods of the
|
---|
6718 | callback interface will be called by this instance when the appropriate
|
---|
6719 | event occurs.
|
---|
6720 | </desc>
|
---|
6721 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6722 | </method>
|
---|
6723 |
|
---|
6724 | <method name="unregisterCallback">
|
---|
6725 | <desc>
|
---|
6726 | Unregisters the console callback previously registered using
|
---|
6727 | <link to="#registerCallback"/>.
|
---|
6728 | <result name="E_INVALIDARG">
|
---|
6729 | Given @a callback handler is not registered.
|
---|
6730 | </result>
|
---|
6731 | </desc>
|
---|
6732 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6733 | </method>
|
---|
6734 | </interface>
|
---|
6735 |
|
---|
6736 | <!--
|
---|
6737 | // IHost
|
---|
6738 | /////////////////////////////////////////////////////////////////////////
|
---|
6739 | -->
|
---|
6740 |
|
---|
6741 | <interface
|
---|
6742 | name="IHostDVDDrive" extends="$unknown"
|
---|
6743 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
6744 | wsmap="managed"
|
---|
6745 | >
|
---|
6746 | <desc>
|
---|
6747 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
6748 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
6749 | </desc>
|
---|
6750 |
|
---|
6751 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6752 | <desc>
|
---|
6753 | Returns the platform-specific device identifier.
|
---|
6754 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
6755 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
6756 | </desc>
|
---|
6757 | </attribute>
|
---|
6758 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6759 | <desc>
|
---|
6760 | Returns a human readable description for the drive. This
|
---|
6761 | description usually contains the product and vendor name. An
|
---|
6762 | empty string is returned if the description is not available.
|
---|
6763 | </desc>
|
---|
6764 | </attribute>
|
---|
6765 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6766 | <desc>
|
---|
6767 | Returns the unique device identifier for the drive. This
|
---|
6768 | attribute is reserved for future use instead of
|
---|
6769 | <link to="#name"/>. Currently it is not used and may return
|
---|
6770 | an empty string on some platforms.
|
---|
6771 | </desc>
|
---|
6772 | </attribute>
|
---|
6773 |
|
---|
6774 | </interface>
|
---|
6775 |
|
---|
6776 | <interface
|
---|
6777 | name="IHostFloppyDrive" extends="$unknown"
|
---|
6778 | uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
|
---|
6779 | wsmap="managed"
|
---|
6780 | >
|
---|
6781 | <desc>
|
---|
6782 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
6783 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
6784 | </desc>
|
---|
6785 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6786 | <desc>
|
---|
6787 | Returns the platform-specific device identifier.
|
---|
6788 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
6789 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
6790 | </desc>
|
---|
6791 | </attribute>
|
---|
6792 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6793 | <desc>
|
---|
6794 | Returns a human readable description for the drive. This
|
---|
6795 | description usually contains the product and vendor name. An
|
---|
6796 | empty string is returned if the description is not available.
|
---|
6797 | </desc>
|
---|
6798 | </attribute>
|
---|
6799 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6800 | <desc>
|
---|
6801 | Returns the unique device identifier for the drive. This
|
---|
6802 | attribute is reserved for future use instead of
|
---|
6803 | <link to="#name"/>. Currently it is not used and may return
|
---|
6804 | an empty string on some platforms.
|
---|
6805 | </desc>
|
---|
6806 | </attribute>
|
---|
6807 | </interface>
|
---|
6808 |
|
---|
6809 | <enum
|
---|
6810 | name="HostNetworkInterfaceMediumType"
|
---|
6811 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
6812 | >
|
---|
6813 | <desc>
|
---|
6814 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
6815 | wireless Ethernet connections.
|
---|
6816 | <see>IHostNetworkInterface</see>
|
---|
6817 | </desc>
|
---|
6818 |
|
---|
6819 | <const name="Unknown" value="0">
|
---|
6820 | <desc>
|
---|
6821 | The type of interface cannot be determined.
|
---|
6822 | </desc>
|
---|
6823 | </const>
|
---|
6824 | <const name="Ethernet" value="1">
|
---|
6825 | <desc>
|
---|
6826 | Ethernet frame encapsulation.
|
---|
6827 | </desc>
|
---|
6828 | </const>
|
---|
6829 | <const name="PPP" value="2">
|
---|
6830 | <desc>
|
---|
6831 | Point-to-point protocol encapsulation.
|
---|
6832 | </desc>
|
---|
6833 | </const>
|
---|
6834 | <const name="SLIP" value="3">
|
---|
6835 | <desc>
|
---|
6836 | Serial line IP encapsulation.
|
---|
6837 | </desc>
|
---|
6838 | </const>
|
---|
6839 | </enum>
|
---|
6840 |
|
---|
6841 | <enum
|
---|
6842 | name="HostNetworkInterfaceStatus"
|
---|
6843 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
6844 | >
|
---|
6845 | <desc>
|
---|
6846 | Current status of the interface.
|
---|
6847 | <see>IHostNetworkInterface</see>
|
---|
6848 | </desc>
|
---|
6849 |
|
---|
6850 | <const name="Unknown" value="0">
|
---|
6851 | <desc>
|
---|
6852 | The state of interface cannot be determined.
|
---|
6853 | </desc>
|
---|
6854 | </const>
|
---|
6855 | <const name="Up" value="1">
|
---|
6856 | <desc>
|
---|
6857 | The interface is fully operational.
|
---|
6858 | </desc>
|
---|
6859 | </const>
|
---|
6860 | <const name="Down" value="2">
|
---|
6861 | <desc>
|
---|
6862 | The interface is not functioning.
|
---|
6863 | </desc>
|
---|
6864 | </const>
|
---|
6865 | </enum>
|
---|
6866 |
|
---|
6867 | <enum
|
---|
6868 | name="HostNetworkInterfaceType"
|
---|
6869 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
6870 | >
|
---|
6871 | <desc>
|
---|
6872 | Network interface type.
|
---|
6873 | </desc>
|
---|
6874 | <const name="Bridged" value="1"/>
|
---|
6875 | <const name="HostOnly" value="2"/>
|
---|
6876 | </enum>
|
---|
6877 |
|
---|
6878 | <interface
|
---|
6879 | name="IHostNetworkInterface" extends="$unknown"
|
---|
6880 | uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
|
---|
6881 | wsmap="managed"
|
---|
6882 | >
|
---|
6883 | <desc>
|
---|
6884 | Represents one of host's network interfaces. IP V6 address and network
|
---|
6885 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
6886 | separated by colons.
|
---|
6887 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
6888 | </desc>
|
---|
6889 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6890 | <desc>Returns the host network interface name.</desc>
|
---|
6891 | </attribute>
|
---|
6892 |
|
---|
6893 | <attribute name="id" type="wstring" readonly="yes">
|
---|
6894 | <desc>Returns the interface UUID.</desc>
|
---|
6895 | </attribute>
|
---|
6896 |
|
---|
6897 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
6898 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
6899 | </attribute>
|
---|
6900 |
|
---|
6901 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
6902 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
6903 | </attribute>
|
---|
6904 |
|
---|
6905 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
6906 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
6907 | </attribute>
|
---|
6908 |
|
---|
6909 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
6910 | <desc>Returns the network mask of the interface.</desc>
|
---|
6911 | </attribute>
|
---|
6912 |
|
---|
6913 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
6914 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
6915 | </attribute>
|
---|
6916 |
|
---|
6917 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
6918 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
6919 | </attribute>
|
---|
6920 |
|
---|
6921 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
6922 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
6923 | </attribute>
|
---|
6924 |
|
---|
6925 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
6926 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
6927 | </attribute>
|
---|
6928 |
|
---|
6929 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
6930 | <desc>Type of protocol encapsulation used.</desc>
|
---|
6931 | </attribute>
|
---|
6932 |
|
---|
6933 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
6934 | <desc>Status of the interface.</desc>
|
---|
6935 | </attribute>
|
---|
6936 |
|
---|
6937 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
6938 | <desc>specifies the host interface type.</desc>
|
---|
6939 | </attribute>
|
---|
6940 |
|
---|
6941 | <method name="enableStaticIpConfig">
|
---|
6942 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
6943 | <param name="IPAddress" type="wstring" dir="in">
|
---|
6944 | <desc>
|
---|
6945 | IP address.
|
---|
6946 | </desc>
|
---|
6947 | </param>
|
---|
6948 | <param name="networkMask" type="wstring" dir="in">
|
---|
6949 | <desc>
|
---|
6950 | network mask.
|
---|
6951 | </desc>
|
---|
6952 | </param>
|
---|
6953 | </method>
|
---|
6954 |
|
---|
6955 | <method name="enableStaticIpConfigV6">
|
---|
6956 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
6957 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
6958 | <desc>
|
---|
6959 | IP address.
|
---|
6960 | </desc>
|
---|
6961 | </param>
|
---|
6962 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
6963 | <desc>
|
---|
6964 | network mask.
|
---|
6965 | </desc>
|
---|
6966 | </param>
|
---|
6967 | </method>
|
---|
6968 |
|
---|
6969 | <method name="enableDynamicIpConfig">
|
---|
6970 | <desc>enables the dynamic IP configuration.</desc>
|
---|
6971 | </method>
|
---|
6972 |
|
---|
6973 | <method name="dhcpRediscover">
|
---|
6974 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
6975 | </method>
|
---|
6976 |
|
---|
6977 | </interface>
|
---|
6978 |
|
---|
6979 | <interface
|
---|
6980 | name="IHost" extends="$unknown"
|
---|
6981 | uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
|
---|
6982 | wsmap="managed"
|
---|
6983 | >
|
---|
6984 | <desc>
|
---|
6985 | The IHost interface represents the physical machine that this VirtualBox
|
---|
6986 | installation runs on.
|
---|
6987 |
|
---|
6988 | An object implementing this interface is returned by the
|
---|
6989 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
6990 | read-only information about the host's physical hardware (such as what
|
---|
6991 | processors and disks are available, what the host operating system is,
|
---|
6992 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
6993 | such as global USB device filters and host interface networking.
|
---|
6994 |
|
---|
6995 | </desc>
|
---|
6996 | <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
|
---|
6997 | <desc>List of DVD drives available on the host.</desc>
|
---|
6998 | </attribute>
|
---|
6999 |
|
---|
7000 | <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
|
---|
7001 | <desc>List of floppy drives available on the host.</desc>
|
---|
7002 | </attribute>
|
---|
7003 |
|
---|
7004 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
7005 | <desc>
|
---|
7006 | List of USB devices currently attached to the host.
|
---|
7007 | Once a new device is physically attached to the host computer,
|
---|
7008 | it appears in this list and remains there until detached.
|
---|
7009 |
|
---|
7010 | <note>
|
---|
7011 | If USB functionality is not available in the given edition of
|
---|
7012 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7013 | </note>
|
---|
7014 | </desc>
|
---|
7015 | </attribute>
|
---|
7016 |
|
---|
7017 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
7018 | <desc>
|
---|
7019 | List of USB device filters in action.
|
---|
7020 | When a new device is physically attached to the host computer,
|
---|
7021 | filters from this list are applied to it (in order they are stored
|
---|
7022 | in the list). The first matched filter will determine the
|
---|
7023 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
7024 | performed on the device.
|
---|
7025 |
|
---|
7026 | Unless the device is ignored by these filters, filters of all
|
---|
7027 | currently running virtual machines
|
---|
7028 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
7029 |
|
---|
7030 | <note>
|
---|
7031 | If USB functionality is not available in the given edition of
|
---|
7032 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7033 | </note>
|
---|
7034 |
|
---|
7035 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7036 | </desc>
|
---|
7037 | </attribute>
|
---|
7038 |
|
---|
7039 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
7040 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
7041 | </attribute>
|
---|
7042 |
|
---|
7043 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
7044 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
7045 | </attribute>
|
---|
7046 |
|
---|
7047 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
7048 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
7049 | </attribute>
|
---|
7050 |
|
---|
7051 | <method name="getProcessorSpeed">
|
---|
7052 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
7053 | Megahertz.
|
---|
7054 | </desc>
|
---|
7055 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7056 | <desc>
|
---|
7057 | Identifier of the CPU.
|
---|
7058 | </desc>
|
---|
7059 | </param>
|
---|
7060 | <param name="speed" type="unsigned long" dir="return">
|
---|
7061 | <desc>
|
---|
7062 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
7063 | invalid.
|
---|
7064 | </desc>
|
---|
7065 | </param>
|
---|
7066 | </method>
|
---|
7067 |
|
---|
7068 | <method name="getProcessorFeature">
|
---|
7069 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
7070 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
7071 | <desc>
|
---|
7072 | CPU Feature identifier.
|
---|
7073 | </desc>
|
---|
7074 | </param>
|
---|
7075 | <param name="supported" type="boolean" dir="return">
|
---|
7076 | <desc>
|
---|
7077 | Feature is supported or not.
|
---|
7078 | </desc>
|
---|
7079 | </param>
|
---|
7080 | </method>
|
---|
7081 |
|
---|
7082 | <method name="getProcessorDescription">
|
---|
7083 | <desc>Query the model string of a specified host CPU.
|
---|
7084 | </desc>
|
---|
7085 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7086 | <desc>
|
---|
7087 | Identifier of the CPU.
|
---|
7088 | </desc>
|
---|
7089 | </param>
|
---|
7090 | <param name="description" type="wstring" dir="return">
|
---|
7091 | <desc>
|
---|
7092 | Model string. An empty string is returned if value is not known or
|
---|
7093 | @a cpuId is invalid.
|
---|
7094 | </desc>
|
---|
7095 | </param>
|
---|
7096 | </method>
|
---|
7097 |
|
---|
7098 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
7099 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
7100 | </attribute>
|
---|
7101 |
|
---|
7102 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
7103 | <desc>Available system memory in the host system.</desc>
|
---|
7104 | </attribute>
|
---|
7105 |
|
---|
7106 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
7107 | <desc>Name of the host system's operating system.</desc>
|
---|
7108 | </attribute>
|
---|
7109 |
|
---|
7110 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
7111 | <desc>Host operating system's version string.</desc>
|
---|
7112 | </attribute>
|
---|
7113 |
|
---|
7114 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
7115 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
7116 | </attribute>
|
---|
7117 |
|
---|
7118 | <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
|
---|
7119 | <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
|
---|
7120 | </attribute>
|
---|
7121 |
|
---|
7122 | <method name="createHostOnlyNetworkInterface">
|
---|
7123 | <desc>
|
---|
7124 | Creates a new adapter for Host Only Networking.
|
---|
7125 | <result name="E_INVALIDARG">
|
---|
7126 | Host network interface @a name already exists.
|
---|
7127 | </result>
|
---|
7128 | </desc>
|
---|
7129 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7130 | <desc>
|
---|
7131 | Created host interface object.
|
---|
7132 | </desc>
|
---|
7133 | </param>
|
---|
7134 | <param name="progress" type="IProgress" dir="return">
|
---|
7135 | <desc>
|
---|
7136 | Progress object to track the operation completion.
|
---|
7137 | </desc>
|
---|
7138 | </param>
|
---|
7139 | </method>
|
---|
7140 |
|
---|
7141 | <method name="removeHostOnlyNetworkInterface">
|
---|
7142 | <desc>
|
---|
7143 | Removes the given Host Only Networking interface.
|
---|
7144 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7145 | No host network interface matching @a id found.
|
---|
7146 | </result>
|
---|
7147 | </desc>
|
---|
7148 | <param name="id" type="wstring" dir="in">
|
---|
7149 | <desc>
|
---|
7150 | Adapter GUID.
|
---|
7151 | </desc>
|
---|
7152 | </param>
|
---|
7153 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7154 | <desc>
|
---|
7155 | Removed host interface object.
|
---|
7156 | </desc>
|
---|
7157 | </param>
|
---|
7158 | <param name="progress" type="IProgress" dir="return">
|
---|
7159 | <desc>
|
---|
7160 | Progress object to track the operation completion.
|
---|
7161 | </desc>
|
---|
7162 | </param>
|
---|
7163 | </method>
|
---|
7164 |
|
---|
7165 | <method name="createUSBDeviceFilter">
|
---|
7166 | <desc>
|
---|
7167 | Creates a new USB device filter. All attributes except
|
---|
7168 | the filter name are set to empty (any match),
|
---|
7169 | <i>active</i> is @c false (the filter is not active).
|
---|
7170 |
|
---|
7171 | The created filter can be added to the list of filters using
|
---|
7172 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7173 |
|
---|
7174 | <see>#USBDeviceFilters</see>
|
---|
7175 | </desc>
|
---|
7176 | <param name="name" type="wstring" dir="in">
|
---|
7177 | <desc>
|
---|
7178 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
7179 | for more info.
|
---|
7180 | </desc>
|
---|
7181 | </param>
|
---|
7182 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7183 | <desc>Created filter object.</desc>
|
---|
7184 | </param>
|
---|
7185 | </method>
|
---|
7186 |
|
---|
7187 | <method name="insertUSBDeviceFilter">
|
---|
7188 | <desc>
|
---|
7189 | Inserts the given USB device to the specified position
|
---|
7190 | in the list of filters.
|
---|
7191 |
|
---|
7192 | Positions are numbered starting from @c 0. If the specified
|
---|
7193 | position is equal to or greater than the number of elements in
|
---|
7194 | the list, the filter is added at the end of the collection.
|
---|
7195 |
|
---|
7196 | <note>
|
---|
7197 | Duplicates are not allowed, so an attempt to insert a
|
---|
7198 | filter already in the list is an error.
|
---|
7199 | </note>
|
---|
7200 | <note>
|
---|
7201 | If USB functionality is not available in the given edition of
|
---|
7202 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7203 | </note>
|
---|
7204 |
|
---|
7205 | <see>#USBDeviceFilters</see>
|
---|
7206 |
|
---|
7207 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7208 | USB device filter is not created within this VirtualBox instance.
|
---|
7209 | </result>
|
---|
7210 | <result name="E_INVALIDARG">
|
---|
7211 | USB device filter already in list.
|
---|
7212 | </result>
|
---|
7213 |
|
---|
7214 | </desc>
|
---|
7215 | <param name="position" type="unsigned long" dir="in">
|
---|
7216 | <desc>Position to insert the filter to.</desc>
|
---|
7217 | </param>
|
---|
7218 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7219 | <desc>USB device filter to insert.</desc>
|
---|
7220 | </param>
|
---|
7221 | </method>
|
---|
7222 |
|
---|
7223 | <method name="removeUSBDeviceFilter">
|
---|
7224 | <desc>
|
---|
7225 | Removes a USB device filter from the specified position in the
|
---|
7226 | list of filters.
|
---|
7227 |
|
---|
7228 | Positions are numbered starting from @c 0. Specifying a
|
---|
7229 | position equal to or greater than the number of elements in
|
---|
7230 | the list will produce an error.
|
---|
7231 |
|
---|
7232 | <note>
|
---|
7233 | If USB functionality is not available in the given edition of
|
---|
7234 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7235 | </note>
|
---|
7236 |
|
---|
7237 | <see>#USBDeviceFilters</see>
|
---|
7238 |
|
---|
7239 | <result name="E_INVALIDARG">
|
---|
7240 | USB device filter list empty or invalid @a position.
|
---|
7241 | </result>
|
---|
7242 |
|
---|
7243 | </desc>
|
---|
7244 | <param name="position" type="unsigned long" dir="in">
|
---|
7245 | <desc>Position to remove the filter from.</desc>
|
---|
7246 | </param>
|
---|
7247 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7248 | <desc>Removed USB device filter.</desc>
|
---|
7249 | </param>
|
---|
7250 | </method>
|
---|
7251 |
|
---|
7252 | <method name="findHostDVDDrive">
|
---|
7253 | <desc>
|
---|
7254 | Searches for a host DVD drive with the given @c name.
|
---|
7255 |
|
---|
7256 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7257 | Given @c name does not correspond to any host drive.
|
---|
7258 | </result>
|
---|
7259 |
|
---|
7260 | </desc>
|
---|
7261 | <param name="name" type="wstring" dir="in">
|
---|
7262 | <desc>Name of the host drive to search for</desc>
|
---|
7263 | </param>
|
---|
7264 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
7265 | <desc>Found host drive object</desc>
|
---|
7266 | </param>
|
---|
7267 | </method>
|
---|
7268 |
|
---|
7269 | <method name="findHostFloppyDrive">
|
---|
7270 | <desc>
|
---|
7271 | Searches for a host floppy drive with the given @c name.
|
---|
7272 |
|
---|
7273 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7274 | Given @c name does not correspond to any host floppy drive.
|
---|
7275 | </result>
|
---|
7276 |
|
---|
7277 | </desc>
|
---|
7278 | <param name="name" type="wstring" dir="in">
|
---|
7279 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7280 | </param>
|
---|
7281 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
7282 | <desc>Found host floppy drive object</desc>
|
---|
7283 | </param>
|
---|
7284 | </method>
|
---|
7285 |
|
---|
7286 | <method name="findHostNetworkInterfaceByName">
|
---|
7287 | <desc>
|
---|
7288 | Searches through all host network interfaces for an interface with
|
---|
7289 | the given @c name.
|
---|
7290 | <note>
|
---|
7291 | The method returns an error if the given @c name does not
|
---|
7292 | correspond to any host network interface.
|
---|
7293 | </note>
|
---|
7294 | </desc>
|
---|
7295 | <param name="name" type="wstring" dir="in">
|
---|
7296 | <desc>Name of the host network interface to search for.</desc>
|
---|
7297 | </param>
|
---|
7298 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7299 | <desc>Found host network interface object.</desc>
|
---|
7300 | </param>
|
---|
7301 | </method>
|
---|
7302 | <method name="findHostNetworkInterfaceById">
|
---|
7303 | <desc>
|
---|
7304 | Searches through all host network interfaces for an interface with
|
---|
7305 | the given GUID.
|
---|
7306 | <note>
|
---|
7307 | The method returns an error if the given GUID does not
|
---|
7308 | correspond to any host network interface.
|
---|
7309 | </note>
|
---|
7310 | </desc>
|
---|
7311 | <param name="id" type="wstring" dir="in">
|
---|
7312 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7313 | </param>
|
---|
7314 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7315 | <desc>Found host network interface object.</desc>
|
---|
7316 | </param>
|
---|
7317 | </method>
|
---|
7318 | <method name="findHostNetworkInterfacesOfType">
|
---|
7319 | <desc>
|
---|
7320 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7321 | </desc>
|
---|
7322 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7323 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7324 | </param>
|
---|
7325 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7326 | <desc>Found host network interface objects.</desc>
|
---|
7327 | </param>
|
---|
7328 | </method>
|
---|
7329 |
|
---|
7330 | <method name="findUSBDeviceById">
|
---|
7331 | <desc>
|
---|
7332 | Searches for a USB device with the given UUID.
|
---|
7333 |
|
---|
7334 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7335 | Given @c id does not correspond to any USB device.
|
---|
7336 | </result>
|
---|
7337 |
|
---|
7338 | <see>IHostUSBDevice::id</see>
|
---|
7339 | </desc>
|
---|
7340 | <param name="id" type="wstring" dir="in">
|
---|
7341 | <desc>UUID of the USB device to search for.</desc>
|
---|
7342 | </param>
|
---|
7343 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7344 | <desc>Found USB device object.</desc>
|
---|
7345 | </param>
|
---|
7346 | </method>
|
---|
7347 |
|
---|
7348 | <method name="findUSBDeviceByAddress">
|
---|
7349 | <desc>
|
---|
7350 | Searches for a USB device with the given host address.
|
---|
7351 |
|
---|
7352 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7353 | Given @c name does not correspond to any USB device.
|
---|
7354 | </result>
|
---|
7355 |
|
---|
7356 | <see>IHostUSBDevice::address</see>
|
---|
7357 | </desc>
|
---|
7358 | <param name="name" type="wstring" dir="in">
|
---|
7359 | <desc>
|
---|
7360 | Address of the USB device (as assigned by the host) to
|
---|
7361 | search for.
|
---|
7362 | </desc>
|
---|
7363 | </param>
|
---|
7364 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7365 | <desc>Found USB device object.</desc>
|
---|
7366 | </param>
|
---|
7367 | </method>
|
---|
7368 |
|
---|
7369 | </interface>
|
---|
7370 |
|
---|
7371 | <!--
|
---|
7372 | // ISystemProperties
|
---|
7373 | /////////////////////////////////////////////////////////////////////////
|
---|
7374 | -->
|
---|
7375 |
|
---|
7376 | <interface
|
---|
7377 | name="ISystemProperties"
|
---|
7378 | extends="$unknown"
|
---|
7379 | uuid="9ca0f712-83f3-4631-b143-b75ef6568332"
|
---|
7380 | wsmap="managed"
|
---|
7381 | >
|
---|
7382 | <desc>
|
---|
7383 | The ISystemProperties interface represents global properties of the given
|
---|
7384 | VirtualBox installation.
|
---|
7385 |
|
---|
7386 | These properties define limits and default values for various attributes
|
---|
7387 | and parameters. Most of the properties are read-only, but some can be
|
---|
7388 | changed by a user.
|
---|
7389 | </desc>
|
---|
7390 |
|
---|
7391 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7392 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7393 | </attribute>
|
---|
7394 |
|
---|
7395 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7396 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7397 | </attribute>
|
---|
7398 |
|
---|
7399 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7400 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7401 | </attribute>
|
---|
7402 |
|
---|
7403 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7404 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7405 | </attribute>
|
---|
7406 |
|
---|
7407 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7408 | <desc>Minimum CPU count.</desc>
|
---|
7409 | </attribute>
|
---|
7410 |
|
---|
7411 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7412 | <desc>Maximum CPU count.</desc>
|
---|
7413 | </attribute>
|
---|
7414 |
|
---|
7415 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
7416 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
7417 | </attribute>
|
---|
7418 |
|
---|
7419 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
7420 | <desc>
|
---|
7421 | Number of network adapters associated with every
|
---|
7422 | <link to="IMachine"/> instance.
|
---|
7423 | </desc>
|
---|
7424 | </attribute>
|
---|
7425 |
|
---|
7426 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7427 | <desc>
|
---|
7428 | Number of serial ports associated with every
|
---|
7429 | <link to="IMachine"/> instance.
|
---|
7430 | </desc>
|
---|
7431 | </attribute>
|
---|
7432 |
|
---|
7433 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7434 | <desc>
|
---|
7435 | Number of parallel ports associated with every
|
---|
7436 | <link to="IMachine"/> instance.
|
---|
7437 | </desc>
|
---|
7438 | </attribute>
|
---|
7439 |
|
---|
7440 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7441 | <desc>
|
---|
7442 | Maximum device position in the boot order. This value corresponds
|
---|
7443 | to the total number of devices a machine can boot from, to make it
|
---|
7444 | possible to include all possible devices to the boot list.
|
---|
7445 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7446 | </desc>
|
---|
7447 | </attribute>
|
---|
7448 |
|
---|
7449 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
7450 | <desc>
|
---|
7451 | Full path to the default directory used to create new or open
|
---|
7452 | existing machines when a settings file name contains no
|
---|
7453 | path.
|
---|
7454 |
|
---|
7455 | The initial value of this property is
|
---|
7456 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
7457 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
7458 |
|
---|
7459 | <note>
|
---|
7460 | Setting this property to @c null or an empty string will restore the
|
---|
7461 | initial value.
|
---|
7462 | </note>
|
---|
7463 | <note>
|
---|
7464 | When settings this property, the specified path can be
|
---|
7465 | absolute (full path) or relative
|
---|
7466 | to the <link to="IVirtualBox::homeFolder">
|
---|
7467 | VirtualBox home directory</link>.
|
---|
7468 | When reading this property, a full path is
|
---|
7469 | always returned.
|
---|
7470 | </note>
|
---|
7471 | <note>
|
---|
7472 | The specified path may not exist, it will be created
|
---|
7473 | when necessary.
|
---|
7474 | </note>
|
---|
7475 |
|
---|
7476 | <see>
|
---|
7477 | <link to="IVirtualBox::createMachine"/>,
|
---|
7478 | <link to="IVirtualBox::openMachine"/>
|
---|
7479 | </see>
|
---|
7480 | </desc>
|
---|
7481 | </attribute>
|
---|
7482 |
|
---|
7483 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
7484 | <desc>
|
---|
7485 | Full path to the default directory used to create new or open existing
|
---|
7486 | virtual disks.
|
---|
7487 |
|
---|
7488 | This path is used when the storage unit of a hard disk is a regular file
|
---|
7489 | in the host's file system and only a file name that contains no path is
|
---|
7490 | given.
|
---|
7491 |
|
---|
7492 | The initial value of this property is
|
---|
7493 | <tt><</tt>
|
---|
7494 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
7495 | <tt>>/HardDisks</tt>.
|
---|
7496 |
|
---|
7497 | <note>
|
---|
7498 | Setting this property to @c null or empty string will restore the
|
---|
7499 | initial value.
|
---|
7500 | </note>
|
---|
7501 | <note>
|
---|
7502 | When settings this property, the specified path can be relative
|
---|
7503 | to the
|
---|
7504 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
7505 | absolute. When reading this property, a full path is
|
---|
7506 | always returned.
|
---|
7507 | </note>
|
---|
7508 | <note>
|
---|
7509 | The specified path may not exist, it will be created
|
---|
7510 | when necessary.
|
---|
7511 | </note>
|
---|
7512 |
|
---|
7513 | <see>
|
---|
7514 | IHardDisk,
|
---|
7515 | <link to="IVirtualBox::createHardDisk"/>,
|
---|
7516 | <link to="IVirtualBox::openHardDisk"/>,
|
---|
7517 | <link to="IMedium::location"/>
|
---|
7518 | </see>
|
---|
7519 | </desc>
|
---|
7520 | </attribute>
|
---|
7521 |
|
---|
7522 | <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
|
---|
7523 | <desc>
|
---|
7524 | List of all hard disk storage formats supported by this VirtualBox
|
---|
7525 | installation.
|
---|
7526 |
|
---|
7527 | Keep in mind that the hard disk format identifier
|
---|
7528 | (<link to="IHardDiskFormat::id"/>) used in other API calls like
|
---|
7529 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
7530 | hard disk format is a case-insensitive string. This means that, for
|
---|
7531 | example, all of the following strings:
|
---|
7532 | <pre>
|
---|
7533 | "VDI"
|
---|
7534 | "vdi"
|
---|
7535 | "VdI"</pre>
|
---|
7536 | refer to the same hard disk format.
|
---|
7537 |
|
---|
7538 | Note that the virtual hard disk framework is backend-based, therefore
|
---|
7539 | the list of supported formats depends on what backends are currently
|
---|
7540 | installed.
|
---|
7541 |
|
---|
7542 | <see>
|
---|
7543 | <link to="IHardDiskFormat"/>,
|
---|
7544 | </see>
|
---|
7545 | </desc>
|
---|
7546 | </attribute>
|
---|
7547 |
|
---|
7548 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
7549 | <desc>
|
---|
7550 | Identifier of the default hard disk format used by VirtualBox.
|
---|
7551 |
|
---|
7552 | The hard disk format set by this attribute is used by VirtualBox
|
---|
7553 | when the hard disk format was not specified explicitly. One example is
|
---|
7554 | <link to="IVirtualBox::createHardDisk"/> with the empty
|
---|
7555 | format argument. A more complex example is implicit creation of
|
---|
7556 | differencing hard disks when taking a snapshot of a virtual machine:
|
---|
7557 | this operation will try to use a format of the parent hard disk first
|
---|
7558 | and if this format does not support differencing hard disks the default
|
---|
7559 | format specified by this argument will be used.
|
---|
7560 |
|
---|
7561 | The list of supported hard disk formats may be obtained by the
|
---|
7562 | <link to="#hardDiskFormats"/> call. Note that the default hard disk
|
---|
7563 | format must have a capability to create differencing hard disks;
|
---|
7564 | otherwise opeartions that create hard disks implicitly may fail
|
---|
7565 | unexpectedly.
|
---|
7566 |
|
---|
7567 | The initial value of this property is <tt>"VDI"</tt> in the current
|
---|
7568 | version of the VirtualBox product, but may change in the future.
|
---|
7569 |
|
---|
7570 | <note>
|
---|
7571 | Setting this property to @c null or empty string will restore the
|
---|
7572 | initial value.
|
---|
7573 | </note>
|
---|
7574 |
|
---|
7575 | <see>
|
---|
7576 | <link to="#hardDiskFormats"/>,
|
---|
7577 | <link to="IHardDiskFormat::id"/>,
|
---|
7578 | <link to="IVirtualBox::createHardDisk"/>
|
---|
7579 | </see>
|
---|
7580 | </desc>
|
---|
7581 | </attribute>
|
---|
7582 |
|
---|
7583 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
7584 | <desc>
|
---|
7585 | Library that provides authentication for VRDP clients. The library
|
---|
7586 | is used if a virtual machine's authentication type is set to "external"
|
---|
7587 | in the VM RemoteDisplay configuration.
|
---|
7588 |
|
---|
7589 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
7590 | A full path can be specified; if not, then the library must reside on the
|
---|
7591 | system's default library path.
|
---|
7592 |
|
---|
7593 | The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
|
---|
7594 | of that name in one of the default VirtualBox library directories.
|
---|
7595 |
|
---|
7596 | For details about VirtualBox authentication libraries and how to implement
|
---|
7597 | them, please refer to the VirtualBox manual.
|
---|
7598 |
|
---|
7599 | <note>
|
---|
7600 | Setting this property to @c null or empty string will restore the
|
---|
7601 | initial value.
|
---|
7602 | </note>
|
---|
7603 | </desc>
|
---|
7604 | </attribute>
|
---|
7605 |
|
---|
7606 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
7607 | <desc>
|
---|
7608 | Library that provides authentication for webservice clients. The library
|
---|
7609 | is used if a virtual machine's authentication type is set to "external"
|
---|
7610 | in the VM RemoteDisplay configuration and will be called from
|
---|
7611 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
7612 |
|
---|
7613 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
7614 | there is no per-VM setting for this, as the webservice is a global
|
---|
7615 | resource (if it is running). Only for this setting (for the webservice),
|
---|
7616 | setting this value to a literal <tt>"null"</tt> string disables authentication,
|
---|
7617 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
7618 | no matter what user name and password are supplied.
|
---|
7619 |
|
---|
7620 | The initial value of this property is <tt>"VRDPAuth"</tt>,
|
---|
7621 | meaning that the webservice will use the same authentication
|
---|
7622 | library that is used by default for VBoxVRDP (again, see
|
---|
7623 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
7624 | The format and calling convention of authentication libraries
|
---|
7625 | is the same for the webservice as it is for VBoxVRDP.
|
---|
7626 |
|
---|
7627 | <note>
|
---|
7628 | Setting this property to @c null or empty string will restore the
|
---|
7629 | initial value.
|
---|
7630 | </note>
|
---|
7631 | </desc>
|
---|
7632 | </attribute>
|
---|
7633 |
|
---|
7634 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
7635 | <desc>
|
---|
7636 | This value specifies how many old release log files are kept.
|
---|
7637 | </desc>
|
---|
7638 | </attribute>
|
---|
7639 |
|
---|
7640 | <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
|
---|
7641 | <desc>This value hold the default audio driver for the current
|
---|
7642 | system.</desc>
|
---|
7643 | </attribute>
|
---|
7644 | </interface>
|
---|
7645 |
|
---|
7646 | <!--
|
---|
7647 | // IGuest
|
---|
7648 | /////////////////////////////////////////////////////////////////////////
|
---|
7649 | -->
|
---|
7650 |
|
---|
7651 | <interface
|
---|
7652 | name="IGuestOSType" extends="$unknown"
|
---|
7653 | uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
|
---|
7654 | wsmap="struct"
|
---|
7655 | >
|
---|
7656 | <desc>
|
---|
7657 | </desc>
|
---|
7658 |
|
---|
7659 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
7660 | <desc>Guest OS family identifier string.</desc>
|
---|
7661 | </attribute>
|
---|
7662 |
|
---|
7663 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
7664 | <desc>Human readable description of the guest OS family.</desc>
|
---|
7665 | </attribute>
|
---|
7666 |
|
---|
7667 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7668 | <desc>Guest OS identifier string.</desc>
|
---|
7669 | </attribute>
|
---|
7670 |
|
---|
7671 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7672 | <desc>Human readable description of the guest OS.</desc>
|
---|
7673 | </attribute>
|
---|
7674 |
|
---|
7675 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
7676 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
7677 | </attribute>
|
---|
7678 |
|
---|
7679 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
7680 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
7681 | </attribute>
|
---|
7682 |
|
---|
7683 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
7684 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
7685 | </attribute>
|
---|
7686 |
|
---|
7687 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
7688 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
7689 | </attribute>
|
---|
7690 |
|
---|
7691 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
7692 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
7693 | </attribute>
|
---|
7694 |
|
---|
7695 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
7696 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
7697 | </attribute>
|
---|
7698 |
|
---|
7699 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
7700 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
7701 | </attribute>
|
---|
7702 | </interface>
|
---|
7703 |
|
---|
7704 | <interface
|
---|
7705 | name="IGuest" extends="$unknown"
|
---|
7706 | uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
|
---|
7707 | wsmap="managed"
|
---|
7708 | >
|
---|
7709 | <desc>
|
---|
7710 | The IGuest interface represents information about the operating system
|
---|
7711 | running inside the virtual machine. Used in
|
---|
7712 | <link to="IConsole::guest"/>.
|
---|
7713 |
|
---|
7714 | IGuest provides information about the guest operating system, whether
|
---|
7715 | Guest Additions are installed and other OS-specific virtual machine
|
---|
7716 | properties.
|
---|
7717 | </desc>
|
---|
7718 |
|
---|
7719 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
7720 | <desc>
|
---|
7721 | Identifier of the Guest OS type as reported by the Guest
|
---|
7722 | Additions.
|
---|
7723 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
7724 | an IGuestOSType object representing details about the given
|
---|
7725 | Guest OS type.
|
---|
7726 | <note>
|
---|
7727 | If Guest Additions are not installed, this value will be
|
---|
7728 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
7729 | </note>
|
---|
7730 | </desc>
|
---|
7731 | </attribute>
|
---|
7732 |
|
---|
7733 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
7734 | <desc>
|
---|
7735 | Flag whether the Guest Additions are installed and active
|
---|
7736 | in which case their version will be returned by the
|
---|
7737 | <link to="#additionsVersion"/> property.
|
---|
7738 | </desc>
|
---|
7739 | </attribute>
|
---|
7740 |
|
---|
7741 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
7742 | <desc>
|
---|
7743 | Version of the Guest Additions (3 decimal numbers separated
|
---|
7744 | by dots) or empty when the Additions are not installed. The
|
---|
7745 | Additions may also report a version but yet not be active as
|
---|
7746 | the version might be refused by VirtualBox (incompatible) or
|
---|
7747 | other failures occurred.
|
---|
7748 | </desc>
|
---|
7749 | </attribute>
|
---|
7750 |
|
---|
7751 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
7752 | <desc>
|
---|
7753 | Flag whether seamless guest display rendering (seamless desktop
|
---|
7754 | integration) is supported.
|
---|
7755 | </desc>
|
---|
7756 | </attribute>
|
---|
7757 |
|
---|
7758 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
7759 | <desc>
|
---|
7760 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
7761 | seamless rendering will not work, resize hints are not immediately
|
---|
7762 | acted on and guest display resizes are probably not initiated by
|
---|
7763 | the guest additions.
|
---|
7764 | </desc>
|
---|
7765 | </attribute>
|
---|
7766 |
|
---|
7767 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
7768 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
7769 | </attribute>
|
---|
7770 |
|
---|
7771 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
7772 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
7773 | </attribute>
|
---|
7774 |
|
---|
7775 | <method name="setCredentials">
|
---|
7776 | <desc>
|
---|
7777 | Store login credentials that can be queried by guest operating
|
---|
7778 | systems with Additions installed. The credentials are transient
|
---|
7779 | to the session and the guest may also choose to erase them. Note
|
---|
7780 | that the caller cannot determine whether the guest operating system
|
---|
7781 | has queried or made use of the credentials.
|
---|
7782 |
|
---|
7783 | <result name="VBOX_E_VM_ERROR">
|
---|
7784 | VMM device is not available.
|
---|
7785 | </result>
|
---|
7786 |
|
---|
7787 | </desc>
|
---|
7788 | <param name="userName" type="wstring" dir="in">
|
---|
7789 | <desc>User name string, can be empty</desc>
|
---|
7790 | </param>
|
---|
7791 | <param name="password" type="wstring" dir="in">
|
---|
7792 | <desc>Password string, can be empty</desc>
|
---|
7793 | </param>
|
---|
7794 | <param name="domain" type="wstring" dir="in">
|
---|
7795 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
7796 | </param>
|
---|
7797 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
7798 | <desc>
|
---|
7799 | Flag whether the guest should alternatively allow the user to
|
---|
7800 | interactively specify different credentials. This flag might
|
---|
7801 | not be supported by all versions of the Additions.
|
---|
7802 | </desc>
|
---|
7803 | </param>
|
---|
7804 | </method>
|
---|
7805 |
|
---|
7806 | <method name="getStatistic">
|
---|
7807 | <desc>
|
---|
7808 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
7809 | </desc>
|
---|
7810 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7811 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
7812 | </param>
|
---|
7813 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
7814 | <desc>Statistic type.</desc>
|
---|
7815 | </param>
|
---|
7816 | <param name="statVal" type="unsigned long" dir="return">
|
---|
7817 | <desc>Statistics value</desc>
|
---|
7818 | </param>
|
---|
7819 | </method>
|
---|
7820 |
|
---|
7821 | </interface>
|
---|
7822 |
|
---|
7823 |
|
---|
7824 | <!--
|
---|
7825 | // IProgress
|
---|
7826 | /////////////////////////////////////////////////////////////////////////
|
---|
7827 | -->
|
---|
7828 |
|
---|
7829 | <interface
|
---|
7830 | name="IProgress" extends="$unknown"
|
---|
7831 | uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
|
---|
7832 | wsmap="managed"
|
---|
7833 | >
|
---|
7834 | <desc>
|
---|
7835 | The IProgress interface is used to track and control
|
---|
7836 | asynchronous tasks within VirtualBox.
|
---|
7837 |
|
---|
7838 | An instance of this is returned every time VirtualBox starts
|
---|
7839 | an asynchronous task (in other words, a separate thread) which
|
---|
7840 | continues to run after a method call returns. For example,
|
---|
7841 | <link to="IConsole::saveState" />, which saves the state of
|
---|
7842 | a running virtual machine, can take a long time to complete.
|
---|
7843 | To be able to display a progress bar, a user interface such as
|
---|
7844 | the VirtualBox graphical user interface can use the IProgress
|
---|
7845 | object returned by that method.
|
---|
7846 |
|
---|
7847 | Note that IProgress is a "read-only" interface in the sense
|
---|
7848 | that only the VirtualBox internals behind the Main API can
|
---|
7849 | create and manipulate progress objects, whereas client code
|
---|
7850 | can only use the IProgress object to monitor a task's
|
---|
7851 | progress and, if <link to="#cancelable" /> is @c true,
|
---|
7852 | cancel the task by calling <link to="#cancel" />.
|
---|
7853 |
|
---|
7854 | A task represented by IProgress consists of either one or
|
---|
7855 | several sub-operations that run sequentially, one by one (see
|
---|
7856 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
7857 | Every operation is identified by a number (starting from 0)
|
---|
7858 | and has a separate description.
|
---|
7859 |
|
---|
7860 | You can find the individual percentage of completion of the current
|
---|
7861 | operation in <link to="#operationPercent" /> and the
|
---|
7862 | percentage of completion of the task as a whole
|
---|
7863 | in <link to="#percent" />.
|
---|
7864 |
|
---|
7865 | Similarly, you can wait for the completion of a particular
|
---|
7866 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
7867 | for the completion of the whole task via
|
---|
7868 | <link to="#waitForCompletion" />.
|
---|
7869 | </desc>
|
---|
7870 |
|
---|
7871 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7872 | <desc>ID of the task.</desc>
|
---|
7873 | </attribute>
|
---|
7874 |
|
---|
7875 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7876 | <desc>Description of the task.</desc>
|
---|
7877 | </attribute>
|
---|
7878 |
|
---|
7879 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
7880 | <desc>Initiator of the task.</desc>
|
---|
7881 | </attribute>
|
---|
7882 |
|
---|
7883 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
7884 | <desc>Whether the task can be interrupted.</desc>
|
---|
7885 | </attribute>
|
---|
7886 |
|
---|
7887 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
7888 | <desc>
|
---|
7889 | Current progress value of the task as a whole, in percent.
|
---|
7890 | This value depends on how many operations are already complete.
|
---|
7891 | Returns 100 if <link to="#completed" /> is @c true.
|
---|
7892 | </desc>
|
---|
7893 | </attribute>
|
---|
7894 |
|
---|
7895 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
7896 | <desc>
|
---|
7897 | Estimated remaining time until the task completes, in
|
---|
7898 | seconds. Returns 0 once the task has completed; returns -1
|
---|
7899 | if the remaining time cannot be computed, in particular if
|
---|
7900 | the current progress is 0.
|
---|
7901 |
|
---|
7902 | Even if a value is returned, the estimate will be unreliable
|
---|
7903 | for low progress values. It will become more reliable as the
|
---|
7904 | task progresses; it is not recommended to display an ETA
|
---|
7905 | before at least 20% of a task have completed.
|
---|
7906 | </desc>
|
---|
7907 | </attribute>
|
---|
7908 |
|
---|
7909 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
7910 | <desc>Whether the task has been completed.</desc>
|
---|
7911 | </attribute>
|
---|
7912 |
|
---|
7913 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
7914 | <desc>Whether the task has been canceled.</desc>
|
---|
7915 | </attribute>
|
---|
7916 |
|
---|
7917 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
7918 | <desc>
|
---|
7919 | Result code of the progress task.
|
---|
7920 | Valid only if <link to="#completed"/> is @c true.
|
---|
7921 | </desc>
|
---|
7922 | </attribute>
|
---|
7923 |
|
---|
7924 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
7925 | <desc>
|
---|
7926 | Extended information about the unsuccessful result of the
|
---|
7927 | progress operation. May be @c null if no extended information
|
---|
7928 | is available.
|
---|
7929 | Valid only if <link to="#completed"/> is @c true and
|
---|
7930 | <link to="#resultCode"/> indicates a failure.
|
---|
7931 | </desc>
|
---|
7932 | </attribute>
|
---|
7933 |
|
---|
7934 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
7935 | <desc>
|
---|
7936 | Number of sub-operations this task is divided into.
|
---|
7937 | Every task consists of at least one suboperation.
|
---|
7938 | </desc>
|
---|
7939 | </attribute>
|
---|
7940 |
|
---|
7941 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
7942 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
7943 | </attribute>
|
---|
7944 |
|
---|
7945 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
7946 | <desc>
|
---|
7947 | Description of the sub-operation being currently executed.
|
---|
7948 | </desc>
|
---|
7949 | </attribute>
|
---|
7950 |
|
---|
7951 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
7952 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
7953 | </attribute>
|
---|
7954 |
|
---|
7955 | <method name="waitForCompletion">
|
---|
7956 | <desc>
|
---|
7957 | Waits until the task is done (including all sub-operations)
|
---|
7958 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
7959 |
|
---|
7960 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7961 | Failed to wait for task completion.
|
---|
7962 | </result>
|
---|
7963 | </desc>
|
---|
7964 |
|
---|
7965 | <param name="timeout" type="long" dir="in">
|
---|
7966 | <desc>
|
---|
7967 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
7968 | </desc>
|
---|
7969 | </param>
|
---|
7970 | </method>
|
---|
7971 |
|
---|
7972 | <method name="waitForOperationCompletion">
|
---|
7973 | <desc>
|
---|
7974 | Waits until the given operation is done with a given timeout in
|
---|
7975 | milliseconds; specify -1 for an indefinite wait.
|
---|
7976 |
|
---|
7977 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7978 | Failed to wait for operation completion.
|
---|
7979 | </result>
|
---|
7980 |
|
---|
7981 | </desc>
|
---|
7982 | <param name="operation" type="unsigned long" dir="in">
|
---|
7983 | <desc>
|
---|
7984 | Number of the operation to wait for.
|
---|
7985 | Must be less than <link to="#operationCount"/>.
|
---|
7986 | </desc>
|
---|
7987 | </param>
|
---|
7988 | <param name="timeout" type="long" dir="in">
|
---|
7989 | <desc>
|
---|
7990 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
7991 | </desc>
|
---|
7992 | </param>
|
---|
7993 | </method>
|
---|
7994 |
|
---|
7995 | <method name="cancel">
|
---|
7996 | <desc>
|
---|
7997 | Cancels the task.
|
---|
7998 | <note>
|
---|
7999 | If <link to="#cancelable"/> is @c false, then this method will fail.
|
---|
8000 | </note>
|
---|
8001 |
|
---|
8002 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8003 | Operation cannot be canceled.
|
---|
8004 | </result>
|
---|
8005 |
|
---|
8006 | </desc>
|
---|
8007 | </method>
|
---|
8008 |
|
---|
8009 | </interface>
|
---|
8010 |
|
---|
8011 |
|
---|
8012 | <!--
|
---|
8013 | // ISnapshot
|
---|
8014 | /////////////////////////////////////////////////////////////////////////
|
---|
8015 | -->
|
---|
8016 |
|
---|
8017 | <interface
|
---|
8018 | name="ISnapshot" extends="$unknown"
|
---|
8019 | uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
|
---|
8020 | wsmap="managed"
|
---|
8021 | >
|
---|
8022 | <desc>
|
---|
8023 | The ISnapshot interface represents a snapshot of the virtual
|
---|
8024 | machine.
|
---|
8025 |
|
---|
8026 | Together with the differencing hard disks that are created
|
---|
8027 | when a snapshot is taken, a machine can be brought back to
|
---|
8028 | the exact state it was in when the snapshot was taken.
|
---|
8029 |
|
---|
8030 | The ISnapshot interface has no methods, only attributes; snapshots
|
---|
8031 | are controlled through methods of the <link to="IConsole" /> interface
|
---|
8032 | which also manage the hard disk images associated with the snapshot.
|
---|
8033 | The following operations exist:
|
---|
8034 |
|
---|
8035 | <ul>
|
---|
8036 | <li><link to="IConsole::takeSnapshot"/>: creates a new snapshot
|
---|
8037 | by creating new, empty differencing images for the machine's
|
---|
8038 | hard disks and saving the VM settings and (if the VM is running)
|
---|
8039 | the current VM state in the snapshot.
|
---|
8040 |
|
---|
8041 | The differencing images will then receive all data written to
|
---|
8042 | the machine's hard disks, while their parent (base) images
|
---|
8043 | remain unmodified after the snapshot has been taken (see
|
---|
8044 | <link to="IHardDisk" /> for details about differencing images).
|
---|
8045 | This simplifies restoring a machine to the state of a snapshot:
|
---|
8046 | only the differencing images need to be deleted.
|
---|
8047 |
|
---|
8048 | The current machine state is not changed by taking a snapshot.
|
---|
8049 | If the machine is running, it will resume execution after the
|
---|
8050 | snapshot has been taken.
|
---|
8051 | </li>
|
---|
8052 |
|
---|
8053 | <li><link to="IConsole::discardCurrentState"/>: this goes back to
|
---|
8054 | a previous snapshot. This resets the machine's state to that of
|
---|
8055 | the previous snapshot by deleting the differencing image of each
|
---|
8056 | of the machine's hard disks and setting the machine's settings
|
---|
8057 | and state to the state that was saved in the snapshot (if any).
|
---|
8058 |
|
---|
8059 | This destroys the machine's current state.
|
---|
8060 | </li>
|
---|
8061 |
|
---|
8062 | <li><link to="IConsole::discardSnapshot"/>: deletes a snapshot
|
---|
8063 | without affecting the current machine state.
|
---|
8064 |
|
---|
8065 | This does not change the machine, but instead frees the resources
|
---|
8066 | allocated when the snapshot was taken: the settings and machine state
|
---|
8067 | is deleted (if any), and the snapshot's differencing image for each
|
---|
8068 | of the machine's hard disks gets merged with its parent image.
|
---|
8069 |
|
---|
8070 | Neither the current machine state nor other snapshots are affected
|
---|
8071 | by this operation, except that parent disk images will be modified
|
---|
8072 | to contain the disk data associated with the snapshot being deleted.
|
---|
8073 | </li>
|
---|
8074 |
|
---|
8075 | <li><link to="IConsole::discardCurrentSnapshotAndState"/>:
|
---|
8076 | this completely reverts the virtual machine to the state it was in
|
---|
8077 | before the current snapshot has been taken. Effectively, this goes
|
---|
8078 | back to the state before the current snapshot, which might be
|
---|
8079 | an earlier snapshot.
|
---|
8080 |
|
---|
8081 | The current state, as well as the current snapshot, are lost.
|
---|
8082 | </li>
|
---|
8083 | </ul>
|
---|
8084 |
|
---|
8085 | Each snapshot contains the settings of the virtual machine (hardware
|
---|
8086 | configuration etc.). In addition, if the machine was running when the
|
---|
8087 | snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
|
---|
8088 | the current VM state is saved in the snapshot (similarly to what happens
|
---|
8089 | when a VM's state is saved). The snapshot is then said to
|
---|
8090 | be <i>online</i> because when restoring it, the VM will be running.
|
---|
8091 |
|
---|
8092 | If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
|
---|
8093 | receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
|
---|
8094 |
|
---|
8095 | Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
|
---|
8096 | or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
|
---|
8097 | it then contains a so-called "zero execution state", representing a
|
---|
8098 | machine that is powered off.
|
---|
8099 |
|
---|
8100 | <h3>Snapshot branches and the "current" snapshot</h3>
|
---|
8101 |
|
---|
8102 | Snapshots can be chained, whereby every next snapshot is based on the
|
---|
8103 | previous one. This chaining is related to hard disk branching
|
---|
8104 | (see the <link to="IHardDisk"/> description) in that every time
|
---|
8105 | a new snapshot is created, a new differencing hard disk is implicitly
|
---|
8106 | created for all normal hard disks attached to the machine.
|
---|
8107 |
|
---|
8108 | Each virtual machine has a "current snapshot", identified by
|
---|
8109 | <link to="IMachine::currentSnapshot"/>. Presently, this is always set
|
---|
8110 | to the last snapshot in the chain. In a future version of VirtualBox,
|
---|
8111 | it will be possible to reset a machine's current state to that of an
|
---|
8112 | earlier snapshot without discarding the current state so that it will be
|
---|
8113 | possible to create alternative snapshot paths in a snapshot tree.
|
---|
8114 |
|
---|
8115 | In the current implementation, multiple snapshot branches within one
|
---|
8116 | virtual machine are not allowed. Every machine has a single branch,
|
---|
8117 | and <link to="IConsole::takeSnapshot"/> operation adds a new
|
---|
8118 | snapshot to the top of that branch.
|
---|
8119 | </desc>
|
---|
8120 |
|
---|
8121 | <attribute name="id" type="wstring" readonly="yes">
|
---|
8122 | <desc>UUID of the snapshot.</desc>
|
---|
8123 | </attribute>
|
---|
8124 |
|
---|
8125 | <attribute name="name" type="wstring">
|
---|
8126 | <desc>Short name of the snapshot.</desc>
|
---|
8127 | </attribute>
|
---|
8128 |
|
---|
8129 | <attribute name="description" type="wstring">
|
---|
8130 | <desc>Optional description of the snapshot.</desc>
|
---|
8131 | </attribute>
|
---|
8132 |
|
---|
8133 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
8134 | <desc>
|
---|
8135 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
8136 | </desc>
|
---|
8137 | </attribute>
|
---|
8138 |
|
---|
8139 | <attribute name="online" type="boolean" readonly="yes">
|
---|
8140 | <desc>
|
---|
8141 | @c true if this snapshot is an online snapshot and @c false otherwise.
|
---|
8142 |
|
---|
8143 | When this attribute is @c true, the
|
---|
8144 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8145 | <link to="#machine"/> object associated with this snapshot
|
---|
8146 | will point to the saved state file. Otherwise, it will be
|
---|
8147 | an empty string.
|
---|
8148 | </desc>
|
---|
8149 | </attribute>
|
---|
8150 |
|
---|
8151 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8152 | <desc>
|
---|
8153 | Virtual machine this snapshot is taken on. This object
|
---|
8154 | stores all settings the machine had when taking this snapshot.
|
---|
8155 | <note>
|
---|
8156 | The returned machine object is immutable, i.e. no
|
---|
8157 | any settings can be changed.
|
---|
8158 | </note>
|
---|
8159 | </desc>
|
---|
8160 | </attribute>
|
---|
8161 |
|
---|
8162 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8163 | <desc>
|
---|
8164 | Parent snapshot (a snapshot this one is based on), or
|
---|
8165 | @c null if the snapshot has no parent.
|
---|
8166 | </desc>
|
---|
8167 | </attribute>
|
---|
8168 |
|
---|
8169 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8170 | <desc>
|
---|
8171 | Child snapshots (all snapshots having this one as a parent).
|
---|
8172 | <note>
|
---|
8173 | In the current implementation, there can be only one
|
---|
8174 | child snapshot, or no children at all, meaning this is the
|
---|
8175 | last (head) snapshot.
|
---|
8176 | </note>
|
---|
8177 | </desc>
|
---|
8178 | </attribute>
|
---|
8179 |
|
---|
8180 | </interface>
|
---|
8181 |
|
---|
8182 |
|
---|
8183 | <!--
|
---|
8184 | // IMedia
|
---|
8185 | /////////////////////////////////////////////////////////////////////////
|
---|
8186 | -->
|
---|
8187 |
|
---|
8188 | <enum
|
---|
8189 | name="MediaState"
|
---|
8190 | uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
|
---|
8191 | >
|
---|
8192 | <desc>
|
---|
8193 | Virtual media state.
|
---|
8194 | <see>IMedia</see>
|
---|
8195 | </desc>
|
---|
8196 |
|
---|
8197 | <const name="NotCreated" value="0">
|
---|
8198 | <desc>
|
---|
8199 | Associated media storage does not exist (either was not created yet or
|
---|
8200 | was deleted).
|
---|
8201 | </desc>
|
---|
8202 | </const>
|
---|
8203 | <const name="Created" value="1">
|
---|
8204 | <desc>
|
---|
8205 | Associated storage exists and accessible.
|
---|
8206 | </desc>
|
---|
8207 | </const>
|
---|
8208 | <const name="LockedRead" value="2">
|
---|
8209 | <desc>
|
---|
8210 | Media is locked for reading, no data modification is possible.
|
---|
8211 | </desc>
|
---|
8212 | </const>
|
---|
8213 | <const name="LockedWrite" value="3">
|
---|
8214 | <desc>
|
---|
8215 | Media is locked for writing, no concurrent data reading or modification
|
---|
8216 | is possible.
|
---|
8217 | </desc>
|
---|
8218 | </const>
|
---|
8219 | <const name="Inaccessible" value="4">
|
---|
8220 | <desc>
|
---|
8221 | Associated media storage is not accessible.
|
---|
8222 | </desc>
|
---|
8223 | </const>
|
---|
8224 | <const name="Creating" value="5">
|
---|
8225 | <desc>
|
---|
8226 | Associated media storage is being created.
|
---|
8227 | </desc>
|
---|
8228 | </const>
|
---|
8229 | <const name="Deleting" value="6">
|
---|
8230 | <desc>
|
---|
8231 | Associated media storage is being deleted.
|
---|
8232 | </desc>
|
---|
8233 | </const>
|
---|
8234 | </enum>
|
---|
8235 |
|
---|
8236 | <interface
|
---|
8237 | name="IMedium" extends="$unknown"
|
---|
8238 | uuid="f585787c-7728-40f6-853a-13705426e936"
|
---|
8239 | wsmap="managed"
|
---|
8240 | >
|
---|
8241 | <desc>
|
---|
8242 | The IMedium interface is a common interface for all objects representing
|
---|
8243 | virtual media such as hard disks, CD/DVD images and floppy images.
|
---|
8244 |
|
---|
8245 | Each medium is associated with a storage unit (such as a file on the host
|
---|
8246 | computer or a network resource) that holds actual data. The location of
|
---|
8247 | the storage unit is represented by the #location attribute. The value of
|
---|
8248 | this attribute is media type dependent.
|
---|
8249 |
|
---|
8250 | The exact media type may be determined by querying the appropriate
|
---|
8251 | interface such as:
|
---|
8252 | <ul>
|
---|
8253 | <li><link to="IHardDisk" /> (virtual hard disks)</li>
|
---|
8254 | <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
|
---|
8255 | <li><link to="IFloppyImage" /> (raw floppy image files)</li>
|
---|
8256 | </ul>
|
---|
8257 |
|
---|
8258 | Existing media are opened using the following methods, depending on the
|
---|
8259 | media type:
|
---|
8260 | <ul>
|
---|
8261 | <li><link to="IVirtualBox::openHardDisk"/></li>
|
---|
8262 | <li><link to="IVirtualBox::openDVDImage"/></li>
|
---|
8263 | <li><link to="IVirtualBox::openFloppyImage"/></li>
|
---|
8264 | </ul>
|
---|
8265 |
|
---|
8266 | New hard disk media are created using the
|
---|
8267 | <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
|
---|
8268 | images are created outside VirtualBox, usually by storing a copy
|
---|
8269 | of the real medium of the corresponding type in a regular file.
|
---|
8270 |
|
---|
8271 | <h3>Known Media</h3>
|
---|
8272 |
|
---|
8273 | When an existing medium gets opened for the first time, it gets
|
---|
8274 | automatically remembered by the given VirtualBox installation or, in other
|
---|
8275 | words, becomes a <i>known medium</i>. Known media are stored in the media
|
---|
8276 | registry transparently maintained by VirtualBox and stored in settings
|
---|
8277 | files so that this registry is preserved when VirtualBox is not running.
|
---|
8278 |
|
---|
8279 | Newly created virtual hard disks get remembered only when the associated
|
---|
8280 | storage unit is actually created (see IHardDisk for more details).
|
---|
8281 |
|
---|
8282 | All known media can be enumerated using
|
---|
8283 | <link to="IVirtualBox::hardDisks"/>,
|
---|
8284 | <link to="IVirtualBox::DVDImages"/> and
|
---|
8285 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
8286 | quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
|
---|
8287 | and similar methods or by location using
|
---|
8288 | <link to="IVirtualBox::findHardDisk"/> and similar methods.
|
---|
8289 |
|
---|
8290 | Only known media can be attached to virtual machines.
|
---|
8291 |
|
---|
8292 | Removing known media from the media registry is performed when the given
|
---|
8293 | medium is closed using the <link to="#close"/> method or when its
|
---|
8294 | associated storage unit is deleted (only for hard disks).
|
---|
8295 |
|
---|
8296 | <h3>Accessibility Checks</h3>
|
---|
8297 |
|
---|
8298 | The given medium (with the created storage unit) is considered to be
|
---|
8299 | <i>accessible</i> when its storage unit can be read.
|
---|
8300 | Accessible media are indicated by the <link to="MediaState_Created"/>
|
---|
8301 | value of the <link to="#state"/> attribute. When the storage unit cannot
|
---|
8302 | be read (for example, because it is located on a disconnected network
|
---|
8303 | resource, or was accidentally deleted outside VirtualBox), the medium is
|
---|
8304 | considered to be <i>inaccessible</i> which is indicated by the
|
---|
8305 | <link to="MediaState_Inaccessible"/> state. The details about the reason
|
---|
8306 | of being inaccessible can be obtained using the
|
---|
8307 | <link to="#lastAccessError"/> attribute.
|
---|
8308 |
|
---|
8309 | A new accessibility check is performed each time the <link to="#state"/>
|
---|
8310 | attribute is read. Please note that this check may take long time (several
|
---|
8311 | seconds or even minutes, depending on the storage unit location and
|
---|
8312 | format), and will block the calling thread until finished. For this
|
---|
8313 | reason, it is recommended to never read this attribute on the main UI
|
---|
8314 | thread to avoid making the UI unresponsive.
|
---|
8315 |
|
---|
8316 | Note that when VirtualBox starts up (e.g. the VirtualBox object gets
|
---|
8317 | created for the first time), all known media are in the
|
---|
8318 | <link to="MediaState_Inaccessible"/> state but the value of the <link
|
---|
8319 | to="#lastAccessError"/> attribute is an empty string because no actual
|
---|
8320 | accessibility check is made on startup. This is done to make the
|
---|
8321 | VirtualBox object ready for serving requests as
|
---|
8322 | fast as possible and let the end-user application decide if it needs to
|
---|
8323 | check media accessibility right away or not.
|
---|
8324 | </desc>
|
---|
8325 |
|
---|
8326 | <attribute name="id" type="wstring" readonly="yes">
|
---|
8327 | <desc>
|
---|
8328 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
8329 | generated UUID.
|
---|
8330 |
|
---|
8331 | <note>
|
---|
8332 | For media in one of MediaState_NotCreated, MediaState_Creating or
|
---|
8333 | MediaState_Deleting states, the value of this property is undefined
|
---|
8334 | and will most likely be an empty UUID.
|
---|
8335 | </note>
|
---|
8336 | </desc>
|
---|
8337 | </attribute>
|
---|
8338 |
|
---|
8339 | <attribute name="description" type="wstring">
|
---|
8340 | <desc>
|
---|
8341 | Optional description of the medium. For newly created media, the value
|
---|
8342 | of this attribute value is an empty string.
|
---|
8343 |
|
---|
8344 | Media types that don't support this attribute will return E_NOTIMPL in
|
---|
8345 | attempt to get or set this attribute's value.
|
---|
8346 |
|
---|
8347 | <note>
|
---|
8348 | For some storage types, reading this attribute may return an outdated
|
---|
8349 | (last known) value when <link to="#state"/> is <link
|
---|
8350 | to="MediaState_Inaccessible"/> or <link
|
---|
8351 | to="MediaState_LockedWrite"/> because the value of this attribute is
|
---|
8352 | stored within the storage unit itself. Also note that changing the
|
---|
8353 | attribute value is not possible in such case, as well as when the
|
---|
8354 | medium is the <link to="MediaState_LockedRead"/> state.
|
---|
8355 | </note>
|
---|
8356 | </desc>
|
---|
8357 | </attribute>
|
---|
8358 |
|
---|
8359 | <attribute name="state" type="MediaState" readonly="yes">
|
---|
8360 | <desc>
|
---|
8361 | Current media state. Inspect <link to="MediaState"/> values for details.
|
---|
8362 |
|
---|
8363 | Reading this attribute may take a long time because an accessibility
|
---|
8364 | check of the storage unit is performed each time the attribute is read.
|
---|
8365 | This check may cause a significant delay if the storage unit of the
|
---|
8366 | given medium is, for example, a file located on a network share which is
|
---|
8367 | not currently accessible due to connectivity problems -- the call will
|
---|
8368 | not return until a timeout interval defined by the host OS for this
|
---|
8369 | operation expires.
|
---|
8370 |
|
---|
8371 | If the last known state of the medium is <link to="MediaState_Created"/>
|
---|
8372 | and the accessibility check fails then the state would be set to
|
---|
8373 | <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
|
---|
8374 | may be used to get more details about the failure. If the state of the
|
---|
8375 | medium is <link to="MediaState_LockedRead"/> or
|
---|
8376 | <link to="MediaState_LockedWrite"/> then it remains the same, and a
|
---|
8377 | non-empty value of <link to="#lastAccessError"/> will indicate a failed
|
---|
8378 | accessibility check in this case.
|
---|
8379 |
|
---|
8380 | Note that not all media states are applicable to all media types.
|
---|
8381 | For example, states <link to="MediaState_NotCreated"/>,
|
---|
8382 | <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
|
---|
8383 | <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
|
---|
8384 | IFloppyImage media.
|
---|
8385 | </desc>
|
---|
8386 | </attribute>
|
---|
8387 |
|
---|
8388 | <attribute name="location" type="wstring">
|
---|
8389 | <desc>
|
---|
8390 | Location of the storage unit holding media data.
|
---|
8391 |
|
---|
8392 | The format of the location string is media type specific. For media
|
---|
8393 | types using regular files in a host's file system, the location
|
---|
8394 | string is the full file name.
|
---|
8395 |
|
---|
8396 | Some media types may support changing the storage unit location by
|
---|
8397 | simply changing the value of this property. If this operation is not
|
---|
8398 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
8399 | this attribute's value.
|
---|
8400 |
|
---|
8401 | When setting a value of the location attribute which is a regular file
|
---|
8402 | in the host's file system, the given file name may be either relative to
|
---|
8403 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
8404 | absolute. Note that if the given location specification does not contain
|
---|
8405 | the file extension part then a proper default extension will be
|
---|
8406 | automatically appended by the implementation depending on the media type.
|
---|
8407 | </desc>
|
---|
8408 | </attribute>
|
---|
8409 |
|
---|
8410 | <attribute name="name" type="wstring" readonly="yes">
|
---|
8411 | <desc>
|
---|
8412 | Name of the storage unit holding media data.
|
---|
8413 |
|
---|
8414 | The returned string is a short version of the <link to="#location"/>
|
---|
8415 | attribute that is suitable for representing the medium in situations
|
---|
8416 | where the full location specification is too long (such as lists
|
---|
8417 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
8418 | to sort the media list alphabetically when needed.
|
---|
8419 |
|
---|
8420 | For example, for locations that are regular files in the host's file
|
---|
8421 | system, the value of this attribute is just the file name (+ extension),
|
---|
8422 | without the path specification.
|
---|
8423 |
|
---|
8424 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
8425 | attribute will not necessary be unique for a list of media of the
|
---|
8426 | given type and format.
|
---|
8427 | </desc>
|
---|
8428 | </attribute>
|
---|
8429 |
|
---|
8430 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
8431 | <desc>
|
---|
8432 | Physical size of the storage unit used to hold media data (in bytes).
|
---|
8433 |
|
---|
8434 | <note>
|
---|
8435 | For media whose <link to="#state"/> is <link
|
---|
8436 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
8437 | last known size. For <link to="MediaState_NotCreated"/> media,
|
---|
8438 | the returned value is zero.
|
---|
8439 | </note>
|
---|
8440 | </desc>
|
---|
8441 | </attribute>
|
---|
8442 |
|
---|
8443 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
8444 | <desc>
|
---|
8445 | Text message that represents the result of the last accessibility
|
---|
8446 | check.
|
---|
8447 |
|
---|
8448 | Accessibility checks are performed each time the <link to="#state"/>
|
---|
8449 | attribute is read. An empty string is returned if the last
|
---|
8450 | accessibility check was successful. A non-empty string indicates a
|
---|
8451 | failure and should normally describe a reason of the failure (for
|
---|
8452 | example, a file read error).
|
---|
8453 | </desc>
|
---|
8454 | </attribute>
|
---|
8455 |
|
---|
8456 | <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
|
---|
8457 | <desc>
|
---|
8458 | Array of UUIDs of all machines this medium is attached to.
|
---|
8459 |
|
---|
8460 | A @c null array is returned if this medium is not attached to any
|
---|
8461 | machine or to any machine's snapshot.
|
---|
8462 |
|
---|
8463 | <note>
|
---|
8464 | The returned array will include a machine even if this medium is not
|
---|
8465 | attached to that machine in the current state but attached to it in
|
---|
8466 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
8467 | details.
|
---|
8468 | </note>
|
---|
8469 | </desc>
|
---|
8470 | </attribute>
|
---|
8471 |
|
---|
8472 | <method name="getSnapshotIds">
|
---|
8473 | <desc>
|
---|
8474 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
8475 | this medium is attached to.
|
---|
8476 |
|
---|
8477 | If the medium is attached to the machine in the current state, then the
|
---|
8478 | first element in the array will always be the ID of the queried machine
|
---|
8479 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
8480 | snapshot IDs (if any).
|
---|
8481 |
|
---|
8482 | If the medium is not attached to the machine in the current state, then
|
---|
8483 | the array will contain only snapshot IDs.
|
---|
8484 |
|
---|
8485 | The returned array may be @c null if this medium is not attached
|
---|
8486 | to the given machine at all, neither in the current state nor in one of
|
---|
8487 | the snapshots.
|
---|
8488 | </desc>
|
---|
8489 | <param name="machineId" type="wstring" dir="in">
|
---|
8490 | <desc>
|
---|
8491 | UUID of the machine to query.
|
---|
8492 | </desc>
|
---|
8493 | </param>
|
---|
8494 | <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
|
---|
8495 | <desc>
|
---|
8496 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
8497 | </desc>
|
---|
8498 | </param>
|
---|
8499 | </method>
|
---|
8500 |
|
---|
8501 | <method name="lockRead">
|
---|
8502 | <desc>
|
---|
8503 | Locks this medium for reading.
|
---|
8504 |
|
---|
8505 | The read lock is shared: many clients can simultaneously lock the
|
---|
8506 | same media for reading unless it is already locked for writing (see
|
---|
8507 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
8508 |
|
---|
8509 | When the medium is locked for reading, it cannot be modified
|
---|
8510 | from within VirtualBox. This means that any method that changes
|
---|
8511 | the properties of this medium or contents of the storage unit
|
---|
8512 | will return an error (unless explicitly stated otherwise) and
|
---|
8513 | that an attempt to start a virtual machine that wants to modify
|
---|
8514 | the medium will also fail.
|
---|
8515 |
|
---|
8516 | When the virtual machine is started up, it locks for reading all
|
---|
8517 | media it uses in read-only mode. If some media cannot be locked
|
---|
8518 | for reading, the startup procedure will fail.
|
---|
8519 |
|
---|
8520 | The medium locked for reading must be unlocked using the <link
|
---|
8521 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
8522 | can be nested and must be followed by the same number of paired
|
---|
8523 | <link to="#unlockRead"/> calls.
|
---|
8524 |
|
---|
8525 | This method sets the media state to <link
|
---|
8526 | to="MediaState_LockedRead" /> on success. The state prior to
|
---|
8527 | this call must be <link to="MediaState_Created" />,
|
---|
8528 | <link to="MediaState_Inaccessible" /> or
|
---|
8529 | <link to="MediaState_LockedRead" />.
|
---|
8530 | As you can see, inaccessible media can be locked too. This is
|
---|
8531 | not an error; this method performs a logical lock that prevents
|
---|
8532 | modifications of this media through the VirtualBox API, not a
|
---|
8533 | physical lock of the underlying storage unit.
|
---|
8534 |
|
---|
8535 | This method returns the current state of the medium
|
---|
8536 | <b>before</b> the operation.
|
---|
8537 |
|
---|
8538 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8539 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8540 | creating, deleting).
|
---|
8541 | </result>
|
---|
8542 |
|
---|
8543 | </desc>
|
---|
8544 | <param name="state" type="MediaState" dir="return">
|
---|
8545 | <desc>
|
---|
8546 | State of the medium after the operation.
|
---|
8547 | </desc>
|
---|
8548 | </param>
|
---|
8549 | </method>
|
---|
8550 |
|
---|
8551 | <method name="unlockRead">
|
---|
8552 | <desc>
|
---|
8553 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
8554 |
|
---|
8555 | For both, success and failure, this method returns the current state
|
---|
8556 | of the medium <b>after</b> the operation.
|
---|
8557 |
|
---|
8558 | See <link to="#lockRead"/> for more details.
|
---|
8559 |
|
---|
8560 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8561 | Medium not locked for reading.
|
---|
8562 | </result>
|
---|
8563 |
|
---|
8564 | </desc>
|
---|
8565 | <param name="state" type="MediaState" dir="return">
|
---|
8566 | <desc>
|
---|
8567 | State of the medium after the operation.
|
---|
8568 | </desc>
|
---|
8569 | </param>
|
---|
8570 | </method>
|
---|
8571 |
|
---|
8572 | <method name="lockWrite">
|
---|
8573 | <desc>
|
---|
8574 | Locks this medium for writing.
|
---|
8575 |
|
---|
8576 | The write lock, as opposed to <link to="#lockRead"/>, is
|
---|
8577 | exclusive: there may be only one client holding a write lock
|
---|
8578 | and there may be no read locks while the write lock is held.
|
---|
8579 |
|
---|
8580 | When the medium is locked for writing, it cannot be modified
|
---|
8581 | from within VirtualBox and it is not guaranteed that the values
|
---|
8582 | of its properties are up-to-date. Any method that changes the
|
---|
8583 | properties of this medium or contents of the storage unit will
|
---|
8584 | return an error (unless explicitly stated otherwise) and an
|
---|
8585 | attempt to start a virtual machine wanting to modify or to
|
---|
8586 | read the medium will fail.
|
---|
8587 |
|
---|
8588 | When the virtual machine is started up, it locks for writing all
|
---|
8589 | media it uses to write data to. If any medium could not be locked
|
---|
8590 | for writing, the startup procedure will fail.
|
---|
8591 |
|
---|
8592 | The medium locked for writing must be unlocked using the <link
|
---|
8593 | to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
|
---|
8594 | can <b>not</b> be nested and must be followed by a<link
|
---|
8595 | to="#unlockWrite"/> call before the next lockWrite call.
|
---|
8596 |
|
---|
8597 | This method sets the media state to <link to="MediaState_LockedWrite" />
|
---|
8598 | on success. The state prior to this call must be <link to="MediaState_Created"/>
|
---|
8599 | or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
|
---|
8600 | media can be locked too. This is not an error; this method
|
---|
8601 | performs a logical lock preventing modifications of this
|
---|
8602 | media through the VirtualBox API, not a physical lock of the
|
---|
8603 | underlying storage unit.
|
---|
8604 |
|
---|
8605 | For both, success and failure, this method returns the current
|
---|
8606 | state of the medium <b>before</b> the operation.
|
---|
8607 |
|
---|
8608 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8609 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8610 | creating, deleting).
|
---|
8611 | </result>
|
---|
8612 |
|
---|
8613 | </desc>
|
---|
8614 | <param name="state" type="MediaState" dir="return">
|
---|
8615 | <desc>
|
---|
8616 | State of the medium after the operation.
|
---|
8617 | </desc>
|
---|
8618 | </param>
|
---|
8619 | </method>
|
---|
8620 |
|
---|
8621 | <method name="unlockWrite">
|
---|
8622 | <desc>
|
---|
8623 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
8624 |
|
---|
8625 | For both, success and failure, this method returns the current
|
---|
8626 | state of the medium <b>after</b> the operation.
|
---|
8627 |
|
---|
8628 | See <link to="#lockWrite"/> for more details.
|
---|
8629 |
|
---|
8630 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8631 | Medium not locked for writing.
|
---|
8632 | </result>
|
---|
8633 |
|
---|
8634 | </desc>
|
---|
8635 | <param name="state" type="MediaState" dir="return">
|
---|
8636 | <desc>
|
---|
8637 | State of the medium after the operation.
|
---|
8638 | </desc>
|
---|
8639 | </param>
|
---|
8640 | </method>
|
---|
8641 |
|
---|
8642 | <method name="close">
|
---|
8643 | <desc>
|
---|
8644 | Closes this medium.
|
---|
8645 |
|
---|
8646 | The hard disk must not be attached to any known virtual machine
|
---|
8647 | and must not have any known child hard disks, otherwise the
|
---|
8648 | operation will fail.
|
---|
8649 |
|
---|
8650 | When the hard disk is successfully closed, it gets removed from
|
---|
8651 | the list of remembered hard disks, but its storage unit is not
|
---|
8652 | deleted. In particular, this means that this hard disk can be
|
---|
8653 | later opened again using the <link
|
---|
8654 | to="IVirtualBox::openHardDisk"/> call.
|
---|
8655 |
|
---|
8656 | Note that after this method successfully returns, the given hard
|
---|
8657 | disk object becomes uninitialized. This means that any attempt
|
---|
8658 | to call any of its methods or attributes will fail with the
|
---|
8659 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
8660 |
|
---|
8661 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8662 | Invalid media state (other than not created, created or
|
---|
8663 | inaccessible).
|
---|
8664 | </result>
|
---|
8665 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
8666 | Medium attached to virtual machine.
|
---|
8667 | </result>
|
---|
8668 | <result name="VBOX_E_FILE_ERROR">
|
---|
8669 | Settings file not accessible.
|
---|
8670 | </result>
|
---|
8671 | <result name="VBOX_E_XML_ERROR">
|
---|
8672 | Could not parse the settings file.
|
---|
8673 | </result>
|
---|
8674 |
|
---|
8675 | </desc>
|
---|
8676 | </method>
|
---|
8677 |
|
---|
8678 | </interface>
|
---|
8679 |
|
---|
8680 |
|
---|
8681 | <!--
|
---|
8682 | // IHardDisk
|
---|
8683 | /////////////////////////////////////////////////////////////////////////
|
---|
8684 | -->
|
---|
8685 |
|
---|
8686 | <enum
|
---|
8687 | name="HardDiskType"
|
---|
8688 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
8689 | >
|
---|
8690 | <desc>
|
---|
8691 | Virtual hard disk type.
|
---|
8692 | <see>IHardDisk</see>
|
---|
8693 | </desc>
|
---|
8694 |
|
---|
8695 | <const name="Normal" value="0">
|
---|
8696 | <desc>
|
---|
8697 | Normal hard disk (attached directly or indirectly, preserved
|
---|
8698 | when taking snapshots).
|
---|
8699 | </desc>
|
---|
8700 | </const>
|
---|
8701 | <const name="Immutable" value="1">
|
---|
8702 | <desc>
|
---|
8703 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
8704 | after powering off the virtual machine).
|
---|
8705 | </desc>
|
---|
8706 | </const>
|
---|
8707 | <const name="Writethrough" value="2">
|
---|
8708 | <desc>
|
---|
8709 | Write through hard disk (attached directly, ignored when
|
---|
8710 | taking snapshots).
|
---|
8711 | </desc>
|
---|
8712 | </const>
|
---|
8713 | </enum>
|
---|
8714 |
|
---|
8715 | <enum
|
---|
8716 | name="HardDiskVariant"
|
---|
8717 | uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
|
---|
8718 | >
|
---|
8719 | <desc>
|
---|
8720 | Virtual hard disk image variant. More than one flag may be set.
|
---|
8721 | <see>IHardDisk</see>
|
---|
8722 | </desc>
|
---|
8723 |
|
---|
8724 | <const name="Standard" value="0">
|
---|
8725 | <desc>
|
---|
8726 | No particular variant requested, results in using the backend default.
|
---|
8727 | </desc>
|
---|
8728 | </const>
|
---|
8729 | <const name="VmdkSplit2G" value="0x01">
|
---|
8730 | <desc>
|
---|
8731 | VMDK image split in chunks of less than 2GByte.
|
---|
8732 | </desc>
|
---|
8733 | </const>
|
---|
8734 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
8735 | <desc>
|
---|
8736 | VMDK streamOptimized image. Special import/export format which is
|
---|
8737 | read-only/append-only.
|
---|
8738 | </desc>
|
---|
8739 | </const>
|
---|
8740 | <const name="VmdkESX" value="0x08">
|
---|
8741 | <desc>
|
---|
8742 | VMDK format variant used on ESX products.
|
---|
8743 | </desc>
|
---|
8744 | </const>
|
---|
8745 | <const name="Fixed" value="0x10000">
|
---|
8746 | <desc>
|
---|
8747 | Fixed image. Only allowed for base images.
|
---|
8748 | </desc>
|
---|
8749 | </const>
|
---|
8750 | <const name="Diff" value="0x20000">
|
---|
8751 | <desc>
|
---|
8752 | Fixed image. Only allowed for base images.
|
---|
8753 | </desc>
|
---|
8754 | </const>
|
---|
8755 | </enum>
|
---|
8756 |
|
---|
8757 | <interface
|
---|
8758 | name="IHardDiskAttachment" extends="$unknown"
|
---|
8759 | uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
|
---|
8760 | wsmap="struct"
|
---|
8761 | >
|
---|
8762 | <desc>
|
---|
8763 | The IHardDiskAttachment interface represents a hard disk attachment of a
|
---|
8764 | virtual machine.
|
---|
8765 |
|
---|
8766 | Every hard disk attachment specifies a slot of the virtual hard disk
|
---|
8767 | controller and a virtual hard disk attached to this slot.
|
---|
8768 |
|
---|
8769 | The array of hard disk attachments is returned by
|
---|
8770 | <link to="IMachine::hardDiskAttachments"/>.
|
---|
8771 | </desc>
|
---|
8772 |
|
---|
8773 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
8774 | <desc>Hard disk object associated with this attachment.</desc>
|
---|
8775 | </attribute>
|
---|
8776 |
|
---|
8777 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
8778 | <desc>Interface bus of this attachment.</desc>
|
---|
8779 | </attribute>
|
---|
8780 |
|
---|
8781 | <attribute name="port" type="long" readonly="yes">
|
---|
8782 | <desc>Port number of this attachment.</desc>
|
---|
8783 | </attribute>
|
---|
8784 |
|
---|
8785 | <attribute name="device" type="long" readonly="yes">
|
---|
8786 | <desc>Device slot number of this attachment.</desc>
|
---|
8787 | </attribute>
|
---|
8788 |
|
---|
8789 | </interface>
|
---|
8790 |
|
---|
8791 | <interface
|
---|
8792 | name="IHardDisk" extends="IMedium"
|
---|
8793 | uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
|
---|
8794 | wsmap="managed"
|
---|
8795 | >
|
---|
8796 | <desc>
|
---|
8797 | The IHardDisk interface represents a virtual hard disk drive
|
---|
8798 | used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
8799 |
|
---|
8800 | <h3>Hard Disk Types</h3>
|
---|
8801 |
|
---|
8802 | There are three types of hard disks:
|
---|
8803 | <link to="HardDiskType_Normal">Normal</link>,
|
---|
8804 | <link to="HardDiskType_Immutable">Immutable</link> and
|
---|
8805 | <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
|
---|
8806 | hard disk defines how the hard disk is attached to a virtual machine and
|
---|
8807 | what happens when a <link to="ISnapshot">snapshot</link> of the virtual
|
---|
8808 | machine with the attached hard disk is taken. The type of the hard disk is
|
---|
8809 | defined by the <link to="#type"/> attribute.
|
---|
8810 |
|
---|
8811 | All hard disks can be also divided in two groups: <i>base</i> hard
|
---|
8812 | disks and <i>differencing</i> hard disks. A base hard disk contains all
|
---|
8813 | sectors of the hard disk data in its own storage and therefore can be
|
---|
8814 | used independently. On the contrary, a differencing hard disk is a
|
---|
8815 | "delta" to some other disk and contains only those sectors which differ
|
---|
8816 | from that other disk, which is then called a <i>parent</i>. The differencing
|
---|
8817 | hard disk is said to be <i>linked to</i> that parent.
|
---|
8818 | The parent may be itself a differencing image, thus forming a chain of
|
---|
8819 | linked hard disks. The last element in that chain (sometimes referred to as
|
---|
8820 | the root hard disk) must always be a base. Note that several differencing
|
---|
8821 | hard disks may be linked to the same parent hard disk.
|
---|
8822 |
|
---|
8823 | Differencing hard disks can be distinguished from base hard disks by
|
---|
8824 | querying the <link to="#parent"/> attribute: base hard disks do not have
|
---|
8825 | parents they would depend on, so the value of this attribute is always
|
---|
8826 | @c null for them. Using this attribute, it is possible to walk up
|
---|
8827 | the hard disk tree (from the child hard disk to its parent). It is also
|
---|
8828 | possible to walk down the tree using the <link to="#children"/>
|
---|
8829 | attribute.
|
---|
8830 |
|
---|
8831 | Note that the type of all differencing hard disks is
|
---|
8832 | <link to="HardDiskType_Normal" />; all other values are
|
---|
8833 | meaningless for them. Base hard disks may be of any type.
|
---|
8834 |
|
---|
8835 | <h3>Creating Hard Disks</h3>
|
---|
8836 |
|
---|
8837 | New base hard disks are created using
|
---|
8838 | <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
|
---|
8839 | opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
|
---|
8840 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
8841 | also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
8842 |
|
---|
8843 | After the hard disk is successfully created (including the storage unit)
|
---|
8844 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
8845 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
8846 | through <link to="IVirtualBox::getHardDisk"/> and
|
---|
8847 | <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
|
---|
8848 | <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
|
---|
8849 |
|
---|
8850 | The following methods, besides <link to="IMedium::close"/>,
|
---|
8851 | automatically remove the hard disk from the media registry:
|
---|
8852 | <ul>
|
---|
8853 | <li><link to="#deleteStorage"/></li>
|
---|
8854 | <li><link to="#mergeTo"/></li>
|
---|
8855 | </ul>
|
---|
8856 |
|
---|
8857 | If the storage unit of the hard disk is a regular file in the host's
|
---|
8858 | file system then the rules stated in the description of the
|
---|
8859 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
8860 | addition, a plain file name without any path may be given, in which case
|
---|
8861 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
8862 | folder</link> will be prepended to it.
|
---|
8863 |
|
---|
8864 | <h4>Automatic composition of the file name part</h4>
|
---|
8865 |
|
---|
8866 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
8867 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
8868 | the file name part of the location using the UUID of the hard disk. This
|
---|
8869 | applies only to hard disks in <link to="MediaState_NotCreated"/> state,
|
---|
8870 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
8871 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
8872 | specification which only contains the path specification but not the file
|
---|
8873 | name part and ends with either a forward slash or a backslash character.
|
---|
8874 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
8875 | compose the file name using the following pattern:
|
---|
8876 | <pre>
|
---|
8877 | <path>/{<uuid>}.<ext>
|
---|
8878 | </pre>
|
---|
8879 | where <tt><path></tt> is the supplied path specification,
|
---|
8880 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
8881 | is the default extension for the storage format of this hard disk. After
|
---|
8882 | that, you may call any of the methods that create a new hard disk storage
|
---|
8883 | unit and they will use the generated UUID and file name.
|
---|
8884 |
|
---|
8885 | <h3>Attaching Hard Disks</h3>
|
---|
8886 |
|
---|
8887 | Hard disks are attached to virtual machines using the
|
---|
8888 | <link to="IMachine::attachHardDisk"/> method and detached using the
|
---|
8889 | <link to="IMachine::detachHardDisk"/> method. Depending on their
|
---|
8890 | <link to="#type"/>, hard disks are attached either
|
---|
8891 | <i>directly</i> or <i>indirectly</i>.
|
---|
8892 |
|
---|
8893 | When a hard disk is being attached directly, it is associated with the
|
---|
8894 | virtual machine and used for hard disk operations when the machine is
|
---|
8895 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
8896 | hard disk linked to it is implicitly created and this differencing hard
|
---|
8897 | disk is associated with the machine and used for hard disk operations.
|
---|
8898 | This also means that if <link to="IMachine::attachHardDisk"/> performs
|
---|
8899 | a direct attachment then the same hard disk will be returned in response
|
---|
8900 | to the subsequent <link to="IMachine::getHardDisk"/> call; however if
|
---|
8901 | an indirect attachment is performed then
|
---|
8902 | <link to="IMachine::getHardDisk"/> will return the implicitly created
|
---|
8903 | differencing hard disk, not the original one passed to <link
|
---|
8904 | to="IMachine::attachHardDisk"/>. The following table shows the
|
---|
8905 | dependency of the attachment type on the hard disk type:
|
---|
8906 |
|
---|
8907 | <table>
|
---|
8908 | <tr>
|
---|
8909 | <th>Hard Disk Type</th>
|
---|
8910 | <th>Direct or Indirect?</th>
|
---|
8911 | </tr>
|
---|
8912 | <tr>
|
---|
8913 | <td>Normal (Base)</td>
|
---|
8914 | <td>
|
---|
8915 | Normal base hard disks that do not have children (i.e. differencing
|
---|
8916 | hard disks linked to them) and that are not already attached to
|
---|
8917 | virtual machines in snapshots are attached <b>directly</b>.
|
---|
8918 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
8919 | dependent children or being part of the snapshot makes it impossible
|
---|
8920 | to modify hard disk contents without breaking the integrity of the
|
---|
8921 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
8922 | quickly determine the kind of the attachment for the given hard
|
---|
8923 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
8924 | attached to a virtual machine with snapshots then a special
|
---|
8925 | procedure called <i>smart attachment</i> is performed (see below).
|
---|
8926 | </td>
|
---|
8927 | </tr>
|
---|
8928 | <tr>
|
---|
8929 | <td>Normal (Differencing)</td>
|
---|
8930 | <td>
|
---|
8931 | Differencing hard disks are like normal base hard disks: attached
|
---|
8932 | <b>directly</b> if they do not have children and are not attached to
|
---|
8933 | virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
|
---|
8934 | that the smart attachment procedure is never performed for
|
---|
8935 | differencing hard disks.
|
---|
8936 | </td>
|
---|
8937 | </tr>
|
---|
8938 | <tr>
|
---|
8939 | <td>Immutable</td>
|
---|
8940 | <td>
|
---|
8941 | Immutable hard disks are always attached <b>indirectly</b> because
|
---|
8942 | they are designed to be non-writable. If an immutable hard disk is
|
---|
8943 | attached to a virtual machine with snapshots then a special
|
---|
8944 | procedure called smart attachment is performed (see below).
|
---|
8945 | </td>
|
---|
8946 | </tr>
|
---|
8947 | <tr>
|
---|
8948 | <td>Writethrough</td>
|
---|
8949 | <td>
|
---|
8950 | Writethrough hard disks are always attached <b>directly</b>, also as
|
---|
8951 | designed. This also means that writethrough hard disks cannot have
|
---|
8952 | other hard disks linked to them at all.
|
---|
8953 | </td>
|
---|
8954 | </tr>
|
---|
8955 | </table>
|
---|
8956 |
|
---|
8957 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
8958 | more than one virtual machine at a time. In this case, the machine that is
|
---|
8959 | started first gains exclusive access to the hard disk and attempts to
|
---|
8960 | start other machines having this hard disk attached will fail until the
|
---|
8961 | first machine is powered down.
|
---|
8962 |
|
---|
8963 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
8964 | that the given hard disk remains associated with the given machine after a
|
---|
8965 | successful <link to="IMachine::detachHardDisk"/> call until
|
---|
8966 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
8967 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
8968 | the hard disk configuration may be restored at any time by a call to
|
---|
8969 | <link to="IMachine::discardSettings"/> before the settings
|
---|
8970 | are saved (committed).
|
---|
8971 |
|
---|
8972 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
8973 | indirectly attaching some hard disks to the machine but before a call to
|
---|
8974 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
8975 | all differencing hard disks implicitly created by
|
---|
8976 | <link to="IMachine::attachHardDisk"/> for these indirect attachments.
|
---|
8977 | Such implicitly created hard disks will also be immediately deleted when
|
---|
8978 | detached explicitly using the <link to="IMachine::detachHardDisk"/>
|
---|
8979 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
8980 | implicit deletion is safe because newly created differencing hard
|
---|
8981 | disks do not contain any user data.
|
---|
8982 |
|
---|
8983 | However, keep in mind that detaching differencing hard disks that were
|
---|
8984 | implicitly created by <link to="IMachine::attachHardDisk"/>
|
---|
8985 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
8986 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
8987 | (for example, as a result of virtual machine execution). If these hard
|
---|
8988 | disks are no more necessary, the caller can always delete them explicitly
|
---|
8989 | using <link to="#deleteStorage"/> after they are actually de-associated
|
---|
8990 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
8991 |
|
---|
8992 | <h3>Smart Attachment</h3>
|
---|
8993 |
|
---|
8994 | When normal base or immutable hard disks are indirectly attached to a
|
---|
8995 | virtual machine then some additional steps are performed to make sure the
|
---|
8996 | virtual machine will have the most recent "view" of the hard disk being
|
---|
8997 | attached. These steps include walking through the machine's snapshots
|
---|
8998 | starting from the current one and going through ancestors up to the first
|
---|
8999 | snapshot. Hard disks attached to the virtual machine in all
|
---|
9000 | of the encountered snapshots are checked whether they are descendants of
|
---|
9001 | the given normal base or immutable hard disk. The first found child (which
|
---|
9002 | is the differencing hard disk) will be used instead of the normal base or
|
---|
9003 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
9004 | that will be actually attached to the machine. And only if no descendants
|
---|
9005 | are found or if the virtual machine does not have any snapshots then the
|
---|
9006 | normal base or immutable hard disk will be used itself as a parent for
|
---|
9007 | this differencing hard disk.
|
---|
9008 |
|
---|
9009 | It is easier to explain what smart attachment does using the
|
---|
9010 | following example:
|
---|
9011 | <pre>
|
---|
9012 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
9013 |
|
---|
9014 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
9015 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
9016 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
9017 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
9018 | CurState (none) CurState (D3->D2.vdi)
|
---|
9019 |
|
---|
9020 | NOT
|
---|
9021 | ...
|
---|
9022 | CurState (D3->B.vdi)
|
---|
9023 | </pre>
|
---|
9024 | The first column is the virtual machine configuration before the base hard
|
---|
9025 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
9026 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
9027 | mean that the hard disk that is actually attached to the machine is a
|
---|
9028 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
9029 | another hard disk, <tt>B.vdi</tt>.
|
---|
9030 |
|
---|
9031 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
9032 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
9033 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
9034 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
9035 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
9036 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
9037 | attachment procedure, the new differencing hard disk
|
---|
9038 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
9039 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
9040 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
9041 | machine.
|
---|
9042 |
|
---|
9043 | Note that if there is more than one descendant hard disk of the given base
|
---|
9044 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
9045 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
9046 | descendant will be picked up.
|
---|
9047 |
|
---|
9048 | There is one more important aspect of the smart attachment procedure which
|
---|
9049 | is not related to snapshots at all. Before walking through the snapshots
|
---|
9050 | as described above, the backup copy of the current list of hard disk
|
---|
9051 | attachment is searched for descendants. This backup copy is created when
|
---|
9052 | the hard disk configuration is changed for the first time after the last
|
---|
9053 | <link to="IMachine::saveSettings"/> call and used by
|
---|
9054 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
9055 | changes. When such a descendant is found in this backup copy, it will be
|
---|
9056 | simply re-attached back, without creating a new differencing hard disk for
|
---|
9057 | it. This optimization is necessary to make it possible to re-attach the
|
---|
9058 | base or immutable hard disk to a different bus, channel or device slot
|
---|
9059 | without losing the contents of the differencing hard disk actually
|
---|
9060 | attached to the machine in place of it.
|
---|
9061 | </desc>
|
---|
9062 |
|
---|
9063 | <attribute name="format" type="wstring" readonly="yes">
|
---|
9064 | <desc>
|
---|
9065 | Storage format of this hard disk.
|
---|
9066 |
|
---|
9067 | The value of this attribute is a string that specifies a backend used to
|
---|
9068 | store hard disk data. The storage format is defined when you create a
|
---|
9069 | new hard disk or automatically detected when you open an existing hard
|
---|
9070 | disk medium, and cannot be changed later.
|
---|
9071 |
|
---|
9072 | The list of all storage formats supported by this VirtualBox
|
---|
9073 | installation can be obtained using
|
---|
9074 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
9075 | </desc>
|
---|
9076 | </attribute>
|
---|
9077 |
|
---|
9078 | <attribute name="type" type="HardDiskType">
|
---|
9079 | <desc>
|
---|
9080 | Type (role) of this hard disk.
|
---|
9081 |
|
---|
9082 | The following constraints apply when changing the value of this
|
---|
9083 | attribute:
|
---|
9084 | <ul>
|
---|
9085 | <li>If a hard disk is attached to a virtual machine (either in the
|
---|
9086 | current state or in one of the snapshots), its type cannot be
|
---|
9087 | changed.
|
---|
9088 | </li>
|
---|
9089 | <li>As long as the hard disk has children, its type cannot be set
|
---|
9090 | to <link to="HardDiskType_Writethrough"/>.
|
---|
9091 | </li>
|
---|
9092 | <li>The type of all differencing hard disks is
|
---|
9093 | <link to="HardDiskType_Normal"/> and cannot be changed.
|
---|
9094 | </li>
|
---|
9095 | </ul>
|
---|
9096 |
|
---|
9097 | The type of a newly created or opened hard disk is set to
|
---|
9098 | <link to="HardDiskType_Normal"/>.
|
---|
9099 | </desc>
|
---|
9100 | </attribute>
|
---|
9101 |
|
---|
9102 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
9103 | <desc>
|
---|
9104 | Parent of this hard disk (a hard disk this hard disk is directly based
|
---|
9105 | on).
|
---|
9106 |
|
---|
9107 | Only differencing hard disks have parents. For base (non-differencing)
|
---|
9108 | hard disks, @c null is returned.
|
---|
9109 | </desc>
|
---|
9110 | </attribute>
|
---|
9111 |
|
---|
9112 | <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
|
---|
9113 | <desc>
|
---|
9114 | Children of this hard disk (all differencing hard disks directly based
|
---|
9115 | on this hard disk). A @c null array is returned if this hard disk
|
---|
9116 | does not have any children.
|
---|
9117 | </desc>
|
---|
9118 | </attribute>
|
---|
9119 |
|
---|
9120 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
9121 | <desc>
|
---|
9122 | Root hard disk of this hard disk.
|
---|
9123 |
|
---|
9124 | If this is a differencing hard disk, its root hard disk is the base hard
|
---|
9125 | disk the given hard disk branch starts from. For all other types of hard
|
---|
9126 | disks, this property returns the hard disk object itself (i.e. the same
|
---|
9127 | object this property is read on).
|
---|
9128 | </desc>
|
---|
9129 | </attribute>
|
---|
9130 |
|
---|
9131 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
9132 | <desc>
|
---|
9133 | Returns @c true if this hard disk is read-only and @c false otherwise.
|
---|
9134 |
|
---|
9135 | A hard disk is considered to be read-only when its contents cannot be
|
---|
9136 | modified without breaking the integrity of other parties that depend on
|
---|
9137 | this hard disk such as its child hard disks or snapshots of virtual
|
---|
9138 | machines where this hard disk is attached to these machines. If there
|
---|
9139 | are no children and no such snapshots then there is no dependency and
|
---|
9140 | the hard disk is not read-only.
|
---|
9141 |
|
---|
9142 | The value of this attribute can be used to determine the kind of the
|
---|
9143 | attachment that will take place when attaching this hard disk to a
|
---|
9144 | virtual machine. If the value is @c false then the hard disk will
|
---|
9145 | be attached directly. If the value is @c true then the hard disk
|
---|
9146 | will be attached indirectly by creating a new differencing child hard
|
---|
9147 | disk for that. See the interface description for more information.
|
---|
9148 |
|
---|
9149 | Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
|
---|
9150 | disks are always read-only while all
|
---|
9151 | <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
|
---|
9152 | always not.
|
---|
9153 |
|
---|
9154 | <note>
|
---|
9155 | The read-only condition represented by this attribute is related to
|
---|
9156 | the hard disk type and usage, not to the current
|
---|
9157 | <link to="IMedium::state">media state</link> and not to the read-only
|
---|
9158 | state of the storage unit.
|
---|
9159 | </note>
|
---|
9160 | </desc>
|
---|
9161 | </attribute>
|
---|
9162 |
|
---|
9163 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
9164 | <desc>
|
---|
9165 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
9166 | guest OS running inside the virtual machine this disk is
|
---|
9167 | attached to. The logical size is defined when the hard disk is created
|
---|
9168 | and cannot be changed later.
|
---|
9169 |
|
---|
9170 | <note>
|
---|
9171 | Reading this property on a differencing hard disk will return the size
|
---|
9172 | of its <link to="#root"/> hard disk.
|
---|
9173 | </note>
|
---|
9174 | <note>
|
---|
9175 | For hard disks whose state is <link to="#state"/> is <link
|
---|
9176 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
9177 | last known logical size. For <link to="MediaState_NotCreated"/> hard
|
---|
9178 | disks, the returned value is zero.
|
---|
9179 | </note>
|
---|
9180 | </desc>
|
---|
9181 | </attribute>
|
---|
9182 |
|
---|
9183 | <attribute name="autoReset" type="boolean">
|
---|
9184 | <desc>
|
---|
9185 | Whether this differencing hard disk will be automatically reset each
|
---|
9186 | time a virtual machine it is attached to is powered up.
|
---|
9187 |
|
---|
9188 | See <link to="#reset()"/> for more information about resetting
|
---|
9189 | differencing hard disks.
|
---|
9190 |
|
---|
9191 | <note>
|
---|
9192 | Reading this property on a base (non-differencing) hard disk will
|
---|
9193 | always @c false. Changing the value of this property in this
|
---|
9194 | case is not supported.
|
---|
9195 | </note>
|
---|
9196 |
|
---|
9197 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9198 | This is not a differencing hard disk (when changing the attribute
|
---|
9199 | value).
|
---|
9200 | </result>
|
---|
9201 | </desc>
|
---|
9202 | </attribute>
|
---|
9203 |
|
---|
9204 | <!-- storage methods -->
|
---|
9205 |
|
---|
9206 | <method name="getProperty">
|
---|
9207 | <desc>
|
---|
9208 | Returns the value of the custom hard disk property with the given name.
|
---|
9209 |
|
---|
9210 | The list of all properties supported by the given hard disk format can
|
---|
9211 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9212 |
|
---|
9213 | Note that if this method returns an empty string in @a value, the
|
---|
9214 | requested property is supported but currently not assigned any value.
|
---|
9215 |
|
---|
9216 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9217 | Requested property does not exist (not supported by the format).
|
---|
9218 | </result>
|
---|
9219 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9220 | </desc>
|
---|
9221 | <param name="name" type="wstring" dir="in">
|
---|
9222 | <desc>Name of the property to get.</desc>
|
---|
9223 | </param>
|
---|
9224 | <param name="value" type="wstring" dir="return">
|
---|
9225 | <desc>Current property value.</desc>
|
---|
9226 | </param>
|
---|
9227 | </method>
|
---|
9228 |
|
---|
9229 | <method name="setProperty">
|
---|
9230 | <desc>
|
---|
9231 | Sets the value of the custom hard disk property with the given name.
|
---|
9232 |
|
---|
9233 | The list of all properties supported by the given hard disk format can
|
---|
9234 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9235 |
|
---|
9236 | Note that setting the property value to @c null or an empty string is
|
---|
9237 | equivalent to deleting the existing value. A default value (if it is
|
---|
9238 | defined for this property) will be used by the format backend in this
|
---|
9239 | case.
|
---|
9240 |
|
---|
9241 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9242 | Requested property does not exist (not supported by the format).
|
---|
9243 | </result>
|
---|
9244 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9245 | </desc>
|
---|
9246 | <param name="name" type="wstring" dir="in">
|
---|
9247 | <desc>Name of the property to set.</desc>
|
---|
9248 | </param>
|
---|
9249 | <param name="value" type="wstring" dir="in">
|
---|
9250 | <desc>Property value to set.</desc>
|
---|
9251 | </param>
|
---|
9252 | </method>
|
---|
9253 |
|
---|
9254 | <method name="getProperties">
|
---|
9255 | <desc>
|
---|
9256 | Returns values for a group of properties in one call.
|
---|
9257 |
|
---|
9258 | The names of the properties to get are specified using the @a names
|
---|
9259 | argument which is a list of comma-separated property names or
|
---|
9260 | an empty string if all properties are to be returned. Note that currently
|
---|
9261 | the value of this argument is ignored and the method always returns all
|
---|
9262 | existing properties.
|
---|
9263 |
|
---|
9264 | The list of all properties supported by the given hard disk format can
|
---|
9265 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9266 |
|
---|
9267 | The method returns two arrays, the array of property names corresponding
|
---|
9268 | to the @a names argument and the current values of these properties.
|
---|
9269 | Both arrays have the same number of elements with each elemend at the
|
---|
9270 | given index in the first array corresponds to an element at the same
|
---|
9271 | index in the second array.
|
---|
9272 |
|
---|
9273 | Note that for properties that do not have assigned values,
|
---|
9274 | an empty string is returned at the appropriate index in the
|
---|
9275 | @a returnValues array.
|
---|
9276 |
|
---|
9277 | </desc>
|
---|
9278 | <param name="names" type="wstring" dir="in">
|
---|
9279 | <desc>
|
---|
9280 | Names of properties to get.
|
---|
9281 | </desc>
|
---|
9282 | </param>
|
---|
9283 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
9284 | <desc>Names of returned properties.</desc>
|
---|
9285 | </param>
|
---|
9286 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
9287 | <desc>Values of returned properties.</desc>
|
---|
9288 | </param>
|
---|
9289 | </method>
|
---|
9290 |
|
---|
9291 | <method name="setProperties">
|
---|
9292 | <desc>
|
---|
9293 | Sets values for a group of properties in one call.
|
---|
9294 |
|
---|
9295 | The names of the properties to set are passed in the @a names
|
---|
9296 | array along with the new values for them in the @a values array. Both
|
---|
9297 | arrays have the same number of elements with each elemend at the given
|
---|
9298 | index in the first array corresponding to an element at the same index
|
---|
9299 | in the second array.
|
---|
9300 |
|
---|
9301 | If there is at least one property name in @a names that is not valid,
|
---|
9302 | the method will fail before changing the values of any other properties
|
---|
9303 | from the @a names array.
|
---|
9304 |
|
---|
9305 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
9306 | need to set several properties at once since it will result into less
|
---|
9307 | IPC calls.
|
---|
9308 |
|
---|
9309 | The list of all properties supported by the given hard disk format can
|
---|
9310 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9311 |
|
---|
9312 | Note that setting the property value to @c null or an empty string is
|
---|
9313 | equivalent to deleting the existing value. A default value (if it is
|
---|
9314 | defined for this property) will be used by the format backend in this
|
---|
9315 | case.
|
---|
9316 | </desc>
|
---|
9317 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
9318 | <desc>Names of properties to set.</desc>
|
---|
9319 | </param>
|
---|
9320 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
9321 | <desc>Values of properties to set.</desc>
|
---|
9322 | </param>
|
---|
9323 | </method>
|
---|
9324 |
|
---|
9325 | <!-- storage methods -->
|
---|
9326 |
|
---|
9327 | <method name="createBaseStorage">
|
---|
9328 | <desc>
|
---|
9329 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
9330 | to the variant flags) in in the background. The previous storage unit
|
---|
9331 | created for this object, if any, must first be deleted using
|
---|
9332 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
9333 |
|
---|
9334 | Before the operation starts, the hard disk is placed in
|
---|
9335 | <link to="MediaState_Creating"/> state. If the create operation
|
---|
9336 | fails, the media will be placed back in <link to="MediaState_NotCreated"/>
|
---|
9337 | state.
|
---|
9338 |
|
---|
9339 | After the returned progress object reports that the operation has
|
---|
9340 | successfully completed, the media state will be set to <link
|
---|
9341 | to="MediaState_Created"/>, the hard disk will be remembered by this
|
---|
9342 | VirtualBox installation and may be attached to virtual machines.
|
---|
9343 |
|
---|
9344 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9345 | The variant of storage creation operation is not supported. See <link
|
---|
9346 | to="IHardDiskFormat::capabilities"/>.
|
---|
9347 | </result>
|
---|
9348 | </desc>
|
---|
9349 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
9350 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
9351 | </param>
|
---|
9352 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9353 | <desc>Exact image variant which should be created.</desc>
|
---|
9354 | </param>
|
---|
9355 | <param name="progress" type="IProgress" dir="return">
|
---|
9356 | <desc>Progress object to track the operation completion.</desc>
|
---|
9357 | </param>
|
---|
9358 | </method>
|
---|
9359 |
|
---|
9360 | <method name="deleteStorage">
|
---|
9361 | <desc>
|
---|
9362 | Starts deleting the storage unit of this hard disk.
|
---|
9363 |
|
---|
9364 | The hard disk must not be attached to any known virtual machine and must
|
---|
9365 | not have any known child hard disks, otherwise the operation will fail.
|
---|
9366 | It will also fail if there is no storage unit to delete or if deletion
|
---|
9367 | is already in progress, or if the hard disk is being in use (locked for
|
---|
9368 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
9369 | this operation to succeed is <link to="MediaState_Created"/>.
|
---|
9370 |
|
---|
9371 | Before the operation starts, the hard disk is placed to
|
---|
9372 | <link to="MediaState_Deleting"/> state and gets removed from the list
|
---|
9373 | of remembered hard disks (media registry). If the delete operation
|
---|
9374 | fails, the media will be remembered again and placed back to
|
---|
9375 | <link to="MediaState_Created"/> state.
|
---|
9376 |
|
---|
9377 | After the returned progress object reports that the operation is
|
---|
9378 | complete, the media state will be set to
|
---|
9379 | <link to="MediaState_NotCreated"/> and you will be able to use one of
|
---|
9380 | the storage creation methods to create it again.
|
---|
9381 |
|
---|
9382 | <see>#close()</see>
|
---|
9383 |
|
---|
9384 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9385 | Hard disk is attached to a virtual machine.
|
---|
9386 | </result>
|
---|
9387 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9388 | Storage deletion is not allowed because neither of storage creation
|
---|
9389 | operations are supported. See
|
---|
9390 | <link to="IHardDiskFormat::capabilities"/>.
|
---|
9391 | </result>
|
---|
9392 |
|
---|
9393 | <note>
|
---|
9394 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
9395 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
9396 | to answer this question.
|
---|
9397 | </note>
|
---|
9398 | </desc>
|
---|
9399 | <param name="progress" type="IProgress" dir="return">
|
---|
9400 | <desc>Progress object to track the operation completion.</desc>
|
---|
9401 | </param>
|
---|
9402 | </method>
|
---|
9403 |
|
---|
9404 | <!-- diff methods -->
|
---|
9405 |
|
---|
9406 | <method name="createDiffStorage">
|
---|
9407 | <desc>
|
---|
9408 | Starts creating an empty differencing storage unit based on this hard
|
---|
9409 | disk in the format and at the location defined by the @a target
|
---|
9410 | argument.
|
---|
9411 |
|
---|
9412 | The target hard disk must be in <link to="MediaState_NotCreated"/>
|
---|
9413 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
9414 | completion, this operation will set the type of the target hard disk to
|
---|
9415 | <link to="HardDiskType_Normal"/> and create a storage unit necessary to
|
---|
9416 | represent the differencing hard disk data in the given format (according
|
---|
9417 | to the storage format of the target object).
|
---|
9418 |
|
---|
9419 | After the returned progress object reports that the operation is
|
---|
9420 | successfully complete, the target hard disk gets remembered by this
|
---|
9421 | VirtualBox installation and may be attached to virtual machines.
|
---|
9422 |
|
---|
9423 | <note>
|
---|
9424 | The hard disk will be set to <link to="MediaState_LockedRead"/>
|
---|
9425 | state for the duration of this operation.
|
---|
9426 | </note>
|
---|
9427 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9428 | Hard disk not in @c NotCreated state.
|
---|
9429 | </result>
|
---|
9430 | </desc>
|
---|
9431 | <param name="target" type="IHardDisk" dir="in">
|
---|
9432 | <desc>Target hard disk.</desc>
|
---|
9433 | </param>
|
---|
9434 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9435 | <desc>Exact image variant which should be created.</desc>
|
---|
9436 | </param>
|
---|
9437 | <param name="progress" type="IProgress" dir="return">
|
---|
9438 | <desc>Progress object to track the operation completion.</desc>
|
---|
9439 | </param>
|
---|
9440 | </method>
|
---|
9441 |
|
---|
9442 | <method name="mergeTo">
|
---|
9443 | <desc>
|
---|
9444 | Starts merging the contents of this hard disk and all intermediate
|
---|
9445 | differencing hard disks in the chain to the given target hard disk.
|
---|
9446 |
|
---|
9447 | The target hard disk must be either a descendant of this hard disk or
|
---|
9448 | its ancestor (otherwise this method will immediately return a failure).
|
---|
9449 | It follows that there are two logical directions of the merge operation:
|
---|
9450 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
9451 | ancestor (<i>backward merge</i>). Let us consider the following hard disk
|
---|
9452 | chain:
|
---|
9453 |
|
---|
9454 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
9455 |
|
---|
9456 | Here, calling this method on the <tt>Base</tt> hard disk object with
|
---|
9457 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
9458 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
9459 | merge. Note that in both cases the contents of the resulting hard disk
|
---|
9460 | will be the same, the only difference is the hard disk object that takes
|
---|
9461 | the result of the merge operation. In case of the forward merge in the
|
---|
9462 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
9463 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
9464 | other words, the result of the operation is always stored in the target
|
---|
9465 | hard disk.
|
---|
9466 |
|
---|
9467 | Upon successful operation completion, the storage units of all hard
|
---|
9468 | disks in the chain between this (source) hard disk and the target hard
|
---|
9469 | disk, including the source hard disk itself, will be automatically
|
---|
9470 | deleted and the relevant hard disk objects (including this hard disk)
|
---|
9471 | will become uninitialized. This means that any attempt to call any of
|
---|
9472 | their methods or attributes will fail with the
|
---|
9473 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
9474 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
9475 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
|
---|
9476 | disks. Note that <tt>Diff_2</tt> in this case will become a base hard
|
---|
9477 | disk itself since it will no longer be based on any other hard disk.
|
---|
9478 |
|
---|
9479 | Considering the above, all of the following conditions must be met in
|
---|
9480 | order for the merge operation to succeed:
|
---|
9481 | <ul>
|
---|
9482 | <li>
|
---|
9483 | Neither this (source) hard disk nor any intermediate
|
---|
9484 | differencing hard disk in the chain between it and the target
|
---|
9485 | hard disk is attached to any virtual machine.
|
---|
9486 | </li>
|
---|
9487 | <li>
|
---|
9488 | Neither the source hard disk nor the target hard disk is an
|
---|
9489 | <link to="HardDiskType_Immutable"/> hard disk.
|
---|
9490 | </li>
|
---|
9491 | <li>
|
---|
9492 | The part of the hard disk tree from the source hard disk to the
|
---|
9493 | target hard disk is a linear chain, i.e. all hard disks in this
|
---|
9494 | chain have exactly one child which is the next hard disk in this
|
---|
9495 | chain. The only exception from this rule is the target hard disk in
|
---|
9496 | the forward merge operation; it is allowed to have any number of
|
---|
9497 | child hard disks because the merge operation will hot change its
|
---|
9498 | logical contents (as it is seen by the guest OS or by children).
|
---|
9499 | </li>
|
---|
9500 | <li>
|
---|
9501 | None of the involved hard disks are in
|
---|
9502 | <link to="MediaState_LockedRead"/> or
|
---|
9503 | <link to="MediaState_LockedWrite"/> state.
|
---|
9504 | </li>
|
---|
9505 | </ul>
|
---|
9506 |
|
---|
9507 | <note>
|
---|
9508 | This (source) hard disk and all intermediates will be placed to <link
|
---|
9509 | to="MediaState_Deleting"/> state and the target hard disk will be
|
---|
9510 | placed to <link to="MediaState_LockedWrite"/> state and for the
|
---|
9511 | duration of this operation.
|
---|
9512 | </note>
|
---|
9513 | </desc>
|
---|
9514 | <param name="targetId" type="wstring" dir="in">
|
---|
9515 | <desc>UUID of the target ancestor or descendant hard disk.</desc>
|
---|
9516 | </param>
|
---|
9517 | <param name="progress" type="IProgress" dir="return">
|
---|
9518 | <desc>Progress object to track the operation completion.</desc>
|
---|
9519 | </param>
|
---|
9520 | </method>
|
---|
9521 |
|
---|
9522 | <!-- clone method -->
|
---|
9523 |
|
---|
9524 | <method name="cloneTo">
|
---|
9525 | <desc>
|
---|
9526 | Starts creating a clone of this hard disk in the format and at the
|
---|
9527 | location defined by the @a target argument.
|
---|
9528 |
|
---|
9529 | The target hard disk must be either in <link to="MediaState_NotCreated"/>
|
---|
9530 | state (i.e. must not have an existing storage unit) or in
|
---|
9531 | <link to="MediaState_Created"/> state (i.e. created and not locked, and
|
---|
9532 | big enough to hold the data or else the copy will be partial). Upon
|
---|
9533 | successful completion, the cloned hard disk will contain exactly the
|
---|
9534 | same sector data as the hard disk being cloned, except that in the
|
---|
9535 | first case a new UUID for the clone will be randomly generated, and in
|
---|
9536 | the second case the UUID will remain unchanged.
|
---|
9537 |
|
---|
9538 | The @a parent argument defines which hard disk will be the parent
|
---|
9539 | of the clone. Passing a @c null reference indicates that the clone will
|
---|
9540 | be a base image, i.e. completely independent. It is possible to specify
|
---|
9541 | an arbitrary hard disk for this parameter, including the parent of the
|
---|
9542 | hard disk which is being cloned. Even cloning to a child of the source
|
---|
9543 | hard disk is possible. Note that when cloning to an existing image, the
|
---|
9544 | @a parent irgument is ignored.
|
---|
9545 |
|
---|
9546 | After the returned progress object reports that the operation is
|
---|
9547 | successfully complete, the target hard disk gets remembered by this
|
---|
9548 | VirtualBox installation and may be attached to virtual machines.
|
---|
9549 |
|
---|
9550 | <note>
|
---|
9551 | This hard disk will be placed to <link to="MediaState_LockedRead"/>
|
---|
9552 | state for the duration of this operation.
|
---|
9553 | </note>
|
---|
9554 | <result name="E_NOTIMPL">
|
---|
9555 | The specified cloning variant is not supported at the moment.
|
---|
9556 | </result>
|
---|
9557 | </desc>
|
---|
9558 | <param name="target" type="IHardDisk" dir="in">
|
---|
9559 | <desc>Target hard disk.</desc>
|
---|
9560 | </param>
|
---|
9561 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9562 | <desc>Exact image variant which should be created.</desc>
|
---|
9563 | </param>
|
---|
9564 | <param name="parent" type="IHardDisk" dir="in">
|
---|
9565 | <desc>Parent of the cloned hard disk.</desc>
|
---|
9566 | </param>
|
---|
9567 | <param name="progress" type="IProgress" dir="return">
|
---|
9568 | <desc>Progress object to track the operation completion.</desc>
|
---|
9569 | </param>
|
---|
9570 | </method>
|
---|
9571 |
|
---|
9572 | <!-- other methods -->
|
---|
9573 |
|
---|
9574 | <method name="compact">
|
---|
9575 | <desc>
|
---|
9576 | Starts compacting of this hard disk. This means that the disk is
|
---|
9577 | transformed into a possibly more compact storage representation.
|
---|
9578 | This potentially creates temporary images, which can require a
|
---|
9579 | substantial amount of additional disk space.
|
---|
9580 |
|
---|
9581 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9582 | state and all its parent hard disks (if any) will be placed to
|
---|
9583 | <link to="MediaState_LockedRead"/> state for the duration of this
|
---|
9584 | operation.
|
---|
9585 |
|
---|
9586 | Please note that the results can be either returned straight away,
|
---|
9587 | or later as the result of the background operation via the object
|
---|
9588 | returned via the @a progress parameter.
|
---|
9589 |
|
---|
9590 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9591 | Hard disk format does not support compacting (but potentially
|
---|
9592 | needs it).
|
---|
9593 | </result>
|
---|
9594 | </desc>
|
---|
9595 | <param name="progress" type="IProgress" dir="return">
|
---|
9596 | <desc>Progress object to track the operation completion.</desc>
|
---|
9597 | </param>
|
---|
9598 | </method>
|
---|
9599 |
|
---|
9600 | <method name="reset">
|
---|
9601 | <desc>
|
---|
9602 | Starts erasing the contents of this differencing hard disk.
|
---|
9603 |
|
---|
9604 | This operation will reset the differencing hard disk to its initial
|
---|
9605 | state when it does not contain any sector data and any read operation is
|
---|
9606 | redirected to its parent hard disk.
|
---|
9607 |
|
---|
9608 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9609 | for the duration of this operation.
|
---|
9610 |
|
---|
9611 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9612 | This is not a differencing hard disk.
|
---|
9613 | </result>
|
---|
9614 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9615 | Hard disk is not in <link to="MediaState_Created"/> or
|
---|
9616 | <link to="MediaState_Inaccessible"/> state.
|
---|
9617 | </result>
|
---|
9618 | </desc>
|
---|
9619 | <param name="progress" type="IProgress" dir="return">
|
---|
9620 | <desc>Progress object to track the operation completion.</desc>
|
---|
9621 | </param>
|
---|
9622 | </method>
|
---|
9623 |
|
---|
9624 | </interface>
|
---|
9625 |
|
---|
9626 |
|
---|
9627 | <!--
|
---|
9628 | // IHardDiskFormat
|
---|
9629 | /////////////////////////////////////////////////////////////////////////
|
---|
9630 | -->
|
---|
9631 |
|
---|
9632 | <enum
|
---|
9633 | name="DataType"
|
---|
9634 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
9635 | >
|
---|
9636 | <const name="Int32" value="0"/>
|
---|
9637 | <const name="Int8" value="1"/>
|
---|
9638 | <const name="String" value="2"/>
|
---|
9639 | </enum>
|
---|
9640 |
|
---|
9641 | <enum
|
---|
9642 | name="DataFlags"
|
---|
9643 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
9644 | >
|
---|
9645 | <const name="None" value="0x00"/>
|
---|
9646 | <const name="Mandatory" value="0x01"/>
|
---|
9647 | <const name="Expert" value="0x02"/>
|
---|
9648 | <const name="Array" value="0x04"/>
|
---|
9649 | <const name="FlagMask" value="0x07"/>
|
---|
9650 | </enum>
|
---|
9651 |
|
---|
9652 | <enum
|
---|
9653 | name="HardDiskFormatCapabilities"
|
---|
9654 | uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
|
---|
9655 | >
|
---|
9656 | <desc>
|
---|
9657 | Hard disk format capability flags.
|
---|
9658 | </desc>
|
---|
9659 |
|
---|
9660 | <const name="Uuid" value="0x01">
|
---|
9661 | <desc>
|
---|
9662 | Supports UUIDs as expected by VirtualBox code.
|
---|
9663 | </desc>
|
---|
9664 | </const>
|
---|
9665 |
|
---|
9666 | <const name="CreateFixed" value="0x02">
|
---|
9667 | <desc>
|
---|
9668 | Supports creating fixed size images, allocating all space instantly.
|
---|
9669 | </desc>
|
---|
9670 | </const>
|
---|
9671 |
|
---|
9672 | <const name="CreateDynamic" value="0x04">
|
---|
9673 | <desc>
|
---|
9674 | Supports creating dynamically growing images, allocating space on
|
---|
9675 | demand.
|
---|
9676 | </desc>
|
---|
9677 | </const>
|
---|
9678 |
|
---|
9679 | <const name="CreateSplit2G" value="0x08">
|
---|
9680 | <desc>
|
---|
9681 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
9682 | </desc>
|
---|
9683 | </const>
|
---|
9684 |
|
---|
9685 | <const name="Differencing" value="0x10">
|
---|
9686 | <desc>
|
---|
9687 | Supports being used as a format for differencing hard disks (see <link
|
---|
9688 | to="IHardDisk::createDiffStorage"/>).
|
---|
9689 | </desc>
|
---|
9690 | </const>
|
---|
9691 |
|
---|
9692 | <const name="Asynchronous" value="0x20">
|
---|
9693 | <desc>
|
---|
9694 | Supports asynchronous I/O operations for at least some configurations.
|
---|
9695 | </desc>
|
---|
9696 | </const>
|
---|
9697 |
|
---|
9698 | <const name="File" value="0x40">
|
---|
9699 | <desc>
|
---|
9700 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
9701 | attribute of the hard disk specifies a file used to store hard disk
|
---|
9702 | data; for a list of supported file extensions see
|
---|
9703 | <link to="IHardDiskFormat::fileExtensions"/>).
|
---|
9704 | </desc>
|
---|
9705 | </const>
|
---|
9706 |
|
---|
9707 | <const name="Properties" value="0x80">
|
---|
9708 | <desc>
|
---|
9709 | The format backend uses the property interface to configure the storage
|
---|
9710 | location and properties (the <link to="IHardDiskFormat::describeProperties"/>
|
---|
9711 | method is used to get access to properties supported by the given hard
|
---|
9712 | disk format).
|
---|
9713 | </desc>
|
---|
9714 | </const>
|
---|
9715 |
|
---|
9716 | <const name="CapabilityMask" value="0xFF"/>
|
---|
9717 | </enum>
|
---|
9718 |
|
---|
9719 | <interface
|
---|
9720 | name="IHardDiskFormat" extends="$unknown"
|
---|
9721 | uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
|
---|
9722 | wsmap="managed"
|
---|
9723 | >
|
---|
9724 | <desc>
|
---|
9725 | The IHardDiskFormat interface represents a virtual hard disk format.
|
---|
9726 |
|
---|
9727 | Each hard disk format has an associated backend which is used to handle
|
---|
9728 | hard disks stored in this format. This interface provides information
|
---|
9729 | about the properties of the associated backend.
|
---|
9730 |
|
---|
9731 | Each hard disk format is identified by a string represented by the
|
---|
9732 | <link to="#id"/> attribute. This string is used in calls like
|
---|
9733 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
9734 | format.
|
---|
9735 |
|
---|
9736 | The list of all supported hard disk formats can be obtained using
|
---|
9737 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
9738 |
|
---|
9739 | <see>IHardDisk</see>
|
---|
9740 | </desc>
|
---|
9741 |
|
---|
9742 | <attribute name="id" type="wstring" readonly="yes">
|
---|
9743 | <desc>
|
---|
9744 | Identifier of this format.
|
---|
9745 |
|
---|
9746 | The format identifier is a non-@c null non-empty ASCII string. Note that
|
---|
9747 | this string is case-insensitive. This means that, for example, all of
|
---|
9748 | the following strings:
|
---|
9749 | <pre>
|
---|
9750 | "VDI"
|
---|
9751 | "vdi"
|
---|
9752 | "VdI"</pre>
|
---|
9753 | refer to the same hard disk format.
|
---|
9754 |
|
---|
9755 | This string is used in methods of other interfaces where it is necessary
|
---|
9756 | to specify a hard disk format, such as
|
---|
9757 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
9758 | </desc>
|
---|
9759 | </attribute>
|
---|
9760 |
|
---|
9761 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9762 | <desc>
|
---|
9763 | Human readable description of this format.
|
---|
9764 |
|
---|
9765 | Mainly for use in file open dialogs.
|
---|
9766 | </desc>
|
---|
9767 | </attribute>
|
---|
9768 |
|
---|
9769 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
9770 | <desc>
|
---|
9771 | Array of strings containing the supported file extensions.
|
---|
9772 |
|
---|
9773 | The first extension in the array is the extension preferred by the
|
---|
9774 | backend. It is recommended to use this extension when specifying a
|
---|
9775 | location of the storage unit for a new hard disk.
|
---|
9776 |
|
---|
9777 | Note that some backends do not work on files, so this array may be
|
---|
9778 | empty.
|
---|
9779 |
|
---|
9780 | <see>IHardDiskFormat::capabilities</see>
|
---|
9781 | </desc>
|
---|
9782 | </attribute>
|
---|
9783 |
|
---|
9784 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
9785 | <desc>
|
---|
9786 | Capabilities of the format as a set of bit flags.
|
---|
9787 |
|
---|
9788 | For the meaning of individual capability flags see
|
---|
9789 | <link to="HardDiskFormatCapabilities"/>.
|
---|
9790 | </desc>
|
---|
9791 | </attribute>
|
---|
9792 |
|
---|
9793 | <method name="describeProperties">
|
---|
9794 | <desc>
|
---|
9795 | Returns several arrays describing the properties supported by this
|
---|
9796 | format.
|
---|
9797 |
|
---|
9798 | An element with the given index in each array describes one
|
---|
9799 | property. Thus, the number of elements in each returned array is the
|
---|
9800 | same and corresponds to the number of supported properties.
|
---|
9801 |
|
---|
9802 | The returned arrays are filled in only if the
|
---|
9803 | <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
|
---|
9804 | All arguments must be non-@c null.
|
---|
9805 |
|
---|
9806 | <see>DataType</see>
|
---|
9807 | <see>DataFlags</see>
|
---|
9808 | </desc>
|
---|
9809 |
|
---|
9810 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
9811 | <desc>Array of property names.</desc>
|
---|
9812 | </param>
|
---|
9813 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
9814 | <desc>Array of property descriptions.</desc>
|
---|
9815 | </param>
|
---|
9816 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
9817 | <desc>Array of property types.</desc>
|
---|
9818 | </param>
|
---|
9819 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
9820 | <desc>Array of property flags.</desc>
|
---|
9821 | </param>
|
---|
9822 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
9823 | <desc>Array of default property values.</desc>
|
---|
9824 | </param>
|
---|
9825 | </method>
|
---|
9826 |
|
---|
9827 | </interface>
|
---|
9828 |
|
---|
9829 |
|
---|
9830 | <!--
|
---|
9831 | // IFloppyImage
|
---|
9832 | /////////////////////////////////////////////////////////////////////////
|
---|
9833 | -->
|
---|
9834 |
|
---|
9835 | <interface
|
---|
9836 | name="IFloppyImage" extends="IMedium"
|
---|
9837 | uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
|
---|
9838 | wsmap="managed"
|
---|
9839 | >
|
---|
9840 | <desc>
|
---|
9841 | The IFloppyImage interface represents a medium containing the image
|
---|
9842 | of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9843 | </desc>
|
---|
9844 |
|
---|
9845 | </interface>
|
---|
9846 |
|
---|
9847 |
|
---|
9848 | <!--
|
---|
9849 | // IDVDImage
|
---|
9850 | /////////////////////////////////////////////////////////////////////////
|
---|
9851 | -->
|
---|
9852 |
|
---|
9853 | <interface
|
---|
9854 | name="IDVDImage" extends="IMedium"
|
---|
9855 | uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
|
---|
9856 | wsmap="managed"
|
---|
9857 | >
|
---|
9858 | <desc>
|
---|
9859 | The IDVDImage interface represents a medium containing the image
|
---|
9860 | of a CD or DVD disk in the ISO format.
|
---|
9861 |
|
---|
9862 | This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9863 | </desc>
|
---|
9864 |
|
---|
9865 | </interface>
|
---|
9866 |
|
---|
9867 |
|
---|
9868 | <!--
|
---|
9869 | // IDVDDrive
|
---|
9870 | /////////////////////////////////////////////////////////////////////////
|
---|
9871 | -->
|
---|
9872 |
|
---|
9873 | <interface
|
---|
9874 | name="IDVDDrive" extends="$unknown"
|
---|
9875 | uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
|
---|
9876 | wsmap="managed"
|
---|
9877 | >
|
---|
9878 | <desc>
|
---|
9879 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
9880 | virtual machine. An object of this type is returned by
|
---|
9881 | <link to="IMachine::DVDDrive"/>.
|
---|
9882 | </desc>
|
---|
9883 |
|
---|
9884 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9885 | <desc>Current drive state.</desc>
|
---|
9886 | </attribute>
|
---|
9887 |
|
---|
9888 | <attribute name="passthrough" type="boolean">
|
---|
9889 | <desc>
|
---|
9890 | When a host drive is mounted and passthrough is enabled
|
---|
9891 | the guest OS will be able to directly send SCSI commands to
|
---|
9892 | the host drive. This enables the guest OS to use CD/DVD writers
|
---|
9893 | but is potentially dangerous.
|
---|
9894 | </desc>
|
---|
9895 | </attribute>
|
---|
9896 |
|
---|
9897 | <method name="mountImage">
|
---|
9898 | <desc>Mounts a CD/DVD image with the specified UUID.
|
---|
9899 |
|
---|
9900 | <result name="VBOX_E_FILE_ERROR">
|
---|
9901 | Invalid image file location.
|
---|
9902 | </result>
|
---|
9903 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9904 | Could not find a CD/DVD image matching @a imageId.
|
---|
9905 | </result>
|
---|
9906 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9907 | Invalid media state.
|
---|
9908 | </result>
|
---|
9909 |
|
---|
9910 | </desc>
|
---|
9911 | <param name="imageId" type="wstring" dir="in"/>
|
---|
9912 | </method>
|
---|
9913 |
|
---|
9914 | <method name="captureHostDrive">
|
---|
9915 | <desc>Captures the specified host CD/DVD drive.</desc>
|
---|
9916 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
9917 | </method>
|
---|
9918 |
|
---|
9919 | <method name="unmount">
|
---|
9920 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
9921 | </method>
|
---|
9922 |
|
---|
9923 | <method name="getImage">
|
---|
9924 | <desc>Returns the currently mounted CD/DVD image.</desc>
|
---|
9925 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
9926 | </method>
|
---|
9927 |
|
---|
9928 | <method name="getHostDrive">
|
---|
9929 | <desc>Returns the currently mounted host CD/DVD drive.</desc>
|
---|
9930 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
9931 | </method>
|
---|
9932 |
|
---|
9933 | </interface>
|
---|
9934 |
|
---|
9935 |
|
---|
9936 | <!--
|
---|
9937 | // IFloppyDrive
|
---|
9938 | /////////////////////////////////////////////////////////////////////////
|
---|
9939 | -->
|
---|
9940 |
|
---|
9941 | <interface
|
---|
9942 | name="IFloppyDrive" extends="$unknown"
|
---|
9943 | uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
|
---|
9944 | wsmap="managed"
|
---|
9945 | >
|
---|
9946 | <desc>
|
---|
9947 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
9948 | virtual machine. An object of this type is returned by
|
---|
9949 | <link to="IMachine::floppyDrive" />.
|
---|
9950 | </desc>
|
---|
9951 |
|
---|
9952 | <attribute name="enabled" type="boolean">
|
---|
9953 | <desc>
|
---|
9954 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
9955 | the floppy drive will not be reported to the guest OS.
|
---|
9956 | </desc>
|
---|
9957 | </attribute>
|
---|
9958 |
|
---|
9959 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9960 | <desc>Current drive state.</desc>
|
---|
9961 | </attribute>
|
---|
9962 |
|
---|
9963 | <method name="mountImage">
|
---|
9964 | <desc>Mounts a floppy image with the specified UUID.
|
---|
9965 |
|
---|
9966 | <result name="VBOX_E_FILE_ERROR">
|
---|
9967 | Invalid image file location.
|
---|
9968 | </result>
|
---|
9969 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9970 | Could not find a floppy image matching @a imageID.
|
---|
9971 | </result>
|
---|
9972 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9973 | Invalid media state.
|
---|
9974 | </result>
|
---|
9975 |
|
---|
9976 | </desc>
|
---|
9977 | <param name="imageId" type="wstring" dir="in"/>
|
---|
9978 | </method>
|
---|
9979 |
|
---|
9980 | <method name="captureHostDrive">
|
---|
9981 | <desc>Captures the specified host floppy drive.</desc>
|
---|
9982 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
9983 | </method>
|
---|
9984 |
|
---|
9985 | <method name="unmount">
|
---|
9986 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
9987 | </method>
|
---|
9988 |
|
---|
9989 | <method name="getImage">
|
---|
9990 | <desc>Returns the currently mounted floppy image.</desc>
|
---|
9991 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
9992 | </method>
|
---|
9993 |
|
---|
9994 | <method name="getHostDrive">
|
---|
9995 | <desc>Returns the currently mounted host floppy drive.</desc>
|
---|
9996 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
9997 | </method>
|
---|
9998 |
|
---|
9999 | </interface>
|
---|
10000 |
|
---|
10001 |
|
---|
10002 | <!--
|
---|
10003 | // IKeyboard
|
---|
10004 | /////////////////////////////////////////////////////////////////////////
|
---|
10005 | -->
|
---|
10006 |
|
---|
10007 | <interface
|
---|
10008 | name="IKeyboard" extends="$unknown"
|
---|
10009 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
10010 | wsmap="managed"
|
---|
10011 | >
|
---|
10012 | <desc>
|
---|
10013 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
10014 | in <link to="IConsole::keyboard"/>.
|
---|
10015 |
|
---|
10016 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
10017 | to the virtual machine.
|
---|
10018 |
|
---|
10019 | </desc>
|
---|
10020 | <method name="putScancode">
|
---|
10021 | <desc>Sends a scancode to the keyboard.
|
---|
10022 |
|
---|
10023 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10024 | Could not send scan code to virtual keyboard.
|
---|
10025 | </result>
|
---|
10026 |
|
---|
10027 | </desc>
|
---|
10028 | <param name="scancode" type="long" dir="in"/>
|
---|
10029 | </method>
|
---|
10030 |
|
---|
10031 | <method name="putScancodes">
|
---|
10032 | <desc>Sends an array of scancodes to the keyboard.
|
---|
10033 |
|
---|
10034 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10035 | Could not send all scan codes to virtual keyboard.
|
---|
10036 | </result>
|
---|
10037 |
|
---|
10038 | </desc>
|
---|
10039 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
10040 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
10041 | </method>
|
---|
10042 |
|
---|
10043 | <method name="putCAD">
|
---|
10044 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
10045 | function is nothing special, it is just a convenience function
|
---|
10046 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
10047 |
|
---|
10048 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10049 | Could not send all scan codes to virtual keyboard.
|
---|
10050 | </result>
|
---|
10051 |
|
---|
10052 | </desc>
|
---|
10053 | </method>
|
---|
10054 |
|
---|
10055 | </interface>
|
---|
10056 |
|
---|
10057 |
|
---|
10058 | <!--
|
---|
10059 | // IMouse
|
---|
10060 | /////////////////////////////////////////////////////////////////////////
|
---|
10061 | -->
|
---|
10062 |
|
---|
10063 | <enum
|
---|
10064 | name="MouseButtonState"
|
---|
10065 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
10066 | >
|
---|
10067 | <desc>
|
---|
10068 | Mouse button state.
|
---|
10069 | </desc>
|
---|
10070 |
|
---|
10071 | <const name="LeftButton" value="0x01"/>
|
---|
10072 | <const name="RightButton" value="0x02"/>
|
---|
10073 | <const name="MiddleButton" value="0x04"/>
|
---|
10074 | <const name="WheelUp" value="0x08"/>
|
---|
10075 | <const name="WheelDown" value="0x10"/>
|
---|
10076 | <const name="MouseStateMask" value="0x1F"/>
|
---|
10077 | </enum>
|
---|
10078 |
|
---|
10079 | <interface
|
---|
10080 | name="IMouse" extends="$unknown"
|
---|
10081 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
10082 | wsmap="managed"
|
---|
10083 | >
|
---|
10084 | <desc>
|
---|
10085 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
10086 | <link to="IConsole::mouse"/>.
|
---|
10087 |
|
---|
10088 | Through this interface, the virtual machine's virtual mouse can be
|
---|
10089 | controlled.
|
---|
10090 | </desc>
|
---|
10091 |
|
---|
10092 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
10093 | <desc>
|
---|
10094 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
10095 | or not.
|
---|
10096 | <note>
|
---|
10097 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
10098 | in order to enable absolute mouse positioning support.
|
---|
10099 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
10100 | callback to be instantly informed about changes of this attribute
|
---|
10101 | during virtual machine execution.
|
---|
10102 | </note>
|
---|
10103 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
10104 | </desc>
|
---|
10105 | </attribute>
|
---|
10106 |
|
---|
10107 | <method name="putMouseEvent">
|
---|
10108 | <desc>
|
---|
10109 | Initiates a mouse event using relative pointer movements
|
---|
10110 | along x and y axis.
|
---|
10111 |
|
---|
10112 | <result name="E_ACCESSDENIED">
|
---|
10113 | Console not powered up.
|
---|
10114 | </result>
|
---|
10115 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10116 | Could not send mouse event to virtual mouse.
|
---|
10117 | </result>
|
---|
10118 |
|
---|
10119 | </desc>
|
---|
10120 |
|
---|
10121 | <param name="dx" type="long" dir="in">
|
---|
10122 | <desc>
|
---|
10123 | Amount of pixels the mouse should move to the right.
|
---|
10124 | Negative values move the mouse to the left.
|
---|
10125 | </desc>
|
---|
10126 | </param>
|
---|
10127 | <param name="dy" type="long" dir="in">
|
---|
10128 | <desc>
|
---|
10129 | Amount of pixels the mouse should move downwards.
|
---|
10130 | Negative values move the mouse upwards.
|
---|
10131 | </desc>
|
---|
10132 | </param>
|
---|
10133 | <param name="dz" type="long" dir="in">
|
---|
10134 | <desc>
|
---|
10135 | Amount of mouse wheel moves.
|
---|
10136 | Positive values describe clockwise wheel rotations,
|
---|
10137 | negative values describe counterclockwise rotations.
|
---|
10138 | </desc>
|
---|
10139 | </param>
|
---|
10140 | <param name="buttonState" type="long" dir="in">
|
---|
10141 | <desc>
|
---|
10142 | The current state of mouse buttons. Every bit represents
|
---|
10143 | a mouse button as follows:
|
---|
10144 | <table>
|
---|
10145 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10146 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10147 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10148 | </table>
|
---|
10149 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10150 | otherwise it is released.
|
---|
10151 | </desc>
|
---|
10152 | </param>
|
---|
10153 | </method>
|
---|
10154 |
|
---|
10155 | <method name="putMouseEventAbsolute">
|
---|
10156 | <desc>
|
---|
10157 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10158 | These coordinates are expressed in pixels and
|
---|
10159 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10160 | corner of the virtual display.
|
---|
10161 |
|
---|
10162 | <result name="E_ACCESSDENIED">
|
---|
10163 | Console not powered up.
|
---|
10164 | </result>
|
---|
10165 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10166 | Could not send mouse event to virtual mouse.
|
---|
10167 | </result>
|
---|
10168 |
|
---|
10169 | <note>
|
---|
10170 | This method will have effect only if absolute mouse
|
---|
10171 | positioning is supported by the guest OS.
|
---|
10172 | </note>
|
---|
10173 |
|
---|
10174 | <see><link to="#absoluteSupported"/></see>
|
---|
10175 | </desc>
|
---|
10176 |
|
---|
10177 | <param name="x" type="long" dir="in">
|
---|
10178 | <desc>
|
---|
10179 | X coordinate of the pointer in pixels, starting from @c 1.
|
---|
10180 | </desc>
|
---|
10181 | </param>
|
---|
10182 | <param name="y" type="long" dir="in">
|
---|
10183 | <desc>
|
---|
10184 | Y coordinate of the pointer in pixels, starting from @c 1.
|
---|
10185 | </desc>
|
---|
10186 | </param>
|
---|
10187 | <param name="dz" type="long" dir="in">
|
---|
10188 | <desc>
|
---|
10189 | Amount of mouse wheel moves.
|
---|
10190 | Positive values describe clockwise wheel rotations,
|
---|
10191 | negative values describe counterclockwise rotations.
|
---|
10192 | </desc>
|
---|
10193 | </param>
|
---|
10194 | <param name="buttonState" type="long" dir="in">
|
---|
10195 | <desc>
|
---|
10196 | The current state of mouse buttons. Every bit represents
|
---|
10197 | a mouse button as follows:
|
---|
10198 | <table>
|
---|
10199 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10200 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10201 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10202 | </table>
|
---|
10203 | A value of @c 1 means the corresponding button is pressed.
|
---|
10204 | otherwise it is released.
|
---|
10205 | </desc>
|
---|
10206 | </param>
|
---|
10207 | </method>
|
---|
10208 |
|
---|
10209 | </interface>
|
---|
10210 |
|
---|
10211 | <!--
|
---|
10212 | // IDisplay
|
---|
10213 | /////////////////////////////////////////////////////////////////////////
|
---|
10214 | -->
|
---|
10215 |
|
---|
10216 | <enum
|
---|
10217 | name="FramebufferPixelFormat"
|
---|
10218 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10219 | >
|
---|
10220 | <desc>
|
---|
10221 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10222 | be used to test for particular values of <link
|
---|
10223 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10224 | to="IFramebuffer::requestResize"/>.
|
---|
10225 |
|
---|
10226 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10227 | </desc>
|
---|
10228 |
|
---|
10229 | <const name="Opaque" value="0">
|
---|
10230 | <desc>
|
---|
10231 | Unknown buffer format (the user may not assume any particular format of
|
---|
10232 | the buffer).
|
---|
10233 | </desc>
|
---|
10234 | </const>
|
---|
10235 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10236 | <desc>
|
---|
10237 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10238 | bit layout).
|
---|
10239 | </desc>
|
---|
10240 | </const>
|
---|
10241 | </enum>
|
---|
10242 |
|
---|
10243 | <interface
|
---|
10244 | name="IFramebuffer" extends="$unknown"
|
---|
10245 | uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
|
---|
10246 | wsmap="suppress"
|
---|
10247 | >
|
---|
10248 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
10249 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
10250 | </attribute>
|
---|
10251 |
|
---|
10252 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10253 | <desc>Frame buffer width, in pixels.</desc>
|
---|
10254 | </attribute>
|
---|
10255 |
|
---|
10256 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10257 | <desc>Frame buffer height, in pixels.</desc>
|
---|
10258 | </attribute>
|
---|
10259 |
|
---|
10260 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10261 | <desc>
|
---|
10262 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
10263 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
10264 | are: 8, 15, 16, 24 and 32.
|
---|
10265 | </desc>
|
---|
10266 | </attribute>
|
---|
10267 |
|
---|
10268 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
10269 | <desc>
|
---|
10270 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
10271 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
10272 | size of the scan line must be aligned to 32 bits.
|
---|
10273 | </desc>
|
---|
10274 | </attribute>
|
---|
10275 |
|
---|
10276 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
10277 | <desc>
|
---|
10278 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
10279 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
10280 | <note>
|
---|
10281 | This attribute must never return <link
|
---|
10282 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
10283 | <link to="#address"/> points to must be always known.
|
---|
10284 | </note>
|
---|
10285 | </desc>
|
---|
10286 | </attribute>
|
---|
10287 |
|
---|
10288 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
10289 | <desc>
|
---|
10290 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
10291 | buffer (guest VRAM) directly or not. See <link
|
---|
10292 | to="IFramebuffer::requestResize"/> for more information.
|
---|
10293 | </desc>
|
---|
10294 | </attribute>
|
---|
10295 |
|
---|
10296 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
10297 | <desc>
|
---|
10298 | Hint from the frame buffer about how much of the standard
|
---|
10299 | screen height it wants to use for itself. This information is
|
---|
10300 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
10301 | so that it can use it for determining its video mode table. It
|
---|
10302 | is not guaranteed that the guest respects the value.
|
---|
10303 | </desc>
|
---|
10304 | </attribute>
|
---|
10305 |
|
---|
10306 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
10307 | <desc>
|
---|
10308 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
10309 | The initial purpose is to allow the display of icons providing
|
---|
10310 | information about the VM state, including disk activity, in front
|
---|
10311 | ends which do not have other means of doing that. The overlay is
|
---|
10312 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
10313 | of its own, and any changes made to it are not guaranteed to be
|
---|
10314 | visible until the affected portion of IFramebuffer is updated. The
|
---|
10315 | overlay can be created lazily the first time it is requested. This
|
---|
10316 | attribute can also return @c null to signal that the overlay is not
|
---|
10317 | implemented.
|
---|
10318 | </desc>
|
---|
10319 | </attribute>
|
---|
10320 |
|
---|
10321 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
10322 | <desc>
|
---|
10323 | Platform-dependent identifier of the window where context of this
|
---|
10324 | frame buffer is drawn, or zero if there's no such window.
|
---|
10325 | </desc>
|
---|
10326 | </attribute>
|
---|
10327 |
|
---|
10328 | <method name="lock">
|
---|
10329 | <desc>
|
---|
10330 | Locks the frame buffer.
|
---|
10331 | Gets called by the IDisplay object where this frame buffer is
|
---|
10332 | bound to.
|
---|
10333 | </desc>
|
---|
10334 | </method>
|
---|
10335 |
|
---|
10336 | <method name="unlock">
|
---|
10337 | <desc>
|
---|
10338 | Unlocks the frame buffer.
|
---|
10339 | Gets called by the IDisplay object where this frame buffer is
|
---|
10340 | bound to.
|
---|
10341 | </desc>
|
---|
10342 | </method>
|
---|
10343 |
|
---|
10344 | <method name="notifyUpdate">
|
---|
10345 | <desc>
|
---|
10346 | Informs about an update.
|
---|
10347 | Gets called by the display object where this buffer is
|
---|
10348 | registered.
|
---|
10349 | </desc>
|
---|
10350 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10351 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10352 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10353 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10354 | </method>
|
---|
10355 |
|
---|
10356 | <method name="requestResize">
|
---|
10357 | <desc>
|
---|
10358 | Requests a size and pixel format change.
|
---|
10359 |
|
---|
10360 | There are two modes of working with the video buffer of the virtual
|
---|
10361 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
10362 | implementation allocates a memory buffer for the requested display mode
|
---|
10363 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
10364 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
10365 | by the virtual machine. This buffer represents the video memory of the
|
---|
10366 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
10367 | usually faster because the implementation gets a raw pointer to the
|
---|
10368 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
10369 | of the virtual display, as opposed to the indirect mode where the
|
---|
10370 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
10371 | the implementation every time a display update occurs.
|
---|
10372 |
|
---|
10373 | It is important to note that the direct mode is really fast only when
|
---|
10374 | the implementation uses the given guest VRAM buffer directly, for
|
---|
10375 | example, by blitting it to the window representing the virtual machine's
|
---|
10376 | display, which saves at least one copy operation comparing to the
|
---|
10377 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
10378 | always possible: the format and the color depth of this buffer may be
|
---|
10379 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
10380 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
10381 | the indirect mode (that is always available) should be used as a
|
---|
10382 | fallback: when the guest VRAM contents are copied to the
|
---|
10383 | implementation-provided memory buffer, color and format conversion is
|
---|
10384 | done automatically by the underlying code.
|
---|
10385 |
|
---|
10386 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
10387 | available or not. If @a pixelFormat is <link
|
---|
10388 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
10389 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
10390 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
10391 | the indirect mode (where it provides its own buffer in one of the
|
---|
10392 | supported formats). In all other cases, @a pixelFormat together with
|
---|
10393 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
10394 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
10395 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
10396 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
10397 | attribute must return @c true and <link to="#address"/> must
|
---|
10398 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
10399 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
10400 | chosen.
|
---|
10401 |
|
---|
10402 | The @a width and @a height parameters represent the size of the
|
---|
10403 | requested display mode in both modes. In case of indirect mode, the
|
---|
10404 | provided memory buffer should be big enough to store data of the given
|
---|
10405 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
10406 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
10407 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
10408 | to="#height"/> attributes must return exactly the same values as
|
---|
10409 | passed to this method after the resize is completed (see below).
|
---|
10410 |
|
---|
10411 | The @a finished output parameter determines if the implementation has
|
---|
10412 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
10413 | resize cannot be finished immediately during this call, @a finished
|
---|
10414 | must be set to @c false, and the implementation must call
|
---|
10415 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
10416 | this method as soon as possible. If @a finished is @c false, the
|
---|
10417 | machine will not call any frame buffer methods until
|
---|
10418 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10419 |
|
---|
10420 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
10421 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
10422 | this frame buffer must return exactly the same values as specified in the
|
---|
10423 | parameters of this method, after the resize is completed. If the
|
---|
10424 | indirect mode is chosen, these attributes must return values describing
|
---|
10425 | the format of the implementation's own memory buffer <link
|
---|
10426 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
10427 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
10428 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
10429 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
10430 |
|
---|
10431 | <note>
|
---|
10432 | This method is called by the IDisplay object under the
|
---|
10433 | <link to="#lock"/> provided by this IFramebuffer
|
---|
10434 | implementation. If this method returns @c false in @a finished, then
|
---|
10435 | this lock is not released until
|
---|
10436 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10437 | </note>
|
---|
10438 | </desc>
|
---|
10439 | <param name="screenId" type="unsigned long" dir="in">
|
---|
10440 | <desc>
|
---|
10441 | Logical screen number. Must be used in the corresponding call to
|
---|
10442 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
10443 | </desc>
|
---|
10444 | </param>
|
---|
10445 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
10446 | <desc>
|
---|
10447 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
10448 | See also <link to="FramebufferPixelFormat"/>.
|
---|
10449 | </desc>
|
---|
10450 | </param>
|
---|
10451 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
10452 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
10453 | </param>
|
---|
10454 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
10455 | <desc>Color depth, bits per pixel.</desc>
|
---|
10456 | </param>
|
---|
10457 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
10458 | <desc>Size of one scan line, in bytes.</desc>
|
---|
10459 | </param>
|
---|
10460 | <param name="width" type="unsigned long" dir="in">
|
---|
10461 | <desc>Width of the guest display, in pixels.</desc>
|
---|
10462 | </param>
|
---|
10463 | <param name="height" type="unsigned long" dir="in">
|
---|
10464 | <desc>Height of the guest display, in pixels.</desc>
|
---|
10465 | </param>
|
---|
10466 | <param name="finished" type="boolean" dir="return">
|
---|
10467 | <desc>
|
---|
10468 | Can the VM start using the new frame buffer immediately
|
---|
10469 | after this method returns or it should wait for
|
---|
10470 | <link to="IDisplay::resizeCompleted"/>.
|
---|
10471 | </desc>
|
---|
10472 | </param>
|
---|
10473 | </method>
|
---|
10474 |
|
---|
10475 | <method name="videoModeSupported">
|
---|
10476 | <desc>
|
---|
10477 | Returns whether the frame buffer implementation is willing to
|
---|
10478 | support a given video mode. In case it is not able to render
|
---|
10479 | the video mode (or for some reason not willing), it should
|
---|
10480 | return @c false. Usually this method is called when the guest
|
---|
10481 | asks the VMM device whether a given video mode is supported
|
---|
10482 | so the information returned is directly exposed to the guest.
|
---|
10483 | It is important that this method returns very quickly.
|
---|
10484 | </desc>
|
---|
10485 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10486 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10487 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
10488 | <param name="supported" type="boolean" dir="return"/>
|
---|
10489 | </method>
|
---|
10490 |
|
---|
10491 | <method name="getVisibleRegion">
|
---|
10492 | <desc>
|
---|
10493 | Returns the visible region of this frame buffer.
|
---|
10494 |
|
---|
10495 | If the @a rectangles parameter is @c null then the value of the
|
---|
10496 | @a count parameter is ignored and the number of elements necessary to
|
---|
10497 | describe the current visible region is returned in @a countCopied.
|
---|
10498 |
|
---|
10499 | If @a rectangles is not @c null but @a count is less
|
---|
10500 | than the required number of elements to store region data, the method
|
---|
10501 | will report a failure. If @a count is equal or greater than the
|
---|
10502 | required number of elements, then the actual number of elements copied
|
---|
10503 | to the provided array will be returned in @a countCopied.
|
---|
10504 |
|
---|
10505 | <note>
|
---|
10506 | The address of the provided array must be in the process space of
|
---|
10507 | this IFramebuffer object.
|
---|
10508 | </note>
|
---|
10509 | <note>
|
---|
10510 | Method not yet implemented.
|
---|
10511 | </note>
|
---|
10512 | </desc>
|
---|
10513 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10514 | <desc>Pointer to the @c RTRECT array to receive region data.</desc>
|
---|
10515 | </param>
|
---|
10516 | <param name="count" type="unsigned long" dir="in">
|
---|
10517 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10518 | </param>
|
---|
10519 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
10520 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
10521 | </param>
|
---|
10522 | </method>
|
---|
10523 |
|
---|
10524 | <method name="setVisibleRegion">
|
---|
10525 | <desc>
|
---|
10526 | Suggests a new visible region to this frame buffer. This region
|
---|
10527 | represents the area of the VM display which is a union of regions of
|
---|
10528 | all top-level windows of the guest operating system running inside the
|
---|
10529 | VM (if the Guest Additions for this system support this
|
---|
10530 | functionality). This information may be used by the frontends to
|
---|
10531 | implement the seamless desktop integration feature.
|
---|
10532 |
|
---|
10533 | <note>
|
---|
10534 | The address of the provided array must be in the process space of
|
---|
10535 | this IFramebuffer object.
|
---|
10536 | </note>
|
---|
10537 | <note>
|
---|
10538 | The IFramebuffer implementation must make a copy of the provided
|
---|
10539 | array of rectangles.
|
---|
10540 | </note>
|
---|
10541 | <note>
|
---|
10542 | Method not yet implemented.
|
---|
10543 | </note>
|
---|
10544 | </desc>
|
---|
10545 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10546 | <desc>Pointer to the @c RTRECT array.</desc>
|
---|
10547 | </param>
|
---|
10548 | <param name="count" type="unsigned long" dir="in">
|
---|
10549 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10550 | </param>
|
---|
10551 | </method>
|
---|
10552 |
|
---|
10553 | <method name="processVHWACommand">
|
---|
10554 | <desc>
|
---|
10555 | Posts a Video HW Acceleration Command to the frame buffer for processing.
|
---|
10556 | The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
|
---|
10557 | are posted from quest to the host to be processed by the host hardware.
|
---|
10558 |
|
---|
10559 | <note>
|
---|
10560 | The address of the provided command must be in the process space of
|
---|
10561 | this IFramebuffer object.
|
---|
10562 | </note>
|
---|
10563 | </desc>
|
---|
10564 |
|
---|
10565 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
10566 | <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
|
---|
10567 | </param>
|
---|
10568 | </method>
|
---|
10569 |
|
---|
10570 | </interface>
|
---|
10571 |
|
---|
10572 | <interface
|
---|
10573 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
10574 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
10575 | wsmap="suppress"
|
---|
10576 | >
|
---|
10577 | <desc>
|
---|
10578 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
10579 | for displaying status icons above an IFramebuffer. It is always created
|
---|
10580 | not visible, so that it must be explicitly shown. It only covers a
|
---|
10581 | portion of the IFramebuffer, determined by its width, height and
|
---|
10582 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
10583 | that order) format, and may be written to directly. Do re-read the
|
---|
10584 | width though, after setting it, as it may be adjusted (increased) to
|
---|
10585 | make it more suitable for the front end.
|
---|
10586 | </desc>
|
---|
10587 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
10588 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
10589 | </attribute>
|
---|
10590 |
|
---|
10591 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
10592 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
10593 | </attribute>
|
---|
10594 |
|
---|
10595 | <attribute name="visible" type="boolean" readonly="no">
|
---|
10596 | <desc>
|
---|
10597 | Whether the overlay is currently visible.
|
---|
10598 | </desc>
|
---|
10599 | </attribute>
|
---|
10600 |
|
---|
10601 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
10602 | <desc>
|
---|
10603 | The global alpha value for the overlay. This may or may not be
|
---|
10604 | supported by a given front end.
|
---|
10605 | </desc>
|
---|
10606 | </attribute>
|
---|
10607 |
|
---|
10608 | <method name="move">
|
---|
10609 | <desc>
|
---|
10610 | Changes the overlay's position relative to the IFramebuffer.
|
---|
10611 | </desc>
|
---|
10612 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10613 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10614 | </method>
|
---|
10615 |
|
---|
10616 | </interface>
|
---|
10617 |
|
---|
10618 | <interface
|
---|
10619 | name="IDisplay" extends="$unknown"
|
---|
10620 | uuid="e2a38ebc-d854-4a3e-bc2e-fdf5ac4a0000"
|
---|
10621 | wsmap="managed"
|
---|
10622 | >
|
---|
10623 | <desc>
|
---|
10624 | The IDisplay interface represents the virtual machine's display.
|
---|
10625 |
|
---|
10626 | The object implementing this interface is contained in each
|
---|
10627 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
10628 | output of the virtual machine.
|
---|
10629 |
|
---|
10630 | The virtual display supports pluggable output targets represented by the
|
---|
10631 | IFramebuffer interface. Examples of the output target are a window on
|
---|
10632 | the host computer or an RDP session's display on a remote computer.
|
---|
10633 | </desc>
|
---|
10634 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10635 | <desc>Current display width.</desc>
|
---|
10636 | </attribute>
|
---|
10637 |
|
---|
10638 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10639 | <desc>Current display height.</desc>
|
---|
10640 | </attribute>
|
---|
10641 |
|
---|
10642 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10643 | <desc>
|
---|
10644 | Current guest display color depth. Note that this may differ
|
---|
10645 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
10646 | </desc>
|
---|
10647 | </attribute>
|
---|
10648 |
|
---|
10649 | <method name="setFramebuffer">
|
---|
10650 | <desc>
|
---|
10651 | Sets the framebuffer for given screen.
|
---|
10652 | </desc>
|
---|
10653 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10654 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
10655 | </method>
|
---|
10656 |
|
---|
10657 | <method name="getFramebuffer">
|
---|
10658 | <desc>
|
---|
10659 | Queries the framebuffer for given screen.
|
---|
10660 | </desc>
|
---|
10661 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10662 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
10663 | <param name="xOrigin" type="long" dir="out"/>
|
---|
10664 | <param name="yOrigin" type="long" dir="out"/>
|
---|
10665 | </method>
|
---|
10666 |
|
---|
10667 | <method name="setVideoModeHint">
|
---|
10668 | <desc>
|
---|
10669 | Asks VirtualBox to request the given video mode from
|
---|
10670 | the guest. This is just a hint and it cannot be guaranteed
|
---|
10671 | that the requested resolution will be used. Guest Additions
|
---|
10672 | are required for the request to be seen by guests. The caller
|
---|
10673 | should issue the request and wait for a resolution change and
|
---|
10674 | after a timeout retry.
|
---|
10675 |
|
---|
10676 | Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
|
---|
10677 | parameters means that the corresponding values should be taken from the
|
---|
10678 | current video mode (i.e. left unchanged).
|
---|
10679 |
|
---|
10680 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
10681 | parameter specifies the number of the guest display to send the hint to:
|
---|
10682 | @c 0 is the primary display, @c 1 is the first secondary and
|
---|
10683 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
10684 | must be @c 0.
|
---|
10685 |
|
---|
10686 | <result name="E_INVALIDARG">
|
---|
10687 | The @a display is not associated with any monitor.
|
---|
10688 | </result>
|
---|
10689 |
|
---|
10690 | </desc>
|
---|
10691 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10692 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10693 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
10694 | <param name="display" type="unsigned long" dir="in"/>
|
---|
10695 | </method>
|
---|
10696 |
|
---|
10697 | <method name="setSeamlessMode">
|
---|
10698 | <desc>
|
---|
10699 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
10700 | integration) mode.
|
---|
10701 | <note>
|
---|
10702 | Calling this method has no effect if <link
|
---|
10703 | to="IGuest::supportsSeamless"/> returns @c false.
|
---|
10704 | </note>
|
---|
10705 | </desc>
|
---|
10706 | <param name="enabled" type="boolean" dir="in"/>
|
---|
10707 | </method>
|
---|
10708 |
|
---|
10709 | <method name="takeScreenShot">
|
---|
10710 | <desc>
|
---|
10711 | Takes a screen shot of the requested size and copies it to the
|
---|
10712 | 32-bpp buffer allocated by the caller and pointed to by @a address.
|
---|
10713 |
|
---|
10714 | <note>This API can be used only by the COM/XPCOM C++ API as it
|
---|
10715 | requires pointer support. Use <link to="#takeScreenShotSlow" />
|
---|
10716 | with other language bindings.
|
---|
10717 | </note>
|
---|
10718 |
|
---|
10719 | <result name="E_NOTIMPL">
|
---|
10720 | Feature not implemented.
|
---|
10721 | </result>
|
---|
10722 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10723 | Could not take a screenshot.
|
---|
10724 | </result>
|
---|
10725 |
|
---|
10726 | </desc>
|
---|
10727 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10728 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10729 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10730 | </method>
|
---|
10731 |
|
---|
10732 | <method name="takeScreenShotSlow">
|
---|
10733 | <desc>
|
---|
10734 | Takes a guest screen shot of the requested size and returns it as
|
---|
10735 | an array of bytes in uncompressed 32-bit ARGB format.
|
---|
10736 | This API is slow, but could be the only option to get guest screenshot
|
---|
10737 | for scriptable languages not allowed to manipulate with addresses
|
---|
10738 | directly.
|
---|
10739 |
|
---|
10740 | <result name="E_NOTIMPL">
|
---|
10741 | Feature not implemented.
|
---|
10742 | </result>
|
---|
10743 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10744 | Could not take a screenshot.
|
---|
10745 | </result>
|
---|
10746 | </desc>
|
---|
10747 | <param name="width" type="unsigned long" dir="in">
|
---|
10748 | <desc>
|
---|
10749 | Desired image width.
|
---|
10750 | </desc>
|
---|
10751 | </param>
|
---|
10752 | <param name="height" type="unsigned long" dir="in">
|
---|
10753 | <desc>
|
---|
10754 | Desired image height.
|
---|
10755 | </desc>
|
---|
10756 | </param>
|
---|
10757 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
10758 | <desc>
|
---|
10759 | Array with resulting screen data.
|
---|
10760 | </desc>
|
---|
10761 | </param>
|
---|
10762 | </method>
|
---|
10763 |
|
---|
10764 | <method name="drawToScreen">
|
---|
10765 | <desc>
|
---|
10766 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
10767 | to the given point on the VM display.
|
---|
10768 |
|
---|
10769 | <result name="E_NOTIMPL">
|
---|
10770 | Feature not implemented.
|
---|
10771 | </result>
|
---|
10772 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10773 | Could not draw to screen.
|
---|
10774 | </result>
|
---|
10775 |
|
---|
10776 | </desc>
|
---|
10777 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10778 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10779 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10780 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10781 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10782 | </method>
|
---|
10783 |
|
---|
10784 | <method name="invalidateAndUpdate">
|
---|
10785 | <desc>
|
---|
10786 | Does a full invalidation of the VM display and instructs the VM
|
---|
10787 | to update it.
|
---|
10788 |
|
---|
10789 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10790 | Could not invalidate and update screen.
|
---|
10791 | </result>
|
---|
10792 |
|
---|
10793 | </desc>
|
---|
10794 | </method>
|
---|
10795 |
|
---|
10796 | <method name="resizeCompleted">
|
---|
10797 | <desc>
|
---|
10798 | Signals that a framebuffer has completed the resize operation.
|
---|
10799 |
|
---|
10800 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10801 | Operation only valid for external frame buffers.
|
---|
10802 | </result>
|
---|
10803 |
|
---|
10804 | </desc>
|
---|
10805 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10806 | </method>
|
---|
10807 |
|
---|
10808 | <method name="updateCompleted">
|
---|
10809 | <desc>
|
---|
10810 | Signals that a framebuffer has completed the update operation.
|
---|
10811 |
|
---|
10812 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10813 | Operation only valid for external frame buffers.
|
---|
10814 | </result>
|
---|
10815 |
|
---|
10816 | </desc>
|
---|
10817 | </method>
|
---|
10818 |
|
---|
10819 | <method name="completeVHWACommand">
|
---|
10820 | <desc>
|
---|
10821 | Signals that the Video HW Acceleration command has completed.
|
---|
10822 | </desc>
|
---|
10823 |
|
---|
10824 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
10825 | <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
|
---|
10826 | </param>
|
---|
10827 | </method>
|
---|
10828 |
|
---|
10829 | </interface>
|
---|
10830 |
|
---|
10831 | <!--
|
---|
10832 | // INetworkAdapter
|
---|
10833 | /////////////////////////////////////////////////////////////////////////
|
---|
10834 | -->
|
---|
10835 |
|
---|
10836 | <enum
|
---|
10837 | name="NetworkAttachmentType"
|
---|
10838 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
10839 | >
|
---|
10840 | <desc>
|
---|
10841 | Network attachment type.
|
---|
10842 | </desc>
|
---|
10843 |
|
---|
10844 | <const name="Null" value="0">
|
---|
10845 | <desc>Null value, also means "not attached".</desc>
|
---|
10846 | </const>
|
---|
10847 | <const name="NAT" value="1"/>
|
---|
10848 | <const name="Bridged" value="2"/>
|
---|
10849 | <const name="Internal" value="3"/>
|
---|
10850 | <const name="HostOnly" value="4"/>
|
---|
10851 | </enum>
|
---|
10852 |
|
---|
10853 | <enum
|
---|
10854 | name="NetworkAdapterType"
|
---|
10855 | uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
|
---|
10856 | >
|
---|
10857 | <desc>
|
---|
10858 | Network adapter type.
|
---|
10859 | </desc>
|
---|
10860 |
|
---|
10861 | <const name="Null" value="0">
|
---|
10862 | <desc>Null value (never used by the API).</desc>
|
---|
10863 | </const>
|
---|
10864 | <const name="Am79C970A" value="1">
|
---|
10865 | <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
|
---|
10866 | </const>
|
---|
10867 | <const name="Am79C973" value="2">
|
---|
10868 | <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
|
---|
10869 | </const>
|
---|
10870 | <const name="I82540EM" value="3">
|
---|
10871 | <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
|
---|
10872 | </const>
|
---|
10873 | <const name="I82543GC" value="4">
|
---|
10874 | <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
|
---|
10875 | </const>
|
---|
10876 | <const name="I82545EM" value="5">
|
---|
10877 | <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
|
---|
10878 | </const>
|
---|
10879 | </enum>
|
---|
10880 |
|
---|
10881 | <interface
|
---|
10882 | name="INetworkAdapter" extends="$unknown"
|
---|
10883 | uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
---|
10884 | wsmap="managed"
|
---|
10885 | >
|
---|
10886 | <desc>
|
---|
10887 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
10888 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
10889 | instance of this attached to each of them. Call
|
---|
10890 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
10891 | is attached to a given slot in a given machine.
|
---|
10892 |
|
---|
10893 | Each network adapter can be in one of five attachment modes, which are
|
---|
10894 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
10895 | see the <link to="#attachmentType" /> attribute.
|
---|
10896 | </desc>
|
---|
10897 |
|
---|
10898 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
10899 | <desc>
|
---|
10900 | Type of the virtual network adapter. Depending on this value,
|
---|
10901 | VirtualBox will provide a different virtual network hardware
|
---|
10902 | to the guest.
|
---|
10903 | </desc>
|
---|
10904 | </attribute>
|
---|
10905 |
|
---|
10906 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
10907 | <desc>
|
---|
10908 | Slot number this adapter is plugged into. Corresponds to
|
---|
10909 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
10910 | to obtain this instance.
|
---|
10911 | </desc>
|
---|
10912 | </attribute>
|
---|
10913 |
|
---|
10914 | <attribute name="enabled" type="boolean">
|
---|
10915 | <desc>
|
---|
10916 | Flag whether the network adapter is present in the
|
---|
10917 | guest system. If disabled, the virtual guest hardware will
|
---|
10918 | not contain this network adapter. Can only be changed when
|
---|
10919 | the VM is not running.
|
---|
10920 | </desc>
|
---|
10921 | </attribute>
|
---|
10922 |
|
---|
10923 | <attribute name="MACAddress" type="wstring">
|
---|
10924 | <desc>
|
---|
10925 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
10926 | it to @c null or an empty string, VirtualBox will generate a unique MAC address.
|
---|
10927 | </desc>
|
---|
10928 | </attribute>
|
---|
10929 |
|
---|
10930 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
10931 |
|
---|
10932 | <attribute name="hostInterface" type="wstring">
|
---|
10933 | <desc>
|
---|
10934 | Name of the host network interface the VM is attached to.
|
---|
10935 | </desc>
|
---|
10936 | </attribute>
|
---|
10937 |
|
---|
10938 | <attribute name="internalNetwork" type="wstring">
|
---|
10939 | <desc>
|
---|
10940 | Name of the internal network the VM is attached to.
|
---|
10941 | </desc>
|
---|
10942 | </attribute>
|
---|
10943 |
|
---|
10944 | <attribute name="NATNetwork" type="wstring">
|
---|
10945 | <desc>
|
---|
10946 | Name of the NAT network the VM is attached to.
|
---|
10947 | </desc>
|
---|
10948 | </attribute>
|
---|
10949 |
|
---|
10950 | <attribute name="cableConnected" type="boolean">
|
---|
10951 | <desc>
|
---|
10952 | Flag whether the adapter reports the cable as connected or not.
|
---|
10953 | It can be used to report offline situations to a VM.
|
---|
10954 | </desc>
|
---|
10955 | </attribute>
|
---|
10956 |
|
---|
10957 | <attribute name="lineSpeed" type="unsigned long">
|
---|
10958 | <desc>
|
---|
10959 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
10960 | </desc>
|
---|
10961 | </attribute>
|
---|
10962 |
|
---|
10963 | <attribute name="traceEnabled" type="boolean">
|
---|
10964 | <desc>
|
---|
10965 | Flag whether network traffic from/to the network card should be traced.
|
---|
10966 | Can only be toggled when the VM is turned off.
|
---|
10967 | </desc>
|
---|
10968 | </attribute>
|
---|
10969 |
|
---|
10970 | <attribute name="traceFile" type="wstring">
|
---|
10971 | <desc>
|
---|
10972 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
10973 | will be used.
|
---|
10974 | </desc>
|
---|
10975 | </attribute>
|
---|
10976 |
|
---|
10977 | <method name="attachToNAT">
|
---|
10978 | <desc>
|
---|
10979 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
10980 | </desc>
|
---|
10981 | </method>
|
---|
10982 |
|
---|
10983 | <method name="attachToBridgedInterface">
|
---|
10984 | <desc>
|
---|
10985 | Attach the network adapter to a bridged host interface.
|
---|
10986 | </desc>
|
---|
10987 | </method>
|
---|
10988 |
|
---|
10989 | <method name="attachToInternalNetwork">
|
---|
10990 | <desc>
|
---|
10991 | Attach the network adapter to an internal network.
|
---|
10992 | </desc>
|
---|
10993 | </method>
|
---|
10994 |
|
---|
10995 | <method name="attachToHostOnlyInterface">
|
---|
10996 | <desc>
|
---|
10997 | Attach the network adapter to the host-only network.
|
---|
10998 | </desc>
|
---|
10999 | </method>
|
---|
11000 |
|
---|
11001 | <method name="detach">
|
---|
11002 | <desc>
|
---|
11003 | Detach the network adapter
|
---|
11004 | </desc>
|
---|
11005 | </method>
|
---|
11006 | </interface>
|
---|
11007 |
|
---|
11008 |
|
---|
11009 | <!--
|
---|
11010 | // ISerialPort
|
---|
11011 | /////////////////////////////////////////////////////////////////////////
|
---|
11012 | -->
|
---|
11013 |
|
---|
11014 | <enum
|
---|
11015 | name="PortMode"
|
---|
11016 | uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
|
---|
11017 | >
|
---|
11018 | <desc>
|
---|
11019 | The PortMode enumeration represents possible communication modes for
|
---|
11020 | the virtual serial port device.
|
---|
11021 | </desc>
|
---|
11022 |
|
---|
11023 | <const name="Disconnected" value="0">
|
---|
11024 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
11025 | </const>
|
---|
11026 | <const name="HostPipe" value="1">
|
---|
11027 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
11028 | </const>
|
---|
11029 | <const name="HostDevice" value="2">
|
---|
11030 | <desc>Virtual device is attached to a host device.</desc>
|
---|
11031 | </const>
|
---|
11032 | <const name="RawFile" value="3">
|
---|
11033 | <desc>Virtual device is attached to a raw file.</desc>
|
---|
11034 | </const>
|
---|
11035 | </enum>
|
---|
11036 |
|
---|
11037 | <interface
|
---|
11038 | name="ISerialPort" extends="$unknown"
|
---|
11039 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
11040 | wsmap="managed"
|
---|
11041 | >
|
---|
11042 |
|
---|
11043 | <desc>
|
---|
11044 | The ISerialPort interface represents the virtual serial port device.
|
---|
11045 |
|
---|
11046 | The virtual serial port device acts like an ordinary serial port
|
---|
11047 | inside the virtual machine. This device communicates to the real
|
---|
11048 | serial port hardware in one of two modes: host pipe or host device.
|
---|
11049 |
|
---|
11050 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
11051 | the host computer that represents a serial port. The #server attribute
|
---|
11052 | determines if this pipe is created by the virtual machine process at
|
---|
11053 | machine startup or it must already exist before starting machine
|
---|
11054 | execution.
|
---|
11055 |
|
---|
11056 | In host device mode, the #path attribute specifies the name of the
|
---|
11057 | serial port device on the host computer.
|
---|
11058 |
|
---|
11059 | There is also a third communication mode: the disconnected mode. In this
|
---|
11060 | mode, the guest OS running inside the virtual machine will be able to
|
---|
11061 | detect the serial port, but all port write operations will be discarded
|
---|
11062 | and all port read operations will return no data.
|
---|
11063 |
|
---|
11064 | <see>IMachine::getSerialPort</see>
|
---|
11065 | </desc>
|
---|
11066 |
|
---|
11067 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11068 | <desc>
|
---|
11069 | Slot number this serial port is plugged into. Corresponds to
|
---|
11070 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
11071 | to obtain this instance.
|
---|
11072 | </desc>
|
---|
11073 | </attribute>
|
---|
11074 |
|
---|
11075 | <attribute name="enabled" type="boolean">
|
---|
11076 | <desc>
|
---|
11077 | Flag whether the serial port is enabled. If disabled,
|
---|
11078 | the serial port will not be reported to the guest OS.
|
---|
11079 | </desc>
|
---|
11080 | </attribute>
|
---|
11081 |
|
---|
11082 | <attribute name="IOBase" type="unsigned long">
|
---|
11083 | <desc>Base I/O address of the serial port.</desc>
|
---|
11084 | </attribute>
|
---|
11085 |
|
---|
11086 | <attribute name="IRQ" type="unsigned long">
|
---|
11087 | <desc>IRQ number of the serial port.</desc>
|
---|
11088 | </attribute>
|
---|
11089 |
|
---|
11090 | <attribute name="hostMode" type="PortMode">
|
---|
11091 | <desc>
|
---|
11092 | How is this port connected to the host.
|
---|
11093 | <note>
|
---|
11094 | Changing this attribute may fail if the conditions for
|
---|
11095 | <link to="#path"/> are not met.
|
---|
11096 | </note>
|
---|
11097 | </desc>
|
---|
11098 | </attribute>
|
---|
11099 |
|
---|
11100 | <attribute name="server" type="boolean">
|
---|
11101 | <desc>
|
---|
11102 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
11103 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
11104 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
11105 | </desc>
|
---|
11106 | </attribute>
|
---|
11107 |
|
---|
11108 | <attribute name="path" type="wstring">
|
---|
11109 | <desc>
|
---|
11110 | Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
|
---|
11111 | PortMode_HostPipe, or the host serial device name when
|
---|
11112 | <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
|
---|
11113 | cases, setting a @c null or empty string as the attribute's value
|
---|
11114 | is an error. Otherwise, the value of this property is ignored.
|
---|
11115 | </desc>
|
---|
11116 | </attribute>
|
---|
11117 |
|
---|
11118 | </interface>
|
---|
11119 |
|
---|
11120 | <!--
|
---|
11121 | // IParallelPort
|
---|
11122 | /////////////////////////////////////////////////////////////////////////
|
---|
11123 | -->
|
---|
11124 |
|
---|
11125 | <interface
|
---|
11126 | name="IParallelPort" extends="$unknown"
|
---|
11127 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11128 | wsmap="managed"
|
---|
11129 | >
|
---|
11130 |
|
---|
11131 | <desc>
|
---|
11132 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11133 |
|
---|
11134 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11135 | inside the virtual machine. This device communicates to the real
|
---|
11136 | parallel port hardware using the name of the parallel device on the host
|
---|
11137 | computer specified in the #path attribute.
|
---|
11138 |
|
---|
11139 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11140 | IRQ number that will be reported to the guest operating system and used
|
---|
11141 | to operate the given parallel port from within the virtual machine.
|
---|
11142 |
|
---|
11143 | <see>IMachine::getParallelPort</see>
|
---|
11144 | </desc>
|
---|
11145 |
|
---|
11146 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11147 | <desc>
|
---|
11148 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11149 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11150 | to obtain this instance.
|
---|
11151 | </desc>
|
---|
11152 | </attribute>
|
---|
11153 |
|
---|
11154 | <attribute name="enabled" type="boolean">
|
---|
11155 | <desc>
|
---|
11156 | Flag whether the parallel port is enabled. If disabled,
|
---|
11157 | the parallel port will not be reported to the guest OS.
|
---|
11158 | </desc>
|
---|
11159 | </attribute>
|
---|
11160 |
|
---|
11161 | <attribute name="IOBase" type="unsigned long">
|
---|
11162 | <desc>Base I/O address of the parallel port.</desc>
|
---|
11163 | </attribute>
|
---|
11164 |
|
---|
11165 | <attribute name="IRQ" type="unsigned long">
|
---|
11166 | <desc>IRQ number of the parallel port.</desc>
|
---|
11167 | </attribute>
|
---|
11168 |
|
---|
11169 | <attribute name="path" type="wstring">
|
---|
11170 | <desc>
|
---|
11171 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
11172 | @c null or an empty string as this attribute's value will result into
|
---|
11173 | an error.
|
---|
11174 | </desc>
|
---|
11175 | </attribute>
|
---|
11176 |
|
---|
11177 | </interface>
|
---|
11178 |
|
---|
11179 |
|
---|
11180 | <!--
|
---|
11181 | // IMachineDebugger
|
---|
11182 | /////////////////////////////////////////////////////////////////////////
|
---|
11183 | -->
|
---|
11184 |
|
---|
11185 | <interface
|
---|
11186 | name="IMachineDebugger" extends="$unknown"
|
---|
11187 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
11188 | wsmap="suppress"
|
---|
11189 | >
|
---|
11190 | <method name="resetStats">
|
---|
11191 | <desc>
|
---|
11192 | Reset VM statistics.
|
---|
11193 | </desc>
|
---|
11194 | <param name="pattern" type="wstring" dir="in">
|
---|
11195 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11196 | </param>
|
---|
11197 | </method>
|
---|
11198 |
|
---|
11199 | <method name="dumpStats">
|
---|
11200 | <desc>
|
---|
11201 | Dumps VM statistics.
|
---|
11202 | </desc>
|
---|
11203 | <param name="pattern" type="wstring" dir="in">
|
---|
11204 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11205 | </param>
|
---|
11206 | </method>
|
---|
11207 |
|
---|
11208 | <method name="getStats">
|
---|
11209 | <desc>
|
---|
11210 | Get the VM statistics in a XMLish format.
|
---|
11211 | </desc>
|
---|
11212 | <param name="pattern" type="wstring" dir="in">
|
---|
11213 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11214 | </param>
|
---|
11215 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
11216 | <desc>Whether to include the descriptions.</desc>
|
---|
11217 | </param>
|
---|
11218 | <param name="stats" type="wstring" dir="out">
|
---|
11219 | <desc>The XML document containing the statistics.</desc>
|
---|
11220 | </param>
|
---|
11221 | </method>
|
---|
11222 |
|
---|
11223 | <method name="injectNMI">
|
---|
11224 | <desc>
|
---|
11225 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
11226 | </desc>
|
---|
11227 | </method>
|
---|
11228 |
|
---|
11229 | <attribute name="singlestep" type="boolean">
|
---|
11230 | <desc>Switch for enabling singlestepping.</desc>
|
---|
11231 | </attribute>
|
---|
11232 |
|
---|
11233 | <attribute name="recompileUser" type="boolean">
|
---|
11234 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
11235 | </attribute>
|
---|
11236 |
|
---|
11237 | <attribute name="recompileSupervisor" type="boolean">
|
---|
11238 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
11239 | </attribute>
|
---|
11240 |
|
---|
11241 | <attribute name="PATMEnabled" type="boolean">
|
---|
11242 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
11243 | </attribute>
|
---|
11244 |
|
---|
11245 | <attribute name="CSAMEnabled" type="boolean">
|
---|
11246 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
11247 | </attribute>
|
---|
11248 |
|
---|
11249 | <attribute name="logEnabled" type="boolean">
|
---|
11250 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
11251 | </attribute>
|
---|
11252 |
|
---|
11253 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
11254 | <desc>
|
---|
11255 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
11256 | virtualization extensions.
|
---|
11257 | </desc>
|
---|
11258 | </attribute>
|
---|
11259 |
|
---|
11260 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
11261 | <desc>
|
---|
11262 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
11263 | CPU hardware virtualization extension.
|
---|
11264 | </desc>
|
---|
11265 | </attribute>
|
---|
11266 |
|
---|
11267 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
11268 | <desc>
|
---|
11269 | Flag indicating whether the VM is currently making use of the VPID
|
---|
11270 | VT-x extension.
|
---|
11271 | </desc>
|
---|
11272 | </attribute>
|
---|
11273 |
|
---|
11274 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
11275 | <desc>
|
---|
11276 | Flag indicating whether the VM is currently making use of the Physical
|
---|
11277 | Address Extension CPU feature.
|
---|
11278 | </desc>
|
---|
11279 | </attribute>
|
---|
11280 |
|
---|
11281 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
11282 | <desc>
|
---|
11283 | The rate at which the virtual time runs expressed as a percentage.
|
---|
11284 | The accepted range is 2% to 20000%.
|
---|
11285 | </desc>
|
---|
11286 | </attribute>
|
---|
11287 |
|
---|
11288 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
11289 |
|
---|
11290 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
11291 | <desc>
|
---|
11292 | Gets the VM handle. This is only for internal use while
|
---|
11293 | we carve the details of this interface.
|
---|
11294 | </desc>
|
---|
11295 | </attribute>
|
---|
11296 |
|
---|
11297 | </interface>
|
---|
11298 |
|
---|
11299 | <!--
|
---|
11300 | // IUSBController
|
---|
11301 | /////////////////////////////////////////////////////////////////////////
|
---|
11302 | -->
|
---|
11303 |
|
---|
11304 | <interface
|
---|
11305 | name="IUSBController" extends="$unknown"
|
---|
11306 | uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
|
---|
11307 | wsmap="managed"
|
---|
11308 | >
|
---|
11309 | <attribute name="enabled" type="boolean">
|
---|
11310 | <desc>
|
---|
11311 | Flag whether the USB controller is present in the
|
---|
11312 | guest system. If disabled, the virtual guest hardware will
|
---|
11313 | not contain any USB controller. Can only be changed when
|
---|
11314 | the VM is powered off.
|
---|
11315 | </desc>
|
---|
11316 | </attribute>
|
---|
11317 |
|
---|
11318 | <attribute name="enabledEhci" type="boolean">
|
---|
11319 | <desc>
|
---|
11320 | Flag whether the USB EHCI controller is present in the
|
---|
11321 | guest system. If disabled, the virtual guest hardware will
|
---|
11322 | not contain a USB EHCI controller. Can only be changed when
|
---|
11323 | the VM is powered off.
|
---|
11324 | </desc>
|
---|
11325 | </attribute>
|
---|
11326 |
|
---|
11327 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
11328 | <desc>
|
---|
11329 | USB standard version which the controller implements.
|
---|
11330 | This is a BCD which means that the major version is in the
|
---|
11331 | high byte and minor version is in the low byte.
|
---|
11332 | </desc>
|
---|
11333 | </attribute>
|
---|
11334 |
|
---|
11335 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
11336 | <desc>
|
---|
11337 | List of USB device filters associated with the machine.
|
---|
11338 |
|
---|
11339 | If the machine is currently running, these filters are activated
|
---|
11340 | every time a new (supported) USB device is attached to the host
|
---|
11341 | computer that was not ignored by global filters
|
---|
11342 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
11343 |
|
---|
11344 | These filters are also activated when the machine is powered up.
|
---|
11345 | They are run against a list of all currently available USB
|
---|
11346 | devices (in states
|
---|
11347 | <link to="USBDeviceState_Available"/>,
|
---|
11348 | <link to="USBDeviceState_Busy"/>,
|
---|
11349 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
11350 | ignored by global filters.
|
---|
11351 |
|
---|
11352 | If at least one filter matches the USB device in question, this
|
---|
11353 | device is automatically captured (attached to) the virtual USB
|
---|
11354 | controller of this machine.
|
---|
11355 |
|
---|
11356 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
11357 | </desc>
|
---|
11358 | </attribute>
|
---|
11359 |
|
---|
11360 | <method name="createDeviceFilter">
|
---|
11361 | <desc>
|
---|
11362 | Creates a new USB device filter. All attributes except
|
---|
11363 | the filter name are set to empty (any match),
|
---|
11364 | <i>active</i> is @c false (the filter is not active).
|
---|
11365 |
|
---|
11366 | The created filter can then be added to the list of filters using
|
---|
11367 | <link to="#insertDeviceFilter"/>.
|
---|
11368 |
|
---|
11369 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11370 | The virtual machine is not mutable.
|
---|
11371 | </result>
|
---|
11372 |
|
---|
11373 | <see>#deviceFilters</see>
|
---|
11374 | </desc>
|
---|
11375 | <param name="name" type="wstring" dir="in">
|
---|
11376 | <desc>
|
---|
11377 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
11378 | for more info.
|
---|
11379 | </desc>
|
---|
11380 | </param>
|
---|
11381 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11382 | <desc>Created filter object.</desc>
|
---|
11383 | </param>
|
---|
11384 | </method>
|
---|
11385 |
|
---|
11386 | <method name="insertDeviceFilter">
|
---|
11387 | <desc>
|
---|
11388 | Inserts the given USB device to the specified position
|
---|
11389 | in the list of filters.
|
---|
11390 |
|
---|
11391 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
11392 | position is equal to or greater than the number of elements in
|
---|
11393 | the list, the filter is added to the end of the collection.
|
---|
11394 |
|
---|
11395 | <note>
|
---|
11396 | Duplicates are not allowed, so an attempt to insert a
|
---|
11397 | filter that is already in the collection, will return an
|
---|
11398 | error.
|
---|
11399 | </note>
|
---|
11400 |
|
---|
11401 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11402 | Virtual machine is not mutable.
|
---|
11403 | </result>
|
---|
11404 | <result name="E_INVALIDARG">
|
---|
11405 | USB device filter not created within this VirtualBox instance.
|
---|
11406 | </result>
|
---|
11407 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
11408 | USB device filter already in list.
|
---|
11409 | </result>
|
---|
11410 |
|
---|
11411 | <see>#deviceFilters</see>
|
---|
11412 | </desc>
|
---|
11413 | <param name="position" type="unsigned long" dir="in">
|
---|
11414 | <desc>Position to insert the filter to.</desc>
|
---|
11415 | </param>
|
---|
11416 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
11417 | <desc>USB device filter to insert.</desc>
|
---|
11418 | </param>
|
---|
11419 | </method>
|
---|
11420 |
|
---|
11421 | <method name="removeDeviceFilter">
|
---|
11422 | <desc>
|
---|
11423 | Removes a USB device filter from the specified position in the
|
---|
11424 | list of filters.
|
---|
11425 |
|
---|
11426 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
11427 | position equal to or greater than the number of elements in
|
---|
11428 | the list will produce an error.
|
---|
11429 |
|
---|
11430 | <see>#deviceFilters</see>
|
---|
11431 |
|
---|
11432 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11433 | Virtual machine is not mutable.
|
---|
11434 | </result>
|
---|
11435 | <result name="E_INVALIDARG">
|
---|
11436 | USB device filter list empty or invalid @a position.
|
---|
11437 | </result>
|
---|
11438 |
|
---|
11439 | </desc>
|
---|
11440 | <param name="position" type="unsigned long" dir="in">
|
---|
11441 | <desc>Position to remove the filter from.</desc>
|
---|
11442 | </param>
|
---|
11443 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11444 | <desc>Removed USB device filter.</desc>
|
---|
11445 | </param>
|
---|
11446 | </method>
|
---|
11447 |
|
---|
11448 | </interface>
|
---|
11449 |
|
---|
11450 |
|
---|
11451 | <!--
|
---|
11452 | // IUSBDevice
|
---|
11453 | /////////////////////////////////////////////////////////////////////////
|
---|
11454 | -->
|
---|
11455 |
|
---|
11456 | <interface
|
---|
11457 | name="IUSBDevice" extends="$unknown"
|
---|
11458 | uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
|
---|
11459 | wsmap="managed"
|
---|
11460 | >
|
---|
11461 | <desc>
|
---|
11462 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
11463 | virtual machine.
|
---|
11464 |
|
---|
11465 | A collection of objects implementing this interface is stored in the
|
---|
11466 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
11467 | attached to a running virtual machine's USB controller.
|
---|
11468 | </desc>
|
---|
11469 |
|
---|
11470 | <attribute name="id" type="wstring" readonly="yes">
|
---|
11471 | <desc>
|
---|
11472 | Unique USB device ID. This ID is built from #vendorId,
|
---|
11473 | #productId, #revision and #serialNumber.
|
---|
11474 | </desc>
|
---|
11475 | </attribute>
|
---|
11476 |
|
---|
11477 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
11478 | <desc>Vendor ID.</desc>
|
---|
11479 | </attribute>
|
---|
11480 |
|
---|
11481 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
11482 | <desc>Product ID.</desc>
|
---|
11483 | </attribute>
|
---|
11484 |
|
---|
11485 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
11486 | <desc>
|
---|
11487 | Product revision number. This is a packed BCD represented as
|
---|
11488 | unsigned short. The high byte is the integer part and the low
|
---|
11489 | byte is the decimal.
|
---|
11490 | </desc>
|
---|
11491 | </attribute>
|
---|
11492 |
|
---|
11493 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
11494 | <desc>Manufacturer string.</desc>
|
---|
11495 | </attribute>
|
---|
11496 |
|
---|
11497 | <attribute name="product" type="wstring" readonly="yes">
|
---|
11498 | <desc>Product string.</desc>
|
---|
11499 | </attribute>
|
---|
11500 |
|
---|
11501 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
11502 | <desc>Serial number string.</desc>
|
---|
11503 | </attribute>
|
---|
11504 |
|
---|
11505 | <attribute name="address" type="wstring" readonly="yes">
|
---|
11506 | <desc>Host specific address of the device.</desc>
|
---|
11507 | </attribute>
|
---|
11508 |
|
---|
11509 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
11510 | <desc>
|
---|
11511 | Host USB port number the device is physically
|
---|
11512 | connected to.
|
---|
11513 | </desc>
|
---|
11514 | </attribute>
|
---|
11515 |
|
---|
11516 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
11517 | <desc>
|
---|
11518 | The major USB version of the device - 1 or 2.
|
---|
11519 | </desc>
|
---|
11520 | </attribute>
|
---|
11521 |
|
---|
11522 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
11523 | <desc>
|
---|
11524 | The major USB version of the host USB port the device is
|
---|
11525 | physically connected to - 1 or 2. For devices not connected to
|
---|
11526 | anything this will have the same value as the version attribute.
|
---|
11527 | </desc>
|
---|
11528 | </attribute>
|
---|
11529 |
|
---|
11530 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
11531 | <desc>
|
---|
11532 | Whether the device is physically connected to a remote VRDP
|
---|
11533 | client or to a local host machine.
|
---|
11534 | </desc>
|
---|
11535 | </attribute>
|
---|
11536 |
|
---|
11537 | </interface>
|
---|
11538 |
|
---|
11539 |
|
---|
11540 | <!--
|
---|
11541 | // IUSBDeviceFilter
|
---|
11542 | /////////////////////////////////////////////////////////////////////////
|
---|
11543 | -->
|
---|
11544 |
|
---|
11545 | <interface
|
---|
11546 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
11547 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
11548 | wsmap="managed"
|
---|
11549 | >
|
---|
11550 | <desc>
|
---|
11551 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
11552 | to perform actions on a group of USB devices.
|
---|
11553 |
|
---|
11554 | This type of filters is used by running virtual machines to
|
---|
11555 | automatically capture selected USB devices once they are physically
|
---|
11556 | attached to the host computer.
|
---|
11557 |
|
---|
11558 | A USB device is matched to the given device filter if and only if all
|
---|
11559 | attributes of the device match the corresponding attributes of the
|
---|
11560 | filter (that is, attributes are joined together using the logical AND
|
---|
11561 | operation). On the other hand, all together, filters in the list of
|
---|
11562 | filters carry the semantics of the logical OR operation. So if it is
|
---|
11563 | desirable to create a match like "this vendor id OR this product id",
|
---|
11564 | one needs to create two filters and specify "any match" (see below)
|
---|
11565 | for unused attributes.
|
---|
11566 |
|
---|
11567 | All filter attributes used for matching are strings. Each string
|
---|
11568 | is an expression representing a set of values of the corresponding
|
---|
11569 | device attribute, that will match the given filter. Currently, the
|
---|
11570 | following filtering expressions are supported:
|
---|
11571 |
|
---|
11572 | <ul>
|
---|
11573 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
11574 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
11575 | The format of the string is:
|
---|
11576 |
|
---|
11577 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
11578 |
|
---|
11579 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
11580 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
11581 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
11582 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
11583 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
11584 | possible integer is assumed.
|
---|
11585 | </li>
|
---|
11586 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
11587 | boolean device attributes. The format of the string is:
|
---|
11588 |
|
---|
11589 | <tt>true|false|yes|no|0|1</tt>
|
---|
11590 |
|
---|
11591 | </li>
|
---|
11592 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
11593 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
11594 | represents the exact match. String device attributes are compared to
|
---|
11595 | this string including case of symbols. Integer attributes are first
|
---|
11596 | converted to a string (see individual filter attributes) and then
|
---|
11597 | compared ignoring case.
|
---|
11598 |
|
---|
11599 | </li>
|
---|
11600 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
11601 | will match the given filter. An empty or @c null string is
|
---|
11602 | used to construct this type of filtering expressions.
|
---|
11603 |
|
---|
11604 | </li>
|
---|
11605 | </ul>
|
---|
11606 |
|
---|
11607 | <note>
|
---|
11608 | On the Windows host platform, interval filters are not currently
|
---|
11609 | available. Also all string filter attributes
|
---|
11610 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
11611 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
11612 | <i>any match</i> no matter what string expression is specified.
|
---|
11613 | </note>
|
---|
11614 |
|
---|
11615 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
11616 | </desc>
|
---|
11617 |
|
---|
11618 | <attribute name="name" type="wstring">
|
---|
11619 | <desc>
|
---|
11620 | Visible name for this filter.
|
---|
11621 | This name is used to visually distinguish one filter from another,
|
---|
11622 | so it can neither be @c null nor an empty string.
|
---|
11623 | </desc>
|
---|
11624 | </attribute>
|
---|
11625 |
|
---|
11626 | <attribute name="active" type="boolean">
|
---|
11627 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
11628 | </attribute>
|
---|
11629 |
|
---|
11630 | <attribute name="vendorId" type="wstring">
|
---|
11631 | <desc>
|
---|
11632 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
11633 | The string representation for the <i>exact matching</i>
|
---|
11634 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11635 | (including leading zeroes).
|
---|
11636 | </desc>
|
---|
11637 | </attribute>
|
---|
11638 |
|
---|
11639 | <attribute name="productId" type="wstring">
|
---|
11640 | <desc>
|
---|
11641 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
11642 | The string representation for the <i>exact matching</i>
|
---|
11643 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11644 | (including leading zeroes).
|
---|
11645 | </desc>
|
---|
11646 | </attribute>
|
---|
11647 |
|
---|
11648 | <attribute name="revision" type="wstring">
|
---|
11649 | <desc>
|
---|
11650 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
11651 | filter. The string representation for the <i>exact matching</i>
|
---|
11652 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
11653 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
11654 | decimal digit of its fractional part (including leading and
|
---|
11655 | trailing zeros).
|
---|
11656 | Note that for interval filters, it's best to use the hexadecimal
|
---|
11657 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
11658 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
11659 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
11660 | </desc>
|
---|
11661 | </attribute>
|
---|
11662 |
|
---|
11663 | <attribute name="manufacturer" type="wstring">
|
---|
11664 | <desc>
|
---|
11665 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
11666 | </desc>
|
---|
11667 | </attribute>
|
---|
11668 |
|
---|
11669 | <attribute name="product" type="wstring">
|
---|
11670 | <desc>
|
---|
11671 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
11672 | </desc>
|
---|
11673 | </attribute>
|
---|
11674 |
|
---|
11675 | <attribute name="serialNumber" type="wstring">
|
---|
11676 | <desc>
|
---|
11677 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
11678 | </desc>
|
---|
11679 | </attribute>
|
---|
11680 |
|
---|
11681 | <attribute name="port" type="wstring">
|
---|
11682 | <desc>
|
---|
11683 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
11684 | </desc>
|
---|
11685 | </attribute>
|
---|
11686 |
|
---|
11687 | <attribute name="remote" type="wstring">
|
---|
11688 | <desc>
|
---|
11689 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
11690 | <note>
|
---|
11691 | This filter makes sense only for machine USB filters,
|
---|
11692 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
11693 | </note>
|
---|
11694 | </desc>
|
---|
11695 | </attribute>
|
---|
11696 |
|
---|
11697 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
11698 | <desc>
|
---|
11699 | This is an advanced option for hiding one or more USB interfaces
|
---|
11700 | from the guest. The value is a bit mask where the bits that are set
|
---|
11701 | means the corresponding USB interface should be hidden, masked off
|
---|
11702 | if you like.
|
---|
11703 | This feature only works on Linux hosts.
|
---|
11704 | </desc>
|
---|
11705 | </attribute>
|
---|
11706 |
|
---|
11707 | </interface>
|
---|
11708 |
|
---|
11709 |
|
---|
11710 | <!--
|
---|
11711 | // IHostUSBDevice
|
---|
11712 | /////////////////////////////////////////////////////////////////////////
|
---|
11713 | -->
|
---|
11714 |
|
---|
11715 | <enum
|
---|
11716 | name="USBDeviceState"
|
---|
11717 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
11718 | >
|
---|
11719 | <desc>
|
---|
11720 | USB device state. This enumeration represents all possible states
|
---|
11721 | of the USB device physically attached to the host computer regarding
|
---|
11722 | its state on the host computer and availability to guest computers
|
---|
11723 | (all currently running virtual machines).
|
---|
11724 |
|
---|
11725 | Once a supported USB device is attached to the host, global USB
|
---|
11726 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
11727 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
11728 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
11729 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
11730 | activated that can put it to USBDeviceState_Captured state.
|
---|
11731 |
|
---|
11732 | If the device was ignored by global filters, or didn't match
|
---|
11733 | any filters at all (including guest ones), it is handled by the host
|
---|
11734 | in a normal way. In this case, the device state is determined by
|
---|
11735 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
11736 | or USBDeviceState_Available, depending on the current device usage.
|
---|
11737 |
|
---|
11738 | Besides auto-capturing based on filters, the device can be manually
|
---|
11739 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
11740 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
11741 | USBDeviceState_Held.
|
---|
11742 |
|
---|
11743 | <note>
|
---|
11744 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
11745 | states USBDeviceState_Busy and USBDeviceState_vailable are applicable
|
---|
11746 | only to the Linux version of the product. This also means that (<link
|
---|
11747 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
11748 | device state is USBDeviceState_Held.
|
---|
11749 | </note>
|
---|
11750 |
|
---|
11751 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
11752 | </desc>
|
---|
11753 |
|
---|
11754 | <const name="NotSupported" value="0">
|
---|
11755 | <desc>
|
---|
11756 | Not supported by the VirtualBox server, not available to guests.
|
---|
11757 | </desc>
|
---|
11758 | </const>
|
---|
11759 | <const name="Unavailable" value="1">
|
---|
11760 | <desc>
|
---|
11761 | Being used by the host computer exclusively,
|
---|
11762 | not available to guests.
|
---|
11763 | </desc>
|
---|
11764 | </const>
|
---|
11765 | <const name="Busy" value="2">
|
---|
11766 | <desc>
|
---|
11767 | Being used by the host computer, potentially available to guests.
|
---|
11768 | </desc>
|
---|
11769 | </const>
|
---|
11770 | <const name="Available" value="3">
|
---|
11771 | <desc>
|
---|
11772 | Not used by the host computer, available to guests (the host computer
|
---|
11773 | can also start using the device at any time).
|
---|
11774 | </desc>
|
---|
11775 | </const>
|
---|
11776 | <const name="Held" value="4">
|
---|
11777 | <desc>
|
---|
11778 | Held by the VirtualBox server (ignored by the host computer),
|
---|
11779 | available to guests.
|
---|
11780 | </desc>
|
---|
11781 | </const>
|
---|
11782 | <const name="Captured" value="5">
|
---|
11783 | <desc>
|
---|
11784 | Captured by one of the guest computers, not available
|
---|
11785 | to anybody else.
|
---|
11786 | </desc>
|
---|
11787 | </const>
|
---|
11788 | </enum>
|
---|
11789 |
|
---|
11790 | <interface
|
---|
11791 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
11792 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
11793 | wsmap="managed"
|
---|
11794 | >
|
---|
11795 | <desc>
|
---|
11796 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
11797 | to the host computer.
|
---|
11798 |
|
---|
11799 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
11800 | <link to="#state"/> property that holds the current state of the USB
|
---|
11801 | device.
|
---|
11802 |
|
---|
11803 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
11804 | </desc>
|
---|
11805 |
|
---|
11806 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
11807 | <desc>
|
---|
11808 | Current state of the device.
|
---|
11809 | </desc>
|
---|
11810 | </attribute>
|
---|
11811 |
|
---|
11812 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
11813 |
|
---|
11814 | </interface>
|
---|
11815 |
|
---|
11816 |
|
---|
11817 | <!--
|
---|
11818 | // IHostUSBDeviceFilter
|
---|
11819 | /////////////////////////////////////////////////////////////////////////
|
---|
11820 | -->
|
---|
11821 |
|
---|
11822 | <enum
|
---|
11823 | name="USBDeviceFilterAction"
|
---|
11824 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
11825 | >
|
---|
11826 | <desc>
|
---|
11827 | Actions for host USB device filters.
|
---|
11828 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
11829 | </desc>
|
---|
11830 |
|
---|
11831 | <const name="Null" value="0">
|
---|
11832 | <desc>Null value (never used by the API).</desc>
|
---|
11833 | </const>
|
---|
11834 | <const name="Ignore" value="1">
|
---|
11835 | <desc>Ignore the matched USB device.</desc>
|
---|
11836 | </const>
|
---|
11837 | <const name="Hold" value="2">
|
---|
11838 | <desc>Hold the matched USB device.</desc>
|
---|
11839 | </const>
|
---|
11840 | </enum>
|
---|
11841 |
|
---|
11842 | <interface
|
---|
11843 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
11844 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
11845 | wsmap="managed"
|
---|
11846 | >
|
---|
11847 | <desc>
|
---|
11848 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
11849 | physical USB device used by the host computer. Used indirectly in
|
---|
11850 | <link to="IHost::USBDeviceFilters"/>.
|
---|
11851 |
|
---|
11852 | Using filters of this type, the host computer determines the initial
|
---|
11853 | state of the USB device after it is physically attached to the
|
---|
11854 | host's USB controller.
|
---|
11855 |
|
---|
11856 | <note>
|
---|
11857 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
11858 | filters, because it makes sense only for
|
---|
11859 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
11860 | </note>
|
---|
11861 |
|
---|
11862 | <see>IHost::USBDeviceFilters</see>
|
---|
11863 | </desc>
|
---|
11864 |
|
---|
11865 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
11866 | <desc>
|
---|
11867 | Action performed by the host when an attached USB device
|
---|
11868 | matches this filter.
|
---|
11869 | </desc>
|
---|
11870 | </attribute>
|
---|
11871 |
|
---|
11872 | </interface>
|
---|
11873 |
|
---|
11874 | <!--
|
---|
11875 | // IAudioAdapter
|
---|
11876 | /////////////////////////////////////////////////////////////////////////
|
---|
11877 | -->
|
---|
11878 |
|
---|
11879 | <enum
|
---|
11880 | name="AudioDriverType"
|
---|
11881 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
11882 | >
|
---|
11883 | <desc>
|
---|
11884 | Host audio driver type.
|
---|
11885 | </desc>
|
---|
11886 |
|
---|
11887 | <const name="Null" value="0">
|
---|
11888 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
11889 | </const>
|
---|
11890 | <const name="WinMM" value="1"/>
|
---|
11891 | <const name="OSS" value="2"/>
|
---|
11892 | <const name="ALSA" value="3"/>
|
---|
11893 | <const name="DirectSound" value="4"/>
|
---|
11894 | <const name="CoreAudio" value="5"/>
|
---|
11895 | <const name="MMPM" value="6"/>
|
---|
11896 | <const name="Pulse" value="7"/>
|
---|
11897 | <const name="SolAudio" value="8"/>
|
---|
11898 | </enum>
|
---|
11899 |
|
---|
11900 | <enum
|
---|
11901 | name="AudioControllerType"
|
---|
11902 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
11903 | >
|
---|
11904 | <desc>
|
---|
11905 | Virtual audio controller type.
|
---|
11906 | </desc>
|
---|
11907 |
|
---|
11908 | <const name="AC97" value="0"/>
|
---|
11909 | <const name="SB16" value="1"/>
|
---|
11910 | </enum>
|
---|
11911 |
|
---|
11912 | <interface
|
---|
11913 | name="IAudioAdapter" extends="$unknown"
|
---|
11914 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
11915 | wsmap="managed"
|
---|
11916 | >
|
---|
11917 | <desc>
|
---|
11918 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
11919 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
11920 | </desc>
|
---|
11921 | <attribute name="enabled" type="boolean">
|
---|
11922 | <desc>
|
---|
11923 | Flag whether the audio adapter is present in the
|
---|
11924 | guest system. If disabled, the virtual guest hardware will
|
---|
11925 | not contain any audio adapter. Can only be changed when
|
---|
11926 | the VM is not running.
|
---|
11927 | </desc>
|
---|
11928 | </attribute>
|
---|
11929 | <attribute name="audioController" type="AudioControllerType">
|
---|
11930 | <desc>
|
---|
11931 | The audio hardware we emulate.
|
---|
11932 | </desc>
|
---|
11933 | </attribute>
|
---|
11934 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
11935 | <desc>
|
---|
11936 | Audio driver the adapter is connected to. This setting
|
---|
11937 | can only be changed when the VM is not running.
|
---|
11938 | </desc>
|
---|
11939 | </attribute>
|
---|
11940 | </interface>
|
---|
11941 |
|
---|
11942 | <!--
|
---|
11943 | // IVRDPServer
|
---|
11944 | /////////////////////////////////////////////////////////////////////////
|
---|
11945 | -->
|
---|
11946 |
|
---|
11947 | <enum
|
---|
11948 | name="VRDPAuthType"
|
---|
11949 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
11950 | >
|
---|
11951 | <desc>
|
---|
11952 | VRDP authentication type.
|
---|
11953 | </desc>
|
---|
11954 |
|
---|
11955 | <const name="Null" value="0">
|
---|
11956 | <desc>Null value, also means "no authentication".</desc>
|
---|
11957 | </const>
|
---|
11958 | <const name="External" value="1"/>
|
---|
11959 | <const name="Guest" value="2"/>
|
---|
11960 | </enum>
|
---|
11961 |
|
---|
11962 | <interface
|
---|
11963 | name="IVRDPServer" extends="$unknown"
|
---|
11964 | uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
|
---|
11965 | wsmap="managed"
|
---|
11966 | >
|
---|
11967 | <attribute name="enabled" type="boolean">
|
---|
11968 | <desc>VRDP server status.</desc>
|
---|
11969 | </attribute>
|
---|
11970 |
|
---|
11971 | <attribute name="port" type="unsigned long">
|
---|
11972 | <desc>
|
---|
11973 | VRDP server port number.
|
---|
11974 | <note>
|
---|
11975 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
11976 | number to the default value which is
|
---|
11977 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
11978 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
11979 | case the default port is returned).
|
---|
11980 | </note>
|
---|
11981 | </desc>
|
---|
11982 | </attribute>
|
---|
11983 |
|
---|
11984 | <attribute name="netAddress" type="wstring">
|
---|
11985 | <desc>VRDP server address.</desc>
|
---|
11986 | </attribute>
|
---|
11987 |
|
---|
11988 | <attribute name="authType" type="VRDPAuthType">
|
---|
11989 | <desc>VRDP authentication method.</desc>
|
---|
11990 | </attribute>
|
---|
11991 |
|
---|
11992 | <attribute name="authTimeout" type="unsigned long">
|
---|
11993 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
11994 | </attribute>
|
---|
11995 |
|
---|
11996 | <attribute name="allowMultiConnection" type="boolean">
|
---|
11997 | <desc>
|
---|
11998 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
11999 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
12000 | </desc>
|
---|
12001 | </attribute>
|
---|
12002 |
|
---|
12003 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
12004 | <desc>
|
---|
12005 | Flag whether the existing connection must be dropped and a new connection
|
---|
12006 | must be established by the VRDP server, when a new client connects in single
|
---|
12007 | connection mode.
|
---|
12008 | </desc>
|
---|
12009 | </attribute>
|
---|
12010 |
|
---|
12011 | </interface>
|
---|
12012 |
|
---|
12013 |
|
---|
12014 | <!--
|
---|
12015 | // ISharedFolder
|
---|
12016 | /////////////////////////////////////////////////////////////////////////
|
---|
12017 | -->
|
---|
12018 |
|
---|
12019 | <interface
|
---|
12020 | name="ISharedFolder" extends="$unknown"
|
---|
12021 | uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
|
---|
12022 | wsmap="struct"
|
---|
12023 | >
|
---|
12024 | <desc>
|
---|
12025 | The ISharedFolder interface represents a folder in the host computer's
|
---|
12026 | file system accessible from the guest OS running inside a virtual
|
---|
12027 | machine using an associated logical name.
|
---|
12028 |
|
---|
12029 | There are three types of shared folders:
|
---|
12030 | <ul>
|
---|
12031 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
12032 | folders available to all virtual machines.</li>
|
---|
12033 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
12034 | VM-specific shared folders available to the given virtual machine at
|
---|
12035 | startup.</li>
|
---|
12036 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
12037 | VM-specific shared folders created in the session context (for
|
---|
12038 | example, when the virtual machine is running) and automatically
|
---|
12039 | discarded when the session is closed (the VM is powered off).</li>
|
---|
12040 | </ul>
|
---|
12041 |
|
---|
12042 | Logical names of shared folders must be unique within the given scope
|
---|
12043 | (global, permanent or transient). However, they do not need to be unique
|
---|
12044 | across scopes. In this case, the definition of the shared folder in a
|
---|
12045 | more specific scope takes precedence over definitions in all other
|
---|
12046 | scopes. The order of precedence is (more specific to more general):
|
---|
12047 | <ol>
|
---|
12048 | <li>Transient definitions</li>
|
---|
12049 | <li>Permanent definitions</li>
|
---|
12050 | <li>Global definitions</li>
|
---|
12051 | </ol>
|
---|
12052 |
|
---|
12053 | For example, if MyMachine has a shared folder named
|
---|
12054 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
12055 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
12056 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
12057 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
12058 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
12059 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
12060 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
12061 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
12062 | to <tt>C:\\</tt> if it still exists.
|
---|
12063 |
|
---|
12064 | Note that permanent and transient shared folders of different machines
|
---|
12065 | are in different name spaces, so they don't overlap and don't need to
|
---|
12066 | have unique logical names.
|
---|
12067 |
|
---|
12068 | <note>
|
---|
12069 | Global shared folders are not implemented in the current version of the
|
---|
12070 | product.
|
---|
12071 | </note>
|
---|
12072 | </desc>
|
---|
12073 |
|
---|
12074 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12075 | <desc>Logical name of the shared folder.</desc>
|
---|
12076 | </attribute>
|
---|
12077 |
|
---|
12078 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
12079 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
12080 | </attribute>
|
---|
12081 |
|
---|
12082 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
12083 | <desc>
|
---|
12084 | Whether the folder defined by the host path is currently
|
---|
12085 | accessible or not.
|
---|
12086 | For example, the folder can be unaccessible if it is placed
|
---|
12087 | on the network share that is not available by the time
|
---|
12088 | this property is read.
|
---|
12089 | </desc>
|
---|
12090 | </attribute>
|
---|
12091 |
|
---|
12092 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
12093 | <desc>
|
---|
12094 | Whether the folder defined by the host path is writable or
|
---|
12095 | not.
|
---|
12096 | </desc>
|
---|
12097 | </attribute>
|
---|
12098 |
|
---|
12099 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
12100 | <desc>
|
---|
12101 | Text message that represents the result of the last accessibility
|
---|
12102 | check.
|
---|
12103 |
|
---|
12104 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
12105 | attribute is read. An empty string is returned if the last
|
---|
12106 | accessibility check was successful. A non-empty string indicates a
|
---|
12107 | failure and should normally describe a reason of the failure (for
|
---|
12108 | example, a file read error).
|
---|
12109 | </desc>
|
---|
12110 | </attribute>
|
---|
12111 |
|
---|
12112 | </interface>
|
---|
12113 |
|
---|
12114 | <!--
|
---|
12115 | // ISession
|
---|
12116 | /////////////////////////////////////////////////////////////////////////
|
---|
12117 | -->
|
---|
12118 |
|
---|
12119 | <interface
|
---|
12120 | name="IInternalSessionControl" extends="$unknown"
|
---|
12121 | uuid="b26552e7-9534-4f47-b766-98eac648a90d"
|
---|
12122 | internal="yes"
|
---|
12123 | wsmap="suppress"
|
---|
12124 | >
|
---|
12125 | <method name="getPID">
|
---|
12126 | <desc>PID of the process that has created this Session object.
|
---|
12127 | </desc>
|
---|
12128 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
12129 | </method>
|
---|
12130 |
|
---|
12131 | <method name="getRemoteConsole">
|
---|
12132 | <desc>
|
---|
12133 | Returns the console object suitable for remote control.
|
---|
12134 |
|
---|
12135 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12136 | Session state prevents operation.
|
---|
12137 | </result>
|
---|
12138 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12139 | Session type prevents operation.
|
---|
12140 | </result>
|
---|
12141 |
|
---|
12142 | </desc>
|
---|
12143 | <param name="console" type="IConsole" dir="return"/>
|
---|
12144 | </method>
|
---|
12145 |
|
---|
12146 | <method name="assignMachine">
|
---|
12147 | <desc>
|
---|
12148 | Assigns the machine object associated with this direct-type
|
---|
12149 | session or informs the session that it will be a remote one
|
---|
12150 | (if @a machine == @c null).
|
---|
12151 |
|
---|
12152 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12153 | Session state prevents operation.
|
---|
12154 | </result>
|
---|
12155 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12156 | Session type prevents operation.
|
---|
12157 | </result>
|
---|
12158 |
|
---|
12159 | </desc>
|
---|
12160 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12161 | </method>
|
---|
12162 |
|
---|
12163 | <method name="assignRemoteMachine">
|
---|
12164 | <desc>
|
---|
12165 | Assigns the machine and the (remote) console object associated with
|
---|
12166 | this remote-type session.
|
---|
12167 |
|
---|
12168 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12169 | Session state prevents operation.
|
---|
12170 | </result>
|
---|
12171 |
|
---|
12172 | </desc>
|
---|
12173 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12174 | <param name="console" type="IConsole" dir="in"/>
|
---|
12175 | </method>
|
---|
12176 |
|
---|
12177 | <method name="updateMachineState">
|
---|
12178 | <desc>
|
---|
12179 | Updates the machine state in the VM process.
|
---|
12180 | Must be called only in certain cases
|
---|
12181 | (see the method implementation).
|
---|
12182 |
|
---|
12183 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12184 | Session state prevents operation.
|
---|
12185 | </result>
|
---|
12186 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12187 | Session type prevents operation.
|
---|
12188 | </result>
|
---|
12189 |
|
---|
12190 | </desc>
|
---|
12191 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
12192 | </method>
|
---|
12193 |
|
---|
12194 | <method name="uninitialize">
|
---|
12195 | <desc>
|
---|
12196 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
12197 | the corresponding remote session when the direct session dies
|
---|
12198 | or gets closed.
|
---|
12199 |
|
---|
12200 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12201 | Session state prevents operation.
|
---|
12202 | </result>
|
---|
12203 |
|
---|
12204 | </desc>
|
---|
12205 | </method>
|
---|
12206 |
|
---|
12207 | <method name="onDVDDriveChange">
|
---|
12208 | <desc>
|
---|
12209 | Triggered when settings of the DVD drive object of the
|
---|
12210 | associated virtual machine have changed.
|
---|
12211 |
|
---|
12212 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12213 | Session state prevents operation.
|
---|
12214 | </result>
|
---|
12215 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12216 | Session type prevents operation.
|
---|
12217 | </result>
|
---|
12218 |
|
---|
12219 | </desc>
|
---|
12220 | </method>
|
---|
12221 |
|
---|
12222 | <method name="onFloppyDriveChange">
|
---|
12223 | <desc>
|
---|
12224 | Triggered when settings of the floppy drive object of the
|
---|
12225 | associated virtual machine have changed.
|
---|
12226 |
|
---|
12227 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12228 | Session state prevents operation.
|
---|
12229 | </result>
|
---|
12230 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12231 | Session type prevents operation.
|
---|
12232 | </result>
|
---|
12233 |
|
---|
12234 | </desc>
|
---|
12235 | </method>
|
---|
12236 |
|
---|
12237 | <method name="onNetworkAdapterChange">
|
---|
12238 | <desc>
|
---|
12239 | Triggered when settings of a network adapter of the
|
---|
12240 | associated virtual machine have changed.
|
---|
12241 |
|
---|
12242 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12243 | Session state prevents operation.
|
---|
12244 | </result>
|
---|
12245 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12246 | Session type prevents operation.
|
---|
12247 | </result>
|
---|
12248 |
|
---|
12249 | </desc>
|
---|
12250 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
12251 | </method>
|
---|
12252 |
|
---|
12253 | <method name="onSerialPortChange">
|
---|
12254 | <desc>
|
---|
12255 | Triggered when settings of a serial port of the
|
---|
12256 | associated virtual machine have changed.
|
---|
12257 |
|
---|
12258 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12259 | Session state prevents operation.
|
---|
12260 | </result>
|
---|
12261 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12262 | Session type prevents operation.
|
---|
12263 | </result>
|
---|
12264 |
|
---|
12265 | </desc>
|
---|
12266 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
12267 | </method>
|
---|
12268 |
|
---|
12269 | <method name="onParallelPortChange">
|
---|
12270 | <desc>
|
---|
12271 | Triggered when settings of a parallel port of the
|
---|
12272 | associated virtual machine have changed.
|
---|
12273 |
|
---|
12274 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12275 | Session state prevents operation.
|
---|
12276 | </result>
|
---|
12277 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12278 | Session type prevents operation.
|
---|
12279 | </result>
|
---|
12280 |
|
---|
12281 | </desc>
|
---|
12282 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
12283 | </method>
|
---|
12284 |
|
---|
12285 | <method name="onStorageControllerChange">
|
---|
12286 | <desc>
|
---|
12287 | Triggered when settings of a storage controller of the
|
---|
12288 | associated virtual machine have changed.
|
---|
12289 |
|
---|
12290 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12291 | Session state prevents operation.
|
---|
12292 | </result>
|
---|
12293 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12294 | Session type prevents operation.
|
---|
12295 | </result>
|
---|
12296 |
|
---|
12297 | </desc>
|
---|
12298 | </method>
|
---|
12299 |
|
---|
12300 | <method name="onVRDPServerChange">
|
---|
12301 | <desc>
|
---|
12302 | Triggered when settings of the VRDP server object of the
|
---|
12303 | associated virtual machine have changed.
|
---|
12304 |
|
---|
12305 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12306 | Session state prevents operation.
|
---|
12307 | </result>
|
---|
12308 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12309 | Session type prevents operation.
|
---|
12310 | </result>
|
---|
12311 |
|
---|
12312 | </desc>
|
---|
12313 | </method>
|
---|
12314 |
|
---|
12315 | <method name="onUSBControllerChange">
|
---|
12316 | <desc>
|
---|
12317 | Triggered when settings of the USB controller object of the
|
---|
12318 | associated virtual machine have changed.
|
---|
12319 |
|
---|
12320 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12321 | Session state prevents operation.
|
---|
12322 | </result>
|
---|
12323 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12324 | Session type prevents operation.
|
---|
12325 | </result>
|
---|
12326 |
|
---|
12327 | </desc>
|
---|
12328 | </method>
|
---|
12329 |
|
---|
12330 | <method name="onSharedFolderChange">
|
---|
12331 | <desc>
|
---|
12332 | Triggered when a permanent (global or machine) shared folder has been
|
---|
12333 | created or removed.
|
---|
12334 | <note>
|
---|
12335 | We don't pass shared folder parameters in this notification because
|
---|
12336 | the order in which parallel notifications are delivered is not defined,
|
---|
12337 | therefore it could happen that these parameters were outdated by the
|
---|
12338 | time of processing this notification.
|
---|
12339 | </note>
|
---|
12340 |
|
---|
12341 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12342 | Session state prevents operation.
|
---|
12343 | </result>
|
---|
12344 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12345 | Session type prevents operation.
|
---|
12346 | </result>
|
---|
12347 |
|
---|
12348 | </desc>
|
---|
12349 | <param name="global" type="boolean" dir="in"/>
|
---|
12350 | </method>
|
---|
12351 |
|
---|
12352 | <method name="onUSBDeviceAttach">
|
---|
12353 | <desc>
|
---|
12354 | Triggered when a request to capture a USB device (as a result
|
---|
12355 | of matched USB filters or direct call to
|
---|
12356 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
12357 | A @c null @a error object means success, otherwise it
|
---|
12358 | describes a failure.
|
---|
12359 |
|
---|
12360 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12361 | Session state prevents operation.
|
---|
12362 | </result>
|
---|
12363 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12364 | Session type prevents operation.
|
---|
12365 | </result>
|
---|
12366 |
|
---|
12367 | </desc>
|
---|
12368 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
12369 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12370 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
12371 | </method>
|
---|
12372 |
|
---|
12373 | <method name="onUSBDeviceDetach">
|
---|
12374 | <desc>
|
---|
12375 | Triggered when a request to release the USB device (as a result
|
---|
12376 | of machine termination or direct call to
|
---|
12377 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
12378 | A @c null @a error object means success, otherwise it
|
---|
12379 | describes a failure.
|
---|
12380 |
|
---|
12381 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12382 | Session state prevents operation.
|
---|
12383 | </result>
|
---|
12384 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12385 | Session type prevents operation.
|
---|
12386 | </result>
|
---|
12387 |
|
---|
12388 | </desc>
|
---|
12389 | <param name="id" type="wstring" dir="in"/>
|
---|
12390 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12391 | </method>
|
---|
12392 |
|
---|
12393 | <method name="onShowWindow">
|
---|
12394 | <desc>
|
---|
12395 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
12396 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
12397 | console callbacks
|
---|
12398 | <link to="IConsoleCallback::onCanShowWindow"/>
|
---|
12399 | and <link to="IConsoleCallback::onShowWindow"/>.
|
---|
12400 |
|
---|
12401 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12402 | Session type prevents operation.
|
---|
12403 | </result>
|
---|
12404 |
|
---|
12405 | </desc>
|
---|
12406 | <param name="check" type="boolean" dir="in"/>
|
---|
12407 | <param name="canShow" type="boolean" dir="out"/>
|
---|
12408 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
12409 | </method>
|
---|
12410 |
|
---|
12411 | <method name="accessGuestProperty">
|
---|
12412 | <desc>
|
---|
12413 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
12414 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
12415 | modify guest properties.
|
---|
12416 |
|
---|
12417 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12418 | Machine session is not open.
|
---|
12419 | </result>
|
---|
12420 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12421 | Session type is not direct.
|
---|
12422 | </result>
|
---|
12423 |
|
---|
12424 | </desc>
|
---|
12425 | <param name="name" type="wstring" dir="in"/>
|
---|
12426 | <param name="value" type="wstring" dir="in"/>
|
---|
12427 | <param name="flags" type="wstring" dir="in"/>
|
---|
12428 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
12429 | <param name="retValue" type="wstring" dir="out"/>
|
---|
12430 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
12431 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
12432 | </method>
|
---|
12433 |
|
---|
12434 | <method name="enumerateGuestProperties">
|
---|
12435 | <desc>
|
---|
12436 | Return a list of the guest properties matching a set of patterns along
|
---|
12437 | with their values, time stamps and flags.
|
---|
12438 |
|
---|
12439 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12440 | Machine session is not open.
|
---|
12441 | </result>
|
---|
12442 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12443 | Session type is not direct.
|
---|
12444 | </result>
|
---|
12445 |
|
---|
12446 | </desc>
|
---|
12447 | <param name="patterns" type="wstring" dir="in">
|
---|
12448 | <desc>
|
---|
12449 | The patterns to match the properties against as a comma-separated
|
---|
12450 | string. If this is empty, all properties currently set will be
|
---|
12451 | returned.
|
---|
12452 | </desc>
|
---|
12453 | </param>
|
---|
12454 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
12455 | <desc>
|
---|
12456 | The key names of the properties returned.
|
---|
12457 | </desc>
|
---|
12458 | </param>
|
---|
12459 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
12460 | <desc>
|
---|
12461 | The values of the properties returned. The array entries match the
|
---|
12462 | corresponding entries in the @a key array.
|
---|
12463 | </desc>
|
---|
12464 | </param>
|
---|
12465 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
12466 | <desc>
|
---|
12467 | The time stamps of the properties returned. The array entries match
|
---|
12468 | the corresponding entries in the @a key array.
|
---|
12469 | </desc>
|
---|
12470 | </param>
|
---|
12471 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
12472 | <desc>
|
---|
12473 | The flags of the properties returned. The array entries match the
|
---|
12474 | corresponding entries in the @a key array.
|
---|
12475 | </desc>
|
---|
12476 | </param>
|
---|
12477 | </method>
|
---|
12478 |
|
---|
12479 | </interface>
|
---|
12480 |
|
---|
12481 | <interface
|
---|
12482 | name="ISession" extends="$dispatched"
|
---|
12483 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
12484 | wsmap="managed"
|
---|
12485 | >
|
---|
12486 | <desc>
|
---|
12487 | The ISession interface represents a serialization primitive for virtual
|
---|
12488 | machines.
|
---|
12489 |
|
---|
12490 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
12491 | (e.g. change its settings or start execution), a session object is
|
---|
12492 | required. Such an object must be passed to one of the session methods
|
---|
12493 | that open the given session, which then initiates the machine manipulation.
|
---|
12494 |
|
---|
12495 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
12496 | code which process is currently working with the virtual machine, and it ensures
|
---|
12497 | that there are no incompatible requests from several processes for the
|
---|
12498 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
12499 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
12500 | several processes.
|
---|
12501 |
|
---|
12502 | How sessions objects are used depends on whether you use the Main API
|
---|
12503 | via COM or via the webservice:
|
---|
12504 |
|
---|
12505 | <ul>
|
---|
12506 | <li>When using the COM API directly, an object of the Session class from the
|
---|
12507 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
12508 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
12509 | This object will then act as a local session object in further calls to open
|
---|
12510 | a session.
|
---|
12511 | </li>
|
---|
12512 |
|
---|
12513 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
12514 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
12515 | is called. A managed object reference to that session object can be retrieved by
|
---|
12516 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
12517 | reference can then be used to open sessions.
|
---|
12518 | </li>
|
---|
12519 | </ul>
|
---|
12520 |
|
---|
12521 | Sessions are mainly used in two variations:
|
---|
12522 |
|
---|
12523 | <ul>
|
---|
12524 | <li>
|
---|
12525 | To start a virtual machine in a separate process, one would call
|
---|
12526 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
12527 | object as its first parameter. This session then identifies the caller
|
---|
12528 | and lets him control the started machine (for example, pause machine
|
---|
12529 | execution or power it down) as well as be notified about machine
|
---|
12530 | execution state changes.
|
---|
12531 | </li>
|
---|
12532 |
|
---|
12533 | <li>To alter machine settings, or to start machine execution within the
|
---|
12534 | current process, one needs to open a direct session for the machine first by
|
---|
12535 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
12536 | is open within one process, no any other process may open another direct
|
---|
12537 | session for the same machine. This prevents the machine from being changed
|
---|
12538 | by other processes while it is running or while the machine is being configured.
|
---|
12539 | </li>
|
---|
12540 | </ul>
|
---|
12541 |
|
---|
12542 | One also can attach to an existing direct session already opened by
|
---|
12543 | another process (for example, in order to send a control request to the
|
---|
12544 | virtual machine such as the pause or the reset request). This is done by
|
---|
12545 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
12546 |
|
---|
12547 | <note>
|
---|
12548 | Unless you are trying to write a new VirtualBox front-end that
|
---|
12549 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
12550 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
12551 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
12552 | session only to change virtual machine settings. If you simply want to
|
---|
12553 | start virtual machine execution using one of the existing front-ends
|
---|
12554 | (for example the VirtualBox GUI or headless server), simply use
|
---|
12555 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
12556 | will power up the machine automatically for you.
|
---|
12557 | </note>
|
---|
12558 | </desc>
|
---|
12559 |
|
---|
12560 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
12561 | <desc>Current state of this session.</desc>
|
---|
12562 | </attribute>
|
---|
12563 |
|
---|
12564 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
12565 | <desc>
|
---|
12566 | Type of this session. The value of this attribute is valid only
|
---|
12567 | if the session is currently open (i.e. its #state is
|
---|
12568 | SessionType_SessionOpen), otherwise an error will be returned.
|
---|
12569 | </desc>
|
---|
12570 | </attribute>
|
---|
12571 |
|
---|
12572 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
12573 | <desc>Machine object associated with this session.</desc>
|
---|
12574 | </attribute>
|
---|
12575 |
|
---|
12576 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
12577 | <desc>Console object associated with this session.</desc>
|
---|
12578 | </attribute>
|
---|
12579 |
|
---|
12580 | <method name="close">
|
---|
12581 | <desc>
|
---|
12582 | Closes a session that was previously opened.
|
---|
12583 |
|
---|
12584 | It is recommended that every time an "open session" method (such as
|
---|
12585 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
12586 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
12587 | manipulate a virtual machine, the caller invoke
|
---|
12588 | ISession::close() when it's done doing so. Since sessions are
|
---|
12589 | serialization primitives much like ordinary mutexes, they are
|
---|
12590 | best used the same way: for each "open" call, there should be
|
---|
12591 | a matching "close" call, even when errors occur.
|
---|
12592 |
|
---|
12593 | Otherwise, if a direct session for a machine opened with
|
---|
12594 | <link to="IVirtualBox::openSession"/> is not explicitly closed
|
---|
12595 | when the application terminates, the state of the machine will
|
---|
12596 | be set to <link to="MachineState_Aborted" /> on the server.
|
---|
12597 |
|
---|
12598 | Generally, it is recommended to close all open sessions explicitly
|
---|
12599 | before terminating the application (regardless of the reason for
|
---|
12600 | the termination).
|
---|
12601 |
|
---|
12602 | <note>
|
---|
12603 | Do not expect the session state (<link to="ISession::state" />
|
---|
12604 | to return to "Closed" immediately after you invoke
|
---|
12605 | ISession::close(), particularly if you have started a remote
|
---|
12606 | session to execute the VM in a new process. The session state will
|
---|
12607 | automatically return to "Closed" once the VM is no longer executing,
|
---|
12608 | which can of course take a very long time.
|
---|
12609 | </note>
|
---|
12610 |
|
---|
12611 | <result name="E_UNEXPECTED">
|
---|
12612 | Session is not open.
|
---|
12613 | </result>
|
---|
12614 |
|
---|
12615 | </desc>
|
---|
12616 | </method>
|
---|
12617 |
|
---|
12618 | </interface>
|
---|
12619 |
|
---|
12620 | <!--
|
---|
12621 | // IStorageController
|
---|
12622 | /////////////////////////////////////////////////////////////////////////
|
---|
12623 | -->
|
---|
12624 |
|
---|
12625 | <enum
|
---|
12626 | name="StorageBus"
|
---|
12627 | uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
|
---|
12628 | >
|
---|
12629 | <desc>
|
---|
12630 | The connection type of the storage controller.
|
---|
12631 | </desc>
|
---|
12632 | <const name="Null" value="0">
|
---|
12633 | <desc>@c null value. Never used by the API.</desc>
|
---|
12634 | </const>
|
---|
12635 | <const name="IDE" value="1"/>
|
---|
12636 | <const name="SATA" value="2"/>
|
---|
12637 | <const name="SCSI" value="3"/>
|
---|
12638 | </enum>
|
---|
12639 |
|
---|
12640 | <enum
|
---|
12641 | name="StorageControllerType"
|
---|
12642 | uuid="685387db-a837-4320-a258-08f46a22f62a"
|
---|
12643 | >
|
---|
12644 | <desc>
|
---|
12645 | Storage controller type.
|
---|
12646 | </desc>
|
---|
12647 |
|
---|
12648 | <const name="Null" value="0">
|
---|
12649 | <desc>@c null value. Never used by the API.</desc>
|
---|
12650 | </const>
|
---|
12651 | <const name="LsiLogic" value="1"/>
|
---|
12652 | <const name="BusLogic" value="2"/>
|
---|
12653 | <const name="IntelAhci" value="3"/>
|
---|
12654 | <const name="PIIX3" value="4"/>
|
---|
12655 | <const name="PIIX4" value="5"/>
|
---|
12656 | <const name="ICH6" value="6"/>
|
---|
12657 | </enum>
|
---|
12658 |
|
---|
12659 | <interface
|
---|
12660 | name="IStorageController" extends="$unknown"
|
---|
12661 | uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
|
---|
12662 | wsmap="managed"
|
---|
12663 | >
|
---|
12664 | <desc>
|
---|
12665 | Represents a storage controller that is attached to a virtual machine
|
---|
12666 | (<link to="IMachine" />). Just as hard disks are attached to storage
|
---|
12667 | controllers in a real computer, virtual hard disks (represented by
|
---|
12668 | <link to="IHardDisk" />) are attached to virtual storage controllers,
|
---|
12669 | represented by this interface.
|
---|
12670 |
|
---|
12671 | VirtualBox supports three types of virtual storage controller hardware:
|
---|
12672 | IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
|
---|
12673 | these three is used, certain sub-types are available and can be
|
---|
12674 | selected in <link to="#controllerType" />.
|
---|
12675 | </desc>
|
---|
12676 |
|
---|
12677 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12678 | <desc>
|
---|
12679 | Name of the storage controller, as originally specified with
|
---|
12680 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
12681 | identifies this controller with other method calls such as
|
---|
12682 | <link to="IMachine::attachHardDisk" />.
|
---|
12683 | </desc>
|
---|
12684 | </attribute>
|
---|
12685 |
|
---|
12686 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
12687 | <desc>
|
---|
12688 | Maximum number of devices which can be attached to one port.
|
---|
12689 | </desc>
|
---|
12690 | </attribute>
|
---|
12691 |
|
---|
12692 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
12693 | <desc>
|
---|
12694 | Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
12695 | </desc>
|
---|
12696 | </attribute>
|
---|
12697 |
|
---|
12698 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
12699 | <desc>
|
---|
12700 | Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
12701 | </desc>
|
---|
12702 | </attribute>
|
---|
12703 |
|
---|
12704 | <attribute name="instance" type="unsigned long">
|
---|
12705 | <desc>
|
---|
12706 | The instance number of the device in the running VM.
|
---|
12707 | </desc>
|
---|
12708 | </attribute>
|
---|
12709 |
|
---|
12710 | <attribute name="portCount" type="unsigned long">
|
---|
12711 | <desc>
|
---|
12712 | The number of currently usable ports on the controller.
|
---|
12713 | The minimum and maximum number of ports for one controller are
|
---|
12714 | stored in <link to="IStorageController::minPortCount"/>
|
---|
12715 | and <link to="IStorageController::maxPortCount"/>.
|
---|
12716 | </desc>
|
---|
12717 | </attribute>
|
---|
12718 |
|
---|
12719 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
12720 | <desc>
|
---|
12721 | The connection type of the storage controller.
|
---|
12722 | </desc>
|
---|
12723 | </attribute>
|
---|
12724 |
|
---|
12725 | <attribute name="controllerType" type="StorageControllerType">
|
---|
12726 | <desc>
|
---|
12727 | Type of the virtual storage controller. Depending on this value,
|
---|
12728 | VirtualBox will provide a different virtual storage controller hardware
|
---|
12729 | to the guest.
|
---|
12730 |
|
---|
12731 | For SCSI controllers, the default type is LsiLogic.
|
---|
12732 | </desc>
|
---|
12733 | </attribute>
|
---|
12734 |
|
---|
12735 | <method name="GetIDEEmulationPort">
|
---|
12736 | <desc>
|
---|
12737 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
12738 |
|
---|
12739 | <result name="E_INVALIDARG">
|
---|
12740 | The @a devicePosition is not in the range 0 to 3.
|
---|
12741 | </result>
|
---|
12742 | <result name="E_NOTIMPL">
|
---|
12743 | The storage controller type is not SATAIntelAhci.
|
---|
12744 | </result>
|
---|
12745 |
|
---|
12746 | </desc>
|
---|
12747 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12748 | <param name="portNumber" type="long" dir="return"/>
|
---|
12749 | </method>
|
---|
12750 |
|
---|
12751 | <method name="SetIDEEmulationPort">
|
---|
12752 | <desc>
|
---|
12753 | Sets the port number which is emulated as an IDE device.
|
---|
12754 |
|
---|
12755 | <result name="E_INVALIDARG">
|
---|
12756 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
12757 | @a portNumber is not in the range 0 to 29.
|
---|
12758 | </result>
|
---|
12759 | <result name="E_NOTIMPL">
|
---|
12760 | The storage controller type is not SATAIntelAhci.
|
---|
12761 | </result>
|
---|
12762 |
|
---|
12763 | </desc>
|
---|
12764 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12765 | <param name="portNumber" type="long" dir="in"/>
|
---|
12766 | </method>
|
---|
12767 |
|
---|
12768 | </interface>
|
---|
12769 |
|
---|
12770 | <if target="wsdl">
|
---|
12771 |
|
---|
12772 | <!--
|
---|
12773 | // IManagedObjectRef
|
---|
12774 | /////////////////////////////////////////////////////////////////////////
|
---|
12775 | -->
|
---|
12776 |
|
---|
12777 | <interface
|
---|
12778 | name="IManagedObjectRef" extends="$unknown"
|
---|
12779 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
12780 | internal="yes"
|
---|
12781 | wsmap="managed"
|
---|
12782 | wscpp="hardcoded"
|
---|
12783 | >
|
---|
12784 | <desc>
|
---|
12785 | Managed object reference.
|
---|
12786 |
|
---|
12787 | Only within the webservice, a managed object reference (which is really
|
---|
12788 | an opaque number) allows a webservice client to address an object
|
---|
12789 | that lives in the address space of the webservice server.
|
---|
12790 |
|
---|
12791 | Behind each managed object reference, there is a COM object that lives
|
---|
12792 | in the webservice server's address space. The COM object is not freed
|
---|
12793 | until the managed object reference is released, either by an explicit
|
---|
12794 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
12795 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
12796 | all objects created during the webservice session.
|
---|
12797 |
|
---|
12798 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
12799 | webservice representation of that method will instead return a
|
---|
12800 | managed object reference, which can then be used to invoke methods
|
---|
12801 | on that object.
|
---|
12802 | </desc>
|
---|
12803 |
|
---|
12804 | <method name="getInterfaceName">
|
---|
12805 | <desc>
|
---|
12806 | Returns the name of the interface that this managed object represents,
|
---|
12807 | for example, "IMachine", as a string.
|
---|
12808 | </desc>
|
---|
12809 | <param name="return" type="wstring" dir="return"/>
|
---|
12810 | </method>
|
---|
12811 |
|
---|
12812 | <method name="release">
|
---|
12813 | <desc>
|
---|
12814 | Releases this managed object reference and frees the resources that
|
---|
12815 | were allocated for it in the webservice server process. After calling
|
---|
12816 | this method, the identifier of the reference can no longer be used.
|
---|
12817 | </desc>
|
---|
12818 | </method>
|
---|
12819 |
|
---|
12820 | </interface>
|
---|
12821 |
|
---|
12822 | <!--
|
---|
12823 | // IWebsessionManager
|
---|
12824 | /////////////////////////////////////////////////////////////////////////
|
---|
12825 | -->
|
---|
12826 |
|
---|
12827 | <interface
|
---|
12828 | name="IWebsessionManager" extends="$unknown"
|
---|
12829 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
12830 | internal="yes"
|
---|
12831 | wsmap="global"
|
---|
12832 | wscpp="hardcoded"
|
---|
12833 | >
|
---|
12834 | <desc>
|
---|
12835 | Websession manager. This provides essential services
|
---|
12836 | to webservice clients.
|
---|
12837 | </desc>
|
---|
12838 | <method name="logon">
|
---|
12839 | <desc>
|
---|
12840 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
12841 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
12842 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
12843 | interface, in one way or the other.
|
---|
12844 | </desc>
|
---|
12845 | <param name="username" type="wstring" dir="in"/>
|
---|
12846 | <param name="password" type="wstring" dir="in"/>
|
---|
12847 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
12848 | </method>
|
---|
12849 |
|
---|
12850 | <method name="getSessionObject">
|
---|
12851 | <desc>
|
---|
12852 | Returns a managed object reference to the internal ISession object that was created
|
---|
12853 | for this web service session when the client logged on.
|
---|
12854 |
|
---|
12855 | <see>ISession</see>
|
---|
12856 | </desc>
|
---|
12857 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12858 | <param name="return" type="ISession" dir="return"/>
|
---|
12859 | </method>
|
---|
12860 |
|
---|
12861 | <method name="logoff">
|
---|
12862 | <desc>
|
---|
12863 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
12864 | and destroys all resources associated with the session (most importantly, all
|
---|
12865 | managed objects created in the server while the session was active).
|
---|
12866 | </desc>
|
---|
12867 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12868 | </method>
|
---|
12869 |
|
---|
12870 | </interface>
|
---|
12871 |
|
---|
12872 | </if>
|
---|
12873 |
|
---|
12874 | <!--
|
---|
12875 | // IPerformanceCollector & friends
|
---|
12876 | /////////////////////////////////////////////////////////////////////////
|
---|
12877 | -->
|
---|
12878 |
|
---|
12879 | <interface
|
---|
12880 | name="IPerformanceMetric" extends="$unknown"
|
---|
12881 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
12882 | >
|
---|
12883 | <desc>
|
---|
12884 | The IPerformanceMetric interface represents parameters of the given
|
---|
12885 | performance metric.
|
---|
12886 | </desc>
|
---|
12887 |
|
---|
12888 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
12889 | <desc>
|
---|
12890 | Name of the metric.
|
---|
12891 | </desc>
|
---|
12892 | </attribute>
|
---|
12893 |
|
---|
12894 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
12895 | <desc>
|
---|
12896 | Object this metric belongs to.
|
---|
12897 | </desc>
|
---|
12898 | </attribute>
|
---|
12899 |
|
---|
12900 | <attribute name="description" type="wstring" readonly="yes">
|
---|
12901 | <desc>
|
---|
12902 | Textual description of the metric.
|
---|
12903 | </desc>
|
---|
12904 | </attribute>
|
---|
12905 |
|
---|
12906 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
12907 | <desc>
|
---|
12908 | Time interval between samples, measured in seconds.
|
---|
12909 | </desc>
|
---|
12910 | </attribute>
|
---|
12911 |
|
---|
12912 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
12913 | <desc>
|
---|
12914 | Number of recent samples retained by the performance collector for this
|
---|
12915 | metric.
|
---|
12916 |
|
---|
12917 | When the collected sample count exceeds this number, older samples
|
---|
12918 | are discarded.
|
---|
12919 | </desc>
|
---|
12920 | </attribute>
|
---|
12921 |
|
---|
12922 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
12923 | <desc>
|
---|
12924 | Unit of measurement.
|
---|
12925 | </desc>
|
---|
12926 | </attribute>
|
---|
12927 |
|
---|
12928 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
12929 | <desc>
|
---|
12930 | Minimum possible value of this metric.
|
---|
12931 | </desc>
|
---|
12932 | </attribute>
|
---|
12933 |
|
---|
12934 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
12935 | <desc>
|
---|
12936 | Maximum possible value of this metric.
|
---|
12937 | </desc>
|
---|
12938 | </attribute>
|
---|
12939 | </interface>
|
---|
12940 |
|
---|
12941 | <interface
|
---|
12942 | name="IPerformanceCollector" extends="$unknown"
|
---|
12943 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
12944 | wsmap="managed"
|
---|
12945 | >
|
---|
12946 | <desc>
|
---|
12947 | The IPerformanceCollector interface represents a service that collects and
|
---|
12948 | stores performance metrics data.
|
---|
12949 |
|
---|
12950 | Performance metrics are associated with objects of interfaces like IHost and
|
---|
12951 | IMachine. Each object has a distinct set of performance metrics.
|
---|
12952 | The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
12953 |
|
---|
12954 | Metric data is collected at the specified intervals and is retained
|
---|
12955 | internally. The interval and the number of retained samples can be set
|
---|
12956 | with <link to="IPerformanceCollector::setupMetrics" />.
|
---|
12957 |
|
---|
12958 | Metrics are organized hierarchically, with each level separated by a
|
---|
12959 | slash (/) character. Generally, the scheme for metric names is like this:
|
---|
12960 |
|
---|
12961 | <tt>Category/Metric[/SubMetric][:aggregation]</tt>
|
---|
12962 |
|
---|
12963 | "Category/Metric" together form the base metric name. A base metric is the
|
---|
12964 | smallest unit for which a sampling interval and the number of retained
|
---|
12965 | samples can be set. Only base metrics can be enabled and disabled. All
|
---|
12966 | sub-metrics are collected when their base metric is collected.
|
---|
12967 | Collected values for any set of sub-metrics can be queried with
|
---|
12968 | <link to="IPerformanceCollector::queryMetricsData" />.
|
---|
12969 |
|
---|
12970 | For example "CPU/Load/User:avg"
|
---|
12971 | metric name stands for the "CPU" category, "Load" metric, "User" submetric,
|
---|
12972 | "average" aggregate. An aggregate function is computed over all retained
|
---|
12973 | data. Valid aggregate functions are:
|
---|
12974 |
|
---|
12975 | <ul>
|
---|
12976 | <li>avg -- average</li>
|
---|
12977 | <li>min -- minimum</li>
|
---|
12978 | <li>max -- maximum</li>
|
---|
12979 | </ul>
|
---|
12980 |
|
---|
12981 | When setting up
|
---|
12982 | metric parameters, querying metric data, enabling or disabling metrics
|
---|
12983 | wildcards can be used in metric names to specify a subset of metrics. For
|
---|
12984 | example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
|
---|
12985 | averages can be queried using <tt>*:avg</tt> and so on. To query metric
|
---|
12986 | values without aggregates <tt>*:</tt> can be used.
|
---|
12987 |
|
---|
12988 | The valid names for base metrics are:
|
---|
12989 |
|
---|
12990 | <ul>
|
---|
12991 | <li>CPU/Load</li>
|
---|
12992 | <li>CPU/MHz</li>
|
---|
12993 | <li>RAM/Usage</li>
|
---|
12994 | </ul>
|
---|
12995 |
|
---|
12996 | The general sequence for collecting and retrieving the metrics is:
|
---|
12997 | <ul>
|
---|
12998 | <li>
|
---|
12999 | Obtain an instance of IPerformanceCollector with
|
---|
13000 | <link to="IVirtualBox::performanceCollector" />
|
---|
13001 | </li>
|
---|
13002 | <li>
|
---|
13003 | Allocate and populate an array with references to objects the metrics
|
---|
13004 | will be collected for. Use references to IHost and IMachine objects.
|
---|
13005 | </li>
|
---|
13006 | <li>
|
---|
13007 | Allocate and populate an array with base metric names the data will be
|
---|
13008 | collected for.
|
---|
13009 | </li>
|
---|
13010 | <li>
|
---|
13011 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
|
---|
13012 | metric data will be collected and stored.
|
---|
13013 | </li>
|
---|
13014 | <li>
|
---|
13015 | Wait for the data to get collected.
|
---|
13016 | </li>
|
---|
13017 | <li>
|
---|
13018 | Allocate and populate an array with references to objects the metric
|
---|
13019 | values will be queried for. You can re-use the object array used for
|
---|
13020 | setting base metrics.
|
---|
13021 | </li>
|
---|
13022 | <li>
|
---|
13023 | Allocate and populate an array with metric names the data will be
|
---|
13024 | collected for. Note that metric names differ from base metric names.
|
---|
13025 | </li>
|
---|
13026 | <li>
|
---|
13027 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
|
---|
13028 | have been collected so far are returned. Note that the values are still
|
---|
13029 | retained internally and data collection continues.
|
---|
13030 | </li>
|
---|
13031 | </ul>
|
---|
13032 |
|
---|
13033 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
13034 | <ul>
|
---|
13035 | <li>
|
---|
13036 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
13037 | </li>
|
---|
13038 | <li>
|
---|
13039 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
13040 | </li>
|
---|
13041 | </ul>
|
---|
13042 | </desc>
|
---|
13043 |
|
---|
13044 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
13045 | <desc>
|
---|
13046 | Array of unique names of metrics.
|
---|
13047 |
|
---|
13048 | This array represents all metrics supported by the performance
|
---|
13049 | collector. Individual objects do not necessarily support all of them.
|
---|
13050 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
13051 | list of supported metrics for a particular object.
|
---|
13052 | </desc>
|
---|
13053 | </attribute>
|
---|
13054 |
|
---|
13055 | <method name="getMetrics">
|
---|
13056 | <desc>
|
---|
13057 | Returns parameters of specified metrics for a set of objects.
|
---|
13058 | <note>
|
---|
13059 | @c Null metrics array means all metrics. @c Null object array means
|
---|
13060 | all existing objects.
|
---|
13061 | </note>
|
---|
13062 | </desc>
|
---|
13063 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13064 | <desc>
|
---|
13065 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
13066 | is supported.
|
---|
13067 | </desc>
|
---|
13068 | </param>
|
---|
13069 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13070 | <desc>
|
---|
13071 | Set of objects to return metric parameters for.
|
---|
13072 | </desc>
|
---|
13073 | </param>
|
---|
13074 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13075 | <desc>
|
---|
13076 | Array of returned metric parameters.
|
---|
13077 | </desc>
|
---|
13078 | </param>
|
---|
13079 | </method>
|
---|
13080 |
|
---|
13081 | <method name="setupMetrics">
|
---|
13082 | <desc>
|
---|
13083 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
13084 | an array of <link to="IPerformanceMetric" /> describing the metrics have
|
---|
13085 | been affected.
|
---|
13086 | <note>
|
---|
13087 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13088 | object array means all existing objects. If metric name array contains
|
---|
13089 | a single element and object array contains many, the single metric
|
---|
13090 | name array element is applied to each object array element to form
|
---|
13091 | metric/object pairs.
|
---|
13092 | </note>
|
---|
13093 | </desc>
|
---|
13094 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13095 | <desc>
|
---|
13096 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13097 | support.
|
---|
13098 | </desc>
|
---|
13099 | </param>
|
---|
13100 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13101 | <desc>
|
---|
13102 | Set of objects to setup metric parameters for.
|
---|
13103 | </desc>
|
---|
13104 | </param>
|
---|
13105 | <param name="period" type="unsigned long" dir="in">
|
---|
13106 | <desc>
|
---|
13107 | Time interval in seconds between two consecutive samples of performance
|
---|
13108 | data.
|
---|
13109 | </desc>
|
---|
13110 | </param>
|
---|
13111 | <param name="count" type="unsigned long" dir="in">
|
---|
13112 | <desc>
|
---|
13113 | Number of samples to retain in performance data history. Older samples
|
---|
13114 | get discarded.
|
---|
13115 | </desc>
|
---|
13116 | </param>
|
---|
13117 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13118 | <desc>
|
---|
13119 | Array of metrics that have been modified by the call to this method.
|
---|
13120 | </desc>
|
---|
13121 | </param>
|
---|
13122 | </method>
|
---|
13123 |
|
---|
13124 | <method name="enableMetrics">
|
---|
13125 | <desc>
|
---|
13126 | Turns on collecting specified base metrics. Returns an array of
|
---|
13127 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13128 | affected.
|
---|
13129 | <note>
|
---|
13130 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13131 | object array means all existing objects. If metric name array contains
|
---|
13132 | a single element and object array contains many, the single metric
|
---|
13133 | name array element is applied to each object array element to form
|
---|
13134 | metric/object pairs.
|
---|
13135 | </note>
|
---|
13136 | </desc>
|
---|
13137 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13138 | <desc>
|
---|
13139 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13140 | support.
|
---|
13141 | </desc>
|
---|
13142 | </param>
|
---|
13143 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13144 | <desc>
|
---|
13145 | Set of objects to enable metrics for.
|
---|
13146 | </desc>
|
---|
13147 | </param>
|
---|
13148 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13149 | <desc>
|
---|
13150 | Array of metrics that have been modified by the call to this method.
|
---|
13151 | </desc>
|
---|
13152 | </param>
|
---|
13153 | </method>
|
---|
13154 |
|
---|
13155 | <method name="disableMetrics">
|
---|
13156 | <desc>
|
---|
13157 | Turns off collecting specified base metrics. Returns an array of
|
---|
13158 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13159 | affected.
|
---|
13160 | <note>
|
---|
13161 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13162 | object array means all existing objects. If metric name array contains
|
---|
13163 | a single element and object array contains many, the single metric
|
---|
13164 | name array element is applied to each object array element to form
|
---|
13165 | metric/object pairs.
|
---|
13166 | </note>
|
---|
13167 | </desc>
|
---|
13168 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13169 | <desc>
|
---|
13170 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13171 | support.
|
---|
13172 | </desc>
|
---|
13173 | </param>
|
---|
13174 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13175 | <desc>
|
---|
13176 | Set of objects to disable metrics for.
|
---|
13177 | </desc>
|
---|
13178 | </param>
|
---|
13179 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13180 | <desc>
|
---|
13181 | Array of metrics that have been modified by the call to this method.
|
---|
13182 | </desc>
|
---|
13183 | </param>
|
---|
13184 | </method>
|
---|
13185 |
|
---|
13186 | <method name="queryMetricsData">
|
---|
13187 | <desc>
|
---|
13188 | Queries collected metrics data for a set of objects.
|
---|
13189 |
|
---|
13190 | The data itself and related metric information are returned in seven
|
---|
13191 | parallel and one flattened array of arrays. Elements of
|
---|
13192 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
13193 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
13194 | the same index describe one set of values corresponding to a single
|
---|
13195 | metric.
|
---|
13196 |
|
---|
13197 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
13198 | start and length of a sub-array is indicated by
|
---|
13199 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
13200 | value for metric <tt>metricNames[i]</tt> is at
|
---|
13201 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
13202 |
|
---|
13203 | <note>
|
---|
13204 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13205 | object array means all existing objects. If metric name array contains
|
---|
13206 | a single element and object array contains many, the single metric
|
---|
13207 | name array element is applied to each object array element to form
|
---|
13208 | metric/object pairs.
|
---|
13209 | </note>
|
---|
13210 | <note>
|
---|
13211 | Data collection continues behind the scenes after call to
|
---|
13212 | @c queryMetricsData. The return data can be seen as the snapshot of
|
---|
13213 | the current state at the time of @c queryMetricsData call. The
|
---|
13214 | internally kept metric values are not cleared by the call. This makes
|
---|
13215 | possible querying different subsets of metrics or aggregates with
|
---|
13216 | subsequent calls. If periodic querying is needed it is highly
|
---|
13217 | suggested to query the values with @c interval*count period to avoid
|
---|
13218 | confusion. This way a completely new set of data values will be
|
---|
13219 | provided by each query.
|
---|
13220 | </note>
|
---|
13221 | </desc>
|
---|
13222 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13223 | <desc>
|
---|
13224 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13225 | support.
|
---|
13226 | </desc>
|
---|
13227 | </param>
|
---|
13228 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13229 | <desc>
|
---|
13230 | Set of objects to query metrics for.
|
---|
13231 | </desc>
|
---|
13232 | </param>
|
---|
13233 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
13234 | <desc>
|
---|
13235 | Names of metrics returned in @c returnData.
|
---|
13236 | </desc>
|
---|
13237 | </param>
|
---|
13238 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
13239 | <desc>
|
---|
13240 | Objects associated with metrics returned in @c returnData.
|
---|
13241 | </desc>
|
---|
13242 | </param>
|
---|
13243 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
13244 | <desc>
|
---|
13245 | Units of measurement for each returned metric.
|
---|
13246 | </desc>
|
---|
13247 | </param>
|
---|
13248 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
13249 | <desc>
|
---|
13250 | Divisor that should be applied to return values in order to get
|
---|
13251 | floating point values. For example:
|
---|
13252 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
13253 | will retrieve the floating point value of i-th sample of the first
|
---|
13254 | metric.
|
---|
13255 | </desc>
|
---|
13256 | </param>
|
---|
13257 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
13258 | <desc>
|
---|
13259 | Sequence numbers of the first elements of value sequences of particular metrics
|
---|
13260 | returned in @c returnData. For aggregate metrics it is the sequence number of
|
---|
13261 | the sample the aggregate started calculation from.
|
---|
13262 | </desc>
|
---|
13263 | </param>
|
---|
13264 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
13265 | <desc>
|
---|
13266 | Indices of the first elements of value sequences of particular metrics
|
---|
13267 | returned in @c returnData.
|
---|
13268 | </desc>
|
---|
13269 | </param>
|
---|
13270 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
13271 | <desc>
|
---|
13272 | Lengths of value sequences of particular metrics.
|
---|
13273 | </desc>
|
---|
13274 | </param>
|
---|
13275 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
13276 | <desc>
|
---|
13277 | Flattened array of all metric data containing sequences of values for
|
---|
13278 | each metric.
|
---|
13279 | </desc>
|
---|
13280 | </param>
|
---|
13281 | </method>
|
---|
13282 |
|
---|
13283 | </interface>
|
---|
13284 |
|
---|
13285 | <module name="VBoxSVC" context="LocalServer">
|
---|
13286 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
13287 | namespace="virtualbox.org">
|
---|
13288 | <interface name="IVirtualBox" default="yes"/>
|
---|
13289 | </class>
|
---|
13290 | </module>
|
---|
13291 |
|
---|
13292 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
13293 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
13294 | namespace="virtualbox.org">
|
---|
13295 | <interface name="ISession" default="yes"/>
|
---|
13296 | </class>
|
---|
13297 | </module>
|
---|
13298 |
|
---|
13299 | </library>
|
---|
13300 |
|
---|
13301 | </idl>
|
---|
13302 |
|
---|
13303 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|