1VIRT-XML-VALIDATE(1) Virtualization Support VIRT-XML-VALIDATE(1)
2
3
4
6 virt-xml-validate - validate libvirt XML files against a schema
7
9 virt-xml-validate XML-FILE [SCHEMA-NAME]
10
11 virt-xml-validate OPTION
12
14 Validates a libvirt XML for compliance with the published schema. The
15 first compulsory argument is the path to the XML file to be validated.
16 The optional second argument is the name of the schema to validate
17 against. If omitted, the schema name will be inferred from the name of
18 the root element in the XML document.
19
20 Valid schema names currently include
21
22 "domainsnapshot"
23 The schema for the XML format used by domain snapshot configuration
24
25 "domain"
26 The schema for the XML format used by guest domains configuration
27
28 "network"
29 The schema for the XML format used by virtual network configuration
30
31 "storagepool"
32 The schema for the XML format used by storage pool configuration
33
34 "storagevol"
35 The schema for the XML format used by storage volume descriptions
36
37 "nodedev"
38 The schema for the XML format used by node device descriptions
39
40 "capability"
41 The schema for the XML format used to declare driver capabilities
42
43 "nwfilter"
44 The schema for the XML format used by network traffic filters
45
46 "nwfilterbinding"
47 The schema for XML format used by network filter bindings.
48
49 "secret"
50 The schema for the XML format used by secrets descriptions
51
52 "interface"
53 The schema for the XML format used by physical host interfaces
54
56 -h, --help
57 Display command line help usage then exit.
58
59 -V, --version
60 Display version information then exit.
61
63 Upon successful validation, an exit status of 0 will be set. Upon
64 failure a non-zero status will be set.
65
67 Daniel P.Berrange
68
70 Report any bugs discovered to the libvirt community via the mailing
71 list <https://libvirt.org/contact.html> or bug tracker
72 <https://libvirt.org/bugs.html>. Alternatively report bugs to your
73 software distributor / vendor.
74
76 Copyright (C) 2009-2013 by Red Hat, Inc. Copyright (C) 2009 by Daniel
77 P. Berrange
78
80 virt-xml-validate is distributed under the terms of the GNU GPL v2+.
81 This is free software; see the source for copying conditions. There is
82 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
83 PURPOSE
84
86 virsh(1), online XML format descriptions
87 <https://libvirt.org/format.html>
88
89
90
91libvirt-4.6.0 2018-07-28 VIRT-XML-VALIDATE(1)