Your message dated Mon, 30 Jan 2023 21:35:11 +0000
with message-id <[email protected]>
and subject line Bug#1004226: fixed in autopkgtest 5.28
has caused the Debian Bug report #1004226,
regarding autopkgtest: qemu only boots qcow2 images
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1004226: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004226
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autopkgtest
Version: 5.16
Severity: normal
Tags: patch
Dear Maintainer,
I found that autopkgtest-virt-qemu in bullseye doesn't boot my disk
images. The version in buster was working fine.
Using --show-boot I found that the VM doesn't boot at all:
Booting from Hard Disk...
Boot failed: could not read the boot disk
The reason is that my disk images are raw images, not qcow2. I found
that autopkgtest runs qemu-img to create an overlay file in qcow2
format, but it configures qemu with the base image format (format=raw)
instead of the overlay format (format=qcow2). I converted an image to
qcow2 format and then it worked fine.
I'm attaching a patch to use format=qcow2 for the overlay image. Please
let me know if you'd prefer a Salsa merge request instead.
Thank you,
Ryan
-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-11-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages autopkgtest depends on:
ii apt-utils 2.2.4
ii libdpkg-perl 1.20.9
ii procps 2:3.3.17-5
ii python3 3.9.2-3
ii python3-debian 0.1.39
Versions of packages autopkgtest recommends:
pn autodep8 <none>
Versions of packages autopkgtest suggests:
pn lxc <none>
pn lxd <none>
pn ovmf <none>
pn qemu-efi-aarch64 <none>
pn qemu-efi-arm <none>
pn qemu-system <none>
ii qemu-utils 1:5.2+dfsg-11+deb11u1
ii schroot 1.6.10-12
pn vmdb2 <none>
-- no debconf information
>From dc5722886920a030d850cd5e0a492c49ffa96988 Mon Sep 17 00:00:00 2001
From: Ryan Tandy <[email protected]>
Date: Sat, 22 Jan 2022 19:19:33 -0800
Subject: [PATCH] Fix qemu failing to boot raw base image
The overlay file is created with 'qemu-img -f qcow2', so pass
'format=qcow2' when using an overlay image. Otherwise, use the base
image format.
---
lib/autopkgtest_qemu.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/autopkgtest_qemu.py b/lib/autopkgtest_qemu.py
index 6733ede..fc8225c 100644
--- a/lib/autopkgtest_qemu.py
+++ b/lib/autopkgtest_qemu.py
@@ -156,13 +156,14 @@ class QemuImage:
if self.overlay is None:
bits.append('file={}'.format(self.file))
+ bits.append('format={}'.format(self.format))
else:
bits.append('file={}'.format(self.overlay))
+ bits.append('format=qcow2')
bits.append('cache=unsafe')
bits.append('if=virtio')
bits.append('discard=unmap')
- bits.append('format={}'.format(self.format))
if self.readonly:
bits.append('readonly')
--
2.30.2
--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 5.28
Done: Paul Gevers <[email protected]>
We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paul Gevers <[email protected]> (supplier of updated autopkgtest package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 30 Jan 2023 19:29:59 +0100
Source: autopkgtest
Architecture: source
Version: 5.28
Distribution: unstable
Urgency: medium
Maintainer: Debian CI team <[email protected]>
Changed-By: Paul Gevers <[email protected]>
Closes: 1003002 1004226
Changes:
autopkgtest (5.28) unstable; urgency=medium
.
[ Jochen Sprickerhof ]
* virt-unshare: use rbind to mount subtrees
.
[ Christian Kastner ]
* QEMU: Enable virtio-serial exactly once (Closes: #1003002)
.
[ Paride Legovini ]
* Pin pockets with Pin-Priority: 500
.
[ Paul Gevers ]
* virt/podmon: don't fail on stderr while stopping container
.
[ Ryan Tandy ]
* Fix qemu failing to boot raw base image (Closes: #1004226)
.
[ Jelmer Vernooij ]
* Print nicer error message when cleaning up schroot times out.
Checksums-Sha1:
670abd9e60ea58941a485cc29d90c52ed42374c2 2028 autopkgtest_5.28.dsc
69667d8caca6c50602fade72f98ed6cb0c9f392a 207864 autopkgtest_5.28.tar.xz
Checksums-Sha256:
f6cc97c99023dde1cf80f8f634f5adda6dcb9ccb0fb6415b363e281dcb018d63 2028
autopkgtest_5.28.dsc
ff454745ba67d97a2109767735da6b74a319206e3abff66828bb3ad0c1f56ffb 207864
autopkgtest_5.28.tar.xz
Files:
7b4e1fac16a67835b536421165b12ff9 2028 devel optional autopkgtest_5.28.dsc
6670465b4b31094c0df5dde39953e064 207864 devel optional autopkgtest_5.28.tar.xz
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAmPYLuAACgkQnFyZ6wW9
dQqkeAgAldWv0vvJ6pW0U5txgX9e+9zSRkVpPT7mkALX8d7rgIlzZpChbholmTee
sHTFZvLzFyrlGRxJGpKE7/MhJZxdbQpP25t6GTwMODgcdQOmAe6Pi2eCQFsis60u
gZPO9U8Mc5tdjNuuMRMQHxOHR4As1fyfvbTygI+YTqkcSa8dzgURT3qroo5MMOdM
4hA6NUx0OYso9c0RgF/psdv2xYXX3cahJRzZuCrBguKisjZhZVSVjrUbC1x3tDqu
0I5cPaxEJveg1QmQkkO6OJNhOiOBI1REcRukIWPiDg6kBVo3vjnsfVDCsjGik+fI
UN71GQoYpU8tDY0ls8LycSEf8s3c9w==
=dLpr
-----END PGP SIGNATURE-----
--- End Message ---