VirtualBox

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

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

build fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 27.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="TPAEType">
416 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
417</xsd:complexType>
418
419<xsd:complexType name="TCPU">
420 <xsd:sequence>
421 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
422 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
423 </xsd:sequence>
424</xsd:complexType>
425
426<xsd:complexType name="TBoot">
427 <xsd:sequence>
428 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
429 <xsd:complexType>
430 <xsd:attribute name="position" use="required">
431 <xsd:simpleType>
432 <xsd:restriction base="xsd:unsignedInt">
433 <xsd:minInclusive value="1"/>
434 <xsd:maxInclusive value="4"/>
435 </xsd:restriction>
436 </xsd:simpleType>
437 </xsd:attribute>
438 <xsd:attribute name="device" type="TDeviceType" use="required"/>
439 </xsd:complexType>
440 </xsd:element>
441 </xsd:sequence>
442</xsd:complexType>
443
444<xsd:complexType name="TDisplay">
445 <xsd:attribute name="VRAMSize" use="required">
446 <xsd:simpleType>
447 <xsd:restriction base="xsd:unsignedInt">
448 <xsd:minInclusive value="1"/>
449 <xsd:maxInclusive value="128"/>
450 </xsd:restriction>
451 </xsd:simpleType>
452 </xsd:attribute>
453 <xsd:attribute name="MonitorCount" default="1">
454 <xsd:simpleType>
455 <xsd:restriction base="xsd:unsignedInt">
456 <xsd:maxInclusive value="8"/>
457 </xsd:restriction>
458 </xsd:simpleType>
459 </xsd:attribute>
460</xsd:complexType>
461
462<xsd:complexType name="TRemoteDisplay">
463 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
464 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
465 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
466 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
467 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
468 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
469</xsd:complexType>
470
471<xsd:complexType name="TBIOS">
472 <xsd:all>
473 <xsd:element name="ACPI">
474 <xsd:complexType>
475 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
476 </xsd:complexType>
477 </xsd:element>
478 <xsd:element name="IOAPIC" minOccurs="0">
479 <xsd:complexType>
480 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
481 </xsd:complexType>
482 </xsd:element>
483 <xsd:element name="Logo" minOccurs="0">
484 <xsd:complexType>
485 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
486 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
487 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
488 <xsd:attribute name="imagePath" type="TLocalFile"/>
489 </xsd:complexType>
490 </xsd:element>
491 <xsd:element name="BootMenu" minOccurs="0">
492 <xsd:complexType>
493 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
494 </xsd:complexType>
495 </xsd:element>
496 <xsd:element name="TimeOffset" minOccurs="0">
497 <xsd:complexType>
498 <xsd:attribute name="value" type="xsd:integer" default="0"/>
499 </xsd:complexType>
500 </xsd:element>
501 <xsd:element name="PXEDebug" minOccurs="0">
502 <xsd:complexType>
503 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
504 </xsd:complexType>
505 </xsd:element>
506 <xsd:element name="IDEController" minOccurs="0">
507 <xsd:complexType>
508 <xsd:attribute name="type" use="required" type="TIDEControllerType"/>
509 </xsd:complexType>
510 </xsd:element>
511 </xsd:all>
512</xsd:complexType>
513
514<xsd:complexType name="THardDiskAttachment">
515 <xsd:attribute name="hardDisk" type="TNonNullUUID" use="required"/>
516 <xsd:attribute name="bus" use="required">
517 <xsd:simpleType>
518 <xsd:restriction base="xsd:token">
519 <xsd:enumeration value="IDE"/>
520 <xsd:enumeration value="SATA"/>
521 </xsd:restriction>
522 </xsd:simpleType>
523 </xsd:attribute>
524 <xsd:attribute name="channel" type="xsd:unsignedInt" use="required"/>
525 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
526</xsd:complexType>
527
528<xsd:complexType name="THardDiskAttachments">
529 <xsd:sequence>
530 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
531 minOccurs="0" maxOccurs="unbounded"/>
532 </xsd:sequence>
533</xsd:complexType>
534
535<xsd:complexType name="TDVDDrive">
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="passthrough" type="xsd:boolean" default="false"/>
541</xsd:complexType>
542
543<xsd:complexType name="TFloppyDrive">
544 <xsd:choice minOccurs="0">
545 <xsd:element name="Image" type="TImageRef"/>
546 <xsd:element name="HostDrive" type="THostDrive"/>
547 </xsd:choice>
548 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
549</xsd:complexType>
550
551<xsd:complexType name="TUSBController">
552 <xsd:sequence>
553 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
554 minOccurs="0" maxOccurs="unbounded"/>
555 </xsd:sequence>
556 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
557 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
558</xsd:complexType>
559
560<xsd:complexType name="TAudioAdapterBase">
561 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
562 <xsd:attribute name="controller" default="AC97">
563 <xsd:simpleType>
564 <xsd:restriction base="xsd:token">
565 <xsd:enumeration value="AC97"/>
566 <xsd:enumeration value="SB16"/>
567 </xsd:restriction>
568 </xsd:simpleType>
569 </xsd:attribute>
570</xsd:complexType>
571
572<xsd:complexType name="TNetworkAdapter">
573 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
574 <xsd:attribute name="slot" use="required">
575 <xsd:simpleType>
576 <xsd:restriction base="xsd:unsignedInt">
577 <xsd:minInclusive value="0"/>
578 <xsd:maxExclusive value="4"/>
579 </xsd:restriction>
580 </xsd:simpleType>
581 </xsd:attribute>
582 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
583 <xsd:attribute name="MACAddress">
584 <xsd:simpleType>
585 <xsd:restriction base="xsd:hexBinary">
586 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
587 </xsd:restriction>
588 </xsd:simpleType>
589 </xsd:attribute>
590 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
591 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
592 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
593 <xsd:attribute name="tracefile" type="xsd:string"/>
594</xsd:complexType>
595
596<xsd:complexType name="TUARTPort">
597 <xsd:attribute name="slot" use="required">
598 <xsd:simpleType>
599 <xsd:restriction base="xsd:unsignedInt">
600 <xsd:minInclusive value="0"/>
601 <xsd:maxExclusive value="2"/>
602 </xsd:restriction>
603 </xsd:simpleType>
604 </xsd:attribute>
605 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
606 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
607 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
608 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
609 <xsd:attribute name="path" type="TLocalFile"/>
610 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
611</xsd:complexType>
612
613<xsd:complexType name="TUART">
614 <xsd:sequence>
615 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
616 <xsd:complexType>
617 <xsd:complexContent>
618 <xsd:extension base="TUARTPort">
619 </xsd:extension>
620 </xsd:complexContent>
621 </xsd:complexType>
622 </xsd:element>
623 </xsd:sequence>
624</xsd:complexType>
625
626<xsd:complexType name="TLPTPort">
627 <xsd:attribute name="slot" use="required">
628 <xsd:simpleType>
629 <xsd:restriction base="xsd:unsignedInt">
630 <xsd:minInclusive value="0"/>
631 <xsd:maxExclusive value="2"/>
632 </xsd:restriction>
633 </xsd:simpleType>
634 </xsd:attribute>
635 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
636 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
637 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
638 <xsd:attribute name="path" type="TLocalFile"/>
639</xsd:complexType>
640
641<xsd:complexType name="TLPT">
642 <xsd:sequence>
643 <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
644 <xsd:complexType>
645 <xsd:complexContent>
646 <xsd:extension base="TLPTPort">
647 </xsd:extension>
648 </xsd:complexContent>
649 </xsd:complexType>
650 </xsd:element>
651 </xsd:sequence>
652</xsd:complexType>
653
654<xsd:complexType name="TSharedFolder">
655 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
656 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
657 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
658</xsd:complexType>
659
660<xsd:complexType name="TSharedFolders">
661 <xsd:sequence>
662 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
663 </xsd:sequence>
664</xsd:complexType>
665
666<xsd:complexType name="TClipboard">
667 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
668</xsd:complexType>
669
670<xsd:complexType name="TGuest">
671 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
672 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
673</xsd:complexType>
674
675<xsd:complexType name="TSATAController">
676 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
677 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" default="0"/>
678 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" default="1"/>
679 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" default="2"/>
680 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" default="3"/>
681 <xsd:attribute name="PortCount" type="xsd:unsignedInt" default="30"/>
682</xsd:complexType>
683
684<xsd:complexType name="THardware">
685 <xsd:all>
686 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
687 <xsd:element name="Memory" type="TMemory"/>
688 <xsd:element name="Boot" type="TBoot">
689 <xsd:unique name="THardware-Boot-Order">
690 <xsd:selector xpath="vb:Order"/>
691 <xsd:field xpath="@position"/>
692 </xsd:unique>
693 </xsd:element>
694 <xsd:element name="Display" type="TDisplay"/>
695 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
696 <xsd:element name="BIOS" type="TBIOS"/>
697 <xsd:element name="DVDDrive" type="TDVDDrive"/>
698 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
699 <xsd:element name="USBController" type="TUSBController"/>
700 <xsd:element name="SATAController" type="TSATAController"/>
701 <xsd:element name="Network" type="TNetwork">
702 <xsd:unique name="THardware-Network-Adapter">
703 <xsd:selector xpath="vb:Adapter"/>
704 <xsd:field xpath="@slot"/>
705 </xsd:unique>
706 </xsd:element>
707 <xsd:element name="UART" type="TUART">
708 <xsd:unique name="THardware-UART-Port">
709 <xsd:selector xpath="vb:Port"/>
710 <xsd:field xpath="@slot"/>
711 </xsd:unique>
712 </xsd:element>
713 <xsd:element name="LPT" type="TLPT">
714 <xsd:unique name="THardware-LPT-Port">
715 <xsd:selector xpath="vb:Port"/>
716 <xsd:field xpath="@slot"/>
717 </xsd:unique>
718 </xsd:element>
719 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
720 <xsd:element name="SharedFolders" type="TSharedFolders">
721 <xsd:unique name="THardware-SharedFolders-SharedFolder">
722 <xsd:selector xpath="vb:SharedFolder"/>
723 <xsd:field xpath="@name"/>
724 </xsd:unique>
725 </xsd:element>
726 <xsd:element name="Clipboard" type="TClipboard"/>
727 <xsd:element name="Guest" type="TGuest"/>
728 </xsd:all>
729</xsd:complexType>
730
731<xsd:complexType name="TMachine">
732 <xsd:all>
733 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
734 <xsd:element name="Hardware" type="THardware"/>
735 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
736 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
737 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
738 </xsd:all>
739 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
740 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
741 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
742 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
743 <xsd:attribute name="stateFile" type="TLocalFile"/>
744 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
745 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
746 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
747 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
748 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
749</xsd:complexType>
750
751<xsd:complexType name="TSnapshot">
752 <xsd:all>
753 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
754 <xsd:element name="Hardware" type="THardware"/>
755 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
756 <xsd:element name="Snapshots" minOccurs="0">
757 <xsd:complexType>
758 <xsd:sequence>
759 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
760 </xsd:sequence>
761 </xsd:complexType>
762 </xsd:element>
763 </xsd:all>
764 <xsd:attribute name="name" type="xsd:token" use="required"/>
765 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
766 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
767 <xsd:attribute name="stateFile" type="TLocalFile"/>
768</xsd:complexType>
769
770<xsd:complexType name="TVirtualBox" abstract="true">
771 <xsd:choice>
772 <xsd:element name="Global" type="TGlobal"/>
773 <xsd:element name="Machine" type="TMachine">
774 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
775 <xsd:key name="snapshot">
776 <xsd:selector xpath=".//vb:Snapshot"/>
777 <xsd:field xpath="@uuid"/>
778 </xsd:key>
779 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
780 <xsd:selector xpath="."/>
781 <xsd:field xpath="@currentSnapshot"/>
782 </xsd:keyref>
783 </xsd:element>
784 </xsd:choice>
785</xsd:complexType>
786
787</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