Launching a QEMU U-Boot RISC-V Questing image:

$ cat run_qemu_uboot.sh
#!/bin/sh
qemu-system-riscv64 \
  -cpu rva23s64 \
  -machine virt -m 2G -smp cpus=2 \
  -nographic \
  -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \
  -netdev user,id=net0 \
  -device virtio-net-device,netdev=net0 \
  -device virtio-rng-pci \
  -drive file=ubuntu-25.10-preinstalled-server-riscv64.img,format=raw,if=virtio

After enabling -proposed inside the VM and installing apparmor from
-proposed:

$ apt policy apparmor
apparmor:
  Installed: 5.0.0~alpha1-0ubuntu8.3
  Candidate: 5.0.0~alpha1-0ubuntu8.3
  Version table:
 *** 5.0.0~alpha1-0ubuntu8.3 100
        100 http://ports.ubuntu.com/ubuntu-ports questing-proposed/main riscv64>
        100 /var/lib/dpkg/status
     5.0.0~alpha1-0ubuntu8.1 500
        500 http://ports.ubuntu.com/ubuntu-ports questing-updates/main riscv64 >
     5.0.0~alpha1-0ubuntu8 500
        500 http://ports.ubuntu.com/ubuntu-ports questing/main riscv64 Packages

$ systemd-detect-virt
qemu

(I performed additional SRU verification myself, despite jonkers above
having done verification, because there are non-x86_64 setups that are
not affected by the bug and these details should demonstrate that the
system on which this test was performed is also one that was affected.)

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127111

Title:
  within qemu-RISCV64: systemd-detect-virt results in "Failed to check
  for virtualization: Permission denied"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2127111/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to