VirtualBox

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

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

implemented LogHistoryCount system property (Main+VBoxManage)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 25.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 * 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="TClipboardMode">
194 <xsd:restriction base="xsd:string">
195 <xsd:enumeration value="Disabled"/>
196 <xsd:enumeration value="HostToGuest"/>
197 <xsd:enumeration value="GuestToHost"/>
198 <xsd:enumeration value="Bidirectional"/>
199 </xsd:restriction>
200</xsd:simpleType>
201
202<xsd:simpleType name="TPortMode">
203 <xsd:restriction base="xsd:string">
204 <xsd:enumeration value="Disconnected"/>
205 <xsd:enumeration value="HostPipe"/>
206 <xsd:enumeration value="HostDevice"/>
207 </xsd:restriction>
208</xsd:simpleType>
209
210<!--
211// Complex types
212/////////////////////////////////////////////////////////////////////////
213-->
214
215<xsd:complexType name="TImage">
216 <xsd:attribute name="src" type="TLocalFile" use="required"/>
217 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
218</xsd:complexType>
219
220<xsd:complexType name="TVirtualDiskImage">
221 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
222</xsd:complexType>
223
224<xsd:complexType name="TDiffHardDisk">
225 <xsd:sequence>
226 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
227 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
228 </xsd:sequence>
229 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
230</xsd:complexType>
231
232<xsd:complexType name="THardDisk">
233 <xsd:sequence>
234 <xsd:choice>
235 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
236 <xsd:element name="ISCSIHardDisk">
237 <xsd:complexType>
238 <xsd:attribute name="server" type="xsd:token" use="required"/>
239 <xsd:attribute name="port" type="xsd:unsignedShort" default="0"/>
240 <xsd:attribute name="target" type="xsd:token" use="required"/>
241 <xsd:attribute name="lun" type="TUInt64Hex" default="0x0"/>
242 <xsd:attribute name="userName" type="xsd:token"/>
243 <xsd:attribute name="password" type="xsd:token"/>
244 </xsd:complexType>
245 </xsd:element>
246 <xsd:element name="VMDKImage">
247 <xsd:complexType>
248 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
249 </xsd:complexType>
250 </xsd:element>
251 <xsd:element name="PhysicalVolume">
252 <xsd:complexType>
253 <xsd:attribute name="path" type="TLocalFile" use="required"/>
254 </xsd:complexType>
255 </xsd:element>
256 <xsd:element name="CustomHardDisk">
257 <xsd:complexType>
258 <xsd:attribute name="location" type="TLocalFile" use="required"/>
259 <xsd:attribute name="format" type="xsd:string" use="required"/>
260 </xsd:complexType>
261 </xsd:element>
262 </xsd:choice>
263 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
264 </xsd:sequence>
265 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
266 <xsd:attribute name="type" use="required">
267 <xsd:simpleType>
268 <xsd:restriction base="xsd:string">
269 <xsd:enumeration value="normal"/>
270 <xsd:enumeration value="immutable"/>
271 <xsd:enumeration value="writethrough"/>
272 </xsd:restriction>
273 </xsd:simpleType>
274 </xsd:attribute>
275</xsd:complexType>
276
277<xsd:complexType name="TImageRef">
278 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
279</xsd:complexType>
280
281<xsd:complexType name="THostDrive">
282 <xsd:attribute name="src" type="TLocalFile" use="required"/>
283</xsd:complexType>
284
285<xsd:complexType name="TUSBDeviceFilter">
286 <!--- @todo (dmik) make all attr names likeThis on next format change! -->
287 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
288 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
289 <xsd:attribute name="vendorid" type="xsd:token"/>
290 <xsd:attribute name="productid" type="xsd:token"/>
291 <xsd:attribute name="revision" type="xsd:token"/>
292 <xsd:attribute name="manufacturer" type="xsd:token"/>
293 <xsd:attribute name="product" type="xsd:token"/>
294 <xsd:attribute name="serialnumber" type="xsd:token"/>
295 <xsd:attribute name="port" type="xsd:token"/>
296 <xsd:attribute name="remote" type="xsd:token"/>
297</xsd:complexType>
298
299<xsd:complexType name="THostUSBDeviceFilter">
300 <xsd:complexContent>
301 <xsd:extension base="TUSBDeviceFilter">
302 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
303 </xsd:extension>
304 </xsd:complexContent>
305</xsd:complexType>
306
307<xsd:complexType name="TSystemProperties">
308 <xsd:attribute name="defaultVDIFolder" type="TLocalFile"/>
309 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
310 <!--- @todo (dmik) remove defaultSavedStateFolder on next format change! -->
311 <xsd:attribute name="defaultSavedStateFolder" type="TLocalFile"/>
312 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
313 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
314 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
315</xsd:complexType>
316
317<xsd:complexType name="TExtraData">
318 <xsd:sequence>
319 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
320 <xsd:complexType>
321 <xsd:attribute name="name" type="xsd:token" use="required"/>
322 <xsd:attribute name="value" type="xsd:string" use="required"/>
323 </xsd:complexType>
324 </xsd:element>
325 </xsd:sequence>
326</xsd:complexType>
327
328<xsd:complexType name="TGlobal">
329 <xsd:all>
330 <xsd:element name="MachineRegistry">
331 <xsd:complexType>
332 <xsd:sequence>
333 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
334 <xsd:complexType>
335 <xsd:attribute name="src" type="TLocalFile" use="required"/>
336 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
337 </xsd:complexType>
338 </xsd:element>
339 </xsd:sequence>
340 </xsd:complexType>
341 </xsd:element>
342 <xsd:element name="DiskRegistry">
343 <xsd:complexType>
344 <xsd:all>
345 <xsd:element name="HardDisks" minOccurs="0">
346 <xsd:complexType>
347 <xsd:sequence>
348 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
349 </xsd:sequence>
350 </xsd:complexType>
351 </xsd:element>
352 <xsd:element name="DVDImages" minOccurs="0">
353 <xsd:complexType>
354 <xsd:sequence>
355 <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
356 </xsd:sequence>
357 </xsd:complexType>
358 </xsd:element>
359 <xsd:element name="FloppyImages" 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:all>
367 </xsd:complexType>
368 </xsd:element>
369 <xsd:element name="USBDeviceFilters">
370 <xsd:complexType>
371 <xsd:sequence>
372 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
373 minOccurs="0" maxOccurs="unbounded"/>
374 </xsd:sequence>
375 </xsd:complexType>
376 </xsd:element>
377 <xsd:element name="SystemProperties" type="TSystemProperties"/>
378 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
379 </xsd:all>
380</xsd:complexType>
381
382<xsd:complexType name="THWVirtExType">
383 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
384</xsd:complexType>
385
386<xsd:complexType name="TCPU">
387 <xsd:sequence>
388 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
389 </xsd:sequence>
390</xsd:complexType>
391
392<xsd:complexType name="TBoot">
393 <xsd:sequence>
394 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
395 <xsd:complexType>
396 <xsd:attribute name="position" use="required">
397 <xsd:simpleType>
398 <xsd:restriction base="xsd:unsignedInt">
399 <xsd:minInclusive value="1"/>
400 <xsd:maxInclusive value="4"/>
401 </xsd:restriction>
402 </xsd:simpleType>
403 </xsd:attribute>
404 <xsd:attribute name="device" type="TDeviceType" use="required"/>
405 </xsd:complexType>
406 </xsd:element>
407 </xsd:sequence>
408</xsd:complexType>
409
410<xsd:complexType name="TDisplay">
411 <xsd:attribute name="VRAMSize" use="required">
412 <xsd:simpleType>
413 <xsd:restriction base="xsd:unsignedInt">
414 <xsd:minInclusive value="1"/>
415 <xsd:maxInclusive value="128"/>
416 </xsd:restriction>
417 </xsd:simpleType>
418 </xsd:attribute>
419 <xsd:attribute name="MonitorCount" default="1">
420 <xsd:simpleType>
421 <xsd:restriction base="xsd:unsignedInt">
422 <xsd:maxInclusive value="8"/>
423 </xsd:restriction>
424 </xsd:simpleType>
425 </xsd:attribute>
426</xsd:complexType>
427
428<xsd:complexType name="TRemoteDisplay">
429 <xsd:attribute name="enabled" type="xsd:boolean"/>
430 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
431 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
432 <xsd:attribute name="authType" type="TVRDPAuthType" default="null"/>
433 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
434 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
435</xsd:complexType>
436
437<xsd:complexType name="TBIOS">
438 <xsd:all>
439 <xsd:element name="ACPI">
440 <xsd:complexType>
441 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
442 </xsd:complexType>
443 </xsd:element>
444 <xsd:element name="IOAPIC" minOccurs="0">
445 <xsd:complexType>
446 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
447 </xsd:complexType>
448 </xsd:element>
449 <xsd:element name="Logo" minOccurs="0">
450 <xsd:complexType>
451 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
452 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
453 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
454 <xsd:attribute name="imagePath" type="TLocalFile"/>
455 </xsd:complexType>
456 </xsd:element>
457 <xsd:element name="BootMenu" minOccurs="0">
458 <xsd:complexType>
459 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="messageandmenu"/>
460 </xsd:complexType>
461 </xsd:element>
462 <xsd:element name="TimeOffset" minOccurs="0">
463 <xsd:complexType>
464 <xsd:attribute name="value" type="xsd:integer" default="0"/>
465 </xsd:complexType>
466 </xsd:element>
467 </xsd:all>
468</xsd:complexType>
469
470<xsd:complexType name="THardDiskAttachment">
471 <xsd:attribute name="hardDisk" type="TNonNullUUID"/>
472 <xsd:attribute name="bus" use="required">
473 <xsd:simpleType>
474 <xsd:restriction base="xsd:token">
475 <xsd:enumeration value="ide0"/>
476 <xsd:enumeration value="ide1"/>
477 </xsd:restriction>
478 </xsd:simpleType>
479 </xsd:attribute>
480 <xsd:attribute name="device" use="required">
481 <xsd:simpleType>
482 <xsd:restriction base="xsd:token">
483 <xsd:enumeration value="master"/>
484 <xsd:enumeration value="slave"/>
485 </xsd:restriction>
486 </xsd:simpleType>
487 </xsd:attribute>
488</xsd:complexType>
489
490<xsd:complexType name="THardDiskAttachments">
491 <xsd:sequence>
492 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
493 minOccurs="0" maxOccurs="unbounded"/>
494 </xsd:sequence>
495</xsd:complexType>
496
497<xsd:complexType name="TDVDDrive">
498 <xsd:choice minOccurs="0">
499 <xsd:element name="Image" type="TImageRef"/>
500 <xsd:element name="HostDrive" type="THostDrive"/>
501 </xsd:choice>
502 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
503</xsd:complexType>
504
505<xsd:complexType name="TFloppyDrive">
506 <xsd:choice minOccurs="0">
507 <xsd:element name="Image" type="TImageRef"/>
508 <xsd:element name="HostDrive" type="THostDrive"/>
509 </xsd:choice>
510 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
511</xsd:complexType>
512
513<xsd:complexType name="TUSBController">
514 <xsd:sequence>
515 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
516 minOccurs="0" maxOccurs="unbounded"/>
517 </xsd:sequence>
518 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
519</xsd:complexType>
520
521<xsd:complexType name="TAdapter">
522 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
523 <xsd:attribute name="slot" use="required">
524 <xsd:simpleType>
525 <xsd:restriction base="xsd:unsignedInt">
526 <xsd:minInclusive value="0"/>
527 <xsd:maxExclusive value="4"/>
528 </xsd:restriction>
529 </xsd:simpleType>
530 </xsd:attribute>
531 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
532 <xsd:attribute name="MACAddress">
533 <xsd:simpleType>
534 <xsd:restriction base="xsd:hexBinary">
535 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
536 </xsd:restriction>
537 </xsd:simpleType>
538 </xsd:attribute>
539 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
540 <xsd:attribute name="speed" type="xsd:unsignedInt" default="100000"/>
541 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
542 <xsd:attribute name="tracefile" type="xsd:string"/>
543</xsd:complexType>
544
545<xsd:complexType name="TUartPort">
546 <xsd:attribute name="slot" use="required">
547 <xsd:simpleType>
548 <xsd:restriction base="xsd:unsignedInt">
549 <xsd:minInclusive value="0"/>
550 <xsd:maxExclusive value="2"/>
551 </xsd:restriction>
552 </xsd:simpleType>
553 </xsd:attribute>
554 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
555 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
556 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
557 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
558 <xsd:attribute name="path" type="TLocalFile"/>
559 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
560</xsd:complexType>
561
562<xsd:complexType name="TUart">
563 <xsd:sequence>
564 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
565 <xsd:complexType>
566 <xsd:complexContent>
567 <xsd:extension base="TUartPort">
568 </xsd:extension>
569 </xsd:complexContent>
570 </xsd:complexType>
571 </xsd:element>
572 </xsd:sequence>
573</xsd:complexType>
574
575<xsd:complexType name="TLptPort">
576 <xsd:attribute name="slot" use="required">
577 <xsd:simpleType>
578 <xsd:restriction base="xsd:unsignedInt">
579 <xsd:minInclusive value="0"/>
580 <xsd:maxExclusive value="2"/>
581 </xsd:restriction>
582 </xsd:simpleType>
583 </xsd:attribute>
584 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
585 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
586 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
587 <xsd:attribute name="path" type="TLocalFile"/>
588</xsd:complexType>
589
590<xsd:complexType name="TLpt">
591 <xsd:sequence>
592 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
593 <xsd:complexType>
594 <xsd:complexContent>
595 <xsd:extension base="TLptPort">
596 </xsd:extension>
597 </xsd:complexContent>
598 </xsd:complexType>
599 </xsd:element>
600 </xsd:sequence>
601</xsd:complexType>
602
603<xsd:complexType name="TSharedFolder">
604 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
605 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
606</xsd:complexType>
607
608<xsd:complexType name="TSharedFolders">
609 <xsd:sequence>
610 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
611 </xsd:sequence>
612</xsd:complexType>
613
614<xsd:complexType name="TClipboard">
615 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
616</xsd:complexType>
617
618<xsd:complexType name="TGuest">
619 <xsd:attribute name="MemoryBalloonSize" type="xsd:unsignedInt" default="0"/>
620 <xsd:attribute name="StatisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
621</xsd:complexType>
622
623<xsd:complexType name="THardware">
624 <xsd:all>
625 <xsd:element name="CPU" type="TCPU" minOccurs = "0"/>
626 <xsd:element name="Memory" type="TMemory"/>
627 <xsd:element name="Boot" type="TBoot">
628 <xsd:unique name="THardware-Boot-Order">
629 <xsd:selector xpath="vb:Order"/>
630 <xsd:field xpath="@position"/>
631 </xsd:unique>
632 </xsd:element>
633 <xsd:element name="Display" type="TDisplay"/>
634 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
635 <xsd:element name="BIOS" type="TBIOS"/>
636 <xsd:element name="DVDDrive" type="TDVDDrive"/>
637 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
638 <xsd:element name="USBController" type="TUSBController"/>
639 <xsd:element name="Network" type="TNetwork">
640 <xsd:unique name="THardware-Network-Adapter">
641 <xsd:selector xpath="vb:Adapter"/>
642 <xsd:field xpath="@slot"/>
643 </xsd:unique>
644 </xsd:element>
645 <xsd:element name="Uart" type="TUart" minOccurs="0">
646 <xsd:unique name="THardware-Uart-Port">
647 <xsd:selector xpath="vb:Port"/>
648 <xsd:field xpath="@slot"/>
649 </xsd:unique>
650 </xsd:element>
651 <xsd:element name="Lpt" type="TLpt" minOccurs="0">
652 <xsd:unique name="THardware-Lpt-Port">
653 <xsd:selector xpath="vb:Port"/>
654 <xsd:field xpath="@slot"/>
655 </xsd:unique>
656 </xsd:element>
657 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
658 <!--- @todo (dmik) remove minOccurs="0" from SharedFolders on next format change! -->
659 <xsd:element name="SharedFolders" type="TSharedFolders" minOccurs="0">
660 <xsd:unique name="THardware-SharedFolders-SharedFolder">
661 <xsd:selector xpath="vb:SharedFolder"/>
662 <xsd:field xpath="@name"/>
663 </xsd:unique>
664 </xsd:element>
665 <!--- @todo (dmik) remove minOccurs="0" on next format change! -->
666 <xsd:element name="Clipboard" type="TClipboard" minOccurs="0"/>
667 <!--- @todo (dmik) remove minOccurs="0" on next format change! -->
668 <xsd:element name="Guest" type="TGuest" minOccurs="0"/>
669 </xsd:all>
670</xsd:complexType>
671
672<xsd:complexType name="TMachine">
673 <xsd:all>
674 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
675 <xsd:element name="Hardware" type="THardware"/>
676 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
677 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
678 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
679 </xsd:all>
680 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
681 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
682 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
683 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
684 <xsd:attribute name="stateFile" type="TLocalFile"/>
685 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
686 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
687 <!--- @todo (dmik) make lastStateChange required on next format change! -->
688 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
689 <xsd:attribute name="aborted" type="xsd:boolean"/>
690 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
691</xsd:complexType>
692
693<xsd:complexType name="TSnapshot">
694 <xsd:all>
695 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
696 <xsd:element name="Hardware" type="THardware"/>
697 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
698 <xsd:element name="Snapshots" minOccurs="0">
699 <xsd:complexType>
700 <xsd:sequence>
701 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
702 </xsd:sequence>
703 </xsd:complexType>
704 </xsd:element>
705 </xsd:all>
706 <xsd:attribute name="name" type="xsd:token" use="required"/>
707 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
708 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
709 <xsd:attribute name="stateFile" type="TLocalFile"/>
710</xsd:complexType>
711
712<xsd:complexType name="TVirtualBox" abstract="true">
713 <xsd:choice>
714 <xsd:element name="Global" type="TGlobal"/>
715 <xsd:element name="Machine" type="TMachine">
716 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
717 <xsd:key name="snapshot">
718 <xsd:selector xpath=".//vb:Snapshot"/>
719 <xsd:field xpath="@uuid"/>
720 </xsd:key>
721 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
722 <xsd:selector xpath="."/>
723 <xsd:field xpath="@currentSnapshot"/>
724 </xsd:keyref>
725 </xsd:element>
726 </xsd:choice>
727</xsd:complexType>
728
729</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