Quoting Francesco Poli (wintermute) (2024-01-27 19:44:15) > As I said in bug report [#1061634], I've been able to create a QEMU/KVM > virtual machine image for autopkgtests: > > $ mkdir -p ~/var/cache/sbuild/ > $ cd /dev/shm > $ TMPDIR=/dev/shm mmdebstrap-autopkgtest-build-qemu \ > --size=25G --boot=efi sid sid-amd64.img > $ chmod 660 sid-amd64.img > $ mv -i sid-amd64.img ~/var/cache/sbuild/ > > [#1061634]: <https://bugs.debian.org/1061634> > > It works for autopkgtests, but I wanted to use the same virtual machine > image to build Debian packages with sbuild-qemu. > The first thing I tested is the update of the VM image with > sbuild-qemu-update: > > $ sbuild-qemu-update --arch=amd64 sid-amd64.img > qemu-system-x86_64 -enable-kvm -object > rng-random,filename=/dev/urandom,id=rng0 -device > virtio-rng-pci,rng=rng0,id=rng-device0 -device virtio-serial -nic > user,model=virtio -m 1024 -smp 1 -nographic sid-amd64.img > > This command does not seem to work: it uses 100 % of one CPU core and > seemingly does nothing, until I interrupt it by pressing [Ctrl+C]. > > Is there any special tweak or configuration needed to use > sbuild-qemu-update with mmdebstrap-autopkgtest-build-qemu VM images? > Where is this documented? > > Otherwise, if this is an actual bug, please fix > mmdebstrap-autopkgtest-build-qemu
The images you create with mmdebstrap-autopkgtest-build-qemu require efi. But sbuild-qemu does pass the --boot parameter to autopkgtest-virt-qemu. If you are on amd64 and if your image is for amd64, then autopkgtest-virt-qemu will default to bios boot which is incompatible with the images created by mmdebstrap-autopkgtest-build-qemu. You could add a dirty local hack to sbuild-qemu and let it add --boot=efi via --autopkgtest-virt-server-opt to see if this is it. If that is the problem, please re-assign this bug to sbuild. > or help sbuild-qemu developers to fix sbuild-qemu-update. Did you look up who the sbuild developers are? ;) > Thanks for your time and dedication! Thank you for your bugs!! <3 cheers, josch
signature.asc
Description: signature