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>.

Debian Debian
RUN apt-get update && \ apt-get install -y libvirt-bin
Ubuntu
RUN apt-get update && \ apt-get install -y libvirt-bin
Alpine
RUN apk add libvirt
Arch Arch Linux
RUN pacman -S --noconfirm libvirt
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y libvirt-clients
CentOS
RUN yum install -y libvirt-client
Fedora
RUN dnf install -y libvirt-client
Raspbian
RUN apt-get update && \ apt-get install -y libvirt-clients
click the source code to copy install virt-xml-validate on any operating system with command-not-found.com