FWIW: *NOT* a problem with systemd-detect-virt on x86_64 Ubuntu on Qemu on X86_64 host:
ubuntu@ubuntu:~$ systemd-detect-virt qemu ubuntu@ubuntu:~$ uname -a Linux ubuntu 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:00:33 UTC 2025 x86_64 GNU/Linux ubuntu@ubuntu:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=25.10 DISTRIB_CODENAME=questing DISTRIB_DESCRIPTION="Ubuntu Questing Quokka (development branch)" Possibly because on x86_64 AMD64 because systemd-detect-virt finds QEMU via DMI stuff? Which is there on x86, but not on RISCV64 (and Aarch64?)? ubuntu@ubuntu:~$ SYSTEMD_LOG_LEVEL=debug systemd-detect-virt Failed to read $container of PID 1, ignoring: Permission denied Found container virtualization none. Virtualization QEMU found in DMI (/sys/class/dmi/id/sys_vendor) <<<<<<<<<<<<<< Here? UML virtualization not found in /proc/cpuinfo. Virtualization XEN not found, /proc/xen does not exist Virtualization found, CPUID=TCGTCGTCGTCG Found VM virtualization qemu qemu ubuntu@ubuntu:~$ -- 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
