virt-xml-validate
Validate libvirt XML files against a schema. If a schema is not specified, the schema is determined by the root element in the XML file. More information: <https://libvirt.org/manpages/virt-xml-validate.html>.
Install
- All systems
-
curl cmd.cat/virt-xml-validate.sh
- Debian
-
apt-get install libvirt-bin - Ubuntu
-
apt-get install libvirt-bin -
Alpine
-
apk add libvirt - Arch Linux
-
pacman -S libvirt - Kali Linux
-
apt-get install libvirt-clients - CentOS
-
yum install libvirt-client - Fedora
-
dnf install libvirt-client - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install libvirt-bin - OS X
-
brew install libvirt - Raspbian
-
apt-get install libvirt-clients - Docker
-
docker run cmd.cat/virt-xml-validate virt-xml-validatepowered by Commando
Validate libvirt XML files against a schema. If a schema is not specified, the schema is determined by the root element in the XML file. More information: <https://libvirt.org/manpages/virt-xml-validate.html>.
-
Validate an XML file against a specific schema:
virt-xml-validate path/to/file.xml schema -
Validate the domain XML against the domain schema:
virt-xml-validate path/to/domain.xml domain
© tl;dr; authors and contributors