VirtualBox

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

Last change on this file since 77329 was 68956, checked in by vboxsync, 7 years ago

VideoRec: Added serializing the options string (into XML settings), which was missing before.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 55.6 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-2017 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.virtualbox.org/"
23 xmlns:vb="http://www.virtualbox.org/"
24 targetNamespace="http://www.virtualbox.org/"
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-2017 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 VBoxVideo.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:sequence>
254 <xsd:element name="Options" minOccurs="0">
255 <xsd:complexType>
256 <xsd:sequence>
257 <xsd:element name="Option" type="TDHCPOption" minOccurs="0" maxOccurs="unbounded"/>
258 </xsd:sequence>
259 </xsd:complexType>
260 </xsd:element>
261 </xsd:sequence>
262 <xsd:attribute name="networkName" type="xsd:string" use="required"/>
263 <xsd:attribute name="lowerIP" type="xsd:string" use="required"/>
264 <xsd:attribute name="upperIP" type="xsd:string" use="required"/>
265 <xsd:attribute name="IPAddress" type="xsd:string" use="required"/>
266 <xsd:attribute name="networkMask" type="xsd:string" use="required"/>
267 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
268</xsd:complexType>
269
270<xsd:complexType name="TDHCPOption">
271 <xsd:attribute name="name" type="xsd:string" use="required"/>
272 <xsd:attribute name="value" type="xsd:string" use="required"/>
273 <xsd:attribute name="encoding" type="xsd:integer" default="0"/>
274</xsd:complexType>
275
276<xsd:complexType name="TNATNetwork">
277 <xsd:sequence>
278 <xsd:element name="PortForwarding4" minOccurs="0">
279 <xsd:complexType>
280 <xsd:sequence>
281 <xsd:element name="Forwarding" type="TNATPortForwarding" minOccurs="0" maxOccurs="unbounded"/>
282 </xsd:sequence>
283 </xsd:complexType>
284 </xsd:element>
285 <xsd:element name="PortForwarding6" minOccurs="0">
286 <xsd:complexType>
287 <xsd:sequence>
288 <xsd:element name="Forwarding" type="TNATPortForwarding" minOccurs="0" maxOccurs="unbounded"/>
289 </xsd:sequence>
290 </xsd:complexType>
291 </xsd:element>
292 <xsd:element name="Mappings" minOccurs="0">
293 <xsd:complexType>
294 <xsd:sequence>
295 <xsd:element name="Loopback4" type="TNATLoopback4" minOccurs="0" maxOccurs="unbounded"/>
296 </xsd:sequence>
297 </xsd:complexType>
298 </xsd:element>
299 </xsd:sequence>
300 <xsd:attribute name="networkName" type="xsd:string" use="required"/>
301 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
302 <xsd:attribute name="network" type="xsd:string" use="required"/>
303 <xsd:attribute name="ipv6" type="xsd:boolean" use="required"/>
304 <xsd:attribute name="ipv6prefix" type="xsd:string" use="required"/>
305 <xsd:attribute name="advertiseDefaultIPv6Route" type="xsd:boolean" use="required"/>
306 <xsd:attribute name="needDhcp" type="xsd:boolean" use="required"/>
307 <xsd:attribute name="loopback6" type="xsd:integer" default="0"/>
308</xsd:complexType>
309
310<xsd:complexType name="TNATLoopback4">
311 <xsd:attribute name="address" type="xsd:string" use="required"/>
312 <xsd:attribute name="offset" type="xsd:integer" use="required"/>
313</xsd:complexType>
314
315<xsd:complexType name="TNATPortForwarding">
316 <xsd:attribute name="name" type="xsd:string" use="required"/>
317 <xsd:attribute name="proto" type="xsd:integer" use="required"/>
318 <xsd:attribute name="hostip" type="xsd:string" default=""/>
319 <xsd:attribute name="hostport" type="xsd:integer" use="required"/>
320 <xsd:attribute name="guestip" type="xsd:string" use="required"/>
321 <xsd:attribute name="guestport" type="xsd:integer" use="required"/>
322</xsd:complexType>
323
324<xsd:complexType name="TProperty">
325 <xsd:attribute name="name" type="xsd:token" use="required"/>
326 <xsd:attribute name="value" type="xsd:string" use="required"/>
327</xsd:complexType>
328
329<xsd:complexType name="THardDiskBase">
330 <xsd:sequence>
331 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
332 <xsd:element name="Property" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
333 <xsd:element name="HardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
334 </xsd:sequence>
335 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
336 <xsd:attribute name="location" type="TLocalFile" use="required"/>
337 <xsd:attribute name="format" type="TNonEmptyString" use="required"/>
338</xsd:complexType>
339
340<xsd:complexType name="TDiffHardDisk">
341 <xsd:complexContent>
342 <xsd:extension base="THardDiskBase">
343 <xsd:attribute name="autoReset" type="xsd:boolean" default="false"/>
344 </xsd:extension>
345 </xsd:complexContent>
346</xsd:complexType>
347
348<xsd:complexType name="THardDisk">
349 <xsd:complexContent>
350 <xsd:extension base="THardDiskBase">
351 <xsd:attribute name="type" type="TMediumType" use="required"/>
352 </xsd:extension>
353 </xsd:complexContent>
354</xsd:complexType>
355
356<xsd:complexType name="TImage2">
357 <xsd:sequence>
358 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
359 </xsd:sequence>
360 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
361 <xsd:attribute name="location" type="TLocalFile" use="required"/>
362 <xsd:attribute name="type" type="TMediumType"/>
363</xsd:complexType>
364
365<xsd:complexType name="TImageRef">
366 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
367</xsd:complexType>
368
369<xsd:complexType name="THostDrive">
370 <xsd:attribute name="src" type="TLocalFile" use="required"/>
371</xsd:complexType>
372
373<xsd:complexType name="TUSBDeviceFilter">
374 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
375 <xsd:attribute name="active" type="xsd:boolean" use="required"/>
376 <xsd:attribute name="vendorId" type="xsd:token"/>
377 <xsd:attribute name="productId" type="xsd:token"/>
378 <xsd:attribute name="revision" type="xsd:token"/>
379 <xsd:attribute name="manufacturer" type="xsd:token"/>
380 <xsd:attribute name="product" type="xsd:token"/>
381 <xsd:attribute name="serialNumber" type="xsd:token"/>
382 <xsd:attribute name="port" type="xsd:token"/>
383 <xsd:attribute name="remote" type="xsd:token"/>
384 <xsd:attribute name="maskedInterfaces" type="xsd:unsignedInt" default="0"/>
385</xsd:complexType>
386
387<xsd:complexType name="TUSBDeviceFilters">
388 <xsd:sequence>
389 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter" minOccurs="0"/>
390 </xsd:sequence>
391</xsd:complexType>
392
393<xsd:complexType name="THostUSBDeviceFilter">
394 <xsd:complexContent>
395 <xsd:extension base="TUSBDeviceFilter">
396 <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
397 </xsd:extension>
398 </xsd:complexContent>
399</xsd:complexType>
400
401<xsd:complexType name="TSystemProperties">
402 <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
403 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
404 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/>
405 <xsd:attribute name="VRDEAuthLibrary" type="TLocalFile"/>
406 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
407 <xsd:attribute name="defaultVRDELibrary" type="TLocalFile"/>
408 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
409 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
410 <xsd:attribute name="defaultVRDEExtPack" type="xsd:string"/>
411 <xsd:attribute name="exclusiveHwVirt" type="xsd:boolean"/>
412</xsd:complexType>
413
414<xsd:complexType name="TExtraData">
415 <xsd:sequence>
416 <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
417 <xsd:complexType>
418 <xsd:attribute name="name" type="xsd:token" use="required"/>
419 <xsd:attribute name="value" type="xsd:string" use="required"/>
420 </xsd:complexType>
421 </xsd:element>
422 </xsd:sequence>
423</xsd:complexType>
424
425<xsd:complexType name="TMediaRegistry">
426 <xsd:all>
427 <xsd:element name="HardDisks" minOccurs="0">
428 <xsd:complexType>
429 <xsd:sequence>
430 <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
431 </xsd:sequence>
432 </xsd:complexType>
433 </xsd:element>
434 <xsd:element name="DVDImages" minOccurs="0">
435 <xsd:complexType>
436 <xsd:sequence>
437 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
438 </xsd:sequence>
439 </xsd:complexType>
440 </xsd:element>
441 <xsd:element name="FloppyImages" minOccurs="0">
442 <xsd:complexType>
443 <xsd:sequence>
444 <xsd:element name="Image" type="TImage2" minOccurs="0" maxOccurs="unbounded"/>
445 </xsd:sequence>
446 </xsd:complexType>
447 </xsd:element>
448 </xsd:all>
449</xsd:complexType>
450
451<xsd:complexType name="TGlobal">
452 <xsd:all>
453 <xsd:element name="MachineRegistry">
454 <xsd:complexType>
455 <xsd:sequence>
456 <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
457 <xsd:complexType>
458 <xsd:attribute name="src" type="TLocalFile" use="required"/>
459 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
460 </xsd:complexType>
461 </xsd:element>
462 </xsd:sequence>
463 </xsd:complexType>
464 </xsd:element>
465 <xsd:element name="MediaRegistry" type="TMediaRegistry" minOccurs="0"/>
466 <xsd:element name="NetserviceRegistry" minOccurs="0">
467 <xsd:complexType>
468 <xsd:all>
469 <xsd:element name="DHCPServers" minOccurs="0">
470 <xsd:complexType>
471 <xsd:sequence>
472 <xsd:element name="DHCPServer" type="TDHCPServer" minOccurs="0" maxOccurs="unbounded"/>
473 </xsd:sequence>
474 </xsd:complexType>
475 </xsd:element>
476 <xsd:element name="NATNetworks" minOccurs="0">
477 <xsd:complexType>
478 <xsd:sequence>
479 <xsd:element name="NATNetwork" type="TNATNetwork" minOccurs="0" maxOccurs="unbounded"/>
480 </xsd:sequence>
481 </xsd:complexType>
482 </xsd:element>
483 </xsd:all>
484 </xsd:complexType>
485 </xsd:element>
486 <xsd:element name="USBDeviceFilters">
487 <xsd:complexType>
488 <xsd:sequence>
489 <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
490 minOccurs="0" maxOccurs="unbounded"/>
491 </xsd:sequence>
492 </xsd:complexType>
493 </xsd:element>
494 <xsd:element name="SystemProperties" type="TSystemProperties"/>
495 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
496 </xsd:all>
497</xsd:complexType>
498
499<xsd:complexType name="THWVirtExType">
500 <xsd:attribute name="enabled" type="TTriStateBoolType"/>
501 <xsd:attribute name="exclusive" type="xsd:boolean"/>
502</xsd:complexType>
503
504<xsd:complexType name="THWVirtExNestedPagingType">
505 <xsd:attribute name="enabled" type="xsd:boolean"/>
506</xsd:complexType>
507
508<xsd:complexType name="THWVirtExVPIDType">
509 <xsd:attribute name="enabled" type="xsd:boolean"/>
510</xsd:complexType>
511
512<xsd:complexType name="THWVirtExUXType">
513 <xsd:attribute name="enabled" type="xsd:boolean"/>
514</xsd:complexType>
515
516<xsd:complexType name="TSyntheticCpuType">
517 <xsd:attribute name="enabled" type="xsd:boolean"/>
518</xsd:complexType>
519
520<xsd:complexType name="TPAEType">
521 <xsd:attribute name="enabled" type="xsd:boolean"/>
522</xsd:complexType>
523
524<xsd:complexType name="TLongModeType">
525 <xsd:attribute name="enabled" type="xsd:boolean"/>
526</xsd:complexType>
527
528<xsd:complexType name="THardwareVirtExLargePages">
529 <xsd:attribute name="enabled" type="xsd:boolean"/>
530</xsd:complexType>
531
532<xsd:complexType name="THardwareVirtForce">
533 <xsd:attribute name="enabled" type="xsd:boolean"/>
534</xsd:complexType>
535
536<xsd:simpleType name="TCPUCount">
537 <xsd:restriction base="xsd:unsignedInt">
538 <xsd:minInclusive value="1"/>
539 <xsd:maxInclusive value="32"/>
540 </xsd:restriction>
541</xsd:simpleType>
542
543<xsd:complexType name="TCpuIdLeaf">
544 <xsd:attribute name="id" type="xsd:unsignedInt" use="required"/>
545 <xsd:attribute name="eax" type="xsd:unsignedInt" use="required"/>
546 <xsd:attribute name="ebx" type="xsd:unsignedInt" use="required"/>
547 <xsd:attribute name="ecx" type="xsd:unsignedInt" use="required"/>
548 <xsd:attribute name="edx" type="xsd:unsignedInt" use="required"/>
549</xsd:complexType>
550
551<xsd:complexType name="TCpuIdTree">
552 <xsd:sequence>
553 <xsd:element name="CpuIdLeaf" type="TCpuIdLeaf"
554 minOccurs="0" maxOccurs="unbounded"/>
555 </xsd:sequence>
556</xsd:complexType>
557
558<xsd:complexType name="TCPU">
559 <xsd:sequence>
560 <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
561 <xsd:element name="HardwareVirtExNestedPaging" type="THWVirtExNestedPagingType" minOccurs="0"/>
562 <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
563 <xsd:element name="HardwareVirtExUX" type="THWVirtExUXType" minOccurs="0"/>
564 <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
565 <xsd:element name="LongMode" type="TLongModeType" minOccurs="0"/>
566 <xsd:element name="HardwareVirtExLargePages" type="THardwareVirtExLargePages" minOccurs="0"/>
567 <xsd:element name="HardwareVirtForce" type="THardwareVirtForce" minOccurs="0"/>
568 <xsd:element name="SyntheticCpu" type="TSyntheticCpuType" minOccurs="0"/>
569 <xsd:element name="CpuIdTree" type="TCpuIdTree" minOccurs="0">
570 <xsd:unique name="TCPU-CpuIdTree-CpuIdLeaf">
571 <xsd:selector xpath="vb:CpuIdLeaf"/>
572 <xsd:field xpath="@id"/>
573 </xsd:unique>
574 </xsd:element>
575 </xsd:sequence>
576 <xsd:attribute name="count" type="TCPUCount" default="1"/>
577 <xsd:attribute name="hotplug" type="xsd:boolean" default="false"/>
578</xsd:complexType>
579
580<xsd:complexType name="TBoot">
581 <xsd:sequence>
582 <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
583 <xsd:complexType>
584 <xsd:attribute name="position" use="required">
585 <xsd:simpleType>
586 <xsd:restriction base="xsd:unsignedInt">
587 <xsd:minInclusive value="1"/>
588 <xsd:maxInclusive value="4"/>
589 </xsd:restriction>
590 </xsd:simpleType>
591 </xsd:attribute>
592 <xsd:attribute name="device" type="TDeviceType" use="required"/>
593 </xsd:complexType>
594 </xsd:element>
595 </xsd:sequence>
596</xsd:complexType>
597
598<xsd:complexType name="TDisplay">
599 <xsd:attribute name="VRAMSize" default="8">
600 <xsd:simpleType>
601 <xsd:restriction base="xsd:unsignedInt">
602 <xsd:minInclusive value="0"/>
603 <xsd:maxInclusive value="256"/>
604 </xsd:restriction>
605 </xsd:simpleType>
606 </xsd:attribute>
607 <xsd:attribute name="monitorCount" type="TMonitorCount" default="1"/>
608 <xsd:attribute name="MonitorCount" type="TMonitorCount"/> <!-- deprecated -->
609 <xsd:attribute name="accelerate3D" type="xsd:boolean" default="false"/>
610 <xsd:attribute name="accelerate2DVideo" type="xsd:boolean" default="false"/>
611</xsd:complexType>
612
613<xsd:complexType name="TVideoRecording">
614 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
615 <xsd:attribute name="file" type="xsd:string"/>
616 <xsd:attribute name="horzRes">
617 <xsd:simpleType>
618 <xsd:restriction base="xsd:unsignedInt">
619 <xsd:minInclusive value="4"/>
620 <xsd:maxInclusive value="2097152"/>
621 </xsd:restriction>
622 </xsd:simpleType>
623 </xsd:attribute>
624 <xsd:attribute name="vertRes" type="xsd:unsignedInt"/>
625</xsd:complexType>
626
627<xsd:complexType name="TVideoCapture">
628 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
629 <xsd:attribute name="file" type="xsd:string"/>
630 <xsd:attribute name="screens" type="xsd:unsignedLong"/> <!-- todo: fix writing of settings (writes -1) -->
631 <xsd:attribute name="horzRes">
632 <xsd:simpleType>
633 <xsd:restriction base="xsd:unsignedInt">
634 <xsd:minInclusive value="4"/>
635 <xsd:maxInclusive value="2097152"/>
636 </xsd:restriction>
637 </xsd:simpleType>
638 </xsd:attribute>
639 <xsd:attribute name="vertRes" type="xsd:unsignedInt"/>
640 <xsd:attribute name="rate" type="xsd:unsignedInt"/>
641 <xsd:attribute name="fps" type="xsd:unsignedInt"/>
642 <xsd:attribute name="maxTime" type="xsd:unsignedInt"/>
643 <xsd:attribute name="maxSize" type="xsd:unsignedInt"/>
644 <xsd:attribute name="options" type="xsd:string"/>
645</xsd:complexType>
646
647<xsd:complexType name="TVRDEProperties">
648 <xsd:sequence>
649 <xsd:element name="Property" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
650 </xsd:sequence>
651</xsd:complexType>
652
653<xsd:complexType name="TVideoChannel">
654 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
655 <xsd:attribute name="quality" type="xsd:unsignedByte" default="75"/>
656</xsd:complexType>
657
658<xsd:complexType name="TRemoteDisplay">
659 <xsd:sequence>
660 <xsd:element name="VideoChannel" type="TVideoChannel" minOccurs="0"/> <!-- deprecated -->
661 <xsd:choice minOccurs="0">
662 <xsd:element name="VRDEProperties" type="TVRDEProperties"/>
663 </xsd:choice>
664 </xsd:sequence>
665 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
666 <xsd:attribute name="port" type="xsd:string" default="3389"/> <!-- deprecated -->
667 <xsd:attribute name="authType" type="TAuthType" default="Null"/>
668 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
669 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
670 <xsd:attribute name="reuseSingleConnection" type="xsd:boolean" default="false"/>
671</xsd:complexType>
672
673<xsd:complexType name="TBIOS">
674 <xsd:all>
675 <xsd:element name="ACPI" minOccurs="0">
676 <xsd:complexType>
677 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
678 </xsd:complexType>
679 </xsd:element>
680 <xsd:element name="IOAPIC" minOccurs="0">
681 <xsd:complexType>
682 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
683 </xsd:complexType>
684 </xsd:element>
685 <xsd:element name="Logo" minOccurs="0">
686 <xsd:complexType>
687 <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
688 <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
689 <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
690 <xsd:attribute name="imagePath" type="TLocalFile"/>
691 </xsd:complexType>
692 </xsd:element>
693 <xsd:element name="BootMenu" minOccurs="0">
694 <xsd:complexType>
695 <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="MessageAndMenu"/>
696 </xsd:complexType>
697 </xsd:element>
698 <xsd:element name="TimeOffset" minOccurs="0">
699 <xsd:complexType>
700 <xsd:attribute name="value" type="xsd:integer" default="0"/>
701 </xsd:complexType>
702 </xsd:element>
703 <xsd:element name="PXEDebug" minOccurs="0">
704 <xsd:complexType>
705 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
706 </xsd:complexType>
707 </xsd:element>
708 <xsd:element name="IDEController" minOccurs="0"> <!-- deprecated -->
709 <xsd:complexType>
710 <xsd:attribute name="type">
711 <xsd:simpleType>
712 <xsd:restriction base="xsd:token">
713 <xsd:enumeration value="PIIX3"/>
714 <xsd:enumeration value="PIIX4"/>
715 <xsd:enumeration value="ICH6"/>
716 </xsd:restriction>
717 </xsd:simpleType>
718 </xsd:attribute>
719 </xsd:complexType>
720 </xsd:element>
721 </xsd:all>
722</xsd:complexType>
723
724<xsd:complexType name="TStorageControllerDevice">
725 <xsd:choice minOccurs="0">
726 <xsd:element name="Image" type="TImageRef"/>
727 <xsd:element name="HostDrive" type="THostDrive"/>
728 </xsd:choice>
729 <xsd:attribute name="type" type="TMediumDeviceType"/>
730 <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
731 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
732 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
733 <xsd:attribute name="tempeject" type="xsd:boolean" default="false"/>
734 <xsd:attribute name="nonrotational" type="xsd:boolean" default="false"/>
735 <xsd:attribute name="discard" type="xsd:boolean" default="false"/>
736 <xsd:attribute name="hotpluggable" type="xsd:boolean" default="false"/>
737</xsd:complexType>
738
739<xsd:complexType name="TStorageController">
740 <xsd:sequence>
741 <xsd:element name="AttachedDevice" type="TStorageControllerDevice"
742 minOccurs="0" maxOccurs="unbounded"/>
743 </xsd:sequence>
744 <xsd:attribute name="name" type="xsd:string" use="required"/>
745 <xsd:attribute name="type" use="required">
746 <xsd:simpleType>
747 <xsd:restriction base="xsd:token">
748 <xsd:enumeration value="AHCI"/>
749 <xsd:enumeration value="LsiLogic"/>
750 <xsd:enumeration value="BusLogic"/>
751 <xsd:enumeration value="PIIX3"/>
752 <xsd:enumeration value="PIIX4"/>
753 <xsd:enumeration value="ICH6"/>
754 <xsd:enumeration value="LsiLogicSas"/>
755 <xsd:enumeration value="I82078"/>
756 <xsd:enumeration value="USB"/>
757 <xsd:enumeration value="NVMe"/>
758 </xsd:restriction>
759 </xsd:simpleType>
760 </xsd:attribute>
761 <xsd:attribute name="PortCount" type="xsd:unsignedInt" use="required"/>
762 <xsd:attribute name="useHostIOCache" type="xsd:boolean" use="optional" default="true"/>
763 <xsd:attribute name="Bootable" type="xsd:boolean" use="optional"/>
764 <xsd:attribute name="PCIBus" type="xsd:unsignedInt" use="optional"/>
765 <xsd:attribute name="PCIDevice" type="xsd:unsignedInt" use="optional"/>
766 <xsd:attribute name="PCIFunction" type="xsd:unsignedInt" use="optional"/>
767 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
768 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
769 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
770 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
771</xsd:complexType>
772
773<xsd:complexType name="TSATAController"> <!-- deprecated -->
774 <xsd:sequence>
775 <xsd:element name="AttachedDevice" type="TStorageControllerDevice"
776 minOccurs="0" maxOccurs="unbounded"/>
777 </xsd:sequence>
778 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
779 <xsd:attribute name="PortCount" type="xsd:unsignedInt" use="required"/>
780 <xsd:attribute name="IDE0MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
781 <xsd:attribute name="IDE0SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
782 <xsd:attribute name="IDE1MasterEmulationPort" type="xsd:unsignedInt" use="optional"/>
783 <xsd:attribute name="IDE1SlaveEmulationPort" type="xsd:unsignedInt" use="optional"/>
784</xsd:complexType>
785
786<xsd:complexType name="TStorageControllers">
787 <xsd:sequence>
788 <xsd:element name="StorageController" type="TStorageController"
789 minOccurs="0" maxOccurs="unbounded"/>
790 </xsd:sequence>
791</xsd:complexType>
792
793<xsd:complexType name="THardDiskAttachment">
794 <xsd:attribute name="hardDisk" type="TNonNullUUID"/>
795 <xsd:attribute name="bus" default="IDE">
796 <xsd:simpleType>
797 <xsd:restriction base="xsd:token">
798 <xsd:enumeration value="IDE"/>
799 <xsd:enumeration value="SATA"/>
800 </xsd:restriction>
801 </xsd:simpleType>
802 </xsd:attribute>
803 <xsd:attribute name="channel" type="xsd:unsignedInt" default="0"/>
804 <xsd:attribute name="device" type="xsd:unsignedInt" default="0"/>
805</xsd:complexType>
806
807<xsd:complexType name="THardDiskAttachments"> <!-- deprecated -->
808 <xsd:sequence>
809 <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
810 minOccurs="0" maxOccurs="unbounded"/>
811 </xsd:sequence>
812</xsd:complexType>
813
814<xsd:complexType name="TDVDDrive">
815 <xsd:choice minOccurs="0">
816 <xsd:element name="Image" type="TImageRef"/>
817 <xsd:element name="HostDrive" type="THostDrive"/>
818 </xsd:choice>
819 <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
820</xsd:complexType>
821
822<xsd:complexType name="TFloppyDrive">
823 <xsd:choice minOccurs="0">
824 <xsd:element name="Image" type="TImageRef"/>
825 <xsd:element name="HostDrive" type="THostDrive"/>
826 </xsd:choice>
827 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
828</xsd:complexType>
829
830<xsd:complexType name="TUSBController">
831 <xsd:sequence>
832 <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
833 minOccurs="0" maxOccurs="unbounded"/>
834 </xsd:sequence>
835 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
836 <xsd:attribute name="enabledEhci" type="xsd:boolean" default="false"/>
837</xsd:complexType>
838
839<xsd:complexType name="TUSBController2">
840 <xsd:attribute name="name" type="xsd:string" use="required"/>
841 <xsd:attribute name="type" use="required">
842 <xsd:simpleType>
843 <xsd:restriction base="xsd:token">
844 <xsd:enumeration value="OHCI"/>
845 <xsd:enumeration value="EHCI"/>
846 <xsd:enumeration value="XHCI"/>
847 </xsd:restriction>
848 </xsd:simpleType>
849 </xsd:attribute>
850</xsd:complexType>
851
852<xsd:complexType name="TUSBControllers">
853 <xsd:sequence>
854 <xsd:element name="Controller" type="TUSBController2"
855 minOccurs="0" maxOccurs="unbounded"/>
856 </xsd:sequence>
857</xsd:complexType>
858
859<xsd:complexType name="TUSB">
860 <xsd:sequence>
861 <xsd:element name="Controllers" type="TUSBControllers" minOccurs="0"/>
862 <xsd:element name="DeviceFilters" type="TUSBDeviceFilters" minOccurs="0"/>
863 </xsd:sequence>
864</xsd:complexType>
865
866
867<xsd:complexType name="TAudioAdapter">
868 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
869 <xsd:attribute name="controller" default="AC97">
870 <xsd:simpleType>
871 <xsd:restriction base="xsd:token">
872 <xsd:enumeration value="AC97"/>
873 <xsd:enumeration value="SB16"/>
874 <xsd:enumeration value="HDA"/>
875 </xsd:restriction>
876 </xsd:simpleType>
877 </xsd:attribute>
878 <xsd:attribute name="driver" use="required">
879 <xsd:simpleType>
880 <xsd:restriction base="xsd:token">
881 <xsd:enumeration value="null"/> <!-- deprecated -->
882 <xsd:enumeration value="Null"/> <!-- all platforms -->
883 <xsd:enumeration value="OSS"/> <!-- Linux, Solaris, FreeBSD -->
884 <xsd:enumeration value="ALSA"/> <!-- Linux, FreeBSD -->
885 <xsd:enumeration value="Pulse"/> <!-- Linux -->
886 <xsd:enumeration value="CoreAudio"/> <!-- Mac OS X -->
887 <xsd:enumeration value="MMPM"/> <!-- OS/2 -->
888 <xsd:enumeration value="SolAudio"/> <!-- Solaris -->
889 <xsd:enumeration value="WinMM"/> <!-- Windows -->
890 <xsd:enumeration value="DirectSound"/> <!-- Windows -->
891 </xsd:restriction>
892 </xsd:simpleType>
893 </xsd:attribute>
894</xsd:complexType>
895
896<xsd:complexType name="TNetNAT">
897 <xsd:choice minOccurs="0" maxOccurs="unbounded">
898 <xsd:element name="DNS" minOccurs="0">
899 <xsd:complexType>
900 <xsd:attribute name="pass-domain" type="xsd:boolean" default="true"/>
901 <xsd:attribute name="use-proxy" type="xsd:boolean" default="false"/>
902 <xsd:attribute name="use-host-resolver" type="xsd:boolean" default="false"/>
903 </xsd:complexType>
904 </xsd:element>
905 <xsd:element name="Alias" minOccurs="0">
906 <xsd:complexType>
907 <xsd:attribute name="logging" type="xsd:boolean" default="false"/>
908 <xsd:attribute name="proxy-only" type="xsd:boolean" default="false"/>
909 <xsd:attribute name="use-same-ports" type="xsd:boolean" default="false"/>
910 </xsd:complexType>
911 </xsd:element>
912 <xsd:element name="TFTP" minOccurs="0">
913 <xsd:complexType>
914 <xsd:attribute name="prefix" type="xsd:string"/>
915 <xsd:attribute name="boot-file" type="xsd:string"/>
916 <xsd:attribute name="next-server" type="xsd:string"/>
917 </xsd:complexType>
918 </xsd:element>
919 <xsd:element name="Forwarding" minOccurs="0" maxOccurs="unbounded">
920 <xsd:complexType>
921 <xsd:attribute name="name" type="xsd:string"/>
922 <xsd:attribute name="proto" type="xsd:unsignedInt"/>
923 <xsd:attribute name="hostip" type="xsd:string"/>
924 <xsd:attribute name="hostport" type="xsd:unsignedInt"/>
925 <xsd:attribute name="guestip" type="xsd:string"/>
926 <xsd:attribute name="guestport" type="xsd:unsignedInt"/>
927 </xsd:complexType>
928 </xsd:element>
929 </xsd:choice>
930 <xsd:attribute name="network" type="xsd:string"/>
931 <xsd:attribute name="hostip" type="xsd:string"/>
932 <xsd:attribute name="mtu" type="xsd:unsignedInt"/>
933 <xsd:attribute name="sockrcv" type="xsd:unsignedInt"/>
934 <xsd:attribute name="socksnd" type="xsd:unsignedInt"/>
935 <xsd:attribute name="tcprcv" type="xsd:unsignedInt"/>
936 <xsd:attribute name="tcpsnd" type="xsd:unsignedInt"/>
937</xsd:complexType>
938
939<xsd:complexType name="TNetNATNetwork">
940 <xsd:attribute name="name" type="xsd:string"/>
941</xsd:complexType>
942
943<xsd:complexType name="TNetBridged">
944 <xsd:attribute name="name" type="xsd:string"/>
945</xsd:complexType>
946
947<xsd:complexType name="TNetInternal">
948 <xsd:attribute name="name" type="xsd:string"/>
949</xsd:complexType>
950
951<xsd:complexType name="TNetHostOnly">
952 <xsd:attribute name="name" type="xsd:string"/>
953</xsd:complexType>
954
955<xsd:complexType name="TNetGeneric">
956 <xsd:sequence>
957 <xsd:element name="Property" type="TProperty" minOccurs="0" maxOccurs="unbounded"/>
958 </xsd:sequence>
959 <xsd:attribute name="driver" type="xsd:string" use="required"/>
960</xsd:complexType>
961
962<xsd:complexType name="TNetworkConfig">
963 <xsd:choice maxOccurs="2">
964 <xsd:choice minOccurs="0">
965 <xsd:element name="NAT" type="TNetNAT"/>
966 <xsd:element name="NATNetwork" type="TNetNATNetwork"/>
967 <xsd:element name="HostInterface" type="TNetBridged"/>
968 <xsd:element name="BridgedInterface" type="TNetBridged"/>
969 <xsd:element name="InternalNetwork" type="TNetInternal"/>
970 <xsd:element name="HostOnlyInterface" type="TNetHostOnly"/>
971 <xsd:element name="GenericInterface" type="TNetGeneric"/>
972 </xsd:choice>
973 <xsd:element name="DisabledModes">
974 <xsd:complexType>
975 <xsd:all>
976 <xsd:element name="NAT" type="TNetNAT" minOccurs="0"/>
977 <xsd:element name="NATNetwork" type="TNetNATNetwork" minOccurs="0"/>
978 <xsd:element name="HostInterface" type="TNetBridged" minOccurs="0"/>
979 <xsd:element name="BridgedInterface" type="TNetBridged" minOccurs="0"/>
980 <xsd:element name="InternalNetwork" type="TNetInternal" minOccurs="0"/>
981 <xsd:element name="HostOnlyInterface" type="TNetHostOnly" minOccurs="0"/>
982 <xsd:element name="GenericInterface" type="TNetGeneric" minOccurs="0"/>
983 </xsd:all>
984 </xsd:complexType>
985 </xsd:element>
986 </xsd:choice>
987</xsd:complexType>
988
989<xsd:complexType name="TNetworkAdapter">
990 <xsd:complexContent>
991 <xsd:extension base="TNetworkConfig">
992 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C973"/>
993 <xsd:attribute name="slot" type="xsd:unsignedInt" use="required"/>
994 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
995 <xsd:attribute name="MACAddress">
996 <xsd:simpleType>
997 <xsd:restriction base="xsd:hexBinary">
998 <xsd:pattern value="[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"/>
999 </xsd:restriction>
1000 </xsd:simpleType>
1001 </xsd:attribute>
1002 <xsd:attribute name="cable" type="xsd:boolean" default="true"/>
1003 <xsd:attribute name="speed" type="xsd:unsignedInt" default="1000000"/>
1004 <xsd:attribute name="bootPriority" type="xsd:unsignedInt"/>
1005 <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
1006 <xsd:attribute name="tracefile" type="xsd:string"/>
1007 <xsd:attribute name="bandwidthGroup" type="xsd:string"/>
1008 <xsd:attribute name="promiscuousModePolicy" default="Deny">
1009 <xsd:simpleType>
1010 <xsd:restriction base="xsd:token">
1011 <xsd:enumeration value="Deny"/>
1012 <xsd:enumeration value="AllowNetwork"/>
1013 <xsd:enumeration value="AllowAll"/>
1014 </xsd:restriction>
1015 </xsd:simpleType>
1016 </xsd:attribute>
1017 </xsd:extension>
1018 </xsd:complexContent>
1019</xsd:complexType>
1020
1021<xsd:complexType name="TNetwork">
1022 <xsd:sequence>
1023 <xsd:element name="Adapter" type="TNetworkAdapter"
1024 minOccurs="0" maxOccurs="unbounded"/>
1025 </xsd:sequence>
1026</xsd:complexType>
1027
1028<xsd:complexType name="TUARTPort">
1029 <xsd:attribute name="slot" use="required">
1030 <xsd:simpleType>
1031 <xsd:restriction base="xsd:unsignedInt">
1032 <xsd:minInclusive value="0"/>
1033 <xsd:maxExclusive value="4"/>
1034 </xsd:restriction>
1035 </xsd:simpleType>
1036 </xsd:attribute>
1037 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1038 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1039 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
1040 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
1041 <xsd:attribute name="path" type="TLocalFile"/>
1042 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
1043</xsd:complexType>
1044
1045<xsd:complexType name="TUART">
1046 <xsd:sequence>
1047 <xsd:element name="Port" type="TUARTPort"
1048 minOccurs="0" maxOccurs="unbounded"/>
1049 </xsd:sequence>
1050</xsd:complexType>
1051
1052<xsd:complexType name="TUartPort"> <!-- deprecated -->
1053 <xsd:attribute name="slot" use="required">
1054 <xsd:simpleType>
1055 <xsd:restriction base="xsd:unsignedInt">
1056 <xsd:minInclusive value="0"/>
1057 <xsd:maxExclusive value="4"/>
1058 </xsd:restriction>
1059 </xsd:simpleType>
1060 </xsd:attribute>
1061 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1062 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1063 <xsd:attribute name="IOBase" type="TUInt16HexNoBase" use="required"/>
1064 <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
1065 <xsd:attribute name="path" type="TLocalFile"/>
1066 <xsd:attribute name="server" type="xsd:boolean" default="false"/>
1067</xsd:complexType>
1068
1069<xsd:complexType name="TUart"> <!-- deprecated -->
1070 <xsd:sequence>
1071 <xsd:element name="Port" type="TUartPort"
1072 minOccurs="0" maxOccurs="unbounded"/>
1073 </xsd:sequence>
1074</xsd:complexType>
1075
1076<xsd:complexType name="TLPTPort">
1077 <xsd:attribute name="slot" use="required">
1078 <xsd:simpleType>
1079 <xsd:restriction base="xsd:unsignedInt">
1080 <xsd:minInclusive value="0"/>
1081 <xsd:maxExclusive value="2"/>
1082 </xsd:restriction>
1083 </xsd:simpleType>
1084 </xsd:attribute>
1085 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1086 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1087 <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
1088 <xsd:attribute name="path" type="TLocalFile"/>
1089</xsd:complexType>
1090
1091<xsd:complexType name="TLPT">
1092 <xsd:sequence>
1093 <xsd:element name="Port" type="TLPTPort"
1094 minOccurs="0" maxOccurs="unbounded"/>
1095 </xsd:sequence>
1096</xsd:complexType>
1097
1098<xsd:complexType name="TLptPort"> <!-- deprecated -->
1099 <xsd:attribute name="slot" use="required">
1100 <xsd:simpleType>
1101 <xsd:restriction base="xsd:unsignedInt">
1102 <xsd:minInclusive value="0"/>
1103 <xsd:maxExclusive value="2"/>
1104 </xsd:restriction>
1105 </xsd:simpleType>
1106 </xsd:attribute>
1107 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
1108 <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
1109 <xsd:attribute name="IOBase" type="TUInt16HexNoBase" use="required"/>
1110 <xsd:attribute name="path" type="TLocalFile"/>
1111</xsd:complexType>
1112
1113<xsd:complexType name="TLpt">
1114 <xsd:sequence>
1115 <xsd:element name="Port" type="TLptPort"
1116 minOccurs="0" maxOccurs="unbounded"/>
1117 </xsd:sequence>
1118</xsd:complexType>
1119
1120<xsd:complexType name="TRTC">
1121 <xsd:attribute name="localOrUTC" type="TLocalOrUTC" use="required"/>
1122</xsd:complexType>
1123
1124<xsd:complexType name="TSharedFolder">
1125 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
1126 <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
1127 <xsd:attribute name="writable" type="xsd:boolean" default="true"/>
1128 <xsd:attribute name="autoMount" type="xsd:boolean" default="false"/>
1129</xsd:complexType>
1130
1131<xsd:complexType name="TSharedFolders">
1132 <xsd:sequence>
1133 <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
1134 </xsd:sequence>
1135</xsd:complexType>
1136
1137<xsd:complexType name="TClipboard">
1138 <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
1139</xsd:complexType>
1140
1141<xsd:complexType name="TDragAndDrop">
1142 <xsd:attribute name="mode" type="TDragAndDropMode" use="required"/>
1143</xsd:complexType>
1144
1145<xsd:complexType name="TIoCache">
1146 <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
1147 <xsd:attribute name="size" type="xsd:unsignedLong"/>
1148</xsd:complexType>
1149
1150<xsd:complexType name="TBandwidthGroup">
1151 <xsd:attribute name="name" type="xsd:token" use="required"/>
1152 <xsd:attribute name="type" type="TBandwidthGroupType" use="required"/>
1153 <xsd:attribute name="maxBytesPerSec" type="xsd:unsignedLong"/>
1154 <xsd:attribute name="maxMbPerSec" type="xsd:unsignedLong"/>
1155</xsd:complexType>
1156
1157<xsd:complexType name="TBandwidthGroups">
1158 <xsd:sequence>
1159 <xsd:element name="BandwidthGroup" type="TBandwidthGroup" minOccurs="0" maxOccurs="unbounded"/>
1160 </xsd:sequence>
1161</xsd:complexType>
1162
1163<xsd:complexType name="TIO">
1164 <xsd:sequence>
1165 <xsd:element name="IoCache" type="TIoCache" minOccurs="0"/>
1166 <xsd:element name="BandwidthGroups" type="TBandwidthGroups" minOccurs="0"/>
1167 </xsd:sequence>
1168</xsd:complexType>
1169
1170<xsd:complexType name="THostPciDevice">
1171 <xsd:attribute name="host" type="xsd:unsignedInt" use="required"/>
1172 <xsd:attribute name="guest" type="xsd:unsignedInt" use="required"/>
1173 <xsd:attribute name="name" type="xsd:token"/>
1174</xsd:complexType>
1175
1176<xsd:complexType name="THostPciDevices">
1177 <xsd:sequence>
1178 <xsd:element name="Device" type="THostPciDevice" minOccurs="0" maxOccurs="unbounded"/>
1179 </xsd:sequence>
1180</xsd:complexType>
1181
1182<xsd:complexType name="THostPci">
1183 <xsd:sequence>
1184 <xsd:element name="Devices" type="THostPciDevices" minOccurs="0"/>
1185 </xsd:sequence>
1186</xsd:complexType>
1187
1188<xsd:complexType name="TCardReader">
1189 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1190</xsd:complexType>
1191
1192<xsd:complexType name="TWebcam">
1193 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1194</xsd:complexType>
1195
1196<xsd:complexType name="TEmulatedUSB">
1197 <xsd:sequence>
1198 <xsd:element name="CardReader" type="TCardReader" minOccurs="0"/>
1199 <xsd:element name="Webcam" type="TWebcam" minOccurs="0"/>
1200 </xsd:sequence>
1201</xsd:complexType>
1202
1203<xsd:complexType name="TGuest">
1204 <xsd:attribute name="memoryBalloonSize" type="xsd:unsignedInt" default="0"/>
1205 <xsd:attribute name="MemoryBalloonSize" type="xsd:unsignedInt" default="0"/> <!-- deprecated -->
1206 <xsd:attribute name="statisticsUpdateInterval" type="xsd:unsignedInt" default="0"/>
1207 <xsd:attribute name="StatisticsUpdateInterval" type="xsd:unsignedInt" default="0"/> <!-- deprecated -->
1208</xsd:complexType>
1209
1210<xsd:complexType name="TGuestProperty">
1211 <xsd:attribute name="name" type="xsd:string" use="required"/>
1212 <xsd:attribute name="value" type="xsd:string" use="required"/>
1213 <xsd:attribute name="timestamp" type="xsd:unsignedLong" default="0"/>
1214 <xsd:attribute name="flags" type="xsd:string" default=""/>
1215</xsd:complexType>
1216
1217<xsd:complexType name="TGuestProperties">
1218 <xsd:sequence>
1219 <xsd:element name="GuestProperty" type="TGuestProperty" minOccurs="0" maxOccurs="unbounded"/>
1220 </xsd:sequence>
1221 <xsd:attribute name="notificationPatterns" type="xsd:string" default=""/>
1222</xsd:complexType>
1223
1224<xsd:complexType name="TMemory">
1225 <xsd:attribute name="RAMSize" use="required">
1226 <xsd:simpleType>
1227 <xsd:restriction base="xsd:unsignedInt">
1228 <xsd:minInclusive value="4"/>
1229 <xsd:maxInclusive value="2097152"/>
1230 </xsd:restriction>
1231 </xsd:simpleType>
1232 </xsd:attribute>
1233 <xsd:attribute name="PageFusion" type="xsd:boolean" default="false"/>
1234</xsd:complexType>
1235
1236<xsd:complexType name="TFirmware">
1237 <xsd:attribute name="type" use="required">
1238 <xsd:simpleType>
1239 <xsd:restriction base="xsd:token">
1240 <xsd:enumeration value="BIOS"/>
1241 <xsd:enumeration value="EFI"/>
1242 <xsd:enumeration value="EFI32"/>
1243 <xsd:enumeration value="EFI64"/>
1244 <xsd:enumeration value="EFIDUAL"/>
1245 </xsd:restriction>
1246 </xsd:simpleType>
1247 </xsd:attribute>
1248</xsd:complexType>
1249
1250<xsd:complexType name="THID">
1251 <xsd:attribute name="Pointing" default="PS2Mouse">
1252 <xsd:simpleType>
1253 <xsd:restriction base="xsd:token">
1254 <xsd:enumeration value="USBMouse"/>
1255 <xsd:enumeration value="USBTablet"/>
1256 <xsd:enumeration value="PS2Mouse"/>
1257 <xsd:enumeration value="ComboMouse"/>
1258 </xsd:restriction>
1259 </xsd:simpleType>
1260 </xsd:attribute>
1261 <xsd:attribute name="Keyboard" default="PS2Keyboard">
1262 <xsd:simpleType>
1263 <xsd:restriction base="xsd:token">
1264 <xsd:enumeration value="USBKeyboard"/>
1265 <xsd:enumeration value="PS2Keyboard"/>
1266 <xsd:enumeration value="ComboKeyboard"/>
1267 </xsd:restriction>
1268 </xsd:simpleType>
1269 </xsd:attribute>
1270</xsd:complexType>
1271
1272<xsd:complexType name="THPET">
1273 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1274</xsd:complexType>
1275
1276<xsd:complexType name="TChipset">
1277 <xsd:attribute name="type" use="required">
1278 <xsd:simpleType>
1279 <xsd:restriction base="xsd:token">
1280 <xsd:enumeration value="PIIX3"/>
1281 <xsd:enumeration value="ICH9"/>
1282 </xsd:restriction>
1283 </xsd:simpleType>
1284 </xsd:attribute>
1285</xsd:complexType>
1286
1287<xsd:complexType name="TParavirt">
1288 <xsd:attribute name="provider" use="required">
1289 <xsd:simpleType>
1290 <xsd:restriction base="xsd:token">
1291 <xsd:enumeration value="None"/>
1292 <xsd:enumeration value="Default"/>
1293 <xsd:enumeration value="Legacy"/>
1294 <xsd:enumeration value="Minimal"/>
1295 <xsd:enumeration value="HyperV"/>
1296 <xsd:enumeration value="KVM"/>
1297 </xsd:restriction>
1298 </xsd:simpleType>
1299 </xsd:attribute>
1300 <xsd:attribute name="debug" type="xsd:string"/>
1301</xsd:complexType>
1302
1303<xsd:complexType name="TTeleporter">
1304 <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
1305 <xsd:attribute name="port" type="xsd:unsignedShort"/>
1306 <xsd:attribute name="address" type="xsd:string"/>
1307 <xsd:attribute name="password" type="xsd:string"/>
1308</xsd:complexType>
1309
1310<xsd:complexType name="TFaultTolerance">
1311 <xsd:attribute name="state" use="required">
1312 <xsd:simpleType>
1313 <xsd:restriction base="xsd:token">
1314 <xsd:enumeration value="inactive"/>
1315 <xsd:enumeration value="master"/>
1316 <xsd:enumeration value="standby"/>
1317 </xsd:restriction>
1318 </xsd:simpleType>
1319 </xsd:attribute>
1320 <xsd:attribute name="port" type="xsd:unsignedShort"/>
1321 <xsd:attribute name="address" type="xsd:string"/>
1322 <xsd:attribute name="interval" type="xsd:unsignedInt"/>
1323 <xsd:attribute name="password" type="xsd:string"/>
1324</xsd:complexType>
1325
1326<xsd:complexType name="THardware">
1327 <xsd:all>
1328 <xsd:element name="CPU" type="TCPU" minOccurs="0"/>
1329 <xsd:element name="Memory" type="TMemory"/>
1330 <xsd:element name="Firmware" type="TFirmware" minOccurs="0"/>
1331 <xsd:element name="HID" type="THID" minOccurs="0"/>
1332 <xsd:element name="HPET" type="THPET" minOccurs="0"/>
1333 <xsd:element name="Chipset" type="TChipset" minOccurs="0"/>
1334 <xsd:element name="Paravirt" type="TParavirt" minOccurs="0"/>
1335 <xsd:element name="Boot" type="TBoot" minOccurs="0">
1336 <xsd:unique name="THardware-Boot-Order">
1337 <xsd:selector xpath="vb:Order"/>
1338 <xsd:field xpath="@position"/>
1339 </xsd:unique>
1340 </xsd:element>
1341 <xsd:element name="Display" type="TDisplay" minOccurs="0"/>
1342 <xsd:element name="VideoRecording" type="TVideoRecording" minOccurs="0"/>
1343 <xsd:element name="VideoCapture" type="TVideoCapture" minOccurs="0"/>
1344 <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
1345 <xsd:element name="BIOS" type="TBIOS" minOccurs="0"/>
1346 <xsd:element name="DVDDrive" type="TDVDDrive" minOccurs="0"/>
1347 <xsd:element name="FloppyDrive" type="TFloppyDrive" minOccurs="0"/>
1348 <xsd:element name="USBController" type="TUSBController" minOccurs="0"/>
1349 <xsd:element name="USB" type="TUSB" minOccurs="0"/>
1350 <xsd:element name="SATAController" type="TSATAController" minOccurs="0"/> <!-- deprecated -->
1351 <xsd:element name="Network" type="TNetwork" minOccurs="0">
1352 <xsd:unique name="THardware-Network-Adapter">
1353 <xsd:selector xpath="vb:Adapter"/>
1354 <xsd:field xpath="@slot"/>
1355 </xsd:unique>
1356 </xsd:element>
1357 <xsd:element name="UART" type="TUART" minOccurs="0">
1358 <xsd:unique name="THardware-UART-Port">
1359 <xsd:selector xpath="vb:Port"/>
1360 <xsd:field xpath="@slot"/>
1361 </xsd:unique>
1362 </xsd:element>
1363 <xsd:element name="Uart" type="TUart" minOccurs="0"> <!-- deprecated -->
1364 <xsd:unique name="THardware-Uart-Port">
1365 <xsd:selector xpath="vb:Port"/>
1366 <xsd:field xpath="@slot"/>
1367 </xsd:unique>
1368 </xsd:element>
1369 <xsd:element name="LPT" type="TLPT" minOccurs="0">
1370 <xsd:unique name="THardware-LPT-Port">
1371 <xsd:selector xpath="vb:Port"/>
1372 <xsd:field xpath="@slot"/>
1373 </xsd:unique>
1374 </xsd:element>
1375 <xsd:element name="Lpt" type="TLpt" minOccurs="0"> <!-- deprecated -->
1376 <xsd:unique name="THardware-Lpt-Port">
1377 <xsd:selector xpath="vb:Port"/>
1378 <xsd:field xpath="@slot"/>
1379 </xsd:unique>
1380 </xsd:element>
1381 <xsd:element name="AudioAdapter" type="TAudioAdapter" minOccurs="0"/>
1382 <xsd:element name="RTC" type="TRTC" minOccurs="0"/>
1383 <xsd:element name="SharedFolders" type="TSharedFolders" minOccurs="0">
1384 <xsd:unique name="THardware-SharedFolders-SharedFolder">
1385 <xsd:selector xpath="vb:SharedFolder"/>
1386 <xsd:field xpath="@name"/>
1387 </xsd:unique>
1388 </xsd:element>
1389 <xsd:element name="Clipboard" type="TClipboard" minOccurs="0"/>
1390 <xsd:element name="DragAndDrop" type="TDragAndDrop" minOccurs="0"/>
1391 <xsd:element name="IO" type="TIO" minOccurs="0"/>
1392 <xsd:element name="HostPci" type="THostPci" minOccurs="0"/>
1393 <xsd:element name="EmulatedUSB" type="TEmulatedUSB" minOccurs="0"/>
1394 <xsd:element name="Guest" type="TGuest" minOccurs="0"/>
1395 <xsd:element name="GuestProperties" type="TGuestProperties" minOccurs="0">
1396 <xsd:unique name="THardware-GuestProperties-GuestProperty">
1397 <xsd:selector xpath="vb:GuestProperty"/>
1398 <xsd:field xpath="@name"/>
1399 </xsd:unique>
1400 </xsd:element>
1401 <xsd:element name="StorageControllers" type="TStorageControllers" minOccurs="0"/>
1402 </xsd:all>
1403 <xsd:attribute name="version" type="xsd:string" default="2"/>
1404</xsd:complexType>
1405
1406<xsd:complexType name="TGroup">
1407 <xsd:attribute name="name" type="xsd:string" use="required"/>
1408</xsd:complexType>
1409
1410<xsd:complexType name="TGroups">
1411 <xsd:sequence>
1412 <xsd:element name="Group" type="TGroup" minOccurs="0" maxOccurs="unbounded"/>
1413 </xsd:sequence>
1414</xsd:complexType>
1415
1416<xsd:complexType name="TMachine">
1417 <xsd:all>
1418 <xsd:element name="MediaRegistry" type="TMediaRegistry" minOccurs="0"/>
1419 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
1420 <xsd:element name="Teleporter" type="TTeleporter" minOccurs="0"/>
1421 <xsd:element name="FaultTolerance" type="TFaultTolerance" minOccurs="0"/>
1422 <xsd:element name="Hardware" type="THardware"/>
1423 <xsd:element name="StorageControllers" type="TStorageControllers" minOccurs="0"/>
1424 <xsd:element name="HardDiskAttachments" type="THardDiskAttachments" minOccurs="0"/> <!-- deprecated -->
1425 <xsd:element name="Groups" type="TGroups" minOccurs="0"/>
1426 <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
1427 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
1428 </xsd:all>
1429 <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
1430 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
1431 <xsd:attribute name="directoryIncludesUUID" type="xsd:boolean" default="false"/>
1432 <xsd:attribute name="OSType" type="TNonEmptyString" use="required"/>
1433 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
1434 <xsd:attribute name="stateFile" type="TLocalFile"/>
1435 <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
1436 <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
1437 <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
1438 <xsd:attribute name="aborted" type="xsd:boolean" default="false"/>
1439 <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
1440 <xsd:attribute name="version" type="xsd:string" default="1.15"/> <!-- Used for OVF files only, must not be present in normal settings files. The default corresponds to settings created by 5.0, which covers many older versions but not newer ones. -->
1441</xsd:complexType>
1442
1443<xsd:complexType name="TSnapshot">
1444 <xsd:all>
1445 <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
1446 <xsd:element name="Hardware" type="THardware"/>
1447 <xsd:element name="StorageControllers" type="TStorageControllers" minOccurs="0"/>
1448 <xsd:element name="Snapshots" minOccurs="0">
1449 <xsd:complexType>
1450 <xsd:sequence>
1451 <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
1452 </xsd:sequence>
1453 </xsd:complexType>
1454 </xsd:element>
1455 </xsd:all>
1456 <xsd:attribute name="name" type="xsd:token" use="required"/>
1457 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
1458 <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
1459 <xsd:attribute name="stateFile" type="TLocalFile"/>
1460</xsd:complexType>
1461
1462<xsd:complexType name="TVirtualBox">
1463 <xsd:choice>
1464 <xsd:element name="Global" type="TGlobal"/>
1465 <xsd:element name="Machine" type="TMachine">
1466 <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
1467 <xsd:key name="snapshot">
1468 <xsd:selector xpath=".//vb:Snapshot"/>
1469 <xsd:field xpath="@uuid"/>
1470 </xsd:key>
1471 <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
1472 <xsd:selector xpath="."/>
1473 <xsd:field xpath="@currentSnapshot"/>
1474 </xsd:keyref>
1475 </xsd:element>
1476 </xsd:choice>
1477 <xsd:attribute name="version" type="xsd:string" use="required"/>
1478</xsd:complexType>
1479
1480<!-- Root element for all VirtualBox config files -->
1481<xsd:element name="VirtualBox" type="TVirtualBox"/>
1482
1483</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