VirtualBox

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

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

Update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.4 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 <!-- @todo on next format change, rename dos to DOS, win2k3 to Win2003 and
138 so on. Possibly also use prefixes that determine the platform family:
139 Win_31, Win_Vista, Linux_ArchLinux, Unix_FreeBSD and so on. -->
140 <xsd:enumeration value="unknown"/>
141 <xsd:enumeration value="dos"/>
142 <xsd:enumeration value="win31"/>
143 <xsd:enumeration value="win95"/>
144 <xsd:enumeration value="win98"/>
145 <xsd:enumeration value="winme"/>
146 <xsd:enumeration value="winnt4"/>
147 <xsd:enumeration value="win2k"/>
148 <xsd:enumeration value="winxp"/>
149 <xsd:enumeration value="win2k3"/>
150 <xsd:enumeration value="winvista"/>
151 <xsd:enumeration value="win2k8"/>
152 <xsd:enumeration value="os2warp3"/>
153 <xsd:enumeration value="os2warp4"/>
154 <xsd:enumeration value="os2warp45"/>
155 <xsd:enumeration value="ecs"/>
156 <xsd:enumeration value="linux22"/>
157 <xsd:enumeration value="linux24"/>
158 <xsd:enumeration value="linux26"/>
159 <xsd:enumeration value="archlinux"/>
160 <xsd:enumeration value="debian"/>
161 <xsd:enumeration value="opensuse"/>
162 <xsd:enumeration value="fedoracore"/>
163 <xsd:enumeration value="gentoo"/>
164 <xsd:enumeration value="mandriva"/>
165 <xsd:enumeration value="redhat"/>
166 <xsd:enumeration value="ubuntu"/>
167 <xsd:enumeration value="xandros"/>
168 <xsd:enumeration value="freebsd"/>
169 <xsd:enumeration value="openbsd"/>
170 <xsd:enumeration value="netbsd"/>
171 <xsd:enumeration value="netware"/>
172 <xsd:enumeration value="solaris"/>
173 <xsd:enumeration value="opensolaris"/>
174 <xsd:enumeration value="l4"/>
175 </xsd:restriction>
176</xsd:simpleType>
177
178<xsd:simpleType name="TVRDPAuthType">
179 <xsd:restriction base="xsd:string">
180 <xsd:enumeration value="Null"/>
181 <xsd:enumeration value="Guest"/>
182 <xsd:enumeration value="External"/>
183 </xsd:restriction>
184</xsd:simpleType>
185
186<xsd:simpleType name="TNetworkAdapterType">
187 <xsd:restriction base="xsd:string">
188 <xsd:enumeration value="Am79C970A"/>
189 <xsd:enumeration value="Am79C973"/>
190 <xsd:enumeration value="82540EM"/>
191 <xsd:enumeration value="82543GC"/>
192 </xsd:restriction>
193</xsd:simpleType>
194
195<xsd:simpleType name="TTriStateBoolType">
196 <xsd:restriction base="xsd:string">
197 <xsd:enumeration value="false"/>
198 <xsd:enumeration value="true"/>
199 <xsd:enumeration value="default"/>
200 </xsd:restriction>
201</xsd:simpleType>
202
203<xsd:simpleType name="TBIOSBootMenuModeType">
204 <xsd:restriction base="xsd:string">
205 <xsd:enumeration value="Disabled"/>
206 <xsd:enumeration value="MenuOnly"/>
207 <xsd:enumeration value="MessageAndMenu"/>
208 </xsd:restriction>
209</xsd:simpleType>
210
211<xsd:simpleType name="TIDEControllerType">
212 <xsd:restriction base="xsd:string">
213 <xsd:enumeration value="PIIX3"/>
214 <xsd:enumeration value="PIIX4"/>
215 </xsd:restriction>
216</xsd:simpleType>
217
218<xsd:simpleType name="TClipboardMode">
219 <xsd:restriction base="xsd:string">
220 <xsd:enumeration value="Disabled"/>
221 <xsd:enumeration value="HostToGuest"/>
222 <xsd:enumeration value="GuestToHost"/>
223 <xsd:enumeration value="Bidirectional"/>
224 </xsd:restriction>
225</xsd:simpleType>
226
227<xsd:simpleType name="TPortMode">
228 <xsd:restriction base="xsd:string">
229 <xsd:enumeration value="Disconnected"/>
230 <xsd:enumeration value="HostPipe"/>
231 <xsd:enumeration value="HostDevice"/>
232 </xsd:restriction>
233</xsd:simpleType>
234
235<!--
236// Complex types
237/////////////////////////////////////////////////////////////////////////
238-->
239
240<xsd:complexType name="TDiffHardDisk2">
241 <xsd:sequence>
242 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
243 <xsd:element name="HardDisk" type="TDiffHardDisk2" minOccurs="0" maxOccurs="unbounded"/>
244 </xsd:sequence>
245 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
246 <xsd:attribute name="location" type="TLocalFile" use="required"/>
247 <xsd:attribute name="format" type="TNonEmptyString" use="required"/>
248</xsd:complexType>
249
250<xsd:complexType name="THardDisk2">
251 <xsd:complexContent>
252 <xsd:extension base="TDiffHardDisk2">
253 <xsd:attribute name="type" use="required">
254 <xsd:simpleType>
255 <xsd:restriction base="xsd:string">
256 <xsd:enumeration value="Normal"/>
257 <xsd:enumeration value="Immutable"/>
258 <xsd:enumeration value="Writethrough"/>
259 </xsd:restriction>
260 </xsd:simpleType>
261 </xsd:attribute>
262 </xsd:extension>
263 </xsd:complexContent>
264</xsd:complexType>
265
266<xsd:complexType name="TImage2">
267 <xsd:sequence>
268 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
269 </xsd:sequence>
270 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
271 <xsd:attribute name="location" type="TLocalFile" use="required"/>
272</xsd:complexType>
273
274<xsd:complexType name="TImageRef">
275 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
276</xsd:complexType>
277
278<xsd:complexType name="THostDrive">
279 <xsd:attribute name="src" type="TLocalFile" use="required"/>
280</xsd:complexType>
281
282<xsd:complexType name="TUSBDeviceFilter">
283 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
284 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
285 <xsd:attribute name="vendorId" type="xsd:token"/>
286 <xsd:attribute name="productId" type="xsd:token"/>
287 <xsd:attribute name="revision" type="xsd:token"/>
288 <xsd:attribute name="manufacturer" type="xsd:token"/>
289 <xsd:attribute name="product" type="xsd:token"/>
290 <xsd:attribute name="serialNumber" type="xsd:token"/>
291 <xsd:attribute name="port" type="xsd:token"/>
292 <xsd:attribute name="remote" type="xsd:token"/>
293 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
294</xsd:complexType>
295
296<xsd:complexType name="THostUSBDeviceFilter">
297 <xsd:complexContent>
298 <xsd:extension base="TUSBDeviceFilter">
299 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
300 </xsd:extension>
301 </xsd:complexContent>
302</xsd:complexType>
303
304<xsd:complexType name="TSystemProperties">
305 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
306 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
307 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
308 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
309 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
310 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
311</xsd:complexType>
312
313<xsd:complexType name="TExtraData">
314 <xsd:sequence>
315 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
316 <xsd:complexType>
317 <xsd:attribute name="name" type="xsd:token" use="required"/>
318 <xsd:attribute name="value" type="xsd:string" use="required"/>
319 </xsd:complexType>
320 </xsd:element>
321 </xsd:sequence>
322</xsd:complexType>
323
324<xsd:complexType name="TGlobal">
325 <xsd:all>
326 <xsd:element name="MachineRegistry">
327 <xsd:complexType>
328 <xsd:sequence>
329 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
330 <xsd:complexType>
331 <xsd:attribute name="src" type="TLocalFile" use="required"/>
332 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
333 </xsd:complexType>
334 </xsd:element>
335 </xsd:sequence>
336 </xsd:complexType>
337 </xsd:element>
338 <xsd:element name="MediaRegistry">
339 <xsd:complexType>
340 <xsd:all>
341 <xsd:element name="HardDisks" minOccurs="0">
342 <xsd:complexType>
343 <xsd:sequence>
344 <xsd:element name="HardDisk" type="THardDisk2" minOccurs="0" maxOccurs="unbounded"/>
345 </xsd:sequence>
346 </xsd:complexType>
347 </xsd:element>
348 <xsd:element name="DVDImages" minOccurs="0">
349 <xsd:complexType>
350 <xsd:sequence>
351 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
352 </xsd:sequence>
353 </xsd:complexType>
354 </xsd:element>
355 <xsd:element name="FloppyImages" minOccurs="0">
356 <xsd:complexType>
357 <xsd:sequence>
358 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
359 </xsd:sequence>
360 </xsd:complexType>
361 </xsd:element>
362 </xsd:all>
363 </xsd:complexType>
364 </xsd:element>
365 <xsd:element name="USBDeviceFilters">
366 <xsd:complexType>
367 <xsd:sequence>
368 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
369 minOccurs="0" maxOccurs="unbounded"/>
370 </xsd:sequence>
371 </xsd:complexType>
372 </xsd:element>
373 <xsd:element name="SystemProperties" type="TSystemProperties"/>
374 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
375 </xsd:all>
376</xsd:complexType>
377
378<xsd:complexType name="THWVirtExType">
379 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
380</xsd:complexType>
381
382<xsd:complexType name="THWVirtExNestedPagingType">
383 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
384</xsd:complexType>
385
386<xsd:complexType name="THWVirtExVPIDType">
387 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
388</xsd:complexType>
389
390<xsd:complexType name="TPAEType">
391 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
392</xsd:complexType>
393
394<xsd:complexType name="TCPUCount">
395 <xsd:attribute name="count">
396 <xsd:simpleType>
397 <xsd:restriction base="xsd:unsignedInt">
398 <xsd:minInclusive value="1"/>
399 <xsd:maxInclusive value="255"/>
400 </xsd:restriction>
401 </xsd:simpleType>
402 </xsd:attribute>
403</xsd:complexType>
404
405<xsd:complexType name="TCPU">
406 <xsd:sequence>
407 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
408 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
409 <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
410 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
411 <xsd:element name="CPUCount" type="TCPUCount" minOccurs="0"/>
412 </xsd:sequence>
413</xsd:complexType>
414
415<xsd:complexType name="TBoot">
416 <xsd:sequence>
417 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
418 <xsd:complexType>
419 <xsd:attribute name="position" use="required">
420 <xsd:simpleType>
421 <xsd:restriction base="xsd:unsignedInt">
422 <xsd:minInclusive value="1"/>
423 <xsd:maxInclusive value="4"/>
424 </xsd:restriction>
425 </xsd:simpleType>
426 </xsd:attribute>
427 <xsd:attribute name="device" type="TDeviceType" use="required"/>
428 </xsd:complexType>
429 </xsd:element>
430 </xsd:sequence>
431</xsd:complexType>
432
433<xsd:complexType name="TDisplay">
434 <xsd:attribute name="VRAMSize" use="required">
435 <xsd:simpleType>
436 <xsd:restriction base="xsd:unsignedInt">
437 <xsd:minInclusive value="1"/>
438 <xsd:maxInclusive value="128"/>
439 </xsd:restriction>
440 </xsd:simpleType>
441 </xsd:attribute>
442 <xsd:attribute name="MonitorCount" default="1">
443 <xsd:simpleType>
444 <xsd:restriction base="xsd:unsignedInt">
445 <xsd:maxInclusive value="8"/>
446 </xsd:restriction>
447 </xsd:simpleType>
448 </xsd:attribute>
449 <xsd:attribute name="Accelerate3D" type="xsd:boolean" default="false"/>
450</xsd:complexType>
451
452<xsd:complexType name="TRemoteDisplay">
453 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
454 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
455 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
456 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
457 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
458 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
459 <xsd:attribute name="reuseSingleConnection" type="xsd:boolean" default="false"/>
460</xsd:complexType>
461
462<xsd:complexType name="TBIOS">
463 <xsd:all>
464 <xsd:element name="ACPI">
465 <xsd:complexType>
466 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
467 </xsd:complexType>
468 </xsd:element>
469 <xsd:element name="IOAPIC" minOccurs="0">
470 <xsd:complexType>
471 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
472 </xsd:complexType>
473 </xsd:element>
474 <xsd:element name="Logo" minOccurs="0">
475 <xsd:complexType>
476 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
477 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
478 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
479 <xsd:attribute name="imagePath" type="TLocalFile"/>
480 </xsd:complexType>
481 </xsd:element>
482 <xsd:element name="BootMenu" minOccurs="0">
483 <xsd:complexType>
484 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
485 </xsd:complexType>
486 </xsd:element>
487 <xsd:element name="TimeOffset" minOccurs="0">
488 <xsd:complexType>
489 <xsd:attribute name="value" type="xsd:integer" default="0"/>
490 </xsd:complexType>
491 </xsd:element>
492 <xsd:element name="PXEDebug" minOccurs="0">
493 <xsd:complexType>
494 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
495 </xsd:complexType>
496 </xsd:element>
497 <xsd:element name="IDEController" minOccurs="0">
498 <xsd:complexType>
499 <xsd:attribute name="type" use="required" type="TIDEControllerType"/>
500 </xsd:complexType>
501 </xsd:element>
502 </xsd:all>
503</xsd:complexType>
504
505<xsd:complexType name="THardDiskAttachment">
506 <xsd:attribute name="hardDisk" type="TNonNullUUID" use="required"/>
507 <xsd:attribute name="bus" use="required">
508 <xsd:simpleType>
509 <xsd:restriction base="xsd:token">
510 <xsd:enumeration value="IDE"/>
511 <xsd:enumeration value="SATA"/>
512 </xsd:restriction>
513 </xsd:simpleType>
514 </xsd:attribute>
515 <xsd:attribute name="channel" type="xsd:unsignedInt" use="required"/>
516 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
517</xsd:complexType>
518
519<xsd:complexType name="THardDiskAttachments">
520 <xsd:sequence>
521 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
522 minOccurs="0" maxOccurs="unbounded"/>
523 </xsd:sequence>
524</xsd:complexType>
525
526<xsd:complexType name="TDVDDrive">
527 <xsd:choice minOccurs="0">
528 <xsd:element name="Image" type="TImageRef"/>
529 <xsd:element name="HostDrive" type="THostDrive"/>
530 </xsd:choice>
531 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
532</xsd:complexType>
533
534<xsd:complexType name="TFloppyDrive">
535 <xsd:choice minOccurs="0">
536 <xsd:element name="Image" type="TImageRef"/>
537 <xsd:element name="HostDrive" type="THostDrive"/>
538 </xsd:choice>
539 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
540</xsd:complexType>
541
542<xsd:complexType name="TUSBController">
543 <xsd:sequence>
544 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
545 minOccurs="0" maxOccurs="unbounded"/>
546 </xsd:sequence>
547 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
548 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
549</xsd:complexType>
550
551<xsd:complexType name="TAudioAdapterBase">
552 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
553 <xsd:attribute name="controller" default="AC97">
554 <xsd:simpleType>
555 <xsd:restriction base="xsd:token">
556 <xsd:enumeration value="AC97"/>
557 <xsd:enumeration value="SB16"/>
558 </xsd:restriction>
559 </xsd:simpleType>
560 </xsd:attribute>
561</xsd:complexType>
562
563<xsd:complexType name="TNetworkAdapter">
564 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
565 <xsd:attribute name="slot" use="required">
566 <xsd:simpleType>
567 <xsd:restriction base="xsd:unsignedInt">
568 <xsd:minInclusive value="0"/>
569 <xsd:maxExclusive value="4"/>
570 </xsd:restriction>
571 </xsd:simpleType>
572 </xsd:attribute>
573 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
574 <xsd:attribute name="MACAddress">
575 <xsd:simpleType>
576 <xsd:restriction base="xsd:hexBinary">
577 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
578 </xsd:restriction>
579 </xsd:simpleType>
580 </xsd:attribute>
581 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
582 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
583 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
584 <xsd:attribute name="tracefile" type="xsd:string"/>
585</xsd:complexType>
586
587<xsd:complexType name="TUARTPort">
588 <xsd:attribute name="slot" use="required">
589 <xsd:simpleType>
590 <xsd:restriction base="xsd:unsignedInt">
591 <xsd:minInclusive value="0"/>
592 <xsd:maxExclusive value="2"/>
593 </xsd:restriction>
594 </xsd:simpleType>
595 </xsd:attribute>
596 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
597 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
598 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
599 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
600 <xsd:attribute name="path" type="TLocalFile"/>
601 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
602</xsd:complexType>
603
604<xsd:complexType name="TUART">
605 <xsd:sequence>
606 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
607 <xsd:complexType>
608 <xsd:complexContent>
609 <xsd:extension base="TUARTPort">
610 </xsd:extension>
611 </xsd:complexContent>
612 </xsd:complexType>
613 </xsd:element>
614 </xsd:sequence>
615</xsd:complexType>
616
617<xsd:complexType name="TLPTPort">
618 <xsd:attribute name="slot" use="required">
619 <xsd:simpleType>
620 <xsd:restriction base="xsd:unsignedInt">
621 <xsd:minInclusive value="0"/>
622 <xsd:maxExclusive value="2"/>
623 </xsd:restriction>
624 </xsd:simpleType>
625 </xsd:attribute>
626 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
627 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
628 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
629 <xsd:attribute name="path" type="TLocalFile"/>
630</xsd:complexType>
631
632<xsd:complexType name="TLPT">
633 <xsd:sequence>
634 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
635 <xsd:complexType>
636 <xsd:complexContent>
637 <xsd:extension base="TLPTPort">
638 </xsd:extension>
639 </xsd:complexContent>
640 </xsd:complexType>
641 </xsd:element>
642 </xsd:sequence>
643</xsd:complexType>
644
645<xsd:complexType name="TSharedFolder">
646 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
647 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
648 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
649</xsd:complexType>
650
651<xsd:complexType name="TSharedFolders">
652 <xsd:sequence>
653 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
654 </xsd:sequence>
655</xsd:complexType>
656
657<xsd:complexType name="TClipboard">
658 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
659</xsd:complexType>
660
661<xsd:complexType name="TGuest">
662 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
663 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
664</xsd:complexType>
665
666<xsd:complexType name="TSATAController">
667 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
668 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" default="0"/>
669 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" default="1"/>
670 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" default="2"/>
671 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" default="3"/>
672 <xsd:attribute name="PortCount" type="xsd:unsignedInt" default="30"/>
673</xsd:complexType>
674
675<xsd:complexType name="TGuestProperty">
676 <xsd:attribute name="name" type="xsd:string" use="required"/>
677 <xsd:attribute name="value" type="xsd:string" use="required"/>
678 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
679 <xsd:attribute name="flags" type="xsd:string" default=""/>
680</xsd:complexType>
681
682<xsd:complexType name="TGuestProperties">
683 <xsd:sequence>
684 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
685 </xsd:sequence>
686 <xsd:attribute name="notificationPatterns" type="xsd:string" default=""/>
687</xsd:complexType>
688
689<xsd:complexType name="THardware">
690 <xsd:all>
691 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
692 <xsd:element name="Memory" type="TMemory"/>
693 <xsd:element name="Boot" type="TBoot">
694 <xsd:unique name="THardware-Boot-Order">
695 <xsd:selector xpath="vb:Order"/>
696 <xsd:field xpath="@position"/>
697 </xsd:unique>
698 </xsd:element>
699 <xsd:element name="Display" type="TDisplay"/>
700 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
701 <xsd:element name="BIOS" type="TBIOS"/>
702 <xsd:element name="DVDDrive" type="TDVDDrive"/>
703 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
704 <xsd:element name="USBController" type="TUSBController"/>
705 <xsd:element name="SATAController" type="TSATAController"/>
706 <xsd:element name="Network" type="TNetwork">
707 <xsd:unique name="THardware-Network-Adapter">
708 <xsd:selector xpath="vb:Adapter"/>
709 <xsd:field xpath="@slot"/>
710 </xsd:unique>
711 </xsd:element>
712 <xsd:element name="UART" type="TUART">
713 <xsd:unique name="THardware-UART-Port">
714 <xsd:selector xpath="vb:Port"/>
715 <xsd:field xpath="@slot"/>
716 </xsd:unique>
717 </xsd:element>
718 <xsd:element name="LPT" type="TLPT">
719 <xsd:unique name="THardware-LPT-Port">
720 <xsd:selector xpath="vb:Port"/>
721 <xsd:field xpath="@slot"/>
722 </xsd:unique>
723 </xsd:element>
724 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
725 <xsd:element name="SharedFolders" type="TSharedFolders">
726 <xsd:unique name="THardware-SharedFolders-SharedFolder">
727 <xsd:selector xpath="vb:SharedFolder"/>
728 <xsd:field xpath="@name"/>
729 </xsd:unique>
730 </xsd:element>
731 <xsd:element name="Clipboard" type="TClipboard"/>
732 <xsd:element name="Guest" type="TGuest"/>
733 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
734 <xsd:unique name="THardware-GuestProperties-GuestProperty">
735 <xsd:selector xpath="vb:GuestProperty"/>
736 <xsd:field xpath="@name"/>
737 </xsd:unique>
738 </xsd:element>
739 </xsd:all>
740</xsd:complexType>
741
742<xsd:complexType name="TMachine">
743 <xsd:all>
744 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
745 <xsd:element name="Hardware" type="THardware"/>
746 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
747 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
748 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
749 </xsd:all>
750 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
751 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
752 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
753 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
754 <xsd:attribute name="stateFile" type="TLocalFile"/>
755 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
756 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
757 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
758 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
759 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
760</xsd:complexType>
761
762<xsd:complexType name="TSnapshot">
763 <xsd:all>
764 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
765 <xsd:element name="Hardware" type="THardware"/>
766 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
767 <xsd:element name="Snapshots" minOccurs="0">
768 <xsd:complexType>
769 <xsd:sequence>
770 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
771 </xsd:sequence>
772 </xsd:complexType>
773 </xsd:element>
774 </xsd:all>
775 <xsd:attribute name="name" type="xsd:token" use="required"/>
776 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
777 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
778 <xsd:attribute name="stateFile" type="TLocalFile"/>
779</xsd:complexType>
780
781<xsd:complexType name="TVirtualBox" abstract="true">
782 <xsd:choice>
783 <xsd:element name="Global" type="TGlobal"/>
784 <xsd:element name="Machine" type="TMachine">
785 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
786 <xsd:key name="snapshot">
787 <xsd:selector xpath=".//vb:Snapshot"/>
788 <xsd:field xpath="@uuid"/>
789 </xsd:key>
790 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
791 <xsd:selector xpath="."/>
792 <xsd:field xpath="@currentSnapshot"/>
793 </xsd:keyref>
794 </xsd:element>
795 </xsd:choice>
796</xsd:complexType>
797
798</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