尝试使用virsh snapshot-create-as --domain vm --name vm-snap --disk-only --diskspec "sdc,snapshot=internal,file=/var/lib/libvirt/images/vm.qcow2,,new"
获取 KVM 快照时,出现错误:
error: XML document failed to validate against schema:
Unable to validate doc against /usr/share/libvirt/schemas/domainsnapshot.rng
Extra element disks in interleave
Element domainsnapshot failed to validate content
然而,XML 可以很好地验证使用visrh edit vm.xml
,但这里有些东西没有验证。
- 操作系统:Ubuntu 20.10
- qemu: 1:5.0-5ubuntu9.1
- libvirt:6.6.0-1ubuntu3.1