autopkgtest-buildvm-ubuntu-cloud --arch riscv64 fails

Bug #2045639 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Confirmed
Undecided
Paride Legovini

Bug Description

The parameters for qemu-system-riscv64 issued by autopkgtest-buildvm-ubuntu-cloud are incorrect:

$ autopkgtest-buildvm-ubuntu-cloud -v --arch riscv64 --release noble
Downloading https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-riscv64.img...
640.7/643.9 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
qemu-system-riscv64: -drive index=1,file=/tmp/autopkgtest-buildvm-ubuntu-cloudsvusjack/autopkgtest.seed,format=raw,if=virtio,discard=unmap,readonly: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
qemu-system-riscv64: -device virtio-rng-pci,rng=rng0,id=rng-device0: No 'PCI' bus found for device 'virtio-rng-pci'
qemu failed with status 1

This is the used QEMU command:

qemu-system-riscv64 -m 512 -smp 1 -nographic -net nic,model=virtio -net user,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.f6cxot3e/monitor,server=on,wait=off -virtfs local,id=autopkgtest,path=/tmp/autopkgtest-qemu.f6cxot3e/shared,security_model=none,mount_tag=autopkgtest -device virtio-serial -chardev socket,path=/tmp/autopkgtest-qemu.f6cxot3e/hvc0,server=on,wait=off,id=hvc0 -device virtconsole,chardev=hvc0 -chardev socket,path=/tmp/autopkgtest-qemu.f6cxot3e/hvc1,server=on,wait=off,id=hvc1 -device virtconsole,chardev=hvc1 -serial unix:/tmp/autopkgtest-qemu.f6cxot3e/ttyS0,server=on,wait=off -drive index=0,file=/tmp/autopkgtest-buildvm-ubuntu-cloudig049ad6/noble-server-cloudimg-riscv64.img,format=qcow2,if=virtio,discard=unmap -drive index=1,file=/tmp/autopkgtest-buildvm-ubuntu-cloudig049ad6/autopkgtest.seed,format=raw,if=virtio,discard=unmap,readonly
Timed out waiting for /tmp/autopkgtest-qemu.f6cxot3e/ttyS0 socket

The parameter "--machine virt" is missing.

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

In salsa.debian.org the following patch fixes the problem:
bba96eee4c57 ("qemu: Use -machine=virt for riscv64")

The patch is contained in branch debian/5.30.

Revision history for this message
Paride Legovini (paride) wrote :

We are in the process of merging autopkgtest from Debian (version 5.31.1); this bug will be fixed once that's done.

Changed in autopkgtest (Ubuntu):
status: New → Triaged
assignee: nobody → Paride Legovini (paride)
Revision history for this message
Tim Andersson (andersson123) wrote :

I've raised this with the team - we're planning on soon getting up to date with debian, which would include the fix for this bug. We just need to decide if it's worth patching before we do that :)

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

Hello Tim,

I would deem upgrading from Debian in this cycle as adequate.

Thanks for driving this.

Best regards

Heinrich

Revision history for this message
Paride Legovini (paride) wrote :

@Heinrich Noble now has autopkgtest 5.32, however

autopkgtest-buildvm-ubuntu-cloud -v --arch riscv64 --release mantic --ram-size 2048

and

autopkgtest-buildvm-ubuntu-cloud -v --arch riscv64 --release noble --ram-size 2048

both get stuck on my system after some OpenSBI messages. I can see `-machine virt` being passed to qemu now: the full commandline I see is:

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

Do you hit the same issue? Are you perhaps able to spot other issues specific to riscv64? Thanks.

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

Other bug subscribers

Remote bug watches

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