Description of problem: When validating against a domain file of type 'vbox', virt-xml-validate will return an error. How reproducible: Always Steps to Reproduce: 1. Create a valid domain file with type 'vbox'. For example (simple.xml): <domain type='vbox'> <name>vbox</name> <os><type>hvm</type></os> <memory>654321</memory> </domain> 2. Run virt-xml-validate simple.xml Actual results: simple.xml:1: element domain: Relax-NG validity error : Element domain failed to validate attributes simple.xml fails to validate Expected results: simple.xml validates
Looks like the issue is in docs/schemas/domaincommon.rng, there is no vbox option: <define name="hvs"> <attribute name="type"> <choice> <value>xen</value> <value>kvm</value> <value>kqemu</value> <value>qemu</value> <value>lxc</value> <value>openvz</value> <value>test</value> </choice> </attribute> </define>
Lorin, you should mention this on the libvirt upstream list as well, if you haven't already. I'm not sure how much attention the people who work on the vbox driver pay to bugzilla.
(In reply to comment #2) > Lorin, you should mention this on the libvirt upstream list as well, if you > haven't already. I'm not sure how much attention the people who work on the > vbox driver pay to bugzilla. Thanks for the heads-up, Dave. I posted it here: https://www.redhat.com/archives/libvir-list/2011-November/msg01501.html
Now committed: commit 8078a90a24fc9bb4dd0aa8bfd3fde15fe5f3d149 Author: Lorin Hochstein <lorin> Date: Mon Nov 28 09:26:57 2011 -0500 conf: make virt-xml-validate work with vbox domains virt-xml-validate fails when run on a domain XML file of type 'vbox'. For failing test case, see https://bugzilla.redhat.com/show_bug.cgi?id=757097 This patch updates the XML schema to accept all valid hypervisor types, as well as dropping hypervisor types that are not in use by the current code base. Signed-off-by: Eric Blake <eblake>