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:
Richard W.M. Jones
2020-02-06 15:47:54 +00:00
parent 56834875b2
commit 815eab8a66
3 changed files with 17 additions and 17 deletions

View File

@@ -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 $@