Specific XML parsing errors when provisioning a guest automatically
If the deployment function cannot parse the XML file when provisioning a guest automatically, an error message is displayed indicating either a general XML error or a specific XML error.
- Text that may vary on a per-error-message basis is shown as
??
. - The XML element names are shown with leading and trailing angle brackets, such as
<domain>
. - The XML attribute values are enclosed within single quotation marks, such as
'type'
. - The severity levels of the error messages are:
error
,warning
, andinformational
.Errors
cause the deployment to fail immediately.Warnings
cause the specified the element or attribute to be ignored, and the parsing of the XML file continues. Certain elements may be missing from the final configuration that causes the guest to behave in unexpected ways.Informationals
are for information purposes only and do not affect the deployment of the guest.
Message | Severity | Cause | Possible solution or corrected XML |
---|---|---|---|
<disk> missing 'device' attribute
|
Warning | The <disk> element must have a 'device' attribute. |
<disk device='disk'>
|
<domain> element missing 'type' attribute
|
Error | The <domain> element must have a 'type' attribute. |
<domain type='kvm'>
|
<graphics> 'passwd' attribute missing, not adding device
|
Warning | The <graphics> element is missing the 'passwd' element. |
<graphics passwd='my-secret-password'>
|
<graphics> 'port' and 'autoport' attributes both missing
|
Warning | The <graphics> element must have either a 'port' or an 'autoport' attribute. |
<graphics port=????/>
|
<graphics> 'tlsPort' is not supported, not adding device
|
Warning | The <graphics> 'tlsPort' attribute is not supported. | Remove any <graphics> 'tlsPort' attributes from the XML file. |
<graphics> 'type' attribute missing
|
Warning | The <graphics> element is missing the 'type' attribute. |
<graphics type='spice'/>
|
<video> <model> 'type' and 'vram' attributes both missing
|
Warning | The <video> element does not have a <model> 'type' or a <model> 'vram' attribute. |
<video> <model type='cirrus'/>
|
<watchdog> element missing 'model' attribute
|
Warning | The <watchdog> element is missing the 'model' attribute. |
<watchdog model='i6300esb'/>
|
<watchdog> model '??' not supported, not adding hardware
|
Warning | The <watchdog> element's 'model' attribute value is unsupported; the only supported value is 'i6300esb'. | <watchdog model='i6300esb'/>
|
No <domain> element
|
Error | The outermost element of the XML file is not the <domain> element. | Add a <domain> element as the outermost element in the XML file. |
No <name> element
|
Error | The <name> element is missing from the XML file. | Add <name>guest-name</name> to the XML file. |
Only one graphic device is supported, using the first device.
|
Warning | More than one <graphic> element is defined in the XML file. | Remove the extraneous <graphic> elements from the XML file. |
Only one video device is supported, using the first device
|
Warning | More than one <video> <model> element is defined in the XML file. | Remove the extraneous <video> <model> elements from the XML file. |
Only one watchdog device is supported, using the first device
|
Warning | More than one <watchdog> element is defined in the XML file. | Remove the extraneous <watchdog> elements from the XML file. |
Unrecognised allocation unit: ??
|
Error | The <memory> 'unit' attribute value is not recognized. | See xxx for valid allocation unit identifiers. |
unsupported <disk device='??'> attribute
|
Warning | The <disk> 'device' attribute value is not 'disk' or 'cdrom'. |
<disk device='cdrom'>
|
unsupported <graphics> 'type' attribute: '??'
|
Warning | The <graphics> 'type' attribute value is not 'spice' or 'vnc'. |
<graphics type='spice'/>
|
unsupported <interface> 'type' attribute: '??'
|
Warning | The <interface> 'type' attribute value is not 'ethernet' or 'bridge'. |
<interface type='ethernet'>
|
Unsupported hypervisor: ??
|
Error | The only <domain> 'type' attribute value supported is 'kvm'. |
<domain type='kvm'>
|
unsupported video model type: '??'
|
Warning | The <video> <model> 'type' attribute is not recognized. |
<video> <model type='cirrus'/>
|
Watchdog action ?? is not supported, not adding hardware
|
Warning | The <watchdog> element's 'action' attribute value is unsupported. | <watchdog model='i6300esb' action='none'/>
|