Invalid XML file error when provisioning a guest automatically
If the deployment function cannot parse the XML file when provisioning a guest automatically, an error message similar to the following is displayed.
vyatta@vCPE:~$ add virtualization xml /home/vyatta/bad-xml.xml image /home/vyatta/vr5600.qcow2
RPC failure: [ERROR] - error parsing attribute name, line 2, column 1 [ERROR] - Failed to parse libvirt XML at /opt/vyatta/share/perl5/Vyatta/Configd.pm line 193.
vyatta@vCPE:~$
- The first part of the error message identifies either the location (line and column number) of a general XML parsing error or the invalid XML element, attribute, or value for a specific XML parsing error. General XML parsing errors include wrong XML syntax, such as badly formed elements, missing opening or closing angle-brackets, and incorrect nesting of elements. For specific XML parsing errors, see Specific XML parsing errors when provisioning a guest automatically.
- The second part of the error message indicates that the XML file cannot be parsed.