VIRT-XML-VALIDATE(1)
π NAME π
okay so bestie, meet virt-xml-validate β she validates libvirt XML files against a schema. that's the whole gig. she's basically the vibe check for your XML β¨
this one lives in the Virtualization Support corner of the manual-verse, and the page you're reading right now is virt-xml-validate(1). iykyk π«Ά
πΈ SYNOPSIS πΈ
virt-xml-validate XML-FILE [SCHEMA-NAME]
virt-xml-validate OPTION
β¨ DESCRIPTION β¨
so what she does is: validates a libvirt XML for compliance with the published schema. no cap, that's it. π₯
the first argument is compulsory β it's the path to the XML file you want validated. the second argument is optional and it's the name of the schema you wanna validate against. if you just... don't give her one? she infers the schema name from the name of the root element in the XML document. she's smart like that, main character energy fr π
the valid schema names currently include:
cpuβ the schema for the XML format of cpu π§domainsnapshotβ the schema for the XML format used by domain snapshot configuration πΈ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 πdomainβ the schema for the XML format used by guest domains configuration πnetworkportβ the schema for the XML format used by network port configuration πnetworkβ the schema for the XML format used by virtual network configuration πstoragepoolcapsβ the schema for the XML format of storage pool capabilities ποΈstoragepoolβ the schema for the XML format used by storage pool configuration πstoragevolβ the schema for the XML format used by storage volume descriptions π¦nodedevβ the schema for the XML format used by node device descriptions π₯οΈcapabilityβ the schema for the XML format used to declare driver capabilities β‘nwfilterβ the schema for the XML format used by network traffic filters πΈοΈnwfilterbindingβ the schema for XML format used by network filter bindings. πͺ’secretβ the schema for the XML format used by secrets descriptions π€«interfaceβ the schema for the XML format used by physical host interfaces π§
π OPTIONS π
-h,--helpβ display command line help usage then exit. your classic "wait what does this do again" button π«Ά-V,--versionβ display version information then exit. drop the version and dip π
π EXIT STATUS π
upon successful validation, an exit status of 0 will be set. upon failure a non-zero status will be set. so like... 0 = slay, everything else = not slay. that's the whole spectrum, no in-between π
π AUTHOR π
Daniel P. BerrangΓ© β the icon who made this happen π
π BUGS π
found a bug? please report all bugs you discover. this should be done via either:
- the mailing list
https://libvirt.org/contact.html
- the bug tracker
alternatively, you may report bugs to your software distributor / vendor. we're not gatekeeping your bug reports, bestie π
β COPYRIGHT β
Copyright (C) 2009-2013 by Red Hat, Inc. Copyright (C) 2009 by Daniel P. BerrangΓ©
π¦ 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. like genuinely none, don't come for her π
π SEE ALSO π
virsh(1)- online XML format descriptions
https://libvirt.org/
and that's the page!! π this has been virt-xml-validate(1) from the Virtualization Support manual β go forth and validate, queen π
β¨ππ«Ά
π¦ where this page comes from
- centos-stream 10: libvirt-client 12.8.0-1.el10 Β· GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OFL-1.1
- debian bookworm: libvirt-clients 9.0.0-4+deb12u2 Β· LGPL-2.1-or-later
- ubuntu noble: libvirt-clients 10.0.0-2ubuntu8
- ubuntu noble: libvirt-clients 10.0.0-2ubuntu8.19
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms