From ac49903b163bb4eea71ff960b47daec1c7bca5b2 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Fri, 27 Aug 2021 22:28:39 -0700 Subject: [PATCH] qemu-img 6.1.0 no longer supports using -b without -F > Backing file specified without backing format > Detected format of qcow2. Signed-off-by: Jan Dubois --- pkg/qemu/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/qemu/qemu.go b/pkg/qemu/qemu.go index a3899f88734..aa6c78343ec 100644 --- a/pkg/qemu/qemu.go +++ b/pkg/qemu/qemu.go @@ -78,7 +78,7 @@ func EnsureDisk(cfg Config) error { } args := []string{"create", "-f", "qcow2"} if !isBaseDiskISO { - args = append(args, "-b", baseDisk) + args = append(args, "-F", "qcow2", "-b", baseDisk) } args = append(args, diffDisk, strconv.Itoa(int(diskSize))) cmd := exec.Command("qemu-img", args...)