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 • cpu
23
24 The schema for the XML format of cpu
25
26 • domainsnapshot
27
28 The schema for the XML format used by domain snapshot configuration
29
30 • domaincheckpoint
31
32 The schema for the XML format used by domain checkpoint configuration
33
34 • domainbackup
35
36 The schema for the XML format used by domain backup configuration
37
38 • domaincaps
39
40 The schema for the XML format of domain capabilities
41
42 • domain
43
44 The schema for the XML format used by guest domains configuration
45
46 • networkport
47
48 The schema for the XML format used by network port configuration
49
50 • network
51
52 The schema for the XML format used by virtual network configuration
53
54 • storagepoolcaps
55
56 The schema for the XML format of storage pool capabilities
57
58 • storagepool
59
60 The schema for the XML format used by storage pool configuration
61
62 • storagevol
63
64 The schema for the XML format used by storage volume descriptions
65
66 • nodedev
67
68 The schema for the XML format used by node device descriptions
69
70 • capability
71
72 The schema for the XML format used to declare driver capabilities
73
74 • nwfilter
75
76 The schema for the XML format used by network traffic filters
77
78 • nwfilterbinding
79
80 The schema for XML format used by network filter bindings.
81
82 • secret
83
84 The schema for the XML format used by secrets descriptions
85
86 • interface
87
88 The schema for the XML format used by physical host interfaces
89
91 -h, --help
92
93 Display command line help usage then exit.
94
95 -V, --version
96
97 Display version information then exit.
98
100 Upon successful validation, an exit status of 0 will be set. Upon fail‐
101 ure a non-zero status will be set.
102
104 Daniel P. Berrangé
105
107 Please report all bugs you discover. This should be done via either:
108
109 1. the mailing list
110
111 https://libvirt.org/contact.html
112
113 2. the bug tracker
114
115 https://libvirt.org/bugs.html
116
117 Alternatively, you may report bugs to your software distributor / ven‐
118 dor.
119
121 Copyright (C) 2009-2013 by Red Hat, Inc. Copyright (C) 2009 by Daniel
122 P. Berrangé
123
125 virt-xml-validate is distributed under the terms of the GNU GPL v2+.
126 This is free software; see the source for copying conditions. There is
127 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
128 PURPOSE
129
131 virsh(1), online XML format descriptions, https://libvirt.org/
132
133
134
135
136 VIRT-XML-VALIDATE(1)