VirtualBox

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

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

Dhcp->DHCP

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 32.0 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 <xsd:enumeration value="Other"/>
138 <xsd:enumeration value="DOS"/>
139 <xsd:enumeration value="Netware"/>
140 <xsd:enumeration value="L4"/>
141 <xsd:enumeration value="Windows31"/>
142 <xsd:enumeration value="Windows95"/>
143 <xsd:enumeration value="Windows98"/>
144 <xsd:enumeration value="WindowsMe"/>
145 <xsd:enumeration value="WindowsNT4"/>
146 <xsd:enumeration value="Windows2000"/>
147 <xsd:enumeration value="WindowsXP"/>
148 <xsd:enumeration value="WindowsXP_64"/>
149 <xsd:enumeration value="Windows2003"/>
150 <xsd:enumeration value="Windows2003_64"/>
151 <xsd:enumeration value="WindowsVista"/>
152 <xsd:enumeration value="WindowsVista_64"/>
153 <xsd:enumeration value="Windows2008"/>
154 <xsd:enumeration value="Windows2008_64"/>
155 <xsd:enumeration value="Windows7"/>
156 <xsd:enumeration value="Windows7_64"/>
157 <xsd:enumeration value="WindowsNT"/>
158 <xsd:enumeration value="OS2Warp3"/>
159 <xsd:enumeration value="OS2Warp4"/>
160 <xsd:enumeration value="OS2Warp45"/>
161 <xsd:enumeration value="OS2eCS"/>
162 <xsd:enumeration value="OS2"/>
163 <xsd:enumeration value="Linux22"/>
164 <xsd:enumeration value="Linux24"/>
165 <xsd:enumeration value="Linux24_64"/>
166 <xsd:enumeration value="Linux26"/>
167 <xsd:enumeration value="Linux26_64"/>
168 <xsd:enumeration value="ArchLinux"/>
169 <xsd:enumeration value="ArchLinux_64"/>
170 <xsd:enumeration value="Debian"/>
171 <xsd:enumeration value="Debian_64"/>
172 <xsd:enumeration value="OpenSUSE"/>
173 <xsd:enumeration value="OpenSUSE_64"/>
174 <xsd:enumeration value="Fedora"/>
175 <xsd:enumeration value="Fedora_64"/>
176 <xsd:enumeration value="Gentoo"/>
177 <xsd:enumeration value="Gentoo_64"/>
178 <xsd:enumeration value="Mandriva"/>
179 <xsd:enumeration value="Mandriva_64"/>
180 <xsd:enumeration value="RedHat"/>
181 <xsd:enumeration value="RedHat_64"/>
182 <xsd:enumeration value="Turbolinux"/>
183 <xsd:enumeration value="Ubuntu"/>
184 <xsd:enumeration value="Ubuntu_64"/>
185 <xsd:enumeration value="Xandros"/>
186 <xsd:enumeration value="Xandros_64"/>
187 <xsd:enumeration value="Linux"/>
188 <xsd:enumeration value="FreeBSD"/>
189 <xsd:enumeration value="FreeBSD_64"/>
190 <xsd:enumeration value="OpenBSD"/>
191 <xsd:enumeration value="OpenBSD_64"/>
192 <xsd:enumeration value="NetBSD"/>
193 <xsd:enumeration value="NetBSD_64"/>
194 <xsd:enumeration value="Solaris"/>
195 <xsd:enumeration value="Solaris_64"/>
196 <xsd:enumeration value="OpenSolaris"/>
197 <xsd:enumeration value="OpenSolaris_64"/>
198 <xsd:enumeration value="QNX"/>
199 </xsd:restriction>
200</xsd:simpleType>
201
202
203<xsd:simpleType name="TVRDPAuthType">
204 <xsd:restriction base="xsd:string">
205 <xsd:enumeration value="Null"/>
206 <xsd:enumeration value="Guest"/>
207 <xsd:enumeration value="External"/>
208 </xsd:restriction>
209</xsd:simpleType>
210
211<xsd:simpleType name="TNetworkAdapterType">
212 <xsd:restriction base="xsd:string">
213 <xsd:enumeration value="Am79C970A"/>
214 <xsd:enumeration value="Am79C973"/>
215 <xsd:enumeration value="82540EM"/>
216 <xsd:enumeration value="82543GC"/>
217 </xsd:restriction>
218</xsd:simpleType>
219
220<xsd:simpleType name="TTriStateBoolType">
221 <xsd:restriction base="xsd:string">
222 <xsd:enumeration value="false"/>
223 <xsd:enumeration value="true"/>
224 <xsd:enumeration value="default"/>
225 </xsd:restriction>
226</xsd:simpleType>
227
228<xsd:simpleType name="TBIOSBootMenuModeType">
229 <xsd:restriction base="xsd:string">
230 <xsd:enumeration value="Disabled"/>
231 <xsd:enumeration value="MenuOnly"/>
232 <xsd:enumeration value="MessageAndMenu"/>
233 </xsd:restriction>
234</xsd:simpleType>
235
236<xsd:simpleType name="TClipboardMode">
237 <xsd:restriction base="xsd:string">
238 <xsd:enumeration value="Disabled"/>
239 <xsd:enumeration value="HostToGuest"/>
240 <xsd:enumeration value="GuestToHost"/>
241 <xsd:enumeration value="Bidirectional"/>
242 </xsd:restriction>
243</xsd:simpleType>
244
245<xsd:simpleType name="TPortMode">
246 <xsd:restriction base="xsd:string">
247 <xsd:enumeration value="Disconnected"/>
248 <xsd:enumeration value="HostPipe"/>
249 <xsd:enumeration value="HostDevice"/>
250 </xsd:restriction>
251</xsd:simpleType>
252
253<!--
254// Complex types
255/////////////////////////////////////////////////////////////////////////
256-->
257<xsd:complexType name="TDHCPServer">
258 <xsd:attribute name="networkName" type="xsd:string" use="required"/>
259 <xsd:attribute name="lowerIP" type="xsd:string" use="required"/>
260 <xsd:attribute name="upperIP" type="xsd:string" use="required"/>
261 <xsd:attribute name="IPAddress" type="xsd:string" use="required"/>
262 <xsd:attribute name="networkMask" type="xsd:string" use="required"/>
263 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
264</xsd:complexType>
265
266<xsd:complexType name="THardDiskBase">
267 <xsd:sequence>
268 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
269 <xsd:element name="Property" minOccurs="0" maxOccurs="unbounded">
270 <xsd:complexType>
271 <xsd:attribute name="name" type="xsd:token" use="required"/>
272 <xsd:attribute name="value" type="xsd:string" use="required"/>
273 </xsd:complexType>
274 </xsd:element>
275 <xsd:element name="HardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
276 </xsd:sequence>
277 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
278 <xsd:attribute name="location" type="TLocalFile" use="required"/>
279 <xsd:attribute name="format" type="TNonEmptyString" use="required"/>
280</xsd:complexType>
281
282<xsd:complexType name="TDiffHardDisk">
283 <xsd:complexContent>
284 <xsd:extension base="THardDiskBase">
285 <xsd:attribute name="autoReset" type="xsd:boolean" default="false"/>
286 </xsd:extension>
287 </xsd:complexContent>
288</xsd:complexType>
289
290<xsd:complexType name="THardDisk">
291 <xsd:complexContent>
292 <xsd:extension base="THardDiskBase">
293 <xsd:attribute name="type" use="required">
294 <xsd:simpleType>
295 <xsd:restriction base="xsd:string">
296 <xsd:enumeration value="Normal"/>
297 <xsd:enumeration value="Immutable"/>
298 <xsd:enumeration value="Writethrough"/>
299 </xsd:restriction>
300 </xsd:simpleType>
301 </xsd:attribute>
302 </xsd:extension>
303 </xsd:complexContent>
304</xsd:complexType>
305
306<xsd:complexType name="TImage2">
307 <xsd:sequence>
308 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
309 </xsd:sequence>
310 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
311 <xsd:attribute name="location" type="TLocalFile" use="required"/>
312</xsd:complexType>
313
314<xsd:complexType name="TImageRef">
315 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
316</xsd:complexType>
317
318<xsd:complexType name="THostDrive">
319 <xsd:attribute name="src" type="TLocalFile" use="required"/>
320</xsd:complexType>
321
322<xsd:complexType name="TUSBDeviceFilter">
323 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
324 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
325 <xsd:attribute name="vendorId" type="xsd:token"/>
326 <xsd:attribute name="productId" type="xsd:token"/>
327 <xsd:attribute name="revision" type="xsd:token"/>
328 <xsd:attribute name="manufacturer" type="xsd:token"/>
329 <xsd:attribute name="product" type="xsd:token"/>
330 <xsd:attribute name="serialNumber" type="xsd:token"/>
331 <xsd:attribute name="port" type="xsd:token"/>
332 <xsd:attribute name="remote" type="xsd:token"/>
333 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
334</xsd:complexType>
335
336<xsd:complexType name="THostUSBDeviceFilter">
337 <xsd:complexContent>
338 <xsd:extension base="TUSBDeviceFilter">
339 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
340 </xsd:extension>
341 </xsd:complexContent>
342</xsd:complexType>
343
344<xsd:complexType name="TSystemProperties">
345 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
346 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
347 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/>
348 <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
349 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
350 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
351 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
352</xsd:complexType>
353
354<xsd:complexType name="TExtraData">
355 <xsd:sequence>
356 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
357 <xsd:complexType>
358 <xsd:attribute name="name" type="xsd:token" use="required"/>
359 <xsd:attribute name="value" type="xsd:string" use="required"/>
360 </xsd:complexType>
361 </xsd:element>
362 </xsd:sequence>
363</xsd:complexType>
364
365<xsd:complexType name="TGlobal">
366 <xsd:all>
367 <xsd:element name="MachineRegistry">
368 <xsd:complexType>
369 <xsd:sequence>
370 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
371 <xsd:complexType>
372 <xsd:attribute name="src" type="TLocalFile" use="required"/>
373 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
374 </xsd:complexType>
375 </xsd:element>
376 </xsd:sequence>
377 </xsd:complexType>
378 </xsd:element>
379 <xsd:element name="MediaRegistry">
380 <xsd:complexType>
381 <xsd:all>
382 <xsd:element name="HardDisks" minOccurs="0">
383 <xsd:complexType>
384 <xsd:sequence>
385 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
386 </xsd:sequence>
387 </xsd:complexType>
388 </xsd:element>
389 <xsd:element name="DVDImages" minOccurs="0">
390 <xsd:complexType>
391 <xsd:sequence>
392 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
393 </xsd:sequence>
394 </xsd:complexType>
395 </xsd:element>
396 <xsd:element name="FloppyImages" minOccurs="0">
397 <xsd:complexType>
398 <xsd:sequence>
399 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
400 </xsd:sequence>
401 </xsd:complexType>
402 </xsd:element>
403 </xsd:all>
404 </xsd:complexType>
405 </xsd:element>
406 <xsd:element name="NetserviceRegistry" minOccurs="0" maxOccurs="1">
407 <xsd:complexType>
408 <xsd:all>
409 <xsd:element name="DHCPServers" minOccurs="0">
410 <xsd:complexType>
411 <xsd:sequence>
412 <xsd:element name="DHCPServer" type="TDHCPServer" minOccurs="0" maxOccurs="unbounded"/>
413 </xsd:sequence>
414 </xsd:complexType>
415 </xsd:element>
416 </xsd:all>
417 </xsd:complexType>
418 </xsd:element>
419 <xsd:element name="USBDeviceFilters">
420 <xsd:complexType>
421 <xsd:sequence>
422 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
423 minOccurs="0" maxOccurs="unbounded"/>
424 </xsd:sequence>
425 </xsd:complexType>
426 </xsd:element>
427 <xsd:element name="SystemProperties" type="TSystemProperties"/>
428 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
429 </xsd:all>
430</xsd:complexType>
431
432<xsd:complexType name="THWVirtExType">
433 <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
434</xsd:complexType>
435
436<xsd:complexType name="THWVirtExNestedPagingType">
437 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
438</xsd:complexType>
439
440<xsd:complexType name="THWVirtExVPIDType">
441 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
442</xsd:complexType>
443
444<xsd:complexType name="TPAEType">
445 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
446</xsd:complexType>
447
448<xsd:simpleType name="TCPUCount">
449 <xsd:restriction base="xsd:unsignedInt">
450 <xsd:minInclusive value="1"/>
451 <xsd:maxInclusive value="255"/>
452 </xsd:restriction>
453</xsd:simpleType>
454
455<xsd:complexType name="TCPU">
456 <xsd:sequence>
457 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
458 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
459 <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
460 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
461 </xsd:sequence>
462 <xsd:attribute name="count" type="TCPUCount" default="1"/>
463</xsd:complexType>
464
465<xsd:complexType name="TBoot">
466 <xsd:sequence>
467 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
468 <xsd:complexType>
469 <xsd:attribute name="position" use="required">
470 <xsd:simpleType>
471 <xsd:restriction base="xsd:unsignedInt">
472 <xsd:minInclusive value="1"/>
473 <xsd:maxInclusive value="4"/>
474 </xsd:restriction>
475 </xsd:simpleType>
476 </xsd:attribute>
477 <xsd:attribute name="device" type="TDeviceType" use="required"/>
478 </xsd:complexType>
479 </xsd:element>
480 </xsd:sequence>
481</xsd:complexType>
482
483<xsd:complexType name="TDisplay">
484 <xsd:attribute name="VRAMSize" use="required">
485 <xsd:simpleType>
486 <xsd:restriction base="xsd:unsignedInt">
487 <xsd:minInclusive value="1"/>
488 <xsd:maxInclusive value="128"/>
489 </xsd:restriction>
490 </xsd:simpleType>
491 </xsd:attribute>
492 <xsd:attribute name="monitorCount" default="1">
493 <xsd:simpleType>
494 <xsd:restriction base="xsd:unsignedInt">
495 <xsd:maxInclusive value="8"/>
496 </xsd:restriction>
497 </xsd:simpleType>
498 </xsd:attribute>
499 <xsd:attribute name="accelerate3D" type="xsd:boolean" default="false"/>
500</xsd:complexType>
501
502<xsd:complexType name="TRemoteDisplay">
503 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
504 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
505 <xsd:attribute name="netAddress" type="xsd:token" default=""/>
506 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
507 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
508 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
509 <xsd:attribute name="reuseSingleConnection" type="xsd:boolean" default="false"/>
510</xsd:complexType>
511
512<xsd:complexType name="TBIOS">
513 <xsd:all>
514 <xsd:element name="ACPI">
515 <xsd:complexType>
516 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
517 </xsd:complexType>
518 </xsd:element>
519 <xsd:element name="IOAPIC" minOccurs="0">
520 <xsd:complexType>
521 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
522 </xsd:complexType>
523 </xsd:element>
524 <xsd:element name="Logo" minOccurs="0">
525 <xsd:complexType>
526 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
527 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
528 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
529 <xsd:attribute name="imagePath" type="TLocalFile"/>
530 </xsd:complexType>
531 </xsd:element>
532 <xsd:element name="BootMenu" minOccurs="0">
533 <xsd:complexType>
534 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
535 </xsd:complexType>
536 </xsd:element>
537 <xsd:element name="TimeOffset" minOccurs="0">
538 <xsd:complexType>
539 <xsd:attribute name="value" type="xsd:integer" default="0"/>
540 </xsd:complexType>
541 </xsd:element>
542 <xsd:element name="PXEDebug" minOccurs="0">
543 <xsd:complexType>
544 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
545 </xsd:complexType>
546 </xsd:element>
547 </xsd:all>
548</xsd:complexType>
549
550<xsd:complexType name="TStorageControllerDevice">
551 <xsd:choice minOccurs="0">
552 <xsd:element name="Image" type="TImageRef"/>
553 <xsd:element name="HostDrive" type="THostDrive"/>
554 </xsd:choice>
555 <xsd:attribute name="type" use="required">
556 <xsd:simpleType>
557 <xsd:restriction base="xsd:token">
558 <xsd:enumeration value="HardDisk"/>
559 <xsd:enumeration value="CD/DVD"/>
560 </xsd:restriction>
561 </xsd:simpleType>
562 </xsd:attribute>
563 <xsd:attribute name="port" type="xsd:unsignedInt" use="required"/>
564 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
565</xsd:complexType>
566
567<xsd:complexType name="TStorageController">
568 <xsd:sequence>
569 <xsd:element name="AttachedDevice" type="TStorageControllerDevice"
570 minOccurs="0" maxOccurs="unbounded"/>
571 </xsd:sequence>
572 <xsd:attribute name="name" type="xsd:string" use="required"/>
573 <xsd:attribute name="type" use="required">
574 <xsd:simpleType>
575 <xsd:restriction base="xsd:token">
576 <xsd:enumeration value="AHCI"/>
577 <xsd:enumeration value="LsiLogic"/>
578 <xsd:enumeration value="BusLogic"/>
579 <xsd:enumeration value="PIIX3"/>
580 <xsd:enumeration value="PIIX4"/>
581 <xsd:enumeration value="ICH6"/>
582 </xsd:restriction>
583 </xsd:simpleType>
584 </xsd:attribute>
585 <xsd:attribute name="PortCount" type="xsd:unsignedInt" use="required"/>
586 <xsd:attribute name="bootable" type="xsd:boolean" use="optional"/>
587 <xsd:attribute name="PCIBus" type="xsd:unsignedInt" use="optional"/>
588 <xsd:attribute name="PCIDevice" type="xsd:unsignedInt" use="optional"/>
589 <xsd:attribute name="PCIFunction" type="xsd:unsignedInt" use="optional"/>
590 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
591 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
592 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
593 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
594</xsd:complexType>
595
596<xsd:complexType name="TStorageControllers">
597 <xsd:sequence>
598 <xsd:element name="StorageController" type="TStorageController"
599 minOccurs="0" maxOccurs="unbounded"/>
600 </xsd:sequence>
601</xsd:complexType>
602
603<xsd:complexType name="TDVDDrive">
604 <xsd:choice minOccurs="0">
605 <xsd:element name="Image" type="TImageRef"/>
606 <xsd:element name="HostDrive" type="THostDrive"/>
607 </xsd:choice>
608 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
609</xsd:complexType>
610
611<xsd:complexType name="TFloppyDrive">
612 <xsd:choice minOccurs="0">
613 <xsd:element name="Image" type="TImageRef"/>
614 <xsd:element name="HostDrive" type="THostDrive"/>
615 </xsd:choice>
616 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
617</xsd:complexType>
618
619<xsd:complexType name="TUSBController">
620 <xsd:sequence>
621 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
622 minOccurs="0" maxOccurs="unbounded"/>
623 </xsd:sequence>
624 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
625 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
626</xsd:complexType>
627
628<xsd:complexType name="TAudioAdapterBase">
629 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
630 <xsd:attribute name="controller" default="AC97">
631 <xsd:simpleType>
632 <xsd:restriction base="xsd:token">
633 <xsd:enumeration value="AC97"/>
634 <xsd:enumeration value="SB16"/>
635 </xsd:restriction>
636 </xsd:simpleType>
637 </xsd:attribute>
638</xsd:complexType>
639
640<xsd:complexType name="TNetworkAdapter">
641 <xsd:choice minOccurs="0">
642 <xsd:element name="NAT">
643 <xsd:complexType>
644 <xsd:attribute name="network" type="xsd:string"/>
645 </xsd:complexType>
646 </xsd:element>
647 <xsd:element name="HostInterface">
648 <xsd:complexType>
649 <xsd:attribute name="name" type="xsd:string" use="required"/>
650 </xsd:complexType>
651 </xsd:element>
652 <xsd:element name="BridgedInterface">
653 <xsd:complexType>
654 <xsd:attribute name="name" type="xsd:string" use="required"/>
655 </xsd:complexType>
656 </xsd:element>
657 <xsd:element name="InternalNetwork">
658 <xsd:complexType>
659 <xsd:attribute name="name" type="xsd:string" use="required"/>
660 </xsd:complexType>
661 </xsd:element>
662 <xsd:element name="HostOnlyInterface">
663 <xsd:complexType>
664 <xsd:attribute name="name" type="xsd:string" use="required"/>
665 </xsd:complexType>
666 </xsd:element>
667 </xsd:choice>
668 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
669 <xsd:attribute name="slot" use="required">
670 <xsd:simpleType>
671 <xsd:restriction base="xsd:unsignedInt">
672 <xsd:minInclusive value="0"/>
673 <xsd:maxExclusive value="8"/>
674 </xsd:restriction>
675 </xsd:simpleType>
676 </xsd:attribute>
677 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
678 <xsd:attribute name="MACAddress">
679 <xsd:simpleType>
680 <xsd:restriction base="xsd:hexBinary">
681 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
682 </xsd:restriction>
683 </xsd:simpleType>
684 </xsd:attribute>
685 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
686 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
687 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
688 <xsd:attribute name="tracefile" type="xsd:string"/>
689</xsd:complexType>
690
691<xsd:complexType name="TNetwork">
692 <xsd:sequence>
693 <xsd:element name="Adapter" type="TNetworkAdapter"
694 minOccurs="0" maxOccurs="unbounded"/>
695 </xsd:sequence>
696</xsd:complexType>
697
698<xsd:complexType name="TUARTPort">
699 <xsd:attribute name="slot" use="required">
700 <xsd:simpleType>
701 <xsd:restriction base="xsd:unsignedInt">
702 <xsd:minInclusive value="0"/>
703 <xsd:maxExclusive value="2"/>
704 </xsd:restriction>
705 </xsd:simpleType>
706 </xsd:attribute>
707 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
708 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
709 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
710 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
711 <xsd:attribute name="path" type="TLocalFile"/>
712 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
713</xsd:complexType>
714
715<xsd:complexType name="TUART">
716 <xsd:sequence>
717 <xsd:element name="Port" type="TUARTPort"
718 minOccurs="0" maxOccurs="unbounded"/>
719 </xsd:sequence>
720</xsd:complexType>
721
722<xsd:complexType name="TLPTPort">
723 <xsd:attribute name="slot" use="required">
724 <xsd:simpleType>
725 <xsd:restriction base="xsd:unsignedInt">
726 <xsd:minInclusive value="0"/>
727 <xsd:maxExclusive value="2"/>
728 </xsd:restriction>
729 </xsd:simpleType>
730 </xsd:attribute>
731 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
732 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
733 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
734 <xsd:attribute name="path" type="TLocalFile"/>
735</xsd:complexType>
736
737<xsd:complexType name="TLPT">
738 <xsd:sequence>
739 <xsd:element name="Port" type="TLPTPort"
740 minOccurs="0" maxOccurs="unbounded"/>
741 </xsd:sequence>
742</xsd:complexType>
743
744<xsd:complexType name="TSharedFolder">
745 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
746 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
747 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
748</xsd:complexType>
749
750<xsd:complexType name="TSharedFolders">
751 <xsd:sequence>
752 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
753 </xsd:sequence>
754</xsd:complexType>
755
756<xsd:complexType name="TClipboard">
757 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
758</xsd:complexType>
759
760<xsd:complexType name="TGuest">
761 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
762 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
763</xsd:complexType>
764
765<xsd:complexType name="TGuestProperty">
766 <xsd:attribute name="name" type="xsd:string" use="required"/>
767 <xsd:attribute name="value" type="xsd:string" use="required"/>
768 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
769 <xsd:attribute name="flags" type="xsd:string" default=""/>
770</xsd:complexType>
771
772<xsd:complexType name="TGuestProperties">
773 <xsd:sequence>
774 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
775 </xsd:sequence>
776 <xsd:attribute name="notificationPatterns" type="xsd:string" default=""/>
777</xsd:complexType>
778
779<xsd:complexType name="THardware">
780 <xsd:all>
781 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
782 <xsd:element name="Memory" type="TMemory"/>
783 <xsd:element name="Boot" type="TBoot">
784 <xsd:unique name="THardware-Boot-Order">
785 <xsd:selector xpath="vb:Order"/>
786 <xsd:field xpath="@position"/>
787 </xsd:unique>
788 </xsd:element>
789 <xsd:element name="Display" type="TDisplay"/>
790 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
791 <xsd:element name="BIOS" type="TBIOS"/>
792 <xsd:element name="DVDDrive" type="TDVDDrive"/>
793 <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
794 <xsd:element name="USBController" type="TUSBController"/>
795 <xsd:element name="Network" type="TNetwork">
796 <xsd:unique name="THardware-Network-Adapter">
797 <xsd:selector xpath="vb:Adapter"/>
798 <xsd:field xpath="@slot"/>
799 </xsd:unique>
800 </xsd:element>
801 <xsd:element name="UART" type="TUART">
802 <xsd:unique name="THardware-UART-Port">
803 <xsd:selector xpath="vb:Port"/>
804 <xsd:field xpath="@slot"/>
805 </xsd:unique>
806 </xsd:element>
807 <xsd:element name="LPT" type="TLPT">
808 <xsd:unique name="THardware-LPT-Port">
809 <xsd:selector xpath="vb:Port"/>
810 <xsd:field xpath="@slot"/>
811 </xsd:unique>
812 </xsd:element>
813 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
814 <xsd:element name="SharedFolders" type="TSharedFolders">
815 <xsd:unique name="THardware-SharedFolders-SharedFolder">
816 <xsd:selector xpath="vb:SharedFolder"/>
817 <xsd:field xpath="@name"/>
818 </xsd:unique>
819 </xsd:element>
820 <xsd:element name="Clipboard" type="TClipboard"/>
821 <xsd:element name="Guest" type="TGuest"/>
822 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
823 <xsd:unique name="THardware-GuestProperties-GuestProperty">
824 <xsd:selector xpath="vb:GuestProperty"/>
825 <xsd:field xpath="@name"/>
826 </xsd:unique>
827 </xsd:element>
828 </xsd:all>
829 <xsd:attribute name="version" type="xsd:string" default="2"/>
830</xsd:complexType>
831
832<xsd:complexType name="TMachine">
833 <xsd:all>
834 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
835 <xsd:element name="Hardware" type="THardware"/>
836 <xsd:element name="StorageControllers" type="TStorageControllers"/>
837 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
838 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
839 </xsd:all>
840 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
841 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
842 <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
843 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
844 <xsd:attribute name="stateFile" type="TLocalFile"/>
845 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
846 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
847 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
848 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
849 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
850</xsd:complexType>
851
852<xsd:complexType name="TSnapshot">
853 <xsd:all>
854 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
855 <xsd:element name="Hardware" type="THardware"/>
856 <xsd:element name="StorageControllers" type="TStorageControllers"/>
857 <xsd:element name="Snapshots" minOccurs="0">
858 <xsd:complexType>
859 <xsd:sequence>
860 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
861 </xsd:sequence>
862 </xsd:complexType>
863 </xsd:element>
864 </xsd:all>
865 <xsd:attribute name="name" type="xsd:token" use="required"/>
866 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
867 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
868 <xsd:attribute name="stateFile" type="TLocalFile"/>
869</xsd:complexType>
870
871<xsd:complexType name="TVirtualBox" abstract="true">
872 <xsd:choice>
873 <xsd:element name="Global" type="TGlobal"/>
874 <xsd:element name="Machine" type="TMachine">
875 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
876 <xsd:key name="snapshot">
877 <xsd:selector xpath=".//vb:Snapshot"/>
878 <xsd:field xpath="@uuid"/>
879 </xsd:key>
880 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
881 <xsd:selector xpath="."/>
882 <xsd:field xpath="@currentSnapshot"/>
883 </xsd:keyref>
884 </xsd:element>
885 </xsd:choice>
886</xsd:complexType>
887
888</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