VirtualBox

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

Last change on this file since 5361 was 5361, checked in by vboxsync, 17 years ago

Added option to emulate PIIX4 IDE controller. Defaults to PIIX4 for new VMs
and to PIIX3 when no setting is present in XML.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 26.2 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 * innotek VirtualBox Settings Schema
7 * Common definitions
8
9 Copyright (C) 2004-2007 innotek GmbH
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 as published by the Free Software Foundation,
15 in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
16 distribution. VirtualBox OSE is distributed in the hope that it will
17 be useful, but WITHOUT ANY WARRANTY of any kind.
18-->
19
20<xsd:schema
21 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
22 xmlns="http://www.innotek.de/VirtualBox-settings"
23 xmlns:vb="http://www.innotek.de/VirtualBox-settings"
24 targetNamespace="http://www.innotek.de/VirtualBox-settings"
25 elementFormDefault="qualified"
26>
27
28<xsd:annotation>
29 <xsd:documentation xml:lang="en">
30 innotek VirtualBox Settings Schema (common definitions).
31 Copyright (c) 2004-2007 innotek GmbH.
32 </xsd:documentation>
33</xsd:annotation>
34
35<!--
36// Simple types
37/////////////////////////////////////////////////////////////////////////
38-->
39
40<xsd:simpleType name="TUUID">
41 <xsd:restriction base="xsd:token">
42 <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}\}"/>
43 </xsd:restriction>
44</xsd:simpleType>
45
46<xsd:simpleType name="TNonNullUUID">
47 <xsd:restriction base="TUUID">
48 <xsd:pattern value=".*[1-9A-Fa-f]+.*"/>
49 </xsd:restriction>
50</xsd:simpleType>
51
52<xsd:simpleType name="TUInt8">
53 <xsd:union>
54 <xsd:simpleType>
55 <xsd:restriction base="xsd:unsignedByte">
56 </xsd:restriction>
57 </xsd:simpleType>
58 <xsd:simpleType>
59 <xsd:restriction base="xsd:string">
60 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,2}"/>
61 </xsd:restriction>
62 </xsd:simpleType>
63 </xsd:union>
64</xsd:simpleType>
65
66<xsd:simpleType name="TUInt16">
67 <xsd:union>
68 <xsd:simpleType>
69 <xsd:restriction base="xsd:unsignedShort">
70 </xsd:restriction>
71 </xsd:simpleType>
72 <xsd:simpleType>
73 <xsd:restriction base="xsd:string">
74 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,4}"/>
75 </xsd:restriction>
76 </xsd:simpleType>
77 </xsd:union>
78</xsd:simpleType>
79
80<xsd:simpleType name="TUInt64Hex">
81 <xsd:restriction base="xsd:string">
82 <xsd:pattern value="0x[A-Fa-f0-9]{1,16}"/>
83 </xsd:restriction>
84</xsd:simpleType>
85
86<xsd:simpleType name="TLocalFile">
87 <xsd:restriction base="xsd:string">
88 <xsd:pattern value=".+"/>
89 </xsd:restriction>
90</xsd:simpleType>
91
92<xsd:simpleType name="TDiskType">
93 <xsd:restriction base="xsd:token">
94 <xsd:enumeration value="HD"/>
95 <xsd:enumeration value="DVD"/>
96 <xsd:enumeration value="FD"/>
97 </xsd:restriction>
98</xsd:simpleType>
99
100<xsd:simpleType name="TDeviceType">
101 <xsd:restriction base="xsd:token">
102 <xsd:enumeration value="None"/>
103 <xsd:enumeration value="Floppy"/>
104 <xsd:enumeration value="DVD"/>
105 <xsd:enumeration value="HardDisk"/>
106 <xsd:enumeration value="Network"/>
107 </xsd:restriction>
108</xsd:simpleType>
109
110<xsd:simpleType name="TUSBDeviceFilterAction">
111 <xsd:restriction base="xsd:token">
112 <xsd:enumeration value="Ignore"/>
113 <xsd:enumeration value="Hold"/>
114 </xsd:restriction>
115</xsd:simpleType>
116
117<xsd:simpleType name="TNonEmptyString">
118 <xsd:restriction base="xsd:string">
119 <xsd:pattern value=".+"/>
120 </xsd:restriction>
121</xsd:simpleType>
122
123<xsd:simpleType name="TPresentDateTimeUTC">
124 <xsd:restriction base="xsd:dateTime">
125 <xsd:minInclusive value="1900-01-01T00:00:00Z"/>
126 <xsd:maxInclusive value="199999999-12-31T23:59:59Z"/>
127 <xsd:pattern value=".+-.+-.+T.+:.+:[0-9]{2}Z"/>
128 </xsd:restriction>
129</xsd:simpleType>
130
131<xsd:simpleType name="TGuestOSType">
132 <xsd:restriction base="xsd:string">
133 <xsd:enumeration value="unknown"/>
134 <xsd:enumeration value="dos"/>
135 <xsd:enumeration value="win31"/>
136 <xsd:enumeration value="win95"/>
137 <xsd:enumeration value="win98"/>
138 <xsd:enumeration value="winme"/>
139 <xsd:enumeration value="winnt4"/>
140 <xsd:enumeration value="win2k"/>
141 <xsd:enumeration value="winxp"/>
142 <xsd:enumeration value="win2k3"/>
143 <xsd:enumeration value="winvista"/>
144 <xsd:enumeration value="os2warp3"/>
145 <xsd:enumeration value="os2warp4"/>
146 <xsd:enumeration value="os2warp45"/>
147 <xsd:enumeration value="linux22"/>
148 <xsd:enumeration value="linux24"/>
149 <xsd:enumeration value="linux26"/>
150 <xsd:enumeration value="freebsd"/>
151 <xsd:enumeration value="openbsd"/>
152 <xsd:enumeration value="netbsd"/>
153 <xsd:enumeration value="netware"/>
154 <xsd:enumeration value="solaris"/>
155 <xsd:enumeration value="l4"/>
156 </xsd:restriction>
157</xsd:simpleType>
158
159<!--- @todo (dmik) capitalize enum values on next format change! -->
160<!--- @todo (dmik) change "null" to None" -->
161<xsd:simpleType name="TVRDPAuthType">
162 <xsd:restriction base="xsd:string">
163 <xsd:enumeration value="null"/>
164 <xsd:enumeration value="guest"/>
165 <xsd:enumeration value="external"/>
166 </xsd:restriction>
167</xsd:simpleType>
168
169<xsd:simpleType name="TNetworkAdapterType">
170 <xsd:restriction base="xsd:string">
171 <xsd:enumeration value="Am79C970A"/>
172 <xsd:enumeration value="Am79C973"/>
173 </xsd:restriction>
174</xsd:simpleType>
175
176<xsd:simpleType name="TTriStateBoolType">
177 <xsd:restriction base="xsd:string">
178 <xsd:enumeration value="false"/>
179 <xsd:enumeration value="true"/>
180 <xsd:enumeration value="default"/>
181 </xsd:restriction>
182</xsd:simpleType>
183
184<!--- @todo (dmik) capitalize enum values on next format change! -->
185<xsd:simpleType name="TBIOSBootMenuModeType">
186 <xsd:restriction base="xsd:string">
187 <xsd:enumeration value="disabled"/>
188 <xsd:enumeration value="menuonly"/>
189 <xsd:enumeration value="messageandmenu"/>
190 </xsd:restriction>
191</xsd:simpleType>
192
193<xsd:simpleType name="TIDEControllerType">
194 <xsd:restriction base="xsd:string">
195 <xsd:enumeration value="PIIX3"/>
196 <xsd:enumeration value="PIIX4"/>
197 </xsd:restriction>
198</xsd:simpleType>
199
200<xsd:simpleType name="TClipboardMode">
201 <xsd:restriction base="xsd:string">
202 <xsd:enumeration value="Disabled"/>
203 <xsd:enumeration value="HostToGuest"/>
204 <xsd:enumeration value="GuestToHost"/>
205 <xsd:enumeration value="Bidirectional"/>
206 </xsd:restriction>
207</xsd:simpleType>
208
209<xsd:simpleType name="TPortMode">
210 <xsd:restriction base="xsd:string">
211 <xsd:enumeration value="Disconnected"/>
212 <xsd:enumeration value="HostPipe"/>
213 <xsd:enumeration value="HostDevice"/>
214 </xsd:restriction>
215</xsd:simpleType>
216
217<!--
218// Complex types
219/////////////////////////////////////////////////////////////////////////
220-->
221
222<xsd:complexType name="TImage">
223 <xsd:attribute name="src" type="TLocalFile" use="required"/>
224 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
225</xsd:complexType>
226
227<xsd:complexType name="TVirtualDiskImage">
228 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
229</xsd:complexType>
230
231<xsd:complexType name="TDiffHardDisk">
232 <xsd:sequence>
233 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
234 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
235 </xsd:sequence>
236 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
237</xsd:complexType>
238
239<xsd:complexType name="THardDisk">
240 <xsd:sequence>
241 <xsd:choice>
242 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
243 <xsd:element name="ISCSIHardDisk">
244 <xsd:complexType>
245 <xsd:attribute name="server" type="xsd:token" use="required"/>
246 <xsd:attribute name="port" type="xsd:unsignedShort" default="0"/>
247 <xsd:attribute name="target" type="xsd:token" use="required"/>
248 <xsd:attribute name="lun" type="TUInt64Hex" default="0x0"/>
249 <xsd:attribute name="userName" type="xsd:token"/>
250 <xsd:attribute name="password" type="xsd:token"/>
251 </xsd:complexType>
252 </xsd:element>
253 <xsd:element name="VMDKImage">
254 <xsd:complexType>
255 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
256 </xsd:complexType>
257 </xsd:element>
258 <xsd:element name="PhysicalVolume">
259 <xsd:complexType>
260 <xsd:attribute name="path" type="TLocalFile" use="required"/>
261 </xsd:complexType>
262 </xsd:element>
263 <xsd:element name="CustomHardDisk">
264 <xsd:complexType>
265 <xsd:attribute name="location" type="TLocalFile" use="required"/>
266 <xsd:attribute name="format" type="xsd:string" use="required"/>
267 </xsd:complexType>
268 </xsd:element>
269 </xsd:choice>
270 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
271 </xsd:sequence>
272 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
273 <xsd:attribute name="type" use="required">
274 <xsd:simpleType>
275 <xsd:restriction base="xsd:string">
276 <xsd:enumeration value="normal"/>
277 <xsd:enumeration value="immutable"/>
278 <xsd:enumeration value="writethrough"/>
279 </xsd:restriction>
280 </xsd:simpleType>
281 </xsd:attribute>
282</xsd:complexType>
283
284<xsd:complexType name="TImageRef">
285 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
286</xsd:complexType>
287
288<xsd:complexType name="THostDrive">
289 <xsd:attribute name="src" type="TLocalFile" use="required"/>
290</xsd:complexType>
291
292<xsd:complexType name="TUSBDeviceFilter">
293 <!--- @todo (dmik) make all attr names likeThis on next format change! -->
294 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
295 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
296 <xsd:attribute name="vendorid" type="xsd:token"/>
297 <xsd:attribute name="productid" type="xsd:token"/>
298 <xsd:attribute name="revision" type="xsd:token"/>
299 <xsd:attribute name="manufacturer" type="xsd:token"/>
300 <xsd:attribute name="product" type="xsd:token"/>
301 <xsd:attribute name="serialnumber" type="xsd:token"/>
302 <xsd:attribute name="port" type="xsd:token"/>
303 <xsd:attribute name="remote" type="xsd:token"/>
304</xsd:complexType>
305
306<xsd:complexType name="THostUSBDeviceFilter">
307 <xsd:complexContent>
308 <xsd:extension base="TUSBDeviceFilter">
309 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
310 </xsd:extension>
311 </xsd:complexContent>
312</xsd:complexType>
313
314<xsd:complexType name="TSystemProperties">
315 <xsd:attribute name="defaultVDIFolder" type="TLocalFile"/>
316 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
317 <!--- @todo (dmik) remove defaultSavedStateFolder on next format change! -->
318 <xsd:attribute name="defaultSavedStateFolder" type="TLocalFile"/>
319 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
320 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
321 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
322</xsd:complexType>
323
324<xsd:complexType name="TExtraData">
325 <xsd:sequence>
326 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
327 <xsd:complexType>
328 <xsd:attribute name="name" type="xsd:token" use="required"/>
329 <xsd:attribute name="value" type="xsd:string" use="required"/>
330 </xsd:complexType>
331 </xsd:element>
332 </xsd:sequence>
333</xsd:complexType>
334
335<xsd:complexType name="TGlobal">
336 <xsd:all>
337 <xsd:element name="MachineRegistry">
338 <xsd:complexType>
339 <xsd:sequence>
340 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
341 <xsd:complexType>
342 <xsd:attribute name="src" type="TLocalFile" use="required"/>
343 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
344 </xsd:complexType>
345 </xsd:element>
346 </xsd:sequence>
347 </xsd:complexType>
348 </xsd:element>
349 <xsd:element name="DiskRegistry">
350 <xsd:complexType>
351 <xsd:all>
352 <xsd:element name="HardDisks" minOccurs="0">
353 <xsd:complexType>
354 <xsd:sequence>
355 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
356 </xsd:sequence>
357 </xsd:complexType>
358 </xsd:element>
359 <xsd:element name="DVDImages" minOccurs="0">
360 <xsd:complexType>
361 <xsd:sequence>
362 <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
363 </xsd:sequence>
364 </xsd:complexType>
365 </xsd:element>
366 <xsd:element name="FloppyImages" minOccurs="0">
367 <xsd:complexType>
368 <xsd:sequence>
369 <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
370 </xsd:sequence>
371 </xsd:complexType>
372 </xsd:element>
373 </xsd:all>
374 </xsd:complexType>
375 </xsd:element>
376 <xsd:element name="USBDeviceFilters">
377 <xsd:complexType>
378 <xsd:sequence>
379 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
380 minOccurs="0" maxOccurs="unbounded"/>
381 </xsd:sequence>
382 </xsd:complexType>
383 </xsd:element>
384 <xsd:element name="SystemProperties" type="TSystemProperties"/>
385 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
386 </xsd:all>
387</xsd:complexType>
388
389<xsd:complexType name="THWVirtExType">
390 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
391</xsd:complexType>
392
393<xsd:complexType name="TCPU">
394 <xsd:sequence>
395 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
396 </xsd:sequence>
397</xsd:complexType>
398
399<xsd:complexType name="TBoot">
400 <xsd:sequence>
401 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
402 <xsd:complexType>
403 <xsd:attribute name="position" use="required">
404 <xsd:simpleType>
405 <xsd:restriction base="xsd:unsignedInt">
406 <xsd:minInclusive value="1"/>
407 <xsd:maxInclusive value="4"/>
408 </xsd:restriction>
409 </xsd:simpleType>
410 </xsd:attribute>
411 <xsd:attribute name="device" type="TDeviceType" use="required"/>
412 </xsd:complexType>
413 </xsd:element>
414 </xsd:sequence>
415</xsd:complexType>
416
417<xsd:complexType name="TDisplay">
418 <xsd:attribute name="VRAMSize" use="required">
419 <xsd:simpleType>
420 <xsd:restriction base="xsd:unsignedInt">
421 <xsd:minInclusive value="1"/>
422 <xsd:maxInclusive value="128"/>
423 </xsd:restriction>
424 </xsd:simpleType>
425 </xsd:attribute>
426 <xsd:attribute name="MonitorCount" default="1">
427 <xsd:simpleType>
428 <xsd:restriction base="xsd:unsignedInt">
429 <xsd:maxInclusive value="8"/>
430 </xsd:restriction>
431 </xsd:simpleType>
432 </xsd:attribute>
433</xsd:complexType>
434
435<xsd:complexType name="TRemoteDisplay">
436 <xsd:attribute name="enabled" type="xsd:boolean"/>
437 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
438 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
439 <xsd:attribute name="authType" type="TVRDPAuthType" default="null"/>
440 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
441 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
442</xsd:complexType>
443
444<xsd:complexType name="TBIOS">
445 <xsd:all>
446 <xsd:element name="ACPI">
447 <xsd:complexType>
448 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
449 </xsd:complexType>
450 </xsd:element>
451 <xsd:element name="IOAPIC" minOccurs="0">
452 <xsd:complexType>
453 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
454 </xsd:complexType>
455 </xsd:element>
456 <xsd:element name="Logo" minOccurs="0">
457 <xsd:complexType>
458 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
459 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
460 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
461 <xsd:attribute name="imagePath" type="TLocalFile"/>
462 </xsd:complexType>
463 </xsd:element>
464 <xsd:element name="BootMenu" minOccurs="0">
465 <xsd:complexType>
466 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="messageandmenu"/>
467 </xsd:complexType>
468 </xsd:element>
469 <xsd:element name="TimeOffset" minOccurs="0">
470 <xsd:complexType>
471 <xsd:attribute name="value" type="xsd:integer" default="0"/>
472 </xsd:complexType>
473 </xsd:element>
474 <xsd:element name="PXEDebug" minOccurs="0">
475 <xsd:complexType>
476 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
477 </xsd:complexType>
478 </xsd:element>
479 <xsd:element name="IDEController" minOccurs="0">
480 <xsd:complexType>
481 <xsd:attribute name="type" use="required" type="TIDEControllerType"/>
482 </xsd:complexType>
483 </xsd:element>
484 </xsd:all>
485</xsd:complexType>
486
487<xsd:complexType name="THardDiskAttachment">
488 <xsd:attribute name="hardDisk" type="TNonNullUUID"/>
489 <xsd:attribute name="bus" use="required">
490 <xsd:simpleType>
491 <xsd:restriction base="xsd:token">
492 <xsd:enumeration value="ide0"/>
493 <xsd:enumeration value="ide1"/>
494 </xsd:restriction>
495 </xsd:simpleType>
496 </xsd:attribute>
497 <xsd:attribute name="device" use="required">
498 <xsd:simpleType>
499 <xsd:restriction base="xsd:token">
500 <xsd:enumeration value="master"/>
501 <xsd:enumeration value="slave"/>
502 </xsd:restriction>
503 </xsd:simpleType>
504 </xsd:attribute>
505</xsd:complexType>
506
507<xsd:complexType name="THardDiskAttachments">
508 <xsd:sequence>
509 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
510 minOccurs="0" maxOccurs="unbounded"/>
511 </xsd:sequence>
512</xsd:complexType>
513
514<xsd:complexType name="TDVDDrive">
515 <xsd:choice minOccurs="0">
516 <xsd:element name="Image" type="TImageRef"/>
517 <xsd:element name="HostDrive" type="THostDrive"/>
518 </xsd:choice>
519 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
520</xsd:complexType>
521
522<xsd:complexType name="TFloppyDrive">
523 <xsd:choice minOccurs="0">
524 <xsd:element name="Image" type="TImageRef"/>
525 <xsd:element name="HostDrive" type="THostDrive"/>
526 </xsd:choice>
527 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
528</xsd:complexType>
529
530<xsd:complexType name="TUSBController">
531 <xsd:sequence>
532 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
533 minOccurs="0" maxOccurs="unbounded"/>
534 </xsd:sequence>
535 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
536</xsd:complexType>
537
538<xsd:complexType name="TAdapter">
539 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
540 <xsd:attribute name="slot" use="required">
541 <xsd:simpleType>
542 <xsd:restriction base="xsd:unsignedInt">
543 <xsd:minInclusive value="0"/>
544 <xsd:maxExclusive value="4"/>
545 </xsd:restriction>
546 </xsd:simpleType>
547 </xsd:attribute>
548 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
549 <xsd:attribute name="MACAddress">
550 <xsd:simpleType>
551 <xsd:restriction base="xsd:hexBinary">
552 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
553 </xsd:restriction>
554 </xsd:simpleType>
555 </xsd:attribute>
556 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
557 <xsd:attribute name="speed" type="xsd:unsignedInt" default="100000"/>
558 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
559 <xsd:attribute name="tracefile" type="xsd:string"/>
560</xsd:complexType>
561
562<xsd:complexType name="TUartPort">
563 <xsd:attribute name="slot" use="required">
564 <xsd:simpleType>
565 <xsd:restriction base="xsd:unsignedInt">
566 <xsd:minInclusive value="0"/>
567 <xsd:maxExclusive value="2"/>
568 </xsd:restriction>
569 </xsd:simpleType>
570 </xsd:attribute>
571 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
572 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
573 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
574 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
575 <xsd:attribute name="path" type="TLocalFile"/>
576 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
577</xsd:complexType>
578
579<xsd:complexType name="TUart">
580 <xsd:sequence>
581 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
582 <xsd:complexType>
583 <xsd:complexContent>
584 <xsd:extension base="TUartPort">
585 </xsd:extension>
586 </xsd:complexContent>
587 </xsd:complexType>
588 </xsd:element>
589 </xsd:sequence>
590</xsd:complexType>
591
592<xsd:complexType name="TLptPort">
593 <xsd:attribute name="slot" use="required">
594 <xsd:simpleType>
595 <xsd:restriction base="xsd:unsignedInt">
596 <xsd:minInclusive value="0"/>
597 <xsd:maxExclusive value="2"/>
598 </xsd:restriction>
599 </xsd:simpleType>
600 </xsd:attribute>
601 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
602 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
603 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
604 <xsd:attribute name="path" type="TLocalFile"/>
605</xsd:complexType>
606
607<xsd:complexType name="TLpt">
608 <xsd:sequence>
609 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
610 <xsd:complexType>
611 <xsd:complexContent>
612 <xsd:extension base="TLptPort">
613 </xsd:extension>
614 </xsd:complexContent>
615 </xsd:complexType>
616 </xsd:element>
617 </xsd:sequence>
618</xsd:complexType>
619
620<xsd:complexType name="TSharedFolder">
621 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
622 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
623</xsd:complexType>
624
625<xsd:complexType name="TSharedFolders">
626 <xsd:sequence>
627 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
628 </xsd:sequence>
629</xsd:complexType>
630
631<xsd:complexType name="TClipboard">
632 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
633</xsd:complexType>
634
635<xsd:complexType name="TGuest">
636 <xsd:attribute name="MemoryBalloonSize" type="xsd:unsignedInt" default="0"/>
637 <xsd:attribute name="StatisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
638</xsd:complexType>
639
640<xsd:complexType name="THardware">
641 <xsd:all>
642 <xsd:element name="CPU" type="TCPU" minOccurs = "0"/>
643 <xsd:element name="Memory" type="TMemory"/>
644 <xsd:element name="Boot" type="TBoot">
645 <xsd:unique name="THardware-Boot-Order">
646 <xsd:selector xpath="vb:Order"/>
647 <xsd:field xpath="@position"/>
648 </xsd:unique>
649 </xsd:element>
650 <xsd:element name="Display" type="TDisplay"/>
651 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
652 <xsd:element name="BIOS" type="TBIOS"/>
653 <xsd:element name="DVDDrive" type="TDVDDrive"/>
654 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
655 <xsd:element name="USBController" type="TUSBController"/>
656 <xsd:element name="Network" type="TNetwork">
657 <xsd:unique name="THardware-Network-Adapter">
658 <xsd:selector xpath="vb:Adapter"/>
659 <xsd:field xpath="@slot"/>
660 </xsd:unique>
661 </xsd:element>
662 <xsd:element name="Uart" type="TUart" minOccurs="0">
663 <xsd:unique name="THardware-Uart-Port">
664 <xsd:selector xpath="vb:Port"/>
665 <xsd:field xpath="@slot"/>
666 </xsd:unique>
667 </xsd:element>
668 <xsd:element name="Lpt" type="TLpt" minOccurs="0">
669 <xsd:unique name="THardware-Lpt-Port">
670 <xsd:selector xpath="vb:Port"/>
671 <xsd:field xpath="@slot"/>
672 </xsd:unique>
673 </xsd:element>
674 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
675 <!--- @todo (dmik) remove minOccurs="0" from SharedFolders on next format change! -->
676 <xsd:element name="SharedFolders" type="TSharedFolders" minOccurs="0">
677 <xsd:unique name="THardware-SharedFolders-SharedFolder">
678 <xsd:selector xpath="vb:SharedFolder"/>
679 <xsd:field xpath="@name"/>
680 </xsd:unique>
681 </xsd:element>
682 <!--- @todo (dmik) remove minOccurs="0" on next format change! -->
683 <xsd:element name="Clipboard" type="TClipboard" minOccurs="0"/>
684 <!--- @todo (dmik) remove minOccurs="0" on next format change! -->
685 <xsd:element name="Guest" type="TGuest" minOccurs="0"/>
686 </xsd:all>
687</xsd:complexType>
688
689<xsd:complexType name="TMachine">
690 <xsd:all>
691 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
692 <xsd:element name="Hardware" type="THardware"/>
693 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
694 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
695 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
696 </xsd:all>
697 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
698 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
699 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
700 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
701 <xsd:attribute name="stateFile" type="TLocalFile"/>
702 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
703 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
704 <!--- @todo (dmik) make lastStateChange required on next format change! -->
705 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
706 <xsd:attribute name="aborted" type="xsd:boolean"/>
707 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
708</xsd:complexType>
709
710<xsd:complexType name="TSnapshot">
711 <xsd:all>
712 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
713 <xsd:element name="Hardware" type="THardware"/>
714 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
715 <xsd:element name="Snapshots" minOccurs="0">
716 <xsd:complexType>
717 <xsd:sequence>
718 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
719 </xsd:sequence>
720 </xsd:complexType>
721 </xsd:element>
722 </xsd:all>
723 <xsd:attribute name="name" type="xsd:token" use="required"/>
724 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
725 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
726 <xsd:attribute name="stateFile" type="TLocalFile"/>
727</xsd:complexType>
728
729<xsd:complexType name="TVirtualBox" abstract="true">
730 <xsd:choice>
731 <xsd:element name="Global" type="TGlobal"/>
732 <xsd:element name="Machine" type="TMachine">
733 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
734 <xsd:key name="snapshot">
735 <xsd:selector xpath=".//vb:Snapshot"/>
736 <xsd:field xpath="@uuid"/>
737 </xsd:key>
738 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
739 <xsd:selector xpath="."/>
740 <xsd:field xpath="@currentSnapshot"/>
741 </xsd:keyref>
742 </xsd:element>
743 </xsd:choice>
744</xsd:complexType>
745
746</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