pe 24.7.2026 klo 17.08 Paride Legovini ([email protected]) kirjoitti:
>
> On 2026-07-14 21.45, Martin-Éric Racine wrote:
> >
> > This is still broken on Trixie:
> >
> > $ autopkgtest -sU . ../dhcpcd-base_10.3.2-4_amd64.deb -- qemu --debug
> > /srv/chroot/stable-amd64/autopkgtest-stable.img
> > autopkgtest [22:41:59]: starting date and time: 2026-07-14 22:41:59+0300
> > autopkgtest [22:41:59]: version 5.49
> > autopkgtest [22:41:59]: host p8b75; command line: /usr/bin/autopkgtest
> > -sU . ../dhcpcd-base_10.3.2-4_amd64.deb -- qemu --debug
> > /srv/chroot/stable-amd64/autopkgtest-stable.img
> > autopkgtest-virt-qemu: DBG: Assuming nothing special needs to be done
> > to set up firmware to boot this machine (boot method: bios)
> > autopkgtest-virt-qemu: DBG: executing open
> > autopkgtest-virt-qemu: DBG: qemu architecture: x86_64
> > autopkgtest-virt-qemu: DBG: qemu command: qemu-system-x86_64
> > autopkgtest-virt-qemu: DBG: find_free_port: trying 10022
> > autopkgtest-virt-qemu: DBG: find_free_port: 10022 is free
> > autopkgtest-virt-qemu: DBG: execute-timeout: qemu-img info
> > --output=json /srv/chroot/stable-amd64/autopkgtest-stable.img
> > autopkgtest-virt-qemu: DBG: Creating temporary overlay image in
> > /tmp/autopkgtest-qemu.mghxkd1v/overlay.img
> > autopkgtest-virt-qemu: DBG: execute-timeout: qemu-img create -f qcow2
> > -F qcow2 -b /srv/chroot/stable-amd64/autopkgtest-stable.img
> > /tmp/autopkgtest-qemu.mghxkd1v/overlay.img
> > autopkgtest-virt-qemu: DBG: Forwarding local port 10022 to VM ssh port 22
> > autopkgtest-virt-qemu: DBG: full qemu command-line:
> > ['qemu-system-x86_64', '-m', '2048', '-smp', '1', '-nographic',
> > '-device', 'virtio-net-pci,netdev=net0', '-netdev',
> > 'user,id=net0,hostfwd=tcp:127.0.0.1:10022-:22', '-object',
> > 'rng-random,filename=/dev/urandom,id=rng0', '-device',
> > 'virtio-rng-pci,rng=rng0,id=rng-device0', '-monitor',
> > 'unix:/tmp/autopkgtest-qemu.mghxkd1v/monitor,server=on,wait=off',
> > '-virtfs', 
> > 'local,id=autopkgtest,path=/tmp/autopkgtest-qemu.mghxkd1v/shared,security_model=none,mount_tag=autopkgtest',
> > '-device', 'virtio-serial', '-chardev',
> > 'socket,path=/tmp/autopkgtest-qemu.mghxkd1v/hvc0,server=on,wait=off,id=hvc0',
> > '-device', 'virtconsole,chardev=hvc0', '-chardev',
> > 'socket,path=/tmp/autopkgtest-qemu.mghxkd1v/hvc1,server=on,wait=off,id=hvc1',
> > '-device', 'virtconsole,chardev=hvc1', '-serial',
> > 'unix:/tmp/autopkgtest-qemu.mghxkd1v/ttyS0,server=on,wait=off',
> > '-serial', 'unix:/tmp/autopkgtest-qemu.mghxkd1v/ttyS1,server=on,wait=off',
> > '-drive', 
> > 'index=0,file=/tmp/autopkgtest-qemu.mghxkd1v/overlay.img,format=qcow2,cache=unsafe,if=virtio,discard=unmap']
> > autopkgtest-virt-qemu: DBG: expect: b' login: '
> > qemu-system-x86_64: terminating on signal 15 from pid 305499 
> > (/usr/bin/python3)
> > autopkgtest-virt-qemu: DBG: cleanup...
> > <VirtSubproc>: failure: timed out waiting for 'login prompt on serial 
> > console'
> > autopkgtest [22:42:59]: ERROR: testbed failure: unexpected eof from the 
> > testbed
> > Exception ignored in: <_io.TextIOWrapper name=6 encoding='UTF-8'>
> > BrokenPipeError: [Errno 32] Broken pipe
> > $
>
> Hi, I suspect this is a timeout in waiting for the VM to boot. In
> particular I don't see -enable-kvm in the qemu-system-x86_64 options;
> that flag should be automatically added when /dev/kvm is availale.
>
> Could you check (1) whether /dev/kvm is available, and in general if you
> can expect accelerated KVM to be available, and (2) pass something like
> --timeout-reboot=600 to autopkgtest-virt-qemu to see if that makes it work?

Sure enough, enabling Virtualization in BIOS and rebooting made
/dev/kvm appear, and the autopkgtest recipe finally works. Thanks!

Btw, KVM wasn't needed until Bookworm. I can run autopkgtest-virt-qemu
on that without it. It however very much is needed since Trixie. This
must be documented, preferably in the package description.

Martin-Éric

Reply via email to