Libvirt Kvm Hidden State Fail to Validate

Libvirt Kvm Hidden State Fail to Validate

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.