VirtualBox

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

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

Added new type of network device 'e1000'. Define VBOX_WITH_E1000 to activate.

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