#1138941 mmdebstrap-autopkgtest-build-qemu: please support creating qcow2 images

#1138941#5
Date:
2026-06-05 19:48:57 UTC
From:
To:
Dear Maintainer,

It would be nice if mmdebstrap-autopkgtest-build-qemu could create qcow2
images in addition to raw images, e.g. by calling

qemu-img convert "$raw_image" -O qcow2 "$IMAGE"

at the end.

#1138941#8
Date:
2026-06-07 08:12:18 UTC
From:
To:
Hi,

Quoting Benjamin Drung (2026-06-05 21:48:57)

mmdebstrap-autopkgtest-virt-qemu got added because back then, debvm was not yet
able to create images which are directly bootable by qemu as is required for
the qemu backend of autopkgtest. Some history about that is here:

https://salsa.debian.org/helmutg/debvm/-/work_items/11
https://salsa.debian.org/helmutg/debvm/-/work_items/16

But since last year, debvm now also ships the debefivm utilities which are able
to create images bootable by qemu without debefivm-run. For details, consult
the man page of debefivm-create, in the EXAMPLES section:

https://manpages.debian.org/debefivm-create

To reduce duplicated code, I'd like to either:

 * change mmdebstrap-autopkgtest-build-qemu such that it becomes a wrapper for
   debefivm-create (adding debvm to Suggests) or
 * remove mmdebstrap-autopkgtest-build-qemu because it's doing something which
   debefivm-create is able to do but worse

I'm wondering whether people still use/need mmdebstrap-autopkgtest-virt-qemu or
whether they could switch to debefivm-create for their use-case.

Thanks!

cheers, josch

#1138941#13
Date:
2026-06-07 22:54:41 UTC
From:
To:
I wasn't aware of debefivm-create. Thanks for the pointer.

mdebstrap-autopkgtest-build-qemu wrapping debefivm-create wrapping
mmdebstrap is to much layering IMO. I would suggest dropping mdebstrap-
autopkgtest-build-qemu.

Having to specify so many arguments for debefivm-create is a complexity
that I like to see abstracted away. I propose two solutions:

* Have an option to debefivm-create that expands to the values needed
for autopkgtest.

* or let debefivm-create support config files that contain debefivm-
create parameters. Then debvm could ship a config for autopkgtest.

#1138941#18
Date:
2026-06-08 09:16:36 UTC
From:
To:
Hi Benjamin.

* Benjamin Drung <bdrung@debian.org> [2026-06-08 00:54]:

I have opened:

https://salsa.debian.org/helmutg/debvm/-/merge_requests/64

Cheers Jochen

#1138941#23
Date:
2026-06-25 22:41:40 UTC
From:
To:
Thanks. That's a good approach to drop mmdebstrap-autopkgtest-build-
qemu.