LinuxCommandLibrary

virt-xml-validate

Validate libvirt XML files

TLDR

Validate against specific schema

$ virt-xml-validate [path/to/file.xml] [schema]
copy
Validate domain XML
$ virt-xml-validate [path/to/domain.xml] domain
copy

SYNOPSIS

virt-xml-validate FILE [SCHEMA]

DESCRIPTION

virt-xml-validate validates libvirt XML files against their schemas. If no schema is specified, it is determined automatically from the root element in the XML file.
This tool helps verify that XML configuration files are valid before using them with libvirt.

PARAMETERS

FILE

XML file to validate
SCHEMA
Schema to validate against (auto-detected if not specified)

CAVEATS

Valid XML doesn't guarantee the configuration will work. Some schema errors may not be detected. Requires libvirt schemas to be installed.

SEE ALSO

virt-xml(1), virsh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community