VirtualBox

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

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

Main: Added ISystemProperties::defaultHardDiskFormat.

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