2019-10-18 17:29:47 +03:00
=================
virt-xml-validate
=================
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
-------------------------------------------
validate libvirt XML files against a schema
-------------------------------------------
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
:Manual section: 1
:Manual group: Virtualization Support
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
.. contents ::
2016-04-13 20:57:37 +03:00
2019-10-18 17:29:47 +03:00
SYNOPSIS
========
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
`` virt-xml-validate `` *XML-FILE* [*SCHEMA-NAME* ]
`` virt-xml-validate `` *OPTION*
DESCRIPTION
===========
2016-04-12 21:32:33 +03:00
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
2022-05-11 09:18:32 +03:00
- `` cpu ``
The schema for the XML format of cpu
2019-10-18 17:29:47 +03:00
- `` domainsnapshot ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by domain snapshot configuration
2022-05-11 09:18:32 +03:00
- `` domaincheckpoint ``
The schema for the XML format used by domain checkpoint configuration
- `` domainbackup ``
The schema for the XML format used by domain backup configuration
- `` domaincaps ``
The schema for the XML format of domain capabilities
2019-10-18 17:29:47 +03:00
- `` domain ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by guest domains configuration
2022-05-11 09:18:32 +03:00
- `` networkport ``
The schema for the XML format used by network port configuration
2019-10-18 17:29:47 +03:00
- `` network ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by virtual network configuration
2022-05-11 09:18:32 +03:00
- `` storagepoolcaps ``
The schema for the XML format of storage pool capabilities
2019-10-18 17:29:47 +03:00
- `` storagepool ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by storage pool configuration
2019-10-18 17:29:47 +03:00
- `` storagevol ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by storage volume descriptions
2019-10-18 17:29:47 +03:00
- `` nodedev ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by node device descriptions
2019-10-18 17:29:47 +03:00
- `` capability ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used to declare driver capabilities
2019-10-18 17:29:47 +03:00
- `` nwfilter ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by network traffic filters
2019-10-18 17:29:47 +03:00
- `` nwfilterbinding ``
2018-07-13 04:39:29 +03:00
The schema for XML format used by network filter bindings.
2019-10-18 17:29:47 +03:00
- `` secret ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by secrets descriptions
2019-10-18 17:29:47 +03:00
- `` interface ``
2016-04-12 21:32:33 +03:00
The schema for the XML format used by physical host interfaces
2019-10-18 17:29:47 +03:00
OPTIONS
=======
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
`` -h `` , `` --help ``
2016-04-12 21:32:33 +03:00
Display command line help usage then exit.
2019-10-18 17:29:47 +03:00
`` -V `` , `` --version ``
2016-04-12 21:32:33 +03:00
Display version information then exit.
2019-10-18 17:29:47 +03:00
EXIT STATUS
===========
2016-04-12 21:32:33 +03:00
Upon successful validation, an exit status of 0 will be set. Upon
failure a non-zero status will be set.
2019-10-18 17:29:47 +03:00
AUTHOR
======
Daniel P. Berrangé
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
BUGS
====
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
Please report all bugs you discover. This should be done via either:
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
#. the mailing list
`https://libvirt.org/contact.html <https://libvirt.org/contact.html> `_
#. the bug tracker
`https://libvirt.org/bugs.html <https://libvirt.org/bugs.html> `_
Alternatively, you may report bugs to your software distributor / vendor.
COPYRIGHT
=========
2016-04-12 21:32:33 +03:00
Copyright (C) 2009-2013 by Red Hat, Inc.
2019-10-18 17:29:47 +03:00
Copyright (C) 2009 by Daniel P. Berrangé
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
LICENSE
=======
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
`` virt-xml-validate `` is distributed under the terms of the GNU GPL v2+.
2016-04-12 21:32:33 +03:00
This is free software; see the source for copying conditions. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE
2019-10-18 17:29:47 +03:00
SEE ALSO
========
2016-04-12 21:32:33 +03:00
2019-10-18 17:29:47 +03:00
virsh(1), `online XML format descriptions <https://libvirt.org/format.html> `_ ,
`https://libvirt.org/ <https://libvirt.org/> `_