VirtualBox

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

Last change on this file since 59074 was 58538, checked in by vboxsync, 9 years ago

VirtualBox-settings.xsd: added some missing validation rules.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 51.8 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 * Oracle VM VirtualBox Settings Schema
7 * Common definitions
8
9 Copyright (C) 2004-2015 Oracle Corporation
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
20<xsd:schema
21 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
22 xmlns="http://www.innotek.de/VirtualBox-settings"
23 xmlns:vb="http://www.innotek.de/VirtualBox-settings"
24 targetNamespace="http://www.innotek.de/VirtualBox-settings"
25 elementFormDefault="qualified"
26>
27
28<xsd:annotation>
29 <xsd:documentation xml:lang="en">
30 Oracle VM VirtualBox Settings Schema (common definitions).
31 Copyright (c) 2004-2013 Oracle Corporation
32 </xsd:documentation>
33</xsd:annotation>
34
35<!--
36// Simple types
37/////////////////////////////////////////////////////////////////////////
38-->
39
40<xsd:simpleType name="TUUID">
41 <xsd:restriction base="xsd:token">
42 <xsd:pattern value="\{[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\}"/>
43 </xsd:restriction>
44</xsd:simpleType>
45
46<xsd:simpleType name="TNonNullUUID">
47 <xsd:restriction base="TUUID">
48 <xsd:pattern value=".*[1-9A-Fa-f]+.*"/>
49 </xsd:restriction>
50</xsd:simpleType>
51
52<xsd:simpleType name="TUInt8">
53 <xsd:union>
54 <xsd:simpleType>
55 <xsd:restriction base="xsd:unsignedByte">
56 </xsd:restriction>
57 </xsd:simpleType>
58 <xsd:simpleType>
59 <xsd:restriction base="xsd:string">
60 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,2}"/>
61 </xsd:restriction>
62 </xsd:simpleType>
63 </xsd:union>
64</xsd:simpleType>
65
66<xsd:simpleType name="TUInt16">
67 <xsd:union>
68 <xsd:simpleType>
69 <xsd:restriction base="xsd:unsignedShort">
70 </xsd:restriction>
71 </xsd:simpleType>
72 <xsd:simpleType>
73 <xsd:restriction base="xsd:string">
74 <xsd:pattern value="0[xX][A-Fa-f0-9]{1,4}"/>
75 </xsd:restriction>
76 </xsd:simpleType>
77 </xsd:union>
78</xsd:simpleType>
79
80<xsd:simpleType name="TUInt16Hex">
81 <xsd:restriction base="xsd:string">
82 <xsd:pattern value="0x[A-Fa-f0-9]{1,4}"/>
83 </xsd:restriction>
84</xsd:simpleType>
85
86<xsd:simpleType name="TUInt16HexNoBase">
87 <xsd:restriction base="xsd:string">
88 <xsd:pattern value="[A-Fa-f0-9]{1,4}"/>
89 </xsd:restriction>
90</xsd:simpleType>
91
92<xsd:simpleType name="TUInt32Hex">
93 <xsd:restriction base="xsd:string">
94 <xsd:pattern value="0x[A-Fa-f0-9]{1,8}"/>
95 </xsd:restriction>
96</xsd:simpleType>
97
98<xsd:simpleType name="TUInt64Hex">
99 <xsd:restriction base="xsd:string">
100 <xsd:pattern value="0x[A-Fa-f0-9]{1,16}"/>
101 </xsd:restriction>
102</xsd:simpleType>
103
104<xsd:simpleType name="TLocalFile">
105 <xsd:restriction base="xsd:string">
106 <xsd:pattern value=".+"/>
107 </xsd:restriction>
108</xsd:simpleType>
109
110<xsd:simpleType name="TDeviceType">
111 <xsd:restriction base="xsd:token">
112 <xsd:enumeration value="None"/>
113 <xsd:enumeration value="Floppy"/>
114 <xsd:enumeration value="DVD"/>
115 <xsd:enumeration value="HardDisk"/>
116 <xsd:enumeration value="Network"/>
117 </xsd:restriction>
118</xsd:simpleType>
119
120<xsd:simpleType name="TMediumDeviceType">
121 <xsd:restriction base="TDeviceType">
122 <xsd:enumeration value="Floppy"/>
123 <xsd:enumeration value="DVD"/>
124 <xsd:enumeration value="HardDisk"/>
125 </xsd:restriction>
126</xsd:simpleType>
127
128<xsd:simpleType name="TMediumType">
129 <xsd:restriction base="xsd:string">
130 <xsd:enumeration value="Normal"/>
131 <xsd:enumeration value="Immutable"/>
132 <xsd:enumeration value="Writethrough"/>
133 <xsd:enumeration value="Shareable"/>
134 <xsd:enumeration value="Readonly"/>
135 <xsd:enumeration value="MultiAttach"/>
136 </xsd:restriction>
137</xsd:simpleType>
138
139<xsd:simpleType name="TMonitorCount">
140 <xsd:restriction base="xsd:unsignedInt">
141 <xsd:minInclusive value="1"/>
142 <!-- This should be in sync with VBOX_VIDEO_MAX_SCREENS in VBoxVideoVBE.h -->
143 <xsd:maxInclusive value="64"/>
144 </xsd:restriction>
145</xsd:simpleType>
146
147<xsd:simpleType name="TUSBDeviceFilterAction">
148 <xsd:restriction base="xsd:token">
149 <xsd:enumeration value="Ignore"/>
150 <xsd:enumeration value="Hold"/>
151 </xsd:restriction>
152</xsd:simpleType>
153
154<xsd:simpleType name="TNonEmptyString">
155 <xsd:restriction base="xsd:string">
156 <xsd:pattern value=".+"/>
157 </xsd:restriction>
158</xsd:simpleType>
159
160<xsd:simpleType name="TPresentDateTimeUTC">
161 <xsd:restriction base="xsd:dateTime">
162 <xsd:minInclusive value="1900-01-01T00:00:00Z"/>
163 <xsd:maxInclusive value="199999999-12-31T23:59:59Z"/>
164 <xsd:pattern value=".+-.+-.+T.+:.+:[0-9]{2}Z"/>
165 </xsd:restriction>
166</xsd:simpleType>
167
168
169<xsd:simpleType name="TAuthType">
170 <xsd:restriction base="xsd:string">
171 <xsd:enumeration value="null"/> <!-- deprecated -->
172 <xsd:enumeration value="Null"/>
173 <xsd:enumeration value="Guest"/>
174 <xsd:enumeration value="External"/>
175 </xsd:restriction>
176</xsd:simpleType>
177
178<xsd:simpleType name="TNetworkAdapterType">
179 <xsd:restriction base="xsd:string">
180 <xsd:enumeration value="Am79C970A"/>
181 <xsd:enumeration value="Am79C973"/>
182 <xsd:enumeration value="82540EM"/>
183 <xsd:enumeration value="82543GC"/>
184 <xsd:enumeration value="82545EM"/>
185 <xsd:enumeration value="virtio"/>
186 </xsd:restriction>
187</xsd:simpleType>
188
189<xsd:simpleType name="TTriStateBoolType">
190 <xsd:restriction base="xsd:string">
191 <xsd:enumeration value="false"/>
192 <xsd:enumeration value="true"/>
193 <xsd:enumeration value="default"/>
194 </xsd:restriction>
195</xsd:simpleType>
196
197<xsd:simpleType name="TBIOSBootMenuModeType">
198 <xsd:restriction base="xsd:string">
199 <xsd:enumeration value="Disabled"/>
200 <xsd:enumeration value="MenuOnly"/>
201 <xsd:enumeration value="MessageAndMenu"/>
202 <xsd:enumeration value="messageandmenu"/> <!-- deprecated -->
203 </xsd:restriction>
204</xsd:simpleType>
205
206<xsd:simpleType name="TLocalOrUTC">
207 <xsd:restriction base="xsd:token">
208 <xsd:enumeration value="local"/>
209 <xsd:enumeration value="UTC"/>
210 </xsd:restriction>
211</xsd:simpleType>
212
213<xsd:simpleType name="TClipboardMode">
214 <xsd:restriction base="xsd:string">
215 <xsd:enumeration value="Disabled"/>
216 <xsd:enumeration value="HostToGuest"/>
217 <xsd:enumeration value="GuestToHost"/>
218 <xsd:enumeration value="Bidirectional"/>
219 </xsd:restriction>
220</xsd:simpleType>
221
222<xsd:simpleType name="TDragAndDropMode">
223 <xsd:restriction base="xsd:string">
224 <xsd:enumeration value="Disabled"/>
225 <xsd:enumeration value="HostToGuest"/>
226 <xsd:enumeration value="GuestToHost"/>
227 <xsd:enumeration value="Bidirectional"/>
228 </xsd:restriction>
229</xsd:simpleType>
230
231<xsd:simpleType name="TBandwidthGroupType">
232 <xsd:restriction base="xsd:string">
233 <xsd:enumeration value="Disk"/>
234 <xsd:enumeration value="Network"/>
235 </xsd:restriction>
236</xsd:simpleType>
237
238<xsd:simpleType name="TPortMode">
239 <xsd:restriction base="xsd:string">
240 <xsd:enumeration value="Disconnected"/>
241 <xsd:enumeration value="RawFile"/>
242 <xsd:enumeration value="HostPipe"/>
243 <xsd:enumeration value="HostDevice"/>
244 <xsd:enumeration value="TCP"/>
245 </xsd:restriction>
246</xsd:simpleType>
247
248<!--
249// Complex types
250/////////////////////////////////////////////////////////////////////////
251-->
252<xsd:complexType name="TDHCPServer">
253 <xsd:attribute name="networkName" type="xsd:string" use="required"/>
254 <xsd:attribute name="lowerIP" type="xsd:string" use="required"/>
255 <xsd:attribute name="upperIP" type="xsd:string" use="required"/>
256 <xsd:attribute name="IPAddress" type="xsd:string" use="required"/>
257 <xsd:attribute name="networkMask" type="xsd:string" use="required"/>
258 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
259</xsd:complexType>
260
261<xsd:complexType name="TProperty">
262 <xsd:attribute name="name" type="xsd:token" use="required"/>
263 <xsd:attribute name="value" type="xsd:string" 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" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
270 <xsd:element name="HardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
271 </xsd:sequence>
272 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
273 <xsd:attribute name="location" type="TLocalFile" use="required"/>
274 <xsd:attribute name="format" type="TNonEmptyString" use="required"/>
275</xsd:complexType>
276
277<xsd:complexType name="TDiffHardDisk">
278 <xsd:complexContent>
279 <xsd:extension base="THardDiskBase">
280 <xsd:attribute name="autoReset" type="xsd:boolean" default="false"/>
281 </xsd:extension>
282 </xsd:complexContent>
283</xsd:complexType>
284
285<xsd:complexType name="THardDisk">
286 <xsd:complexContent>
287 <xsd:extension base="THardDiskBase">
288 <xsd:attribute name="type" type="TMediumType" use="required"/>
289 </xsd:extension>
290 </xsd:complexContent>
291</xsd:complexType>
292
293<xsd:complexType name="TImage2">
294 <xsd:sequence>
295 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
296 </xsd:sequence>
297 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
298 <xsd:attribute name="location" type="TLocalFile" use="required"/>
299 <xsd:attribute name="type" type="TMediumType"/>
300</xsd:complexType>
301
302<xsd:complexType name="TImageRef">
303 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
304</xsd:complexType>
305
306<xsd:complexType name="THostDrive">
307 <xsd:attribute name="src" type="TLocalFile" use="required"/>
308</xsd:complexType>
309
310<xsd:complexType name="TUSBDeviceFilter">
311 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
312 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
313 <xsd:attribute name="vendorId" type="xsd:token"/>
314 <xsd:attribute name="productId" type="xsd:token"/>
315 <xsd:attribute name="revision" type="xsd:token"/>
316 <xsd:attribute name="manufacturer" type="xsd:token"/>
317 <xsd:attribute name="product" type="xsd:token"/>
318 <xsd:attribute name="serialNumber" type="xsd:token"/>
319 <xsd:attribute name="port" type="xsd:token"/>
320 <xsd:attribute name="remote" type="xsd:token"/>
321 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
322</xsd:complexType>
323
324<xsd:complexType name="TUSBDeviceFilters">
325 <xsd:sequence>
326 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter" minOccurs="0"/>
327 </xsd:sequence>
328</xsd:complexType>
329
330<xsd:complexType name="THostUSBDeviceFilter">
331 <xsd:complexContent>
332 <xsd:extension base="TUSBDeviceFilter">
333 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
334 </xsd:extension>
335 </xsd:complexContent>
336</xsd:complexType>
337
338<xsd:complexType name="TSystemProperties">
339 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
340 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
341 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/>
342 <xsd:attribute name="VRDEAuthLibrary" type="TLocalFile"/>
343 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
344 <xsd:attribute name="defaultVRDELibrary" type="TLocalFile"/>
345 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
346 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
347 <xsd:attribute name="defaultVRDEExtPack" type="xsd:string"/>
348 <xsd:attribute name="exclusiveHwVirt" type="xsd:boolean"/>
349</xsd:complexType>
350
351<xsd:complexType name="TExtraData">
352 <xsd:sequence>
353 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
354 <xsd:complexType>
355 <xsd:attribute name="name" type="xsd:token" use="required"/>
356 <xsd:attribute name="value" type="xsd:string" use="required"/>
357 </xsd:complexType>
358 </xsd:element>
359 </xsd:sequence>
360</xsd:complexType>
361
362<xsd:complexType name="TMediaRegistry">
363 <xsd:all>
364 <xsd:element name="HardDisks" minOccurs="0">
365 <xsd:complexType>
366 <xsd:sequence>
367 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
368 </xsd:sequence>
369 </xsd:complexType>
370 </xsd:element>
371 <xsd:element name="DVDImages" minOccurs="0">
372 <xsd:complexType>
373 <xsd:sequence>
374 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
375 </xsd:sequence>
376 </xsd:complexType>
377 </xsd:element>
378 <xsd:element name="FloppyImages" minOccurs="0">
379 <xsd:complexType>
380 <xsd:sequence>
381 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
382 </xsd:sequence>
383 </xsd:complexType>
384 </xsd:element>
385 </xsd:all>
386</xsd:complexType>
387
388<xsd:complexType name="TGlobal">
389 <xsd:all>
390 <xsd:element name="MachineRegistry">
391 <xsd:complexType>
392 <xsd:sequence>
393 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
394 <xsd:complexType>
395 <xsd:attribute name="src" type="TLocalFile" use="required"/>
396 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
397 </xsd:complexType>
398 </xsd:element>
399 </xsd:sequence>
400 </xsd:complexType>
401 </xsd:element>
402 <xsd:element name="MediaRegistry" type="TMediaRegistry"/>
403 <xsd:element name="NetserviceRegistry" minOccurs="0" maxOccurs="1">
404 <xsd:complexType>
405 <xsd:all>
406 <xsd:element name="DHCPServers" minOccurs="0">
407 <xsd:complexType>
408 <xsd:sequence>
409 <xsd:element name="DHCPServer" type="TDHCPServer" minOccurs="0" maxOccurs="unbounded"/>
410 </xsd:sequence>
411 </xsd:complexType>
412 </xsd:element>
413 </xsd:all>
414 </xsd:complexType>
415 </xsd:element>
416 <xsd:element name="USBDeviceFilters">
417 <xsd:complexType>
418 <xsd:sequence>
419 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
420 minOccurs="0" maxOccurs="unbounded"/>
421 </xsd:sequence>
422 </xsd:complexType>
423 </xsd:element>
424 <xsd:element name="SystemProperties" type="TSystemProperties"/>
425 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
426 </xsd:all>
427</xsd:complexType>
428
429<xsd:complexType name="THWVirtExType">
430 <xsd:attribute name="enabled" type="TTriStateBoolType"/>
431 <xsd:attribute name="exclusive" type="xsd:boolean"/>
432</xsd:complexType>
433
434<xsd:complexType name="THWVirtExNestedPagingType">
435 <xsd:attribute name="enabled" type="xsd:boolean"/>
436</xsd:complexType>
437
438<xsd:complexType name="THWVirtExVPIDType">
439 <xsd:attribute name="enabled" type="xsd:boolean"/>
440</xsd:complexType>
441
442<xsd:complexType name="THWVirtExUXType">
443 <xsd:attribute name="enabled" type="xsd:boolean"/>
444</xsd:complexType>
445
446<xsd:complexType name="TSyntheticCpuType">
447 <xsd:attribute name="enabled" type="xsd:boolean"/>
448</xsd:complexType>
449
450<xsd:complexType name="TPAEType">
451 <xsd:attribute name="enabled" type="xsd:boolean"/>
452</xsd:complexType>
453
454<xsd:complexType name="TLongModeType">
455 <xsd:attribute name="enabled" type="xsd:boolean"/>
456</xsd:complexType>
457
458<xsd:complexType name="THardwareVirtExLargePages">
459 <xsd:attribute name="enabled" type="xsd:boolean"/>
460</xsd:complexType>
461
462<xsd:complexType name="THardwareVirtForce">
463 <xsd:attribute name="enabled" type="xsd:boolean"/>
464</xsd:complexType>
465
466<xsd:simpleType name="TCPUCount">
467 <xsd:restriction base="xsd:unsignedInt">
468 <xsd:minInclusive value="1"/>
469 <xsd:maxInclusive value="32"/>
470 </xsd:restriction>
471</xsd:simpleType>
472
473<xsd:complexType name="TCpuIdLeaf">
474 <xsd:attribute name="id" type="xsd:unsignedInt" use="required"/>
475 <xsd:attribute name="eax" type="xsd:unsignedInt" use="required"/>
476 <xsd:attribute name="ebx" type="xsd:unsignedInt" use="required"/>
477 <xsd:attribute name="ecx" type="xsd:unsignedInt" use="required"/>
478 <xsd:attribute name="edx" type="xsd:unsignedInt" use="required"/>
479</xsd:complexType>
480
481<xsd:complexType name="TCpuIdTree">
482 <xsd:sequence>
483 <xsd:element name="CpuIdLeaf" type="TCpuIdLeaf"
484 minOccurs="0" maxOccurs="unbounded"/>
485 </xsd:sequence>
486</xsd:complexType>
487
488<xsd:complexType name="TCPU">
489 <xsd:sequence>
490 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
491 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
492 <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
493 <xsd:element name="HardwareVirtExUX" type="THWVirtExUXType" minOccurs="0"/>
494 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
495 <xsd:element name="LongMode" type="TLongModeType" minOccurs="0"/>
496 <xsd:element name="HardwareVirtExLargePages" type="THardwareVirtExLargePages" minOccurs="0"/>
497 <xsd:element name="HardwareVirtForce" type="THardwareVirtForce" minOccurs="0"/>
498 <xsd:element name="SyntheticCpu" type="TSyntheticCpuType" minOccurs="0"/>
499 <xsd:element name="CpuIdTree" type="TCpuIdTree" minOccurs="0">
500 <xsd:unique name="TCPU-CpuIdTree-CpuIdLeaf">
501 <xsd:selector xpath="vb:CpuIdLeaf"/>
502 <xsd:field xpath="@id"/>
503 </xsd:unique>
504 </xsd:element>
505 </xsd:sequence>
506 <xsd:attribute name="count" type="TCPUCount" default="1"/>
507 <xsd:attribute name="hotplug" type="xsd:boolean" default="false"/>
508</xsd:complexType>
509
510<xsd:complexType name="TBoot">
511 <xsd:sequence>
512 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
513 <xsd:complexType>
514 <xsd:attribute name="position" use="required">
515 <xsd:simpleType>
516 <xsd:restriction base="xsd:unsignedInt">
517 <xsd:minInclusive value="1"/>
518 <xsd:maxInclusive value="4"/>
519 </xsd:restriction>
520 </xsd:simpleType>
521 </xsd:attribute>
522 <xsd:attribute name="device" type="TDeviceType" use="required"/>
523 </xsd:complexType>
524 </xsd:element>
525 </xsd:sequence>
526</xsd:complexType>
527
528<xsd:complexType name="TDisplay">
529 <xsd:attribute name="VRAMSize" use="required">
530 <xsd:simpleType>
531 <xsd:restriction base="xsd:unsignedInt">
532 <xsd:minInclusive value="1"/>
533 <xsd:maxInclusive value="256"/>
534 </xsd:restriction>
535 </xsd:simpleType>
536 </xsd:attribute>
537 <xsd:attribute name="monitorCount" type="TMonitorCount" default="1"/>
538 <xsd:attribute name="MonitorCount" type="TMonitorCount"/> <!-- deprecated -->
539 <xsd:attribute name="accelerate3D" type="xsd:boolean" default="false"/>
540 <xsd:attribute name="accelerate2DVideo" type="xsd:boolean" default="false"/>
541</xsd:complexType>
542
543<xsd:complexType name="TVideoRecording">
544 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
545 <xsd:attribute name="file" type="xsd:string"/>
546 <xsd:attribute name="horzRes">
547 <xsd:simpleType>
548 <xsd:restriction base="xsd:unsignedInt">
549 <xsd:minInclusive value="4"/>
550 <xsd:maxInclusive value="2097152"/>
551 </xsd:restriction>
552 </xsd:simpleType>
553 </xsd:attribute>
554 <xsd:attribute name="vertRes" type="xsd:unsignedInt"/>
555</xsd:complexType>
556
557<xsd:complexType name="TVideoCapture">
558 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
559 <xsd:attribute name="file" type="xsd:string"/>
560 <xsd:attribute name="screens" type="xsd:unsignedLong"/> <!-- todo: fix writing of settings (writes -1) -->
561 <xsd:attribute name="horzRes">
562 <xsd:simpleType>
563 <xsd:restriction base="xsd:unsignedInt">
564 <xsd:minInclusive value="4"/>
565 <xsd:maxInclusive value="2097152"/>
566 </xsd:restriction>
567 </xsd:simpleType>
568 </xsd:attribute>
569 <xsd:attribute name="vertRes" type="xsd:unsignedInt"/>
570 <xsd:attribute name="rate" type="xsd:unsignedInt"/>
571 <xsd:attribute name="fps" type="xsd:unsignedInt"/>
572 <xsd:attribute name="maxTime" type="xsd:unsignedInt"/>
573 <xsd:attribute name="maxSize" type="xsd:unsignedInt"/>
574</xsd:complexType>
575
576<xsd:complexType name="TVRDEProperties">
577 <xsd:sequence>
578 <xsd:element name="Property" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
579 </xsd:sequence>
580</xsd:complexType>
581
582<xsd:complexType name="TVideoChannel">
583 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
584 <xsd:attribute name="quality" type="xsd:unsignedByte" default="75"/>
585</xsd:complexType>
586
587<xsd:complexType name="TRemoteDisplay">
588 <xsd:sequence>
589 <xsd:element name="VideoChannel" type="TVideoChannel" minOccurs="0"/> <!-- deprecated -->
590 <xsd:choice minOccurs="0">
591 <xsd:element name="VRDEProperties" type="TVRDEProperties"/>
592 </xsd:choice>
593 </xsd:sequence>
594 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
595 <xsd:attribute name="port" type="xsd:string" default="3389"/> <!-- deprecated -->
596 <xsd:attribute name="authType" type="TAuthType" default="Null"/>
597 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
598 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
599 <xsd:attribute name="reuseSingleConnection" type="xsd:boolean" default="false"/>
600</xsd:complexType>
601
602<xsd:complexType name="TBIOS">
603 <xsd:all>
604 <xsd:element name="ACPI">
605 <xsd:complexType>
606 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
607 </xsd:complexType>
608 </xsd:element>
609 <xsd:element name="IOAPIC" minOccurs="0">
610 <xsd:complexType>
611 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
612 </xsd:complexType>
613 </xsd:element>
614 <xsd:element name="Logo" minOccurs="0">
615 <xsd:complexType>
616 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
617 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
618 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
619 <xsd:attribute name="imagePath" type="TLocalFile"/>
620 </xsd:complexType>
621 </xsd:element>
622 <xsd:element name="BootMenu" minOccurs="0">
623 <xsd:complexType>
624 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
625 </xsd:complexType>
626 </xsd:element>
627 <xsd:element name="TimeOffset" minOccurs="0">
628 <xsd:complexType>
629 <xsd:attribute name="value" type="xsd:integer" default="0"/>
630 </xsd:complexType>
631 </xsd:element>
632 <xsd:element name="PXEDebug" minOccurs="0">
633 <xsd:complexType>
634 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
635 </xsd:complexType>
636 </xsd:element>
637 <xsd:element name="IDEController" minOccurs="0"> <!-- deprecated -->
638 <xsd:complexType>
639 <xsd:attribute name="type">
640 <xsd:simpleType>
641 <xsd:restriction base="xsd:token">
642 <xsd:enumeration value="PIIX3"/>
643 <xsd:enumeration value="PIIX4"/>
644 <xsd:enumeration value="ICH6"/>
645 </xsd:restriction>
646 </xsd:simpleType>
647 </xsd:attribute>
648 </xsd:complexType>
649 </xsd:element>
650 </xsd:all>
651</xsd:complexType>
652
653<xsd:complexType name="TStorageControllerDevice">
654 <xsd:choice minOccurs="0">
655 <xsd:element name="Image" type="TImageRef"/>
656 <xsd:element name="HostDrive" type="THostDrive"/>
657 </xsd:choice>
658 <xsd:attribute name="type" type="TMediumDeviceType"/>
659 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
660 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
661 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
662 <xsd:attribute name="tempeject" type="xsd:boolean" default="false"/>
663 <xsd:attribute name="nonrotational" type="xsd:boolean" default="false"/>
664 <xsd:attribute name="discard" type="xsd:boolean" default="false"/>
665 <xsd:attribute name="hotpluggable" type="xsd:boolean" default="false"/>
666</xsd:complexType>
667
668<xsd:complexType name="TStorageController">
669 <xsd:sequence>
670 <xsd:element name="AttachedDevice" type="TStorageControllerDevice"
671 minOccurs="0" maxOccurs="unbounded"/>
672 </xsd:sequence>
673 <xsd:attribute name="name" type="xsd:string" use="required"/>
674 <xsd:attribute name="type" use="required">
675 <xsd:simpleType>
676 <xsd:restriction base="xsd:token">
677 <xsd:enumeration value="AHCI"/>
678 <xsd:enumeration value="LsiLogic"/>
679 <xsd:enumeration value="BusLogic"/>
680 <xsd:enumeration value="PIIX3"/>
681 <xsd:enumeration value="PIIX4"/>
682 <xsd:enumeration value="ICH6"/>
683 <xsd:enumeration value="LsiLogicSas"/>
684 <xsd:enumeration value="I82078"/>
685 <xsd:enumeration value="USB"/>
686 <xsd:enumeration value="NVMe"/>
687 </xsd:restriction>
688 </xsd:simpleType>
689 </xsd:attribute>
690 <xsd:attribute name="PortCount" type="xsd:unsignedInt" use="required"/>
691 <xsd:attribute name="useHostIOCache" type="xsd:boolean" use="optional" default="true"/>
692 <xsd:attribute name="Bootable" type="xsd:boolean" use="optional"/>
693 <xsd:attribute name="PCIBus" type="xsd:unsignedInt" use="optional"/>
694 <xsd:attribute name="PCIDevice" type="xsd:unsignedInt" use="optional"/>
695 <xsd:attribute name="PCIFunction" type="xsd:unsignedInt" use="optional"/>
696 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
697 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
698 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
699 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
700</xsd:complexType>
701
702<xsd:complexType name="TSATAController"> <!-- deprecated -->
703 <xsd:sequence>
704 <xsd:element name="AttachedDevice" type="TStorageControllerDevice"
705 minOccurs="0" maxOccurs="unbounded"/>
706 </xsd:sequence>
707 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
708 <xsd:attribute name="PortCount" type="xsd:unsignedInt" use="required"/>
709 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
710 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
711 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
712 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
713</xsd:complexType>
714
715<xsd:complexType name="TStorageControllers">
716 <xsd:sequence>
717 <xsd:element name="StorageController" type="TStorageController"
718 minOccurs="0" maxOccurs="unbounded"/>
719 </xsd:sequence>
720</xsd:complexType>
721
722<xsd:complexType name="THardDiskAttachment">
723 <xsd:attribute name="hardDisk" type="TNonNullUUID"/>
724 <xsd:attribute name="bus" default="IDE">
725 <xsd:simpleType>
726 <xsd:restriction base="xsd:token">
727 <xsd:enumeration value="IDE"/>
728 <xsd:enumeration value="SATA"/>
729 </xsd:restriction>
730 </xsd:simpleType>
731 </xsd:attribute>
732 <xsd:attribute name="channel" type="xsd:unsignedInt" default="0"/>
733 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
734</xsd:complexType>
735
736<xsd:complexType name="THardDiskAttachments"> <!-- deprecated -->
737 <xsd:sequence>
738 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
739 minOccurs="0" maxOccurs="unbounded"/>
740 </xsd:sequence>
741</xsd:complexType>
742
743<xsd:complexType name="TDVDDrive">
744 <xsd:choice minOccurs="0">
745 <xsd:element name="Image" type="TImageRef"/>
746 <xsd:element name="HostDrive" type="THostDrive"/>
747 </xsd:choice>
748 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
749</xsd:complexType>
750
751<xsd:complexType name="TFloppyDrive">
752 <xsd:choice minOccurs="0">
753 <xsd:element name="Image" type="TImageRef"/>
754 <xsd:element name="HostDrive" type="THostDrive"/>
755 </xsd:choice>
756 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
757</xsd:complexType>
758
759<xsd:complexType name="TUSBController">
760 <xsd:sequence>
761 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
762 minOccurs="0" maxOccurs="unbounded"/>
763 </xsd:sequence>
764 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
765 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
766</xsd:complexType>
767
768<xsd:complexType name="TUSBController2">
769 <xsd:attribute name="name" type="xsd:string" use="required"/>
770 <xsd:attribute name="type" use="required">
771 <xsd:simpleType>
772 <xsd:restriction base="xsd:token">
773 <xsd:enumeration value="OHCI"/>
774 <xsd:enumeration value="EHCI"/>
775 <xsd:enumeration value="XHCI"/>
776 </xsd:restriction>
777 </xsd:simpleType>
778 </xsd:attribute>
779</xsd:complexType>
780
781<xsd:complexType name="TUSBControllers">
782 <xsd:sequence>
783 <xsd:element name="Controller" type="TUSBController2"
784 minOccurs="0" maxOccurs="unbounded"/>
785 </xsd:sequence>
786</xsd:complexType>
787
788<xsd:complexType name="TUSB">
789 <xsd:sequence>
790 <xsd:element name="Controllers" type="TUSBControllers"/>
791 <xsd:element name="DeviceFilters" type="TUSBDeviceFilters"/>
792 </xsd:sequence>
793</xsd:complexType>
794
795
796<xsd:complexType name="TAudioAdapter">
797 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
798 <xsd:attribute name="controller" default="AC97">
799 <xsd:simpleType>
800 <xsd:restriction base="xsd:token">
801 <xsd:enumeration value="AC97"/>
802 <xsd:enumeration value="SB16"/>
803 <xsd:enumeration value="HDA"/>
804 </xsd:restriction>
805 </xsd:simpleType>
806 </xsd:attribute>
807 <xsd:attribute name="driver" use="required">
808 <xsd:simpleType>
809 <xsd:restriction base="xsd:token">
810 <xsd:enumeration value="null"/> <!-- deprecated -->
811 <xsd:enumeration value="Null"/> <!-- all platforms -->
812 <xsd:enumeration value="OSS"/> <!-- Linux, Solaris, FreeBSD -->
813 <xsd:enumeration value="ALSA"/> <!-- Linux, FreeBSD -->
814 <xsd:enumeration value="Pulse"/> <!-- Linux -->
815 <xsd:enumeration value="CoreAudio"/> <!-- Mac OS X -->
816 <xsd:enumeration value="MMPM"/> <!-- OS/2 -->
817 <xsd:enumeration value="SolAudio"/> <!-- Solaris -->
818 <xsd:enumeration value="WinMM"/> <!-- Windows -->
819 <xsd:enumeration value="DirectSound"/> <!-- Windows -->
820 </xsd:restriction>
821 </xsd:simpleType>
822 </xsd:attribute>
823</xsd:complexType>
824
825<xsd:complexType name="TNetNAT">
826 <xsd:choice minOccurs="0" maxOccurs="unbounded">
827 <xsd:element name="DNS" minOccurs="0">
828 <xsd:complexType>
829 <xsd:attribute name="pass-domain" type="xsd:boolean" default="true"/>
830 <xsd:attribute name="use-proxy" type="xsd:boolean" default="false"/>
831 <xsd:attribute name="use-host-resolver" type="xsd:boolean" default="false"/>
832 </xsd:complexType>
833 </xsd:element>
834 <xsd:element name="Alias" minOccurs="0">
835 <xsd:complexType>
836 <xsd:attribute name="logging" type="xsd:boolean" default="false"/>
837 <xsd:attribute name="proxy-only" type="xsd:boolean" default="false"/>
838 <xsd:attribute name="use-same-ports" type="xsd:boolean" default="false"/>
839 </xsd:complexType>
840 </xsd:element>
841 <xsd:element name="TFTP" minOccurs="0">
842 <xsd:complexType>
843 <xsd:attribute name="prefix" type="xsd:string"/>
844 <xsd:attribute name="boot-file" type="xsd:string"/>
845 <xsd:attribute name="next-server" type="xsd:string"/>
846 </xsd:complexType>
847 </xsd:element>
848 <xsd:element name="Forwarding" minOccurs="0" maxOccurs="unbounded">
849 <xsd:complexType>
850 <xsd:attribute name="name" type="xsd:string"/>
851 <xsd:attribute name="proto" type="xsd:unsignedInt"/>
852 <xsd:attribute name="hostip" type="xsd:string"/>
853 <xsd:attribute name="hostport" type="xsd:unsignedInt"/>
854 <xsd:attribute name="guestip" type="xsd:string"/>
855 <xsd:attribute name="guestport" type="xsd:unsignedInt"/>
856 </xsd:complexType>
857 </xsd:element>
858 </xsd:choice>
859 <xsd:attribute name="network" type="xsd:string"/>
860 <xsd:attribute name="hostip" type="xsd:string"/>
861 <xsd:attribute name="mtu" type="xsd:unsignedInt"/>
862 <xsd:attribute name="sockrcv" type="xsd:unsignedInt"/>
863 <xsd:attribute name="socksnd" type="xsd:unsignedInt"/>
864 <xsd:attribute name="tcprcv" type="xsd:unsignedInt"/>
865 <xsd:attribute name="tcpsnd" type="xsd:unsignedInt"/>
866</xsd:complexType>
867
868<xsd:complexType name="TNetNATNetwork">
869 <xsd:attribute name="name" type="xsd:string" use="required"/>
870</xsd:complexType>
871
872<xsd:complexType name="TNetBridged">
873 <xsd:attribute name="name" type="xsd:string" use="required"/>
874</xsd:complexType>
875
876<xsd:complexType name="TNetInternal">
877 <xsd:attribute name="name" type="xsd:string" use="required"/>
878</xsd:complexType>
879
880<xsd:complexType name="TNetHostOnly">
881 <xsd:attribute name="name" type="xsd:string" use="required"/>
882</xsd:complexType>
883
884<xsd:complexType name="TNetGeneric">
885 <xsd:sequence>
886 <xsd:element name="Property" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
887 </xsd:sequence>
888 <xsd:attribute name="driver" type="xsd:string" use="required"/>
889</xsd:complexType>
890
891<xsd:complexType name="TNetworkConfig">
892 <xsd:choice maxOccurs="2">
893 <xsd:choice minOccurs="0">
894 <xsd:element name="NAT" type="TNetNAT"/>
895 <xsd:element name="NATNetwork" type="TNetNATNetwork"/>
896 <xsd:element name="HostInterface" type="TNetBridged"/>
897 <xsd:element name="BridgedInterface" type="TNetBridged"/>
898 <xsd:element name="InternalNetwork" type="TNetInternal"/>
899 <xsd:element name="HostOnlyInterface" type="TNetHostOnly"/>
900 <xsd:element name="GenericInterface" type="TNetGeneric"/>
901 </xsd:choice>
902 <xsd:element name="DisabledModes">
903 <xsd:complexType>
904 <xsd:all>
905 <xsd:element name="NAT" type="TNetNAT" minOccurs="0"/>
906 <xsd:element name="NATNetwork" type="TNetNATNetwork" minOccurs="0"/>
907 <xsd:element name="HostInterface" type="TNetBridged" minOccurs="0"/>
908 <xsd:element name="BridgedInterface" type="TNetBridged" minOccurs="0"/>
909 <xsd:element name="InternalNetwork" type="TNetInternal" minOccurs="0"/>
910 <xsd:element name="HostOnlyInterface" type="TNetHostOnly" minOccurs="0"/>
911 <xsd:element name="GenericInterface" type="TNetGeneric" minOccurs="0"/>
912 </xsd:all>
913 </xsd:complexType>
914 </xsd:element>
915 </xsd:choice>
916</xsd:complexType>
917
918<xsd:complexType name="TNetworkAdapter">
919 <xsd:complexContent>
920 <xsd:extension base="TNetworkConfig">
921 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
922 <xsd:attribute name="slot" type="xsd:unsignedInt" use="required"/>
923 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
924 <xsd:attribute name="MACAddress">
925 <xsd:simpleType>
926 <xsd:restriction base="xsd:hexBinary">
927 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
928 </xsd:restriction>
929 </xsd:simpleType>
930 </xsd:attribute>
931 <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
932 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
933 <xsd:attribute name="bootPriority" type="xsd:unsignedInt"/>
934 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
935 <xsd:attribute name="tracefile" type="xsd:string"/>
936 <xsd:attribute name="bandwidthGroup" type="xsd:string"/>
937 </xsd:extension>
938 </xsd:complexContent>
939</xsd:complexType>
940
941<xsd:complexType name="TNetwork">
942 <xsd:sequence>
943 <xsd:element name="Adapter" type="TNetworkAdapter"
944 minOccurs="0" maxOccurs="unbounded"/>
945 </xsd:sequence>
946</xsd:complexType>
947
948<xsd:complexType name="TUARTPort">
949 <xsd:attribute name="slot" use="required">
950 <xsd:simpleType>
951 <xsd:restriction base="xsd:unsignedInt">
952 <xsd:minInclusive value="0"/>
953 <xsd:maxExclusive value="2"/>
954 </xsd:restriction>
955 </xsd:simpleType>
956 </xsd:attribute>
957 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
958 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
959 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
960 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
961 <xsd:attribute name="path" type="TLocalFile"/>
962 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
963</xsd:complexType>
964
965<xsd:complexType name="TUART">
966 <xsd:sequence>
967 <xsd:element name="Port" type="TUARTPort"
968 minOccurs="0" maxOccurs="unbounded"/>
969 </xsd:sequence>
970</xsd:complexType>
971
972<xsd:complexType name="TUartPort"> <!-- deprecated -->
973 <xsd:attribute name="slot" use="required">
974 <xsd:simpleType>
975 <xsd:restriction base="xsd:unsignedInt">
976 <xsd:minInclusive value="0"/>
977 <xsd:maxExclusive value="2"/>
978 </xsd:restriction>
979 </xsd:simpleType>
980 </xsd:attribute>
981 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
982 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
983 <xsd:attribute name="IOBase" type="TUInt16HexNoBase" use="required"/>
984 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
985 <xsd:attribute name="path" type="TLocalFile"/>
986 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
987</xsd:complexType>
988
989<xsd:complexType name="TUart"> <!-- deprecated -->
990 <xsd:sequence>
991 <xsd:element name="Port" type="TUartPort"
992 minOccurs="0" maxOccurs="unbounded"/>
993 </xsd:sequence>
994</xsd:complexType>
995
996<xsd:complexType name="TLPTPort">
997 <xsd:attribute name="slot" use="required">
998 <xsd:simpleType>
999 <xsd:restriction base="xsd:unsignedInt">
1000 <xsd:minInclusive value="0"/>
1001 <xsd:maxExclusive value="2"/>
1002 </xsd:restriction>
1003 </xsd:simpleType>
1004 </xsd:attribute>
1005 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1006 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1007 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
1008 <xsd:attribute name="path" type="TLocalFile"/>
1009</xsd:complexType>
1010
1011<xsd:complexType name="TLPT">
1012 <xsd:sequence>
1013 <xsd:element name="Port" type="TLPTPort"
1014 minOccurs="0" maxOccurs="unbounded"/>
1015 </xsd:sequence>
1016</xsd:complexType>
1017
1018<xsd:complexType name="TLptPort"> <!-- deprecated -->
1019 <xsd:attribute name="slot" use="required">
1020 <xsd:simpleType>
1021 <xsd:restriction base="xsd:unsignedInt">
1022 <xsd:minInclusive value="0"/>
1023 <xsd:maxExclusive value="2"/>
1024 </xsd:restriction>
1025 </xsd:simpleType>
1026 </xsd:attribute>
1027 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1028 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1029 <xsd:attribute name="IOBase" type="TUInt16HexNoBase" use="required"/>
1030 <xsd:attribute name="path" type="TLocalFile"/>
1031</xsd:complexType>
1032
1033<xsd:complexType name="TLpt">
1034 <xsd:sequence>
1035 <xsd:element name="Port" type="TLptPort"
1036 minOccurs="0" maxOccurs="unbounded"/>
1037 </xsd:sequence>
1038</xsd:complexType>
1039
1040<xsd:complexType name="TRTC">
1041 <xsd:attribute name="localOrUTC" type="TLocalOrUTC" use="required"/>
1042</xsd:complexType>
1043
1044<xsd:complexType name="TSharedFolder">
1045 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
1046 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
1047 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
1048 <xsd:attribute name="autoMount" type="xsd:boolean" default="false"/>
1049</xsd:complexType>
1050
1051<xsd:complexType name="TSharedFolders">
1052 <xsd:sequence>
1053 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
1054 </xsd:sequence>
1055</xsd:complexType>
1056
1057<xsd:complexType name="TClipboard">
1058 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
1059</xsd:complexType>
1060
1061<xsd:complexType name="TDragAndDrop">
1062 <xsd:attribute name="mode" type="TDragAndDropMode" use="required"/>
1063</xsd:complexType>
1064
1065<xsd:complexType name="TIoCache">
1066 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
1067 <xsd:attribute name="size" type="xsd:unsignedLong"/>
1068</xsd:complexType>
1069
1070<xsd:complexType name="TBandwidthGroup">
1071 <xsd:attribute name="name" type="xsd:token" use="required"/>
1072 <xsd:attribute name="type" type="TBandwidthGroupType" use="required"/>
1073 <xsd:attribute name="maxBytesPerSec" type="xsd:unsignedLong"/>
1074 <xsd:attribute name="maxMbPerSec" type="xsd:unsignedLong"/>
1075</xsd:complexType>
1076
1077<xsd:complexType name="TBandwidthGroups">
1078 <xsd:sequence>
1079 <xsd:element name="BandwidthGroup" type="TBandwidthGroup" minOccurs="0" maxOccurs="unbounded"/>
1080 </xsd:sequence>
1081</xsd:complexType>
1082
1083<xsd:complexType name="TIO">
1084 <xsd:sequence>
1085 <xsd:element name="IoCache" type="TIoCache" minOccurs="0"/>
1086 <xsd:element name="BandwidthGroups" type="TBandwidthGroups" minOccurs="0"/>
1087 </xsd:sequence>
1088</xsd:complexType>
1089
1090<xsd:complexType name="THostPciDevice">
1091 <xsd:attribute name="host" type="xsd:unsignedInt" use="required"/>
1092 <xsd:attribute name="guest" type="xsd:unsignedInt" use="required"/>
1093 <xsd:attribute name="name" type="xsd:token"/>
1094</xsd:complexType>
1095
1096<xsd:complexType name="THostPciDevices">
1097 <xsd:sequence>
1098 <xsd:element name="Device" type="THostPciDevice" minOccurs="0" maxOccurs="unbounded"/>
1099 </xsd:sequence>
1100</xsd:complexType>
1101
1102<xsd:complexType name="THostPci">
1103 <xsd:sequence>
1104 <xsd:element name="Devices" type="THostPciDevices" minOccurs="0"/>
1105 </xsd:sequence>
1106</xsd:complexType>
1107
1108<xsd:complexType name="TCardReader">
1109 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1110</xsd:complexType>
1111
1112<xsd:complexType name="TWebcam">
1113 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1114</xsd:complexType>
1115
1116<xsd:complexType name="TEmulatedUSB">
1117 <xsd:sequence>
1118 <xsd:element name="CardReader" type="TCardReader" minOccurs="0"/>
1119 <xsd:element name="Webcam" type="TWebcam" minOccurs="0"/>
1120 </xsd:sequence>
1121</xsd:complexType>
1122
1123<xsd:complexType name="TGuest">
1124 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
1125 <xsd:attribute name="MemoryBalloonSize" type="xsd:unsignedInt" default="0"/> <!-- deprecated -->
1126 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
1127 <xsd:attribute name="StatisticsUpdateInterval" type="xsd:unsignedInt" default="0"/> <!-- deprecated -->
1128</xsd:complexType>
1129
1130<xsd:complexType name="TGuestProperty">
1131 <xsd:attribute name="name" type="xsd:string" use="required"/>
1132 <xsd:attribute name="value" type="xsd:string" use="required"/>
1133 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
1134 <xsd:attribute name="flags" type="xsd:string" default=""/>
1135</xsd:complexType>
1136
1137<xsd:complexType name="TGuestProperties">
1138 <xsd:sequence>
1139 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
1140 </xsd:sequence>
1141 <xsd:attribute name="notificationPatterns" type="xsd:string" default=""/>
1142</xsd:complexType>
1143
1144<xsd:complexType name="TMemory">
1145 <xsd:attribute name="RAMSize" use="required">
1146 <xsd:simpleType>
1147 <xsd:restriction base="xsd:unsignedInt">
1148 <xsd:minInclusive value="4"/>
1149 <xsd:maxInclusive value="2097152"/>
1150 </xsd:restriction>
1151 </xsd:simpleType>
1152 </xsd:attribute>
1153 <xsd:attribute name="PageFusion" type="xsd:boolean" default="false"/>
1154</xsd:complexType>
1155
1156<xsd:complexType name="TFirmware">
1157 <xsd:attribute name="type" use="required">
1158 <xsd:simpleType>
1159 <xsd:restriction base="xsd:token">
1160 <xsd:enumeration value="BIOS"/>
1161 <xsd:enumeration value="EFI"/>
1162 <xsd:enumeration value="EFI32"/>
1163 <xsd:enumeration value="EFI64"/>
1164 <xsd:enumeration value="EFIDUAL"/>
1165 </xsd:restriction>
1166 </xsd:simpleType>
1167 </xsd:attribute>
1168</xsd:complexType>
1169
1170<xsd:complexType name="THID">
1171 <xsd:attribute name="Pointing" use="required">
1172 <xsd:simpleType>
1173 <xsd:restriction base="xsd:token">
1174 <xsd:enumeration value="USBMouse"/>
1175 <xsd:enumeration value="USBTablet"/>
1176 <xsd:enumeration value="PS2Mouse"/>
1177 <xsd:enumeration value="ComboMouse"/>
1178 </xsd:restriction>
1179 </xsd:simpleType>
1180 </xsd:attribute>
1181 <xsd:attribute name="Keyboard" use="required">
1182 <xsd:simpleType>
1183 <xsd:restriction base="xsd:token">
1184 <xsd:enumeration value="USBKeyboard"/>
1185 <xsd:enumeration value="PS2Keyboard"/>
1186 <xsd:enumeration value="ComboKeyboard"/>
1187 </xsd:restriction>
1188 </xsd:simpleType>
1189 </xsd:attribute>
1190</xsd:complexType>
1191
1192<xsd:complexType name="THPET">
1193 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1194</xsd:complexType>
1195
1196<xsd:complexType name="TChipset">
1197 <xsd:attribute name="type" use="required">
1198 <xsd:simpleType>
1199 <xsd:restriction base="xsd:token">
1200 <xsd:enumeration value="PIIX3"/>
1201 <xsd:enumeration value="ICH9"/>
1202 </xsd:restriction>
1203 </xsd:simpleType>
1204 </xsd:attribute>
1205</xsd:complexType>
1206
1207<xsd:complexType name="TParavirt">
1208 <xsd:attribute name="provider" use="required">
1209 <xsd:simpleType>
1210 <xsd:restriction base="xsd:token">
1211 <xsd:enumeration value="None"/>
1212 <xsd:enumeration value="Default"/>
1213 <xsd:enumeration value="Legacy"/>
1214 <xsd:enumeration value="Minimal"/>
1215 <xsd:enumeration value="HyperV"/>
1216 <xsd:enumeration value="KVM"/>
1217 </xsd:restriction>
1218 </xsd:simpleType>
1219 </xsd:attribute>
1220 <xsd:attribute name="debug" type="xsd:string"/>
1221</xsd:complexType>
1222
1223<xsd:complexType name="TTeleporter">
1224 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1225 <xsd:attribute name="port" type="xsd:unsignedShort"/>
1226 <xsd:attribute name="address" type="xsd:string"/>
1227 <xsd:attribute name="password" type="xsd:string"/>
1228</xsd:complexType>
1229
1230<xsd:complexType name="TFaultTolerance">
1231 <xsd:attribute name="state" use="required">
1232 <xsd:simpleType>
1233 <xsd:restriction base="xsd:token">
1234 <xsd:enumeration value="inactive"/>
1235 <xsd:enumeration value="master"/>
1236 <xsd:enumeration value="standby"/>
1237 </xsd:restriction>
1238 </xsd:simpleType>
1239 </xsd:attribute>
1240 <xsd:attribute name="port" type="xsd:unsignedShort"/>
1241 <xsd:attribute name="address" type="xsd:string"/>
1242 <xsd:attribute name="interval" type="xsd:unsignedInt"/>
1243 <xsd:attribute name="password" type="xsd:string"/>
1244</xsd:complexType>
1245
1246<xsd:complexType name="THardware">
1247 <xsd:all>
1248 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
1249 <xsd:element name="Memory" type="TMemory"/>
1250 <xsd:element name="Firmware" type="TFirmware" minOccurs="0"/>
1251 <xsd:element name="HID" type="THID" minOccurs="0"/>
1252 <xsd:element name="HPET" type="THPET" minOccurs="0"/>
1253 <xsd:element name="Chipset" type="TChipset" minOccurs="0"/>
1254 <xsd:element name="Paravirt" type="TParavirt" minOccurs="0"/>
1255 <xsd:element name="Boot" type="TBoot">
1256 <xsd:unique name="THardware-Boot-Order">
1257 <xsd:selector xpath="vb:Order"/>
1258 <xsd:field xpath="@position"/>
1259 </xsd:unique>
1260 </xsd:element>
1261 <xsd:element name="Display" type="TDisplay"/>
1262 <xsd:element name="VideoRecording" type="TVideoRecording" minOccurs="0"/>
1263 <xsd:element name="VideoCapture" type="TVideoCapture" minOccurs="0"/>
1264 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
1265 <xsd:element name="BIOS" type="TBIOS"/>
1266 <xsd:element name="DVDDrive" type="TDVDDrive" minOccurs="0"/>
1267 <xsd:element name="FloppyDrive" type="TFloppyDrive" minOccurs="0"/>
1268 <xsd:element name="USBController" type="TUSBController" minOccurs="0"/>
1269 <xsd:element name="USB" type="TUSB" minOccurs="0"/>
1270 <xsd:element name="SATAController" type="TSATAController" minOccurs="0"/> <!-- deprecated -->
1271 <xsd:element name="Network" type="TNetwork">
1272 <xsd:unique name="THardware-Network-Adapter">
1273 <xsd:selector xpath="vb:Adapter"/>
1274 <xsd:field xpath="@slot"/>
1275 </xsd:unique>
1276 </xsd:element>
1277 <xsd:element name="UART" type="TUART" minOccurs="0">
1278 <xsd:unique name="THardware-UART-Port">
1279 <xsd:selector xpath="vb:Port"/>
1280 <xsd:field xpath="@slot"/>
1281 </xsd:unique>
1282 </xsd:element>
1283 <xsd:element name="Uart" type="TUart" minOccurs="0"> <!-- deprecated -->
1284 <xsd:unique name="THardware-Uart-Port">
1285 <xsd:selector xpath="vb:Port"/>
1286 <xsd:field xpath="@slot"/>
1287 </xsd:unique>
1288 </xsd:element>
1289 <xsd:element name="LPT" type="TLPT" minOccurs="0">
1290 <xsd:unique name="THardware-LPT-Port">
1291 <xsd:selector xpath="vb:Port"/>
1292 <xsd:field xpath="@slot"/>
1293 </xsd:unique>
1294 </xsd:element>
1295 <xsd:element name="Lpt" type="TLpt" minOccurs="0"> <!-- deprecated -->
1296 <xsd:unique name="THardware-Lpt-Port">
1297 <xsd:selector xpath="vb:Port"/>
1298 <xsd:field xpath="@slot"/>
1299 </xsd:unique>
1300 </xsd:element>
1301 <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
1302 <xsd:element name="RTC" type="TRTC" minOccurs="0"/>
1303 <xsd:element name="SharedFolders" type="TSharedFolders">
1304 <xsd:unique name="THardware-SharedFolders-SharedFolder">
1305 <xsd:selector xpath="vb:SharedFolder"/>
1306 <xsd:field xpath="@name"/>
1307 </xsd:unique>
1308 </xsd:element>
1309 <xsd:element name="Clipboard" type="TClipboard"/>
1310 <xsd:element name="DragAndDrop" type="TDragAndDrop" minOccurs="0"/>
1311 <xsd:element name="IO" type="TIO" minOccurs="0"/>
1312 <xsd:element name="HostPci" type="THostPci" minOccurs="0"/>
1313 <xsd:element name="EmulatedUSB" type="TEmulatedUSB" minOccurs="0"/>
1314 <xsd:element name="Guest" type="TGuest"/>
1315 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
1316 <xsd:unique name="THardware-GuestProperties-GuestProperty">
1317 <xsd:selector xpath="vb:GuestProperty"/>
1318 <xsd:field xpath="@name"/>
1319 </xsd:unique>
1320 </xsd:element>
1321 </xsd:all>
1322 <xsd:attribute name="version" type="xsd:string" default="2"/>
1323</xsd:complexType>
1324
1325<xsd:complexType name="TGroup">
1326 <xsd:attribute name="name" type="xsd:string" use="required"/>
1327</xsd:complexType>
1328
1329<xsd:complexType name="TGroups">
1330 <xsd:sequence>
1331 <xsd:element name="Group" type="TGroup" minOccurs="0" maxOccurs="unbounded"/>
1332 </xsd:sequence>
1333</xsd:complexType>
1334
1335<xsd:complexType name="TMachine">
1336 <xsd:all>
1337 <xsd:element name="MediaRegistry" type="TMediaRegistry" minOccurs="0"/>
1338 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
1339 <xsd:element name="Teleporter" type="TTeleporter" minOccurs="0"/>
1340 <xsd:element name="FaultTolerance" type="TFaultTolerance" minOccurs="0"/>
1341 <xsd:element name="Hardware" type="THardware"/>
1342 <xsd:element name="StorageControllers" type="TStorageControllers" minOccurs="0"/>
1343 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments" minOccurs="0"/> <!-- deprecated -->
1344 <xsd:element name="Groups" type="TGroups" minOccurs="0"/>
1345 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
1346 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
1347 </xsd:all>
1348 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
1349 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
1350 <xsd:attribute name="directoryIncludesUUID" type="xsd:boolean" default="false"/>
1351 <xsd:attribute name="OSType" type="TNonEmptyString" use="required"/>
1352 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
1353 <xsd:attribute name="stateFile" type="TLocalFile"/>
1354 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
1355 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
1356 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
1357 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
1358 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
1359</xsd:complexType>
1360
1361<xsd:complexType name="TSnapshot">
1362 <xsd:all>
1363 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
1364 <xsd:element name="Hardware" type="THardware"/>
1365 <xsd:element name="StorageControllers" type="TStorageControllers"/>
1366 <xsd:element name="Snapshots" minOccurs="0">
1367 <xsd:complexType>
1368 <xsd:sequence>
1369 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
1370 </xsd:sequence>
1371 </xsd:complexType>
1372 </xsd:element>
1373 </xsd:all>
1374 <xsd:attribute name="name" type="xsd:token" use="required"/>
1375 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
1376 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
1377 <xsd:attribute name="stateFile" type="TLocalFile"/>
1378</xsd:complexType>
1379
1380<xsd:complexType name="TVirtualBox">
1381 <xsd:choice>
1382 <xsd:element name="Global" type="TGlobal"/>
1383 <xsd:element name="Machine" type="TMachine">
1384 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
1385 <xsd:key name="snapshot">
1386 <xsd:selector xpath=".//vb:Snapshot"/>
1387 <xsd:field xpath="@uuid"/>
1388 </xsd:key>
1389 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
1390 <xsd:selector xpath="."/>
1391 <xsd:field xpath="@currentSnapshot"/>
1392 </xsd:keyref>
1393 </xsd:element>
1394 </xsd:choice>
1395 <xsd:attribute name="version" type="xsd:string"/>
1396</xsd:complexType>
1397
1398<!-- Root element for all VirtualBox config files -->
1399<xsd:element name="VirtualBox" type="TVirtualBox"/>
1400
1401</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