| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <!--
|
|---|
| 3 | * :tabSize=2:indentSize=2:noTabs=true:
|
|---|
| 4 | * :folding=explicit:collapseFolds=1:
|
|---|
| 5 | *
|
|---|
| 6 | * innotek VirtualBox Settings Schema
|
|---|
| 7 | * Common definitions
|
|---|
| 8 |
|
|---|
| 9 | Copyright (C) 2004-2007 innotek GmbH
|
|---|
| 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 as published by the Free Software Foundation,
|
|---|
| 15 | in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
|---|
| 16 | distribution. VirtualBox OSE is distributed in the hope that it will
|
|---|
| 17 | 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 | innotek VirtualBox Settings Schema (common definitions).
|
|---|
| 31 | Copyright (c) 2004-2007 innotek GmbH.
|
|---|
| 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="TUInt64Hex">
|
|---|
| 81 | <xsd:restriction base="xsd:string">
|
|---|
| 82 | <xsd:pattern value="0x[A-Fa-f0-9]{1,16}"/>
|
|---|
| 83 | </xsd:restriction>
|
|---|
| 84 | </xsd:simpleType>
|
|---|
| 85 |
|
|---|
| 86 | <xsd:simpleType name="TLocalFile">
|
|---|
| 87 | <xsd:restriction base="xsd:string">
|
|---|
| 88 | <xsd:pattern value=".+"/>
|
|---|
| 89 | </xsd:restriction>
|
|---|
| 90 | </xsd:simpleType>
|
|---|
| 91 |
|
|---|
| 92 | <xsd:simpleType name="TDiskType">
|
|---|
| 93 | <xsd:restriction base="xsd:token">
|
|---|
| 94 | <xsd:enumeration value="HD"/>
|
|---|
| 95 | <xsd:enumeration value="DVD"/>
|
|---|
| 96 | <xsd:enumeration value="FD"/>
|
|---|
| 97 | </xsd:restriction>
|
|---|
| 98 | </xsd:simpleType>
|
|---|
| 99 |
|
|---|
| 100 | <xsd:simpleType name="TDeviceType">
|
|---|
| 101 | <xsd:restriction base="xsd:token">
|
|---|
| 102 | <xsd:enumeration value="None"/>
|
|---|
| 103 | <xsd:enumeration value="Floppy"/>
|
|---|
| 104 | <xsd:enumeration value="DVD"/>
|
|---|
| 105 | <xsd:enumeration value="HardDisk"/>
|
|---|
| 106 | <xsd:enumeration value="Network"/>
|
|---|
| 107 | </xsd:restriction>
|
|---|
| 108 | </xsd:simpleType>
|
|---|
| 109 |
|
|---|
| 110 | <xsd:simpleType name="TUSBDeviceFilterAction">
|
|---|
| 111 | <xsd:restriction base="xsd:token">
|
|---|
| 112 | <xsd:enumeration value="Ignore"/>
|
|---|
| 113 | <xsd:enumeration value="Hold"/>
|
|---|
| 114 | </xsd:restriction>
|
|---|
| 115 | </xsd:simpleType>
|
|---|
| 116 |
|
|---|
| 117 | <xsd:simpleType name="TNonEmptyString">
|
|---|
| 118 | <xsd:restriction base="xsd:string">
|
|---|
| 119 | <xsd:pattern value=".+"/>
|
|---|
| 120 | </xsd:restriction>
|
|---|
| 121 | </xsd:simpleType>
|
|---|
| 122 |
|
|---|
| 123 | <xsd:simpleType name="TPresentDateTimeUTC">
|
|---|
| 124 | <xsd:restriction base="xsd:dateTime">
|
|---|
| 125 | <xsd:minInclusive value="1900-01-01T00:00:00Z"/>
|
|---|
| 126 | <xsd:maxInclusive value="199999999-12-31T23:59:59Z"/>
|
|---|
| 127 | <xsd:pattern value=".+-.+-.+T.+:.+:[0-9]{2}Z"/>
|
|---|
| 128 | </xsd:restriction>
|
|---|
| 129 | </xsd:simpleType>
|
|---|
| 130 |
|
|---|
| 131 | <xsd:simpleType name="TGuestOSType">
|
|---|
| 132 | <xsd:restriction base="xsd:string">
|
|---|
| 133 | <xsd:enumeration value="unknown"/>
|
|---|
| 134 | <xsd:enumeration value="dos"/>
|
|---|
| 135 | <xsd:enumeration value="win31"/>
|
|---|
| 136 | <xsd:enumeration value="win95"/>
|
|---|
| 137 | <xsd:enumeration value="win98"/>
|
|---|
| 138 | <xsd:enumeration value="winme"/>
|
|---|
| 139 | <xsd:enumeration value="winnt4"/>
|
|---|
| 140 | <xsd:enumeration value="win2k"/>
|
|---|
| 141 | <xsd:enumeration value="winxp"/>
|
|---|
| 142 | <xsd:enumeration value="win2k3"/>
|
|---|
| 143 | <xsd:enumeration value="winvista"/>
|
|---|
| 144 | <xsd:enumeration value="os2warp3"/>
|
|---|
| 145 | <xsd:enumeration value="os2warp4"/>
|
|---|
| 146 | <xsd:enumeration value="os2warp45"/>
|
|---|
| 147 | <xsd:enumeration value="linux22"/>
|
|---|
| 148 | <xsd:enumeration value="linux24"/>
|
|---|
| 149 | <xsd:enumeration value="linux26"/>
|
|---|
| 150 | <xsd:enumeration value="freebsd"/>
|
|---|
| 151 | <xsd:enumeration value="openbsd"/>
|
|---|
| 152 | <xsd:enumeration value="netbsd"/>
|
|---|
| 153 | <xsd:enumeration value="netware"/>
|
|---|
| 154 | <xsd:enumeration value="solaris"/>
|
|---|
| 155 | <xsd:enumeration value="l4"/>
|
|---|
| 156 | </xsd:restriction>
|
|---|
| 157 | </xsd:simpleType>
|
|---|
| 158 |
|
|---|
| 159 | <!--- @todo (dmik) capitalize enum values on next format change! -->
|
|---|
| 160 | <!--- @todo (dmik) change "null" to None" -->
|
|---|
| 161 | <xsd:simpleType name="TVRDPAuthType">
|
|---|
| 162 | <xsd:restriction base="xsd:string">
|
|---|
| 163 | <xsd:enumeration value="null"/>
|
|---|
| 164 | <xsd:enumeration value="guest"/>
|
|---|
| 165 | <xsd:enumeration value="external"/>
|
|---|
| 166 | </xsd:restriction>
|
|---|
| 167 | </xsd:simpleType>
|
|---|
| 168 |
|
|---|
| 169 | <xsd:simpleType name="TNetworkAdapterType">
|
|---|
| 170 | <xsd:restriction base="xsd:string">
|
|---|
| 171 | <xsd:enumeration value="Am79C970A"/>
|
|---|
| 172 | <xsd:enumeration value="Am79C973"/>
|
|---|
| 173 | </xsd:restriction>
|
|---|
| 174 | </xsd:simpleType>
|
|---|
| 175 |
|
|---|
| 176 | <xsd:simpleType name="TTriStateBoolType">
|
|---|
| 177 | <xsd:restriction base="xsd:string">
|
|---|
| 178 | <xsd:enumeration value="false"/>
|
|---|
| 179 | <xsd:enumeration value="true"/>
|
|---|
| 180 | <xsd:enumeration value="default"/>
|
|---|
| 181 | </xsd:restriction>
|
|---|
| 182 | </xsd:simpleType>
|
|---|
| 183 |
|
|---|
| 184 | <!--- @todo (dmik) capitalize enum values on next format change! -->
|
|---|
| 185 | <xsd:simpleType name="TBIOSBootMenuModeType">
|
|---|
| 186 | <xsd:restriction base="xsd:string">
|
|---|
| 187 | <xsd:enumeration value="disabled"/>
|
|---|
| 188 | <xsd:enumeration value="menuonly"/>
|
|---|
| 189 | <xsd:enumeration value="messageandmenu"/>
|
|---|
| 190 | </xsd:restriction>
|
|---|
| 191 | </xsd:simpleType>
|
|---|
| 192 |
|
|---|
| 193 | <xsd:simpleType name="TClipboardMode">
|
|---|
| 194 | <xsd:restriction base="xsd:string">
|
|---|
| 195 | <xsd:enumeration value="Disabled"/>
|
|---|
| 196 | <xsd:enumeration value="HostToGuest"/>
|
|---|
| 197 | <xsd:enumeration value="GuestToHost"/>
|
|---|
| 198 | <xsd:enumeration value="Bidirectional"/>
|
|---|
| 199 | </xsd:restriction>
|
|---|
| 200 | </xsd:simpleType>
|
|---|
| 201 |
|
|---|
| 202 | <xsd:simpleType name="TPortMode">
|
|---|
| 203 | <xsd:restriction base="xsd:string">
|
|---|
| 204 | <xsd:enumeration value="Disconnected"/>
|
|---|
| 205 | <xsd:enumeration value="HostPipe"/>
|
|---|
| 206 | <xsd:enumeration value="HostDevice"/>
|
|---|
| 207 | </xsd:restriction>
|
|---|
| 208 | </xsd:simpleType>
|
|---|
| 209 |
|
|---|
| 210 | <!--
|
|---|
| 211 | // Complex types
|
|---|
| 212 | /////////////////////////////////////////////////////////////////////////
|
|---|
| 213 | -->
|
|---|
| 214 |
|
|---|
| 215 | <xsd:complexType name="TImage">
|
|---|
| 216 | <xsd:attribute name="src" type="TLocalFile" use="required"/>
|
|---|
| 217 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 218 | </xsd:complexType>
|
|---|
| 219 |
|
|---|
| 220 | <xsd:complexType name="TVirtualDiskImage">
|
|---|
| 221 | <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
|
|---|
| 222 | </xsd:complexType>
|
|---|
| 223 |
|
|---|
| 224 | <xsd:complexType name="TDiffHardDisk">
|
|---|
| 225 | <xsd:sequence>
|
|---|
| 226 | <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
|
|---|
| 227 | <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 228 | </xsd:sequence>
|
|---|
| 229 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 230 | </xsd:complexType>
|
|---|
| 231 |
|
|---|
| 232 | <xsd:complexType name="THardDisk">
|
|---|
| 233 | <xsd:sequence>
|
|---|
| 234 | <xsd:choice>
|
|---|
| 235 | <xsd:element name="VirtualDiskImage" type="TVirtualDiskImage"/>
|
|---|
| 236 | <xsd:element name="ISCSIHardDisk">
|
|---|
| 237 | <xsd:complexType>
|
|---|
| 238 | <xsd:attribute name="server" type="xsd:token" use="required"/>
|
|---|
| 239 | <xsd:attribute name="port" type="xsd:unsignedShort" default="0"/>
|
|---|
| 240 | <xsd:attribute name="target" type="xsd:token" use="required"/>
|
|---|
| 241 | <xsd:attribute name="lun" type="TUInt64Hex" default="0x0"/>
|
|---|
| 242 | <xsd:attribute name="userName" type="xsd:token"/>
|
|---|
| 243 | <xsd:attribute name="password" type="xsd:token"/>
|
|---|
| 244 | </xsd:complexType>
|
|---|
| 245 | </xsd:element>
|
|---|
| 246 | <xsd:element name="VMDKImage">
|
|---|
| 247 | <xsd:complexType>
|
|---|
| 248 | <xsd:attribute name="filePath" type="TLocalFile" use="required"/>
|
|---|
| 249 | </xsd:complexType>
|
|---|
| 250 | </xsd:element>
|
|---|
| 251 | <xsd:element name="PhysicalVolume">
|
|---|
| 252 | <xsd:complexType>
|
|---|
| 253 | <xsd:attribute name="path" type="TLocalFile" use="required"/>
|
|---|
| 254 | </xsd:complexType>
|
|---|
| 255 | </xsd:element>
|
|---|
| 256 | </xsd:choice>
|
|---|
| 257 | <xsd:element name="DiffHardDisk" type="TDiffHardDisk" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 258 | </xsd:sequence>
|
|---|
| 259 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 260 | <xsd:attribute name="type" use="required">
|
|---|
| 261 | <xsd:simpleType>
|
|---|
| 262 | <xsd:restriction base="xsd:string">
|
|---|
| 263 | <xsd:enumeration value="normal"/>
|
|---|
| 264 | <xsd:enumeration value="immutable"/>
|
|---|
| 265 | <xsd:enumeration value="writethrough"/>
|
|---|
| 266 | </xsd:restriction>
|
|---|
| 267 | </xsd:simpleType>
|
|---|
| 268 | </xsd:attribute>
|
|---|
| 269 | </xsd:complexType>
|
|---|
| 270 |
|
|---|
| 271 | <xsd:complexType name="TImageRef">
|
|---|
| 272 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 273 | </xsd:complexType>
|
|---|
| 274 |
|
|---|
| 275 | <xsd:complexType name="THostDrive">
|
|---|
| 276 | <xsd:attribute name="src" type="TLocalFile" use="required"/>
|
|---|
| 277 | </xsd:complexType>
|
|---|
| 278 |
|
|---|
| 279 | <xsd:complexType name="TUSBDeviceFilter">
|
|---|
| 280 | <!--- @todo (dmik) make all attr names likeThis on next format change! -->
|
|---|
| 281 | <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
|
|---|
| 282 | <xsd:attribute name="active" type="xsd:boolean" use="required"/>
|
|---|
| 283 | <xsd:attribute name="vendorid" type="xsd:token"/>
|
|---|
| 284 | <xsd:attribute name="productid" type="xsd:token"/>
|
|---|
| 285 | <xsd:attribute name="revision" type="xsd:token"/>
|
|---|
| 286 | <xsd:attribute name="manufacturer" type="xsd:token"/>
|
|---|
| 287 | <xsd:attribute name="product" type="xsd:token"/>
|
|---|
| 288 | <xsd:attribute name="serialnumber" type="xsd:token"/>
|
|---|
| 289 | <xsd:attribute name="port" type="xsd:token"/>
|
|---|
| 290 | <xsd:attribute name="remote" type="xsd:token"/>
|
|---|
| 291 | </xsd:complexType>
|
|---|
| 292 |
|
|---|
| 293 | <xsd:complexType name="THostUSBDeviceFilter">
|
|---|
| 294 | <xsd:complexContent>
|
|---|
| 295 | <xsd:extension base="TUSBDeviceFilter">
|
|---|
| 296 | <xsd:attribute name="action" type="TUSBDeviceFilterAction" use="required"/>
|
|---|
| 297 | </xsd:extension>
|
|---|
| 298 | </xsd:complexContent>
|
|---|
| 299 | </xsd:complexType>
|
|---|
| 300 |
|
|---|
| 301 | <xsd:complexType name="TSystemProperties">
|
|---|
| 302 | <xsd:attribute name="defaultVDIFolder" type="TLocalFile"/>
|
|---|
| 303 | <xsd:attribute name="defaultMachineFolder" type="TLocalFile"/>
|
|---|
| 304 | <!--- @todo (dmik) remove defaultSavedStateFolder on next format change! -->
|
|---|
| 305 | <xsd:attribute name="defaultSavedStateFolder" type="TLocalFile"/>
|
|---|
| 306 | <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
|
|---|
| 307 | <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
|
|---|
| 308 | </xsd:complexType>
|
|---|
| 309 |
|
|---|
| 310 | <xsd:complexType name="TExtraData">
|
|---|
| 311 | <xsd:sequence>
|
|---|
| 312 | <xsd:element name="ExtraDataItem" minOccurs="0" maxOccurs="unbounded">
|
|---|
| 313 | <xsd:complexType>
|
|---|
| 314 | <xsd:attribute name="name" type="xsd:token" use="required"/>
|
|---|
| 315 | <xsd:attribute name="value" type="xsd:string" use="required"/>
|
|---|
| 316 | </xsd:complexType>
|
|---|
| 317 | </xsd:element>
|
|---|
| 318 | </xsd:sequence>
|
|---|
| 319 | </xsd:complexType>
|
|---|
| 320 |
|
|---|
| 321 | <xsd:complexType name="TGlobal">
|
|---|
| 322 | <xsd:all>
|
|---|
| 323 | <xsd:element name="MachineRegistry">
|
|---|
| 324 | <xsd:complexType>
|
|---|
| 325 | <xsd:sequence>
|
|---|
| 326 | <xsd:element name="MachineEntry" minOccurs="0" maxOccurs="unbounded">
|
|---|
| 327 | <xsd:complexType>
|
|---|
| 328 | <xsd:attribute name="src" type="TLocalFile" use="required"/>
|
|---|
| 329 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 330 | </xsd:complexType>
|
|---|
| 331 | </xsd:element>
|
|---|
| 332 | </xsd:sequence>
|
|---|
| 333 | </xsd:complexType>
|
|---|
| 334 | </xsd:element>
|
|---|
| 335 | <xsd:element name="DiskRegistry">
|
|---|
| 336 | <xsd:complexType>
|
|---|
| 337 | <xsd:all>
|
|---|
| 338 | <xsd:element name="HardDisks" minOccurs="0">
|
|---|
| 339 | <xsd:complexType>
|
|---|
| 340 | <xsd:sequence>
|
|---|
| 341 | <xsd:element name="HardDisk" type="THardDisk" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 342 | </xsd:sequence>
|
|---|
| 343 | </xsd:complexType>
|
|---|
| 344 | </xsd:element>
|
|---|
| 345 | <xsd:element name="DVDImages" minOccurs="0">
|
|---|
| 346 | <xsd:complexType>
|
|---|
| 347 | <xsd:sequence>
|
|---|
| 348 | <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 349 | </xsd:sequence>
|
|---|
| 350 | </xsd:complexType>
|
|---|
| 351 | </xsd:element>
|
|---|
| 352 | <xsd:element name="FloppyImages" minOccurs="0">
|
|---|
| 353 | <xsd:complexType>
|
|---|
| 354 | <xsd:sequence>
|
|---|
| 355 | <xsd:element name="Image" type="TImage" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 356 | </xsd:sequence>
|
|---|
| 357 | </xsd:complexType>
|
|---|
| 358 | </xsd:element>
|
|---|
| 359 | </xsd:all>
|
|---|
| 360 | </xsd:complexType>
|
|---|
| 361 | </xsd:element>
|
|---|
| 362 | <xsd:element name="USBDeviceFilters">
|
|---|
| 363 | <xsd:complexType>
|
|---|
| 364 | <xsd:sequence>
|
|---|
| 365 | <xsd:element name="DeviceFilter" type="THostUSBDeviceFilter"
|
|---|
| 366 | minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 367 | </xsd:sequence>
|
|---|
| 368 | </xsd:complexType>
|
|---|
| 369 | </xsd:element>
|
|---|
| 370 | <xsd:element name="SystemProperties" type="TSystemProperties"/>
|
|---|
| 371 | <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
|
|---|
| 372 | </xsd:all>
|
|---|
| 373 | </xsd:complexType>
|
|---|
| 374 |
|
|---|
| 375 | <xsd:complexType name="THWVirtExType">
|
|---|
| 376 | <xsd:attribute name="enabled" type="TTriStateBoolType" default="default"/>
|
|---|
| 377 | </xsd:complexType>
|
|---|
| 378 |
|
|---|
| 379 | <xsd:complexType name="TCPU">
|
|---|
| 380 | <xsd:sequence>
|
|---|
| 381 | <xsd:element name="HardwareVirtEx" type="THWVirtExType" minOccurs="0"/>
|
|---|
| 382 | </xsd:sequence>
|
|---|
| 383 | </xsd:complexType>
|
|---|
| 384 |
|
|---|
| 385 | <xsd:complexType name="TBoot">
|
|---|
| 386 | <xsd:sequence>
|
|---|
| 387 | <xsd:element name="Order" minOccurs="0" maxOccurs="unbounded">
|
|---|
| 388 | <xsd:complexType>
|
|---|
| 389 | <xsd:attribute name="position" use="required">
|
|---|
| 390 | <xsd:simpleType>
|
|---|
| 391 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 392 | <xsd:minInclusive value="1"/>
|
|---|
| 393 | <xsd:maxInclusive value="4"/>
|
|---|
| 394 | </xsd:restriction>
|
|---|
| 395 | </xsd:simpleType>
|
|---|
| 396 | </xsd:attribute>
|
|---|
| 397 | <xsd:attribute name="device" type="TDeviceType" use="required"/>
|
|---|
| 398 | </xsd:complexType>
|
|---|
| 399 | </xsd:element>
|
|---|
| 400 | </xsd:sequence>
|
|---|
| 401 | </xsd:complexType>
|
|---|
| 402 |
|
|---|
| 403 | <xsd:complexType name="TDisplay">
|
|---|
| 404 | <xsd:attribute name="VRAMSize" use="required">
|
|---|
| 405 | <xsd:simpleType>
|
|---|
| 406 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 407 | <xsd:minInclusive value="1"/>
|
|---|
| 408 | <xsd:maxInclusive value="128"/>
|
|---|
| 409 | </xsd:restriction>
|
|---|
| 410 | </xsd:simpleType>
|
|---|
| 411 | </xsd:attribute>
|
|---|
| 412 | <xsd:attribute name="MonitorCount" default="1">
|
|---|
| 413 | <xsd:simpleType>
|
|---|
| 414 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 415 | <xsd:maxInclusive value="8"/>
|
|---|
| 416 | </xsd:restriction>
|
|---|
| 417 | </xsd:simpleType>
|
|---|
| 418 | </xsd:attribute>
|
|---|
| 419 | </xsd:complexType>
|
|---|
| 420 |
|
|---|
| 421 | <xsd:complexType name="TRemoteDisplay">
|
|---|
| 422 | <xsd:attribute name="enabled" type="xsd:boolean"/>
|
|---|
| 423 | <xsd:attribute name="port" type="xsd:unsignedInt" default="0"/>
|
|---|
| 424 | <xsd:attribute name="netAddress" type="xsd:token" default=""/>
|
|---|
| 425 | <xsd:attribute name="authType" type="TVRDPAuthType" default="null"/>
|
|---|
| 426 | <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
|
|---|
| 427 | <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
|
|---|
| 428 | </xsd:complexType>
|
|---|
| 429 |
|
|---|
| 430 | <xsd:complexType name="TBIOS">
|
|---|
| 431 | <xsd:all>
|
|---|
| 432 | <xsd:element name="ACPI">
|
|---|
| 433 | <xsd:complexType>
|
|---|
| 434 | <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
|
|---|
| 435 | </xsd:complexType>
|
|---|
| 436 | </xsd:element>
|
|---|
| 437 | <xsd:element name="IOAPIC" minOccurs="0">
|
|---|
| 438 | <xsd:complexType>
|
|---|
| 439 | <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
|
|---|
| 440 | </xsd:complexType>
|
|---|
| 441 | </xsd:element>
|
|---|
| 442 | <xsd:element name="Logo" minOccurs="0">
|
|---|
| 443 | <xsd:complexType>
|
|---|
| 444 | <xsd:attribute name="fadeIn" type="xsd:boolean" default="true"/>
|
|---|
| 445 | <xsd:attribute name="fadeOut" type="xsd:boolean" default="true"/>
|
|---|
| 446 | <xsd:attribute name="displayTime" type="xsd:unsignedInt" default="0"/>
|
|---|
| 447 | <xsd:attribute name="imagePath" type="TLocalFile"/>
|
|---|
| 448 | </xsd:complexType>
|
|---|
| 449 | </xsd:element>
|
|---|
| 450 | <xsd:element name="BootMenu" minOccurs="0">
|
|---|
| 451 | <xsd:complexType>
|
|---|
| 452 | <xsd:attribute name="mode" type="TBIOSBootMenuModeType" default="messageandmenu"/>
|
|---|
| 453 | </xsd:complexType>
|
|---|
| 454 | </xsd:element>
|
|---|
| 455 | <xsd:element name="TimeOffset" minOccurs="0">
|
|---|
| 456 | <xsd:complexType>
|
|---|
| 457 | <xsd:attribute name="value" type="xsd:integer" default="0"/>
|
|---|
| 458 | </xsd:complexType>
|
|---|
| 459 | </xsd:element>
|
|---|
| 460 | </xsd:all>
|
|---|
| 461 | </xsd:complexType>
|
|---|
| 462 |
|
|---|
| 463 | <xsd:complexType name="THardDiskAttachment">
|
|---|
| 464 | <xsd:attribute name="hardDisk" type="TNonNullUUID"/>
|
|---|
| 465 | <xsd:attribute name="bus" use="required">
|
|---|
| 466 | <xsd:simpleType>
|
|---|
| 467 | <xsd:restriction base="xsd:token">
|
|---|
| 468 | <xsd:enumeration value="ide0"/>
|
|---|
| 469 | <xsd:enumeration value="ide1"/>
|
|---|
| 470 | </xsd:restriction>
|
|---|
| 471 | </xsd:simpleType>
|
|---|
| 472 | </xsd:attribute>
|
|---|
| 473 | <xsd:attribute name="device" use="required">
|
|---|
| 474 | <xsd:simpleType>
|
|---|
| 475 | <xsd:restriction base="xsd:token">
|
|---|
| 476 | <xsd:enumeration value="master"/>
|
|---|
| 477 | <xsd:enumeration value="slave"/>
|
|---|
| 478 | </xsd:restriction>
|
|---|
| 479 | </xsd:simpleType>
|
|---|
| 480 | </xsd:attribute>
|
|---|
| 481 | </xsd:complexType>
|
|---|
| 482 |
|
|---|
| 483 | <xsd:complexType name="THardDiskAttachments">
|
|---|
| 484 | <xsd:sequence>
|
|---|
| 485 | <xsd:element name="HardDiskAttachment" type="THardDiskAttachment"
|
|---|
| 486 | minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 487 | </xsd:sequence>
|
|---|
| 488 | </xsd:complexType>
|
|---|
| 489 |
|
|---|
| 490 | <xsd:complexType name="TDVDDrive">
|
|---|
| 491 | <xsd:choice minOccurs="0">
|
|---|
| 492 | <xsd:element name="Image" type="TImageRef"/>
|
|---|
| 493 | <xsd:element name="HostDrive" type="THostDrive"/>
|
|---|
| 494 | </xsd:choice>
|
|---|
| 495 | <xsd:attribute name="passthrough" type="xsd:boolean" default="false"/>
|
|---|
| 496 | </xsd:complexType>
|
|---|
| 497 |
|
|---|
| 498 | <xsd:complexType name="TFloppyDrive">
|
|---|
| 499 | <xsd:choice minOccurs="0">
|
|---|
| 500 | <xsd:element name="Image" type="TImageRef"/>
|
|---|
| 501 | <xsd:element name="HostDrive" type="THostDrive"/>
|
|---|
| 502 | </xsd:choice>
|
|---|
| 503 | <xsd:attribute name="enabled" type="xsd:boolean" default="true"/>
|
|---|
| 504 | </xsd:complexType>
|
|---|
| 505 |
|
|---|
| 506 | <xsd:complexType name="TUSBController">
|
|---|
| 507 | <xsd:sequence>
|
|---|
| 508 | <xsd:element name="DeviceFilter" type="TUSBDeviceFilter"
|
|---|
| 509 | minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 510 | </xsd:sequence>
|
|---|
| 511 | <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
|
|---|
| 512 | </xsd:complexType>
|
|---|
| 513 |
|
|---|
| 514 | <xsd:complexType name="TAdapter">
|
|---|
| 515 | <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/>
|
|---|
| 516 | <xsd:attribute name="slot" use="required">
|
|---|
| 517 | <xsd:simpleType>
|
|---|
| 518 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 519 | <xsd:minInclusive value="0"/>
|
|---|
| 520 | <xsd:maxExclusive value="8"/>
|
|---|
| 521 | </xsd:restriction>
|
|---|
| 522 | </xsd:simpleType>
|
|---|
| 523 | </xsd:attribute>
|
|---|
| 524 | <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
|
|---|
| 525 | <xsd:attribute name="MACAddress">
|
|---|
| 526 | <xsd:simpleType>
|
|---|
| 527 | <xsd:restriction base="xsd:hexBinary">
|
|---|
| 528 | <xsd:length value="6"/>
|
|---|
| 529 | </xsd:restriction>
|
|---|
| 530 | </xsd:simpleType>
|
|---|
| 531 | </xsd:attribute>
|
|---|
| 532 | <xsd:attribute name="cable" type="xsd:boolean" use="required"/>
|
|---|
| 533 | <xsd:attribute name="trace" type="xsd:boolean" default="false"/>
|
|---|
| 534 | <xsd:attribute name="tracefile" type="xsd:string"/>
|
|---|
| 535 | </xsd:complexType>
|
|---|
| 536 |
|
|---|
| 537 | <xsd:complexType name="TUartPort">
|
|---|
| 538 | <xsd:attribute name="slot" use="required">
|
|---|
| 539 | <xsd:simpleType>
|
|---|
| 540 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 541 | <xsd:minInclusive value="0"/>
|
|---|
| 542 | <xsd:maxExclusive value="2"/>
|
|---|
| 543 | </xsd:restriction>
|
|---|
| 544 | </xsd:simpleType>
|
|---|
| 545 | </xsd:attribute>
|
|---|
| 546 | <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
|
|---|
| 547 | <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
|
|---|
| 548 | <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
|
|---|
| 549 | <xsd:attribute name="hostMode" type="TPortMode" use="required"/>
|
|---|
| 550 | <xsd:attribute name="path" type="TLocalFile"/>
|
|---|
| 551 | <xsd:attribute name="server" type="xsd:boolean" default="false"/>
|
|---|
| 552 | </xsd:complexType>
|
|---|
| 553 |
|
|---|
| 554 | <xsd:complexType name="TUart">
|
|---|
| 555 | <xsd:sequence>
|
|---|
| 556 | <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
|
|---|
| 557 | <xsd:complexType>
|
|---|
| 558 | <xsd:complexContent>
|
|---|
| 559 | <xsd:extension base="TUartPort">
|
|---|
| 560 | </xsd:extension>
|
|---|
| 561 | </xsd:complexContent>
|
|---|
| 562 | </xsd:complexType>
|
|---|
| 563 | </xsd:element>
|
|---|
| 564 | </xsd:sequence>
|
|---|
| 565 | </xsd:complexType>
|
|---|
| 566 |
|
|---|
| 567 | <xsd:complexType name="TLptPort">
|
|---|
| 568 | <xsd:attribute name="slot" use="required">
|
|---|
| 569 | <xsd:simpleType>
|
|---|
| 570 | <xsd:restriction base="xsd:unsignedInt">
|
|---|
| 571 | <xsd:minInclusive value="0"/>
|
|---|
| 572 | <xsd:maxExclusive value="2"/>
|
|---|
| 573 | </xsd:restriction>
|
|---|
| 574 | </xsd:simpleType>
|
|---|
| 575 | </xsd:attribute>
|
|---|
| 576 | <xsd:attribute name="enabled" type="xsd:boolean" use="required"/>
|
|---|
| 577 | <xsd:attribute name="IRQ" type="TUInt8" use="required"/>
|
|---|
| 578 | <xsd:attribute name="IOBase" type="TUInt16" use="required"/>
|
|---|
| 579 | <xsd:attribute name="path" type="TLocalFile"/>
|
|---|
| 580 | </xsd:complexType>
|
|---|
| 581 |
|
|---|
| 582 | <xsd:complexType name="TLpt">
|
|---|
| 583 | <xsd:sequence>
|
|---|
| 584 | <xsd:element name="Port" minOccurs="0" maxOccurs="unbounded">
|
|---|
| 585 | <xsd:complexType>
|
|---|
| 586 | <xsd:complexContent>
|
|---|
| 587 | <xsd:extension base="TLptPort">
|
|---|
| 588 | </xsd:extension>
|
|---|
| 589 | </xsd:complexContent>
|
|---|
| 590 | </xsd:complexType>
|
|---|
| 591 | </xsd:element>
|
|---|
| 592 | </xsd:sequence>
|
|---|
| 593 | </xsd:complexType>
|
|---|
| 594 |
|
|---|
| 595 | <xsd:complexType name="TSharedFolder">
|
|---|
| 596 | <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
|
|---|
| 597 | <xsd:attribute name="hostPath" type="TLocalFile" use="required"/>
|
|---|
| 598 | </xsd:complexType>
|
|---|
| 599 |
|
|---|
| 600 | <xsd:complexType name="TSharedFolders">
|
|---|
| 601 | <xsd:sequence>
|
|---|
| 602 | <xsd:element name="SharedFolder" type="TSharedFolder" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 603 | </xsd:sequence>
|
|---|
| 604 | </xsd:complexType>
|
|---|
| 605 |
|
|---|
| 606 | <xsd:complexType name="TClipboard">
|
|---|
| 607 | <xsd:attribute name="mode" type="TClipboardMode" use="required"/>
|
|---|
| 608 | </xsd:complexType>
|
|---|
| 609 |
|
|---|
| 610 | <xsd:complexType name="THardware">
|
|---|
| 611 | <xsd:all>
|
|---|
| 612 | <xsd:element name="CPU" type="TCPU" minOccurs = "0"/>
|
|---|
| 613 | <xsd:element name="Memory" type="TMemory"/>
|
|---|
| 614 | <xsd:element name="Boot" type="TBoot">
|
|---|
| 615 | <xsd:unique name="THardware-Boot-Order">
|
|---|
| 616 | <xsd:selector xpath="vb:Order"/>
|
|---|
| 617 | <xsd:field xpath="@position"/>
|
|---|
| 618 | </xsd:unique>
|
|---|
| 619 | </xsd:element>
|
|---|
| 620 | <xsd:element name="Display" type="TDisplay"/>
|
|---|
| 621 | <xsd:element name="RemoteDisplay" type="TRemoteDisplay" minOccurs="0"/>
|
|---|
| 622 | <xsd:element name="BIOS" type="TBIOS"/>
|
|---|
| 623 | <xsd:element name="DVDDrive" type="TDVDDrive"/>
|
|---|
| 624 | <xsd:element name="FloppyDrive" type="TFloppyDrive"/>
|
|---|
| 625 | <xsd:element name="USBController" type="TUSBController"/>
|
|---|
| 626 | <xsd:element name="Network" type="TNetwork">
|
|---|
| 627 | <xsd:unique name="THardware-Network-Adapter">
|
|---|
| 628 | <xsd:selector xpath="vb:Adapter"/>
|
|---|
| 629 | <xsd:field xpath="@slot"/>
|
|---|
| 630 | </xsd:unique>
|
|---|
| 631 | </xsd:element>
|
|---|
| 632 | <xsd:element name="Uart" type="TUart" minOccurs="0">
|
|---|
| 633 | <xsd:unique name="THardware-Uart-Port">
|
|---|
| 634 | <xsd:selector xpath="vb:Port"/>
|
|---|
| 635 | <xsd:field xpath="@slot"/>
|
|---|
| 636 | </xsd:unique>
|
|---|
| 637 | </xsd:element>
|
|---|
| 638 | <xsd:element name="Lpt" type="TLpt" minOccurs="0">
|
|---|
| 639 | <xsd:unique name="THardware-Lpt-Port">
|
|---|
| 640 | <xsd:selector xpath="vb:Port"/>
|
|---|
| 641 | <xsd:field xpath="@slot"/>
|
|---|
| 642 | </xsd:unique>
|
|---|
| 643 | </xsd:element>
|
|---|
| 644 | <xsd:element name="AudioAdapter" type="TAudioAdapter"/>
|
|---|
| 645 | <!--- @todo (dmik) remove minOccurs="0" from SharedFolders on next format change! -->
|
|---|
| 646 | <xsd:element name="SharedFolders" type="TSharedFolders" minOccurs="0">
|
|---|
| 647 | <xsd:unique name="THardware-SharedFolders-SharedFolder">
|
|---|
| 648 | <xsd:selector xpath="vb:SharedFolder"/>
|
|---|
| 649 | <xsd:field xpath="@name"/>
|
|---|
| 650 | </xsd:unique>
|
|---|
| 651 | </xsd:element>
|
|---|
| 652 | <!--- @todo (dmik) remove minOccurs="0" from SharedFolders on next format change! -->
|
|---|
| 653 | <xsd:element name="Clipboard" type="TClipboard" minOccurs="0"/>
|
|---|
| 654 | </xsd:all>
|
|---|
| 655 | </xsd:complexType>
|
|---|
| 656 |
|
|---|
| 657 | <xsd:complexType name="TMachine">
|
|---|
| 658 | <xsd:all>
|
|---|
| 659 | <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
|---|
| 660 | <xsd:element name="Hardware" type="THardware"/>
|
|---|
| 661 | <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
|
|---|
| 662 | <xsd:element name="ExtraData" type="TExtraData" minOccurs="0"/>
|
|---|
| 663 | <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0"/>
|
|---|
| 664 | </xsd:all>
|
|---|
| 665 | <xsd:attribute name="name" type="TNonEmptyString" use="required"/>
|
|---|
| 666 | <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/>
|
|---|
| 667 | <xsd:attribute name="OSType" type="TGuestOSType" use="required"/>
|
|---|
| 668 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 669 | <xsd:attribute name="stateFile" type="TLocalFile"/>
|
|---|
| 670 | <xsd:attribute name="currentSnapshot" type="TNonNullUUID"/>
|
|---|
| 671 | <xsd:attribute name="snapshotFolder" type="TLocalFile"/>
|
|---|
| 672 | <!--- @todo (dmik) make lastStateChange required on next format change! -->
|
|---|
| 673 | <xsd:attribute name="lastStateChange" type="TPresentDateTimeUTC"/>
|
|---|
| 674 | <xsd:attribute name="aborted" type="xsd:boolean"/>
|
|---|
| 675 | <xsd:attribute name="currentStateModified" type="xsd:boolean" default="true"/>
|
|---|
| 676 | </xsd:complexType>
|
|---|
| 677 |
|
|---|
| 678 | <xsd:complexType name="TSnapshot">
|
|---|
| 679 | <xsd:all>
|
|---|
| 680 | <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
|---|
| 681 | <xsd:element name="Hardware" type="THardware"/>
|
|---|
| 682 | <xsd:element name="HardDiskAttachments" type="THardDiskAttachments"/>
|
|---|
| 683 | <xsd:element name="Snapshots" minOccurs="0">
|
|---|
| 684 | <xsd:complexType>
|
|---|
| 685 | <xsd:sequence>
|
|---|
| 686 | <xsd:element name="Snapshot" type="TSnapshot" minOccurs="0" maxOccurs="unbounded"/>
|
|---|
| 687 | </xsd:sequence>
|
|---|
| 688 | </xsd:complexType>
|
|---|
| 689 | </xsd:element>
|
|---|
| 690 | </xsd:all>
|
|---|
| 691 | <xsd:attribute name="name" type="xsd:token" use="required"/>
|
|---|
| 692 | <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/>
|
|---|
| 693 | <xsd:attribute name="timeStamp" type="TPresentDateTimeUTC" use="required"/>
|
|---|
| 694 | <xsd:attribute name="stateFile" type="TLocalFile"/>
|
|---|
| 695 | </xsd:complexType>
|
|---|
| 696 |
|
|---|
| 697 | <xsd:complexType name="TVirtualBox" abstract="true">
|
|---|
| 698 | <xsd:choice>
|
|---|
| 699 | <xsd:element name="Global" type="TGlobal"/>
|
|---|
| 700 | <xsd:element name="Machine" type="TMachine">
|
|---|
| 701 | <!-- @currentSnapshot must refer to an existing Snapshot/@uuid -->
|
|---|
| 702 | <xsd:key name="snapshot">
|
|---|
| 703 | <xsd:selector xpath=".//vb:Snapshot"/>
|
|---|
| 704 | <xsd:field xpath="@uuid"/>
|
|---|
| 705 | </xsd:key>
|
|---|
| 706 | <xsd:keyref name="currentSnapshot" refer="vb:snapshot">
|
|---|
| 707 | <xsd:selector xpath="."/>
|
|---|
| 708 | <xsd:field xpath="@currentSnapshot"/>
|
|---|
| 709 | </xsd:keyref>
|
|---|
| 710 | </xsd:element>
|
|---|
| 711 | </xsd:choice>
|
|---|
| 712 | </xsd:complexType>
|
|---|
| 713 |
|
|---|
| 714 | </xsd:schema>
|
|---|