virt-xml-validate - Man Page

validate libvirt XML files against a schema

Examples (TL;DR)

Synopsis

virt-xml-validate XML-FILE [SCHEMA-NAME]

virt-xml-validate OPTION

Description

Validates a libvirt XML for compliance with the published schema. The first compulsory argument is the path to the XML file to be validated. The optional second argument is the name of the schema to validate against. If omitted, the schema name will be inferred from the name of the root element in the XML document.

Valid schema names currently include

The schema for the XML format of cpu

The schema for the XML format used by domain snapshot configuration

The schema for the XML format used by domain checkpoint configuration

The schema for the XML format used by domain backup configuration

The schema for the XML format of domain capabilities

The schema for the XML format used by guest domains configuration

The schema for the XML format used by network port configuration

The schema for the XML format used by virtual network configuration

The schema for the XML format of storage pool capabilities

The schema for the XML format used by storage pool configuration

The schema for the XML format used by storage volume descriptions

The schema for the XML format used by node device descriptions

The schema for the XML format used to declare driver capabilities

The schema for the XML format used by network traffic filters

The schema for XML format used by network filter bindings.

The schema for the XML format used by secrets descriptions

The schema for the XML format used by physical host interfaces

Options

-h,  --help
Display command line help usage then exit.
-V,  --version
Display version information then exit.

Exit Status

Upon successful validation, an exit status of 0 will be set. Upon failure a non-zero status will be set.

Author

Daniel P. Berrangé

Bugs

Please report all bugs you discover.  This should be done via either:

  1. the mailing list

    https://libvirt.org/contact.html

  2. the bug tracker

    https://libvirt.org/bugs.html

Alternatively, you may report bugs to your software distributor / vendor.

License

virt-xml-validate is distributed under the terms of the GNU GPL v2+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

See Also

virsh(1), online XML format descriptions, https://libvirt.org/

Referenced By

libvirtd(8), virsh(1), virt-admin(1), virt-host-validate(1).

Virtualization Support