VirtualBox

source: vbox/trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd@ 17664

Last change on this file since 17664 was 17614, checked in by vboxsync, 16 years ago

network adapter XML schema HostOnlyNetwork removed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 30.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * :tabSize=2:indentSize=2:noTabs=true:
4 * :folding=explicit:collapseFolds=1:
5 *
6 * Sun xVM VirtualBox Settings Schema
7 * Common definitions
8
9 Copyright (C) 2004-2008 Sun Microsystems, Inc.
10
11 This file is part of VirtualBox Open Source Edition (OSE), as
12 available from http://www.virtualbox.org. This file is free software;
13 you can redistribute it and/or modify it under the terms of the GNU
14 General Public License (GPL) as published by the Free Software
15 Foundation, in version 2 as it comes in the "COPYING" file of the
16 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18
19 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
20 Clara, CA 95054 USA or visit http://www.sun.com if you need
21 additional information or have any questions.
22-->
23
24<xsd:schema
25 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
26 xmlns="http://www.innotek.de/VirtualBox-settings"
27 xmlns:vb="http://www.innotek.de/VirtualBox-settings"
28 targetNamespace="http://www.innotek.de/VirtualBox-settings"
29 elementFormDefault="qualified"
30>
31
32<xsd:annotation>
33 <xsd:documentation xml:lang="en">
34 Sun xVM VirtualBox Settings Schema (common definitions).
35 Copyright (c) 2004-2008 Sun Microsystems, Inc.
36 </xsd:documentation>
37</xsd:annotation>
38
39<!--
40// Simple types
41/////////////////////////////////////////////////////////////////////////
42-->
43
44<xsd:simpleType name="TUUID">
45 <xsd:restriction base="xsd:token">
46 <xsd:pattern value="\{[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\}"/>
47 </xsd:restriction>
48</xsd:simpleType>
49
50<xsd:simpleType name="TNonNullUUID">
51 <xsd:restriction base="TUUID">
52 <xsd:pattern value=".*[1-9A-Fa-f]+.*"/>
53 </xsd:restriction>
54</xsd:simpleType>
55
56<xsd:simpleType name="TUInt8">
57 <xsd:union>
58 <xsd:simpleType>
59 <xsd:restriction base="xsd:unsignedByte">
60 </xsd:restriction>
61 </xsd:simpleType>
62 <xsd:simpleType>
63 <xsd:restriction base="xsd:string">
64 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,2}"/>
65 </xsd:restriction>
66 </xsd:simpleType>
67 </xsd:union>
68</xsd:simpleType>
69
70<xsd:simpleType name="TUInt16">
71 <xsd:union>
72 <xsd:simpleType>
73 <xsd:restriction base="xsd:unsignedShort">
74 </xsd:restriction>
75 </xsd:simpleType>
76 <xsd:simpleType>
77 <xsd:restriction base="xsd:string">
78 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,4}"/>
79 </xsd:restriction>
80 </xsd:simpleType>
81 </xsd:union>
82</xsd:simpleType>
83
84<xsd:simpleType name="TUInt64Hex">
85 <xsd:restriction base="xsd:string">
86 <xsd:pattern value="0x[A-Fa-f0-9]{1,16}"/>
87 </xsd:restriction>
88</xsd:simpleType>
89
90<xsd:simpleType name="TLocalFile">
91 <xsd:restriction base="xsd:string">
92 <xsd:pattern value=".+"/>
93 </xsd:restriction>
94</xsd:simpleType>
95
96<xsd:simpleType name="TDiskType">
97 <xsd:restriction base="xsd:token">
98 <xsd:enumeration value="HD"/>
99 <xsd:enumeration value="DVD"/>
100 <xsd:enumeration value="FD"/>
101 </xsd:restriction>
102</xsd:simpleType>
103
104<xsd:simpleType name="TDeviceType">
105 <xsd:restriction base="xsd:token">
106 <xsd:enumeration value="None"/>
107 <xsd:enumeration value="Floppy"/>
108 <xsd:enumeration value="DVD"/>
109 <xsd:enumeration value="HardDisk"/>
110 <xsd:enumeration value="Network"/>
111 </xsd:restriction>
112</xsd:simpleType>
113
114<xsd:simpleType name="TUSBDeviceFilterAction">
115 <xsd:restriction base="xsd:token">
116 <xsd:enumeration value="Ignore"/>
117 <xsd:enumeration value="Hold"/>
118 </xsd:restriction>
119</xsd:simpleType>
120
121<xsd:simpleType name="TNonEmptyString">
122 <xsd:restriction base="xsd:string">
123 <xsd:pattern value=".+"/>
124 </xsd:restriction>
125</xsd:simpleType>
126
127<xsd:simpleType name="TPresentDateTimeUTC">
128 <xsd:restriction base="xsd:dateTime">
129 <xsd:minInclusive value="1900-01-01T00:00:00Z"/>
130 <xsd:maxInclusive value="199999999-12-31T23:59:59Z"/>
131 <xsd:pattern value=".+-.+-.+T.+:.+:[0-9]{2}Z"/>
132 </xsd:restriction>
133</xsd:simpleType>
134
135<xsd:simpleType name="TGuestOSType">
136 <xsd:restriction base="xsd:string">
137 <xsd:enumeration value="Other"/>
138 <xsd:enumeration value="DOS"/>
139 <xsd:enumeration value="Netware"/>
140 <xsd:enumeration value="L4"/>
141 <xsd:enumeration value="Windows31"/>
142 <xsd:enumeration value="Windows95"/>
143 <xsd:enumeration value="Windows98"/>
144 <xsd:enumeration value="WindowsMe"/>
145 <xsd:enumeration value="WindowsNT4"/>
146 <xsd:enumeration value="Windows2000"/>
147 <xsd:enumeration value="WindowsXP"/>
148 <xsd:enumeration value="WindowsXP_64"/>
149 <xsd:enumeration value="Windows2003"/>
150 <xsd:enumeration value="Windows2003_64"/>
151 <xsd:enumeration value="WindowsVista"/>
152 <xsd:enumeration value="WindowsVista_64"/>
153 <xsd:enumeration value="Windows2008"/>
154 <xsd:enumeration value="Windows2008_64"/>
155 <xsd:enumeration value="Windows7"/>
156 <xsd:enumeration value="Windows7_64"/>
157 <xsd:enumeration value="WindowsNT"/>
158 <xsd:enumeration value="OS2Warp3"/>
159 <xsd:enumeration value="OS2Warp4"/>
160 <xsd:enumeration value="OS2Warp45"/>
161 <xsd:enumeration value="OS2eCS"/>
162 <xsd:enumeration value="OS2"/>
163 <xsd:enumeration value="Linux22"/>
164 <xsd:enumeration value="Linux24"/>
165 <xsd:enumeration value="Linux24_64"/>
166 <xsd:enumeration value="Linux26"/>
167 <xsd:enumeration value="Linux26_64"/>
168 <xsd:enumeration value="ArchLinux"/>
169 <xsd:enumeration value="ArchLinux_64"/>
170 <xsd:enumeration value="Debian"/>
171 <xsd:enumeration value="Debian_64"/>
172 <xsd:enumeration value="OpenSUSE"/>
173 <xsd:enumeration value="OpenSUSE_64"/>
174 <xsd:enumeration value="Fedora"/>
175 <xsd:enumeration value="Fedora_64"/>
176 <xsd:enumeration value="Gentoo"/>
177 <xsd:enumeration value="Gentoo_64"/>
178 <xsd:enumeration value="Mandriva"/>
179 <xsd:enumeration value="Mandriva_64"/>
180 <xsd:enumeration value="RedHat"/>
181 <xsd:enumeration value="RedHat_64"/>
182 <xsd:enumeration value="Ubuntu"/>
183 <xsd:enumeration value="Ubuntu_64"/>
184 <xsd:enumeration value="Xandros"/>
185 <xsd:enumeration value="Xandros_64"/>
186 <xsd:enumeration value="Linux"/>
187 <xsd:enumeration value="FreeBSD"/>
188 <xsd:enumeration value="FreeBSD_64"/>
189 <xsd:enumeration value="OpenBSD"/>
190 <xsd:enumeration value="OpenBSD_64"/>
191 <xsd:enumeration value="NetBSD"/>
192 <xsd:enumeration value="NetBSD_64"/>
193 <xsd:enumeration value="Solaris"/>
194 <xsd:enumeration value="Solaris_64"/>
195 <xsd:enumeration value="OpenSolaris"/>
196 <xsd:enumeration value="OpenSolaris_64"/>
197 <xsd:enumeration value="QNX"/>
198 </xsd:restriction>
199</xsd:simpleType>
200
201
202<xsd:simpleType name="TVRDPAuthType">
203 <xsd:restriction base="xsd:string">
204 <xsd:enumeration value="Null"/>
205 <xsd:enumeration value="Guest"/>
206 <xsd:enumeration value="External"/>
207 </xsd:restriction>
208</xsd:simpleType>
209
210<xsd:simpleType name="TNetworkAdapterType">
211 <xsd:restriction base="xsd:string">
212 <xsd:enumeration value="Am79C970A"/>
213 <xsd:enumeration value="Am79C973"/>
214 <xsd:enumeration value="82540EM"/>
215 <xsd:enumeration value="82543GC"/>
216 </xsd:restriction>
217</xsd:simpleType>
218
219<xsd:simpleType name="TTriStateBoolType">
220 <xsd:restriction base="xsd:string">
221 <xsd:enumeration value="false"/>
222 <xsd:enumeration value="true"/>
223 <xsd:enumeration value="default"/>
224 </xsd:restriction>
225</xsd:simpleType>
226
227<xsd:simpleType name="TBIOSBootMenuModeType">
228 <xsd:restriction base="xsd:string">
229 <xsd:enumeration value="Disabled"/>
230 <xsd:enumeration value="MenuOnly"/>
231 <xsd:enumeration value="MessageAndMenu"/>
232 </xsd:restriction>
233</xsd:simpleType>
234
235<xsd:simpleType name="TIDEControllerType">
236 <xsd:restriction base="xsd:string">
237 <xsd:enumeration value="PIIX3"/>
238 <xsd:enumeration value="PIIX4"/>
239 <xsd:enumeration value="ICH6"/>
240 </xsd:restriction>
241</xsd:simpleType>
242
243<xsd:simpleType name="TClipboardMode">
244 <xsd:restriction base="xsd:string">
245 <xsd:enumeration value="Disabled"/>
246 <xsd:enumeration value="HostToGuest"/>
247 <xsd:enumeration value="GuestToHost"/>
248 <xsd:enumeration value="Bidirectional"/>
249 </xsd:restriction>
250</xsd:simpleType>
251
252<xsd:simpleType name="TPortMode">
253 <xsd:restriction base="xsd:string">
254 <xsd:enumeration value="Disconnected"/>
255 <xsd:enumeration value="HostPipe"/>
256 <xsd:enumeration value="HostDevice"/>
257 </xsd:restriction>
258</xsd:simpleType>
259
260<!--
261// Complex types
262/////////////////////////////////////////////////////////////////////////
263-->
264
265<xsd:complexType name="THardDiskBase">
266 <xsd:sequence>
267 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
268 <xsd:element name="Property" minOccurs="0" maxOccurs="unbounded">
269 <xsd:complexType>
270 <xsd:attribute name="name" type="xsd:token" use="required"/>
271 <xsd:attribute name="value" type="xsd:string" use="required"/>
272 </xsd:complexType>
273 </xsd:element>
274 <xsd:element name="HardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
275 </xsd:sequence>
276 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
277 <xsd:attribute name="location" type="TLocalFile" use="required"/>
278 <xsd:attribute name="format" type="TNonEmptyString" use="required"/>
279</xsd:complexType>
280
281<xsd:complexType name="TDiffHardDisk">
282 <xsd:complexContent>
283 <xsd:extension base="THardDiskBase">
284 <xsd:attribute name="autoReset" type="xsd:boolean" default="false"/>
285 </xsd:extension>
286 </xsd:complexContent>
287</xsd:complexType>
288
289<xsd:complexType name="THardDisk">
290 <xsd:complexContent>
291 <xsd:extension base="THardDiskBase">
292 <xsd:attribute name="type" use="required">
293 <xsd:simpleType>
294 <xsd:restriction base="xsd:string">
295 <xsd:enumeration value="Normal"/>
296 <xsd:enumeration value="Immutable"/>
297 <xsd:enumeration value="Writethrough"/>
298 </xsd:restriction>
299 </xsd:simpleType>
300 </xsd:attribute>
301 </xsd:extension>
302 </xsd:complexContent>
303</xsd:complexType>
304
305<xsd:complexType name="TImage2">
306 <xsd:sequence>
307 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
308 </xsd:sequence>
309 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
310 <xsd:attribute name="location" type="TLocalFile" use="required"/>
311</xsd:complexType>
312
313<xsd:complexType name="TImageRef">
314 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
315</xsd:complexType>
316
317<xsd:complexType name="THostDrive">
318 <xsd:attribute name="src" type="TLocalFile" use="required"/>
319</xsd:complexType>
320
321<xsd:complexType name="TUSBDeviceFilter">
322 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
323 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
324 <xsd:attribute name="vendorId" type="xsd:token"/>
325 <xsd:attribute name="productId" type="xsd:token"/>
326 <xsd:attribute name="revision" type="xsd:token"/>
327 <xsd:attribute name="manufacturer" type="xsd:token"/>
328 <xsd:attribute name="product" type="xsd:token"/>
329 <xsd:attribute name="serialNumber" type="xsd:token"/>
330 <xsd:attribute name="port" type="xsd:token"/>
331 <xsd:attribute name="remote" type="xsd:token"/>
332 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
333</xsd:complexType>
334
335<xsd:complexType name="THostUSBDeviceFilter">
336 <xsd:complexContent>
337 <xsd:extension base="TUSBDeviceFilter">
338 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
339 </xsd:extension>
340 </xsd:complexContent>
341</xsd:complexType>
342
343<xsd:complexType name="TSystemProperties">
344 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
345 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
346 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/>
347 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
348 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
349 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
350 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
351</xsd:complexType>
352
353<xsd:complexType name="TExtraData">
354 <xsd:sequence>
355 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
356 <xsd:complexType>
357 <xsd:attribute name="name" type="xsd:token" use="required"/>
358 <xsd:attribute name="value" type="xsd:string" use="required"/>
359 </xsd:complexType>
360 </xsd:element>
361 </xsd:sequence>
362</xsd:complexType>
363
364<xsd:complexType name="TGlobal">
365 <xsd:all>
366 <xsd:element name="MachineRegistry">
367 <xsd:complexType>
368 <xsd:sequence>
369 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
370 <xsd:complexType>
371 <xsd:attribute name="src" type="TLocalFile" use="required"/>
372 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
373 </xsd:complexType>
374 </xsd:element>
375 </xsd:sequence>
376 </xsd:complexType>
377 </xsd:element>
378 <xsd:element name="MediaRegistry">
379 <xsd:complexType>
380 <xsd:all>
381 <xsd:element name="HardDisks" minOccurs="0">
382 <xsd:complexType>
383 <xsd:sequence>
384 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
385 </xsd:sequence>
386 </xsd:complexType>
387 </xsd:element>
388 <xsd:element name="DVDImages" minOccurs="0">
389 <xsd:complexType>
390 <xsd:sequence>
391 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
392 </xsd:sequence>
393 </xsd:complexType>
394 </xsd:element>
395 <xsd:element name="FloppyImages" minOccurs="0">
396 <xsd:complexType>
397 <xsd:sequence>
398 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
399 </xsd:sequence>
400 </xsd:complexType>
401 </xsd:element>
402 </xsd:all>
403 </xsd:complexType>
404 </xsd:element>
405 <xsd:element name="USBDeviceFilters">
406 <xsd:complexType>
407 <xsd:sequence>
408 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
409 minOccurs="0" maxOccurs="unbounded"/>
410 </xsd:sequence>
411 </xsd:complexType>
412 </xsd:element>
413 <xsd:element name="SystemProperties" type="TSystemProperties"/>
414 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
415 </xsd:all>
416</xsd:complexType>
417
418<xsd:complexType name="THWVirtExType">
419 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
420</xsd:complexType>
421
422<xsd:complexType name="THWVirtExNestedPagingType">
423 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
424</xsd:complexType>
425
426<xsd:complexType name="THWVirtExVPIDType">
427 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
428</xsd:complexType>
429
430<xsd:complexType name="TPAEType">
431 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
432</xsd:complexType>
433
434<xsd:simpleType name="TCPUCount">
435 <xsd:restriction base="xsd:unsignedInt">
436 <xsd:minInclusive value="1"/>
437 <xsd:maxInclusive value="255"/>
438 </xsd:restriction>
439</xsd:simpleType>
440
441<xsd:complexType name="TCPU">
442 <xsd:sequence>
443 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
444 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
445 <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
446 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
447 </xsd:sequence>
448 <xsd:attribute name="count" type="TCPUCount" default="1"/>
449</xsd:complexType>
450
451<xsd:complexType name="TBoot">
452 <xsd:sequence>
453 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
454 <xsd:complexType>
455 <xsd:attribute name="position" use="required">
456 <xsd:simpleType>
457 <xsd:restriction base="xsd:unsignedInt">
458 <xsd:minInclusive value="1"/>
459 <xsd:maxInclusive value="4"/>
460 </xsd:restriction>
461 </xsd:simpleType>
462 </xsd:attribute>
463 <xsd:attribute name="device" type="TDeviceType" use="required"/>
464 </xsd:complexType>
465 </xsd:element>
466 </xsd:sequence>
467</xsd:complexType>
468
469<xsd:complexType name="TDisplay">
470 <xsd:attribute name="VRAMSize" use="required">
471 <xsd:simpleType>
472 <xsd:restriction base="xsd:unsignedInt">
473 <xsd:minInclusive value="1"/>
474 <xsd:maxInclusive value="128"/>
475 </xsd:restriction>
476 </xsd:simpleType>
477 </xsd:attribute>
478 <xsd:attribute name="monitorCount" default="1">
479 <xsd:simpleType>
480 <xsd:restriction base="xsd:unsignedInt">
481 <xsd:maxInclusive value="8"/>
482 </xsd:restriction>
483 </xsd:simpleType>
484 </xsd:attribute>
485 <xsd:attribute name="accelerate3D" type="xsd:boolean" default="false"/>
486</xsd:complexType>
487
488<xsd:complexType name="TRemoteDisplay">
489 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
490 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
491 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
492 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
493 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
494 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
495 <xsd:attribute name="reuseSingleConnection" type="xsd:boolean" default="false"/>
496</xsd:complexType>
497
498<xsd:complexType name="TBIOS">
499 <xsd:all>
500 <xsd:element name="ACPI">
501 <xsd:complexType>
502 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
503 </xsd:complexType>
504 </xsd:element>
505 <xsd:element name="IOAPIC" minOccurs="0">
506 <xsd:complexType>
507 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
508 </xsd:complexType>
509 </xsd:element>
510 <xsd:element name="Logo" minOccurs="0">
511 <xsd:complexType>
512 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
513 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
514 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
515 <xsd:attribute name="imagePath" type="TLocalFile"/>
516 </xsd:complexType>
517 </xsd:element>
518 <xsd:element name="BootMenu" minOccurs="0">
519 <xsd:complexType>
520 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
521 </xsd:complexType>
522 </xsd:element>
523 <xsd:element name="TimeOffset" minOccurs="0">
524 <xsd:complexType>
525 <xsd:attribute name="value" type="xsd:integer" default="0"/>
526 </xsd:complexType>
527 </xsd:element>
528 <xsd:element name="PXEDebug" minOccurs="0">
529 <xsd:complexType>
530 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
531 </xsd:complexType>
532 </xsd:element>
533 <xsd:element name="IDEController" minOccurs="0">
534 <xsd:complexType>
535 <xsd:attribute name="type" use="required" type="TIDEControllerType"/>
536 </xsd:complexType>
537 </xsd:element>
538 </xsd:all>
539</xsd:complexType>
540
541<xsd:complexType name="THardDiskAttachment">
542 <xsd:attribute name="hardDisk" type="TNonNullUUID" use="required"/>
543 <xsd:attribute name="bus" use="required">
544 <xsd:simpleType>
545 <xsd:restriction base="xsd:token">
546 <xsd:enumeration value="IDE"/>
547 <xsd:enumeration value="SATA"/>
548 </xsd:restriction>
549 </xsd:simpleType>
550 </xsd:attribute>
551 <xsd:attribute name="channel" type="xsd:unsignedInt" use="required"/>
552 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
553</xsd:complexType>
554
555<xsd:complexType name="THardDiskAttachments">
556 <xsd:sequence>
557 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
558 minOccurs="0" maxOccurs="unbounded"/>
559 </xsd:sequence>
560</xsd:complexType>
561
562<xsd:complexType name="TDVDDrive">
563 <xsd:choice minOccurs="0">
564 <xsd:element name="Image" type="TImageRef"/>
565 <xsd:element name="HostDrive" type="THostDrive"/>
566 </xsd:choice>
567 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
568</xsd:complexType>
569
570<xsd:complexType name="TFloppyDrive">
571 <xsd:choice minOccurs="0">
572 <xsd:element name="Image" type="TImageRef"/>
573 <xsd:element name="HostDrive" type="THostDrive"/>
574 </xsd:choice>
575 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
576</xsd:complexType>
577
578<xsd:complexType name="TUSBController">
579 <xsd:sequence>
580 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
581 minOccurs="0" maxOccurs="unbounded"/>
582 </xsd:sequence>
583 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
584 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
585</xsd:complexType>
586
587<xsd:complexType name="TAudioAdapterBase">
588 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
589 <xsd:attribute name="controller" default="AC97">
590 <xsd:simpleType>
591 <xsd:restriction base="xsd:token">
592 <xsd:enumeration value="AC97"/>
593 <xsd:enumeration value="SB16"/>
594 </xsd:restriction>
595 </xsd:simpleType>
596 </xsd:attribute>
597</xsd:complexType>
598
599<xsd:complexType name="TNetworkAdapter">
600 <xsd:choice minOccurs="0">
601 <xsd:element name="NAT">
602 <xsd:complexType>
603 <xsd:attribute name="network" type="xsd:string"/>
604 </xsd:complexType>
605 </xsd:element>
606 <xsd:element name="HostInterface">
607 <xsd:complexType>
608 <xsd:attribute name="name" type="xsd:string" use="required"/>
609 </xsd:complexType>
610 </xsd:element>
611 <xsd:element name="BridgedInterface">
612 <xsd:complexType>
613 <xsd:attribute name="name" type="xsd:string" use="required"/>
614 </xsd:complexType>
615 </xsd:element>
616 <xsd:element name="InternalNetwork">
617 <xsd:complexType>
618 <xsd:attribute name="name" type="xsd:string" use="required"/>
619 </xsd:complexType>
620 </xsd:element>
621 <xsd:element name="HostOnlyInterface">
622 <xsd:complexType>
623 <xsd:attribute name="name" type="xsd:string" use="optional"/>
624 </xsd:complexType>
625 </xsd:element>
626 </xsd:choice>
627 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
628 <xsd:attribute name="slot" use="required">
629 <xsd:simpleType>
630 <xsd:restriction base="xsd:unsignedInt">
631 <xsd:minInclusive value="0"/>
632 <xsd:maxExclusive value="8"/>
633 </xsd:restriction>
634 </xsd:simpleType>
635 </xsd:attribute>
636 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
637 <xsd:attribute name="MACAddress">
638 <xsd:simpleType>
639 <xsd:restriction base="xsd:hexBinary">
640 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
641 </xsd:restriction>
642 </xsd:simpleType>
643 </xsd:attribute>
644 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
645 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
646 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
647 <xsd:attribute name="tracefile" type="xsd:string"/>
648</xsd:complexType>
649
650<xsd:complexType name="TNetwork">
651 <xsd:sequence>
652 <xsd:element name="Adapter" type="TNetworkAdapter"
653 minOccurs="0" maxOccurs="unbounded"/>
654 </xsd:sequence>
655</xsd:complexType>
656
657<xsd:complexType name="TUARTPort">
658 <xsd:attribute name="slot" use="required">
659 <xsd:simpleType>
660 <xsd:restriction base="xsd:unsignedInt">
661 <xsd:minInclusive value="0"/>
662 <xsd:maxExclusive value="2"/>
663 </xsd:restriction>
664 </xsd:simpleType>
665 </xsd:attribute>
666 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
667 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
668 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
669 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
670 <xsd:attribute name="path" type="TLocalFile"/>
671 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
672</xsd:complexType>
673
674<xsd:complexType name="TUART">
675 <xsd:sequence>
676 <xsd:element name="Port" type="TUARTPort"
677 minOccurs="0" maxOccurs="unbounded"/>
678 </xsd:sequence>
679</xsd:complexType>
680
681<xsd:complexType name="TLPTPort">
682 <xsd:attribute name="slot" use="required">
683 <xsd:simpleType>
684 <xsd:restriction base="xsd:unsignedInt">
685 <xsd:minInclusive value="0"/>
686 <xsd:maxExclusive value="2"/>
687 </xsd:restriction>
688 </xsd:simpleType>
689 </xsd:attribute>
690 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
691 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
692 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
693 <xsd:attribute name="path" type="TLocalFile"/>
694</xsd:complexType>
695
696<xsd:complexType name="TLPT">
697 <xsd:sequence>
698 <xsd:element name="Port" type="TLPTPort"
699 minOccurs="0" maxOccurs="unbounded"/>
700 </xsd:sequence>
701</xsd:complexType>
702
703<xsd:complexType name="TSharedFolder">
704 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
705 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
706 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
707</xsd:complexType>
708
709<xsd:complexType name="TSharedFolders">
710 <xsd:sequence>
711 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
712 </xsd:sequence>
713</xsd:complexType>
714
715<xsd:complexType name="TClipboard">
716 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
717</xsd:complexType>
718
719<xsd:complexType name="TGuest">
720 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
721 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
722</xsd:complexType>
723
724<xsd:complexType name="TSATAController">
725 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
726 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" default="0"/>
727 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" default="1"/>
728 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" default="2"/>
729 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" default="3"/>
730 <xsd:attribute name="PortCount" type="xsd:unsignedInt" default="30"/>
731</xsd:complexType>
732
733<xsd:complexType name="TGuestProperty">
734 <xsd:attribute name="name" type="xsd:string" use="required"/>
735 <xsd:attribute name="value" type="xsd:string" use="required"/>
736 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
737 <xsd:attribute name="flags" type="xsd:string" default=""/>
738</xsd:complexType>
739
740<xsd:complexType name="TGuestProperties">
741 <xsd:sequence>
742 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
743 </xsd:sequence>
744 <xsd:attribute name="notificationPatterns" type="xsd:string" default=""/>
745</xsd:complexType>
746
747<xsd:complexType name="THardware">
748 <xsd:all>
749 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
750 <xsd:element name="Memory" type="TMemory"/>
751 <xsd:element name="Boot" type="TBoot">
752 <xsd:unique name="THardware-Boot-Order">
753 <xsd:selector xpath="vb:Order"/>
754 <xsd:field xpath="@position"/>
755 </xsd:unique>
756 </xsd:element>
757 <xsd:element name="Display" type="TDisplay"/>
758 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
759 <xsd:element name="BIOS" type="TBIOS"/>
760 <xsd:element name="DVDDrive" type="TDVDDrive"/>
761 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
762 <xsd:element name="USBController" type="TUSBController"/>
763 <xsd:element name="SATAController" type="TSATAController"/>
764 <xsd:element name="Network" type="TNetwork">
765 <xsd:unique name="THardware-Network-Adapter">
766 <xsd:selector xpath="vb:Adapter"/>
767 <xsd:field xpath="@slot"/>
768 </xsd:unique>
769 </xsd:element>
770 <xsd:element name="UART" type="TUART">
771 <xsd:unique name="THardware-UART-Port">
772 <xsd:selector xpath="vb:Port"/>
773 <xsd:field xpath="@slot"/>
774 </xsd:unique>
775 </xsd:element>
776 <xsd:element name="LPT" type="TLPT">
777 <xsd:unique name="THardware-LPT-Port">
778 <xsd:selector xpath="vb:Port"/>
779 <xsd:field xpath="@slot"/>
780 </xsd:unique>
781 </xsd:element>
782 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
783 <xsd:element name="SharedFolders" type="TSharedFolders">
784 <xsd:unique name="THardware-SharedFolders-SharedFolder">
785 <xsd:selector xpath="vb:SharedFolder"/>
786 <xsd:field xpath="@name"/>
787 </xsd:unique>
788 </xsd:element>
789 <xsd:element name="Clipboard" type="TClipboard"/>
790 <xsd:element name="Guest" type="TGuest"/>
791 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
792 <xsd:unique name="THardware-GuestProperties-GuestProperty">
793 <xsd:selector xpath="vb:GuestProperty"/>
794 <xsd:field xpath="@name"/>
795 </xsd:unique>
796 </xsd:element>
797 </xsd:all>
798 <xsd:attribute name="version" type="xsd:string" default="2"/>
799</xsd:complexType>
800
801<xsd:complexType name="TMachine">
802 <xsd:all>
803 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
804 <xsd:element name="Hardware" type="THardware"/>
805 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
806 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
807 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
808 </xsd:all>
809 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
810 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
811 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
812 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
813 <xsd:attribute name="stateFile" type="TLocalFile"/>
814 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
815 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
816 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
817 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
818 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
819</xsd:complexType>
820
821<xsd:complexType name="TSnapshot">
822 <xsd:all>
823 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
824 <xsd:element name="Hardware" type="THardware"/>
825 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
826 <xsd:element name="Snapshots" minOccurs="0">
827 <xsd:complexType>
828 <xsd:sequence>
829 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
830 </xsd:sequence>
831 </xsd:complexType>
832 </xsd:element>
833 </xsd:all>
834 <xsd:attribute name="name" type="xsd:token" use="required"/>
835 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
836 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
837 <xsd:attribute name="stateFile" type="TLocalFile"/>
838</xsd:complexType>
839
840<xsd:complexType name="TVirtualBox" abstract="true">
841 <xsd:choice>
842 <xsd:element name="Global" type="TGlobal"/>
843 <xsd:element name="Machine" type="TMachine">
844 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
845 <xsd:key name="snapshot">
846 <xsd:selector xpath=".//vb:Snapshot"/>
847 <xsd:field xpath="@uuid"/>
848 </xsd:key>
849 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
850 <xsd:selector xpath="."/>
851 <xsd:field xpath="@currentSnapshot"/>
852 </xsd:keyref>
853 </xsd:element>
854 </xsd:choice>
855</xsd:complexType>
856
857</xsd:schema>
Note: See TracBrowser for help on using the repository browser.

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