mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: Use explicit backing format for all backing disks.
Libvirt 6.0 now requires that every disk in the backing chain has an explicit backing format. For example this will be rejected by libvirt: qemu-img create -f qcow2 -b backing-disk disk.qcow2 with the error: Original error from libvirt: Requested operation is not valid: format of backing image 'backing-disk' of image 'disk.qcow2' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting) [code=55 int1=-1] Instead you have to use the -F option to specify the format, eg: qemu-img create -f qcow2 -b backing-disk -F raw disk.qcow2
This commit is contained in:
@@ -50,4 +50,4 @@ blank-disk-1M.qcow2:
|
||||
qemu-img create -f qcow2 -o preallocation=metadata $@ 1M
|
||||
|
||||
blank-disk-with-backing.qcow2: blank-disk-1M.raw
|
||||
qemu-img create -f qcow2 -b $^ $@
|
||||
qemu-img create -f qcow2 -b $^ -F raw $@
|
||||
|
||||
Reference in New Issue
Block a user