VirtualBox

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

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

All: license header changes for 2.0 (OSE headers, add Sun GPL/LGPL disclaimer)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.9 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-2007 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-2007 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="TImage">
241 <xsd:attribute name="src" type="TLocalFile" use="required"/>
242 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
243</xsd:complexType>
244
245<xsd:complexType name="TVirtualDiskImage">
246 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
247</xsd:complexType>
248
249<xsd:complexType name="TDiffHardDisk">
250 <xsd:sequence>
251 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
252 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
253 </xsd:sequence>
254 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
255</xsd:complexType>
256
257<xsd:complexType name="THardDisk">
258 <xsd:sequence>
259 <xsd:choice>
260 <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
261 <xsd:element name="ISCSIHardDisk">
262 <xsd:complexType>
263 <xsd:attribute name="server" type="xsd:token" use="required"/>
264 <xsd:attribute name="port" type="xsd:unsignedShort" default="0"/>
265 <xsd:attribute name="target" type="xsd:token" use="required"/>
266 <xsd:attribute name="lun" type="TUInt64Hex" default="0x0"/>
267 <xsd:attribute name="userName" type="xsd:token"/>
268 <xsd:attribute name="password" type="xsd:token"/>
269 </xsd:complexType>
270 </xsd:element>
271 <xsd:element name="VMDKImage">
272 <xsd:complexType>
273 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
274 </xsd:complexType>
275 </xsd:element>
276 <xsd:element name="PhysicalVolume">
277 <xsd:complexType>
278 <xsd:attribute name="path" type="TLocalFile" use="required"/>
279 </xsd:complexType>
280 </xsd:element>
281 <xsd:element name="CustomHardDisk">
282 <xsd:complexType>
283 <xsd:attribute name="location" type="TLocalFile" use="required"/>
284 <xsd:attribute name="format" type="xsd:string" use="required"/>
285 </xsd:complexType>
286 </xsd:element>
287 <xsd:element name="VHDImage">
288 <xsd:complexType>
289 <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
290 </xsd:complexType>
291 </xsd:element>
292 </xsd:choice>
293 <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
294 </xsd:sequence>
295 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
296 <xsd:attribute name="type" use="required">
297 <xsd:simpleType>
298 <xsd:restriction base="xsd:string">
299 <xsd:enumeration value="normal"/>
300 <xsd:enumeration value="immutable"/>
301 <xsd:enumeration value="writethrough"/>
302 </xsd:restriction>
303 </xsd:simpleType>
304 </xsd:attribute>
305</xsd:complexType>
306
307<xsd:complexType name="TImageRef">
308 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
309</xsd:complexType>
310
311<xsd:complexType name="THostDrive">
312 <xsd:attribute name="src" type="TLocalFile" use="required"/>
313</xsd:complexType>
314
315<xsd:complexType name="TUSBDeviceFilter">
316 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
317 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
318 <xsd:attribute name="vendorId" type="xsd:token"/>
319 <xsd:attribute name="productId" type="xsd:token"/>
320 <xsd:attribute name="revision" type="xsd:token"/>
321 <xsd:attribute name="manufacturer" type="xsd:token"/>
322 <xsd:attribute name="product" type="xsd:token"/>
323 <xsd:attribute name="serialNumber" type="xsd:token"/>
324 <xsd:attribute name="port" type="xsd:token"/>
325 <xsd:attribute name="remote" type="xsd:token"/>
326 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
327</xsd:complexType>
328
329<xsd:complexType name="THostUSBDeviceFilter">
330 <xsd:complexContent>
331 <xsd:extension base="TUSBDeviceFilter">
332 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
333 </xsd:extension>
334 </xsd:complexContent>
335</xsd:complexType>
336
337<xsd:complexType name="TSystemProperties">
338 <xsd:attribute name="defaultVDIFolder" type="TLocalFile"/>
339 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
340 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
341 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
342 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
343 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
344</xsd:complexType>
345
346<xsd:complexType name="TExtraData">
347 <xsd:sequence>
348 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
349 <xsd:complexType>
350 <xsd:attribute name="name" type="xsd:token" use="required"/>
351 <xsd:attribute name="value" type="xsd:string" use="required"/>
352 </xsd:complexType>
353 </xsd:element>
354 </xsd:sequence>
355</xsd:complexType>
356
357<xsd:complexType name="TGlobal">
358 <xsd:all>
359 <xsd:element name="MachineRegistry">
360 <xsd:complexType>
361 <xsd:sequence>
362 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
363 <xsd:complexType>
364 <xsd:attribute name="src" type="TLocalFile" use="required"/>
365 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
366 </xsd:complexType>
367 </xsd:element>
368 </xsd:sequence>
369 </xsd:complexType>
370 </xsd:element>
371 <xsd:element name="DiskRegistry">
372 <xsd:complexType>
373 <xsd:all>
374 <xsd:element name="HardDisks" minOccurs="0">
375 <xsd:complexType>
376 <xsd:sequence>
377 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
378 </xsd:sequence>
379 </xsd:complexType>
380 </xsd:element>
381 <xsd:element name="DVDImages" minOccurs="0">
382 <xsd:complexType>
383 <xsd:sequence>
384 <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
385 </xsd:sequence>
386 </xsd:complexType>
387 </xsd:element>
388 <xsd:element name="FloppyImages" minOccurs="0">
389 <xsd:complexType>
390 <xsd:sequence>
391 <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
392 </xsd:sequence>
393 </xsd:complexType>
394 </xsd:element>
395 </xsd:all>
396 </xsd:complexType>
397 </xsd:element>
398 <xsd:element name="USBDeviceFilters">
399 <xsd:complexType>
400 <xsd:sequence>
401 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
402 minOccurs="0" maxOccurs="unbounded"/>
403 </xsd:sequence>
404 </xsd:complexType>
405 </xsd:element>
406 <xsd:element name="SystemProperties" type="TSystemProperties"/>
407 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
408 </xsd:all>
409</xsd:complexType>
410
411<xsd:complexType name="THWVirtExType">
412 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
413</xsd:complexType>
414
415<xsd:complexType name="THWVirtExNestedPagingType">
416 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
417</xsd:complexType>
418
419<xsd:complexType name="TPAEType">
420 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
421</xsd:complexType>
422
423<xsd:complexType name="TCPU">
424 <xsd:sequence>
425 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
426 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
427 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
428 </xsd:sequence>
429</xsd:complexType>
430
431<xsd:complexType name="TBoot">
432 <xsd:sequence>
433 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
434 <xsd:complexType>
435 <xsd:attribute name="position" use="required">
436 <xsd:simpleType>
437 <xsd:restriction base="xsd:unsignedInt">
438 <xsd:minInclusive value="1"/>
439 <xsd:maxInclusive value="4"/>
440 </xsd:restriction>
441 </xsd:simpleType>
442 </xsd:attribute>
443 <xsd:attribute name="device" type="TDeviceType" use="required"/>
444 </xsd:complexType>
445 </xsd:element>
446 </xsd:sequence>
447</xsd:complexType>
448
449<xsd:complexType name="TDisplay">
450 <xsd:attribute name="VRAMSize" use="required">
451 <xsd:simpleType>
452 <xsd:restriction base="xsd:unsignedInt">
453 <xsd:minInclusive value="1"/>
454 <xsd:maxInclusive value="128"/>
455 </xsd:restriction>
456 </xsd:simpleType>
457 </xsd:attribute>
458 <xsd:attribute name="MonitorCount" default="1">
459 <xsd:simpleType>
460 <xsd:restriction base="xsd:unsignedInt">
461 <xsd:maxInclusive value="8"/>
462 </xsd:restriction>
463 </xsd:simpleType>
464 </xsd:attribute>
465</xsd:complexType>
466
467<xsd:complexType name="TRemoteDisplay">
468 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
469 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
470 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
471 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
472 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
473 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
474</xsd:complexType>
475
476<xsd:complexType name="TBIOS">
477 <xsd:all>
478 <xsd:element name="ACPI">
479 <xsd:complexType>
480 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
481 </xsd:complexType>
482 </xsd:element>
483 <xsd:element name="IOAPIC" minOccurs="0">
484 <xsd:complexType>
485 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
486 </xsd:complexType>
487 </xsd:element>
488 <xsd:element name="Logo" minOccurs="0">
489 <xsd:complexType>
490 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
491 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
492 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
493 <xsd:attribute name="imagePath" type="TLocalFile"/>
494 </xsd:complexType>
495 </xsd:element>
496 <xsd:element name="BootMenu" minOccurs="0">
497 <xsd:complexType>
498 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
499 </xsd:complexType>
500 </xsd:element>
501 <xsd:element name="TimeOffset" minOccurs="0">
502 <xsd:complexType>
503 <xsd:attribute name="value" type="xsd:integer" default="0"/>
504 </xsd:complexType>
505 </xsd:element>
506 <xsd:element name="PXEDebug" minOccurs="0">
507 <xsd:complexType>
508 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
509 </xsd:complexType>
510 </xsd:element>
511 <xsd:element name="IDEController" minOccurs="0">
512 <xsd:complexType>
513 <xsd:attribute name="type" use="required" type="TIDEControllerType"/>
514 </xsd:complexType>
515 </xsd:element>
516 </xsd:all>
517</xsd:complexType>
518
519<xsd:complexType name="THardDiskAttachment">
520 <xsd:attribute name="hardDisk" type="TNonNullUUID" use="required"/>
521 <xsd:attribute name="bus" use="required">
522 <xsd:simpleType>
523 <xsd:restriction base="xsd:token">
524 <xsd:enumeration value="IDE"/>
525 <xsd:enumeration value="SATA"/>
526 </xsd:restriction>
527 </xsd:simpleType>
528 </xsd:attribute>
529 <xsd:attribute name="channel" type="xsd:unsignedInt" use="required"/>
530 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
531</xsd:complexType>
532
533<xsd:complexType name="THardDiskAttachments">
534 <xsd:sequence>
535 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
536 minOccurs="0" maxOccurs="unbounded"/>
537 </xsd:sequence>
538</xsd:complexType>
539
540<xsd:complexType name="TDVDDrive">
541 <xsd:choice minOccurs="0">
542 <xsd:element name="Image" type="TImageRef"/>
543 <xsd:element name="HostDrive" type="THostDrive"/>
544 </xsd:choice>
545 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
546</xsd:complexType>
547
548<xsd:complexType name="TFloppyDrive">
549 <xsd:choice minOccurs="0">
550 <xsd:element name="Image" type="TImageRef"/>
551 <xsd:element name="HostDrive" type="THostDrive"/>
552 </xsd:choice>
553 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
554</xsd:complexType>
555
556<xsd:complexType name="TUSBController">
557 <xsd:sequence>
558 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
559 minOccurs="0" maxOccurs="unbounded"/>
560 </xsd:sequence>
561 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
562 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
563</xsd:complexType>
564
565<xsd:complexType name="TAudioAdapterBase">
566 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
567 <xsd:attribute name="controller" default="AC97">
568 <xsd:simpleType>
569 <xsd:restriction base="xsd:token">
570 <xsd:enumeration value="AC97"/>
571 <xsd:enumeration value="SB16"/>
572 </xsd:restriction>
573 </xsd:simpleType>
574 </xsd:attribute>
575</xsd:complexType>
576
577<xsd:complexType name="TNetworkAdapter">
578 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
579 <xsd:attribute name="slot" use="required">
580 <xsd:simpleType>
581 <xsd:restriction base="xsd:unsignedInt">
582 <xsd:minInclusive value="0"/>
583 <xsd:maxExclusive value="4"/>
584 </xsd:restriction>
585 </xsd:simpleType>
586 </xsd:attribute>
587 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
588 <xsd:attribute name="MACAddress">
589 <xsd:simpleType>
590 <xsd:restriction base="xsd:hexBinary">
591 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
592 </xsd:restriction>
593 </xsd:simpleType>
594 </xsd:attribute>
595 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
596 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
597 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
598 <xsd:attribute name="tracefile" type="xsd:string"/>
599</xsd:complexType>
600
601<xsd:complexType name="TUARTPort">
602 <xsd:attribute name="slot" use="required">
603 <xsd:simpleType>
604 <xsd:restriction base="xsd:unsignedInt">
605 <xsd:minInclusive value="0"/>
606 <xsd:maxExclusive value="2"/>
607 </xsd:restriction>
608 </xsd:simpleType>
609 </xsd:attribute>
610 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
611 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
612 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
613 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
614 <xsd:attribute name="path" type="TLocalFile"/>
615 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
616</xsd:complexType>
617
618<xsd:complexType name="TUART">
619 <xsd:sequence>
620 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
621 <xsd:complexType>
622 <xsd:complexContent>
623 <xsd:extension base="TUARTPort">
624 </xsd:extension>
625 </xsd:complexContent>
626 </xsd:complexType>
627 </xsd:element>
628 </xsd:sequence>
629</xsd:complexType>
630
631<xsd:complexType name="TLPTPort">
632 <xsd:attribute name="slot" use="required">
633 <xsd:simpleType>
634 <xsd:restriction base="xsd:unsignedInt">
635 <xsd:minInclusive value="0"/>
636 <xsd:maxExclusive value="2"/>
637 </xsd:restriction>
638 </xsd:simpleType>
639 </xsd:attribute>
640 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
641 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
642 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
643 <xsd:attribute name="path" type="TLocalFile"/>
644</xsd:complexType>
645
646<xsd:complexType name="TLPT">
647 <xsd:sequence>
648 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
649 <xsd:complexType>
650 <xsd:complexContent>
651 <xsd:extension base="TLPTPort">
652 </xsd:extension>
653 </xsd:complexContent>
654 </xsd:complexType>
655 </xsd:element>
656 </xsd:sequence>
657</xsd:complexType>
658
659<xsd:complexType name="TSharedFolder">
660 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
661 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
662 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
663</xsd:complexType>
664
665<xsd:complexType name="TSharedFolders">
666 <xsd:sequence>
667 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
668 </xsd:sequence>
669</xsd:complexType>
670
671<xsd:complexType name="TClipboard">
672 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
673</xsd:complexType>
674
675<xsd:complexType name="TGuest">
676 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
677 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
678</xsd:complexType>
679
680<xsd:complexType name="TSATAController">
681 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
682 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" default="0"/>
683 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" default="1"/>
684 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" default="2"/>
685 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" default="3"/>
686 <xsd:attribute name="PortCount" type="xsd:unsignedInt" default="30"/>
687</xsd:complexType>
688
689<xsd:complexType name="TGuestProperty">
690 <xsd:attribute name="name" type="xsd:string" use="required"/>
691 <xsd:attribute name="value" type="xsd:string" use="required"/>
692 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
693 <xsd:attribute name="flags" type="xsd:string" default=""/>
694</xsd:complexType>
695
696<xsd:complexType name="TGuestProperties">
697 <xsd:sequence>
698 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
699 </xsd:sequence>
700</xsd:complexType>
701
702<xsd:complexType name="THardware">
703 <xsd:all>
704 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
705 <xsd:element name="Memory" type="TMemory"/>
706 <xsd:element name="Boot" type="TBoot">
707 <xsd:unique name="THardware-Boot-Order">
708 <xsd:selector xpath="vb:Order"/>
709 <xsd:field xpath="@position"/>
710 </xsd:unique>
711 </xsd:element>
712 <xsd:element name="Display" type="TDisplay"/>
713 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
714 <xsd:element name="BIOS" type="TBIOS"/>
715 <xsd:element name="DVDDrive" type="TDVDDrive"/>
716 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
717 <xsd:element name="USBController" type="TUSBController"/>
718 <xsd:element name="SATAController" type="TSATAController"/>
719 <xsd:element name="Network" type="TNetwork">
720 <xsd:unique name="THardware-Network-Adapter">
721 <xsd:selector xpath="vb:Adapter"/>
722 <xsd:field xpath="@slot"/>
723 </xsd:unique>
724 </xsd:element>
725 <xsd:element name="UART" type="TUART">
726 <xsd:unique name="THardware-UART-Port">
727 <xsd:selector xpath="vb:Port"/>
728 <xsd:field xpath="@slot"/>
729 </xsd:unique>
730 </xsd:element>
731 <xsd:element name="LPT" type="TLPT">
732 <xsd:unique name="THardware-LPT-Port">
733 <xsd:selector xpath="vb:Port"/>
734 <xsd:field xpath="@slot"/>
735 </xsd:unique>
736 </xsd:element>
737 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
738 <xsd:element name="SharedFolders" type="TSharedFolders">
739 <xsd:unique name="THardware-SharedFolders-SharedFolder">
740 <xsd:selector xpath="vb:SharedFolder"/>
741 <xsd:field xpath="@name"/>
742 </xsd:unique>
743 </xsd:element>
744 <xsd:element name="Clipboard" type="TClipboard"/>
745 <xsd:element name="Guest" type="TGuest"/>
746 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
747 <xsd:unique name="THardware-GuestProperties-GuestProperty">
748 <xsd:selector xpath="vb:GuestProperty"/>
749 <xsd:field xpath="@name"/>
750 </xsd:unique>
751 </xsd:element>
752 </xsd:all>
753</xsd:complexType>
754
755<xsd:complexType name="TMachine">
756 <xsd:all>
757 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
758 <xsd:element name="Hardware" type="THardware"/>
759 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
760 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
761 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
762 </xsd:all>
763 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
764 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
765 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
766 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
767 <xsd:attribute name="stateFile" type="TLocalFile"/>
768 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
769 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
770 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
771 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
772 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
773</xsd:complexType>
774
775<xsd:complexType name="TSnapshot">
776 <xsd:all>
777 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
778 <xsd:element name="Hardware" type="THardware"/>
779 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
780 <xsd:element name="Snapshots" minOccurs="0">
781 <xsd:complexType>
782 <xsd:sequence>
783 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
784 </xsd:sequence>
785 </xsd:complexType>
786 </xsd:element>
787 </xsd:all>
788 <xsd:attribute name="name" type="xsd:token" use="required"/>
789 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
790 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
791 <xsd:attribute name="stateFile" type="TLocalFile"/>
792</xsd:complexType>
793
794<xsd:complexType name="TVirtualBox" abstract="true">
795 <xsd:choice>
796 <xsd:element name="Global" type="TGlobal"/>
797 <xsd:element name="Machine" type="TMachine">
798 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
799 <xsd:key name="snapshot">
800 <xsd:selector xpath=".//vb:Snapshot"/>
801 <xsd:field xpath="@uuid"/>
802 </xsd:key>
803 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
804 <xsd:selector xpath="."/>
805 <xsd:field xpath="@currentSnapshot"/>
806 </xsd:keyref>
807 </xsd:element>
808 </xsd:choice>
809</xsd:complexType>
810
811</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