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 update
sudo apt-get install libvirt-bin
- OS X
-
brew install libvirt
- Raspbian
-
apt-get install libvirt-clients
- Dockerfile
- dockerfile.run/virt-xml-validate
- Docker
-
docker run cmd.cat/virt-xml-validate virt-xml-validate
powered 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