autopkgtest-buildvm-ubuntu-cloud fails on riscv64 due to invoking qemu-system-riscv64 with -m virt acpi=on

Bug #2056764 reported by Heinrich Schuchardt
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Wishlist
Paride Legovini

Bug Description

I tried to run 'autopkgtest-buildvm-ubuntu-cloud -v --arch riscv64 --release noble'. But the build does not finish.

QEMU 8.2.1 supports ACPI on riscv64. But our images cannot boot with the available ACPI information.

We must use -m virt,acpi=off.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

This is the QEMU invocation command that fails:

qemu-system-riscv64 \
-machine virt \
-m 512 \
-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.e_5m27zi/monitor,server=on,wait=off \
-virtfs local,id=autopkgtest,path=/tmp/autopkgtest-qemu.e_5m27zi/shared,security_model=none,mount_tag=autopkgtest \
-device virtio-serial \
-chardev socket,path=/tmp/autopkgtest-qemu.e_5m27zi/hvc0,server=on,wait=off,id=hvc0 \
-device virtconsole,chardev=hvc0 \
-chardev socket,path=/tmp/autopkgtest-qemu.e_5m27zi/hvc1,server=on,wait=off,id=hvc1 \
-device virtconsole,chardev=hvc1 \
-serial unix:/tmp/autopkgtest-qemu.e_5m27zi/ttyS0,server=on,wait=off \
-drive index=0,file=/tmp/autopkgtest-buildvm-ubuntu-cloudj82p8naj/noble-server-cloudimg-riscv64.img,format=qcow2,if=virtio,discard=unmap \
-drive index=1,file=/tmp/autopkgtest-buildvm-ubuntu-cloudj82p8naj/autopkgtest.seed,format=raw,if=virtio,discard=unmap,readonly

summary: - Autopkgtest fails on riscv64 with -m virt acpi=on
+ autopkgtest-buildvm-ubuntu-cloud fails on riscv64 due to invoking qemu-
+ system-riscv64 with -m virt acpi=on
description: updated
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

We also need to supply a firmware, e.g. EDK2:

-drive if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd,readonly=on

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Changed in autopkgtest (Ubuntu):
status: New → In Progress
importance: Undecided → Wishlist
Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
assignee: nobody → Paride Legovini (paride)
Revision history for this message
Paride Legovini (paride) wrote :
Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 5.34ubuntu2

---------------
autopkgtest (5.34ubuntu2) noble; urgency=medium

  [ Paride Legovini ]
  * d/t/unshare: skip test (exit 77) if simple unshare command fails
  * gitlab-ci: do not include the salsa pipeline

  [ Florent 'Skia' Jacquet ]
  * tools/a-b-lxd: make sure the reboot happens when needed

 -- Paride Legovini <email address hidden> Wed, 17 Apr 2024 23:39:55 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.