0

Ubuntu 15.04 Fresh new installation so all packages are up to date.

Trying to edit libvirt xml file. Using $ sudo EDITOR=gedit virsh edit win81

Added

<kvm>
  <hidden state='on'/>
</kvm>

then receive following error message

error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content

Help please

1 Answer 1

0

Your are trying to use a relatively new feature, perhaps it is not yet available in 15.04. It is available in 15.10 development. You can check by looking at /usr/share/libvirt/schemas/domaincommon.rng. Does it contain this:

  <!-- Optional KVM features -->
  <define name="kvm">
    <element name="kvm">
      <interleave>
        <optional>
          <element name="hidden">
            <ref name="featurestate"/>
          </element>
        </optional>
      </interleave>
    </element>
  </define>

If the feature is available, then please show us the bigger context of your .xml file. Perhaps edit your question and post the entire <features> section.

2
  • Thank you and yesterday it magically accepted the change without any modification. I now have more questions about vga passthrough <3
    – Kylinblue
    Jul 28, 2015 at 1:10
  • Also those lines were in the rng file
    – Kylinblue
    Jul 28, 2015 at 1:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .