[Pkg-libvirt-maintainers] Bug#993487: libguestfs-tools: virt-sparsify fails to pass necessary arguments to qemu-img

Norbert Preining norbert at preining.info
Thu Sep 2 03:41:04 BST 2021


Package: libguestfs-tools
Version: 1:1.44.1-2
Severity: important


virt-sparsify in.qcow2 out.qcow2 now is broken:

debugging it gives:

libguestfs: trace: disk_create "/tmp/sparsify4e60f4.qcow2" "qcow2" -1 "backingfile:/var/lib/libvirt/images/FujitsuWin10v2.qcow2" "compat:1.1"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/var/lib/libvirt/images/FujitsuWin10v2.qcow2,compat=1.1
libguestfs: command: run: \ /tmp/sparsify4e60f4.qcow2
qemu-img: /tmp/sparsify4e60f4.qcow2: Backing file specified without backing format
Detected format of qcow2.libguestfs: trace: disk_create = -1 (error)

and even if I add
	-o backing_fmt=qcow
it does not work since the option is not passed to qemu-img, despite
what the man page says.

Best



-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.13+futex+ (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libguestfs-tools depends on:
ii  curl                       7.74.0-1.3+b1
ii  libc6                      2.31-17
ii  libconfig9                 1.5-0.4
ii  libcrypt1                  1:4.4.25-1
ii  libfuse2                   2.9.9-5
ii  libguestfs-perl            1:1.44.1-2
ii  libguestfs0                1:1.44.1-2
ii  libintl-perl               1.26-3
ii  libjansson4                2.13.1-1.1
ii  liblzma5                   5.2.5-2
ii  libpcre3                   2:8.39-13
ii  libreadline8               8.1-2
ii  libstring-shellquote-perl  1.04-1
ii  libsys-virt-perl           7.5.0-1
ii  libtinfo6                  6.2+20201114-4
ii  libtirpc3                  1.3.2-2
ii  libvirt0                   7.6.0-1
ii  libwin-hivex-perl          1.3.21-1
ii  libxml2                    2.9.12+dfsg-3

Versions of packages libguestfs-tools recommends:
ii  gnupg     2.2.27-2
ii  virt-p2v  1.42.0-3

libguestfs-tools suggests no packages.

-- no debconf information



More information about the Pkg-libvirt-maintainers mailing list