debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #08915
[Bug 2127111] Re: within qemu-RISCV64: systemd-detect-virt results in "Failed to check for virtualization: Permission denied"
... that dir does exist and is readable as normal user:
ubuntu@ubuntu:~$ ll /sys/firmware/devicetree/base/
total 0
-r--r--r-- 1 root root 4 Oct 9 23:16 '#address-cells'
-r--r--r-- 1 root root 4 Oct 9 23:16 '#size-cells'
drwxr-xr-x 14 root root 0 Oct 9 23:16 ./
drwxr-xr-x 3 root root 0 Oct 8 19:31 ../
drwxr-xr-x 2 root root 0 Oct 9 23:16 aliases/
drwxr-xr-x 2 root root 0 Oct 9 23:16 chosen/
-r--r--r-- 1 root root 13 Oct 9 23:16 compatible
drwxr-xr-x 7 root root 0 Oct 9 23:16 cpus/
drwxr-xr-x 2 root root 0 Oct 9 23:16 'flash@20000000'/
drwxr-xr-x 2 root root 0 Oct 9 23:16 'fw-cfg@10100000'/
drwxr-xr-x 2 root root 0 Oct 9 23:16 'memory@80000000'/
-r--r--r-- 1 root root 18 Oct 9 23:16 model
-r--r--r-- 1 root root 1 Oct 9 23:16 name
drwxr-xr-x 2 root root 0 Oct 9 23:16 'platform-bus@4000000'/
drwxr-xr-x 2 root root 0 Oct 9 23:16 pmu/
drwxr-xr-x 2 root root 0 Oct 9 23:16 poweroff/
drwxr-xr-x 2 root root 0 Oct 9 23:16 reboot/
drwxr-xr-x 4 root root 0 Oct 9 23:16 reserved-memory/
drwxr-xr-x 16 root root 0 Oct 9 23:16 soc/
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2127111
Title:
within qemu-RISCV64: systemd-detect-virt results in "Failed to check
for virtualization: Permission denied"
Status in apparmor package in Ubuntu:
New
Status in systemd package in Ubuntu:
New
Bug description:
ubuntu@ubuntu:~$ systemd-detect-virt
Failed to check for virtualization: Permission denied
ubuntu@ubuntu:~$ sudo systemd-detect-virt
Failed to check for virtualization: Permission denied
From: systemd 257 (257.9-0ubuntu2)
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 6.17.0-5-generic #5.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 23 20:28:40 UTC 2025 riscv64 riscv64 riscv64 GNU/Linux
This is Ubuntu 25.10 riscv64 running within qemu-system-riscv64 on Ubuntu 25.10 x86_64
See https://github.com/systemd/systemd/issues/39192 for full analysis.
Solved with systemd-detect-virt from github: systemd 259 (259~devel)
https://github.com/systemd/systemd/issues/39192#issuecomment-3373625656
ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: systemd 257.9-0ubuntu2
ProcVersionSignature: User Name 6.17.0-5.5.1-generic 6.17.0-rc7
Uname: Linux 6.17.0-5-generic riscv64
ApportVersion: 2.33.1-0ubuntu3
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20250624
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read kernel buffer failed: Operation not permitted
Date: Wed Oct 8 17:10:26 2025
Lspci-vt:
-[0000:00]-+-00.0 Red Hat, Inc. QEMU PCIe Host bridge
+-01.0 Red Hat, Inc. Virtio RNG
\-02.0 Red Hat, Inc. Virtio block device
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
MachineType: riscv-virtio qemu
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt220
XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-5-generic root=UUID=423824f9-91ff-4e47-a13e-549b3604b64e ro efi=debug earlycon=sbi
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump:
dmi.bios.date: 01/01/2025
dmi.bios.release: 25.1
dmi.bios.vendor: U-Boot
dmi.bios.version: 2025.01-3ubuntu4
dmi.board.name: qemu
dmi.board.vendor: riscv-virtio
dmi.chassis.type: 3
dmi.modalias: dmi:bvnU-Boot:bvr2025.01-3ubuntu4:bd01/01/2025:br25.1:svnriscv-virtio:pnqemu:pvr:rvnriscv-virtio:rnqemu:rvr:cvn:ct3:cvr:sku:
dmi.product.name: qemu
dmi.sys.vendor: riscv-virtio
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2127111/+subscriptions
References