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:

  1. the mailing list

https://libvirt.org/contact.html

  1. the bug tracker

https://libvirt.org/bugs.html

alternatively, you may report bugs to your software distributor / vendor. we're not gatekeeping your bug reports, bestie πŸ’œ


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 πŸ‘‘


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