Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Raspberry Pi OS • Can't run unprivileged LXC containers

$
0
0
I can't run unprivileged LXC containers on the latest Raspberry Pi OS.

Code:

$ cat /boot/firmware/cmdline.txtconsole=serial0,115200 console=tty1 root=PARTUUID=df19b463-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=PL systemd.unified_cgroup_hierarchy=0$ sudo cat /etc/systemd/system/user@.service.d/delegate.conf[Service]Delegate=cpu cpuset io memory pids$ sudo cat /etc/lxc/lxc-usernetwhiteman808 veth lxcbr0 10$ sudo cat /etc/lxc/default.conflxc.net.0.type = vethlxc.net.0.link = lxcbr0lxc.net.0.flags = uplxc.idmap = u 0 100000 65536lxc.idmap = g 0 100000 65536lxc.apparmor.profile = unconfinedlxc.apparmor.allow_nesting = 0$ lxc-unpriv-start -n test --foregroundRunning as unit: run-p1352-i1652.scope; invocation ID: 1375626332c848a7888ccc583c38e062lxc-start: test: ../src/lxc/mount_utils.c: fs_attach: 255 Permission denied - Failed to finalize filesystem context 20lxc-start: test: ../src/lxc/cgroups/cgfsng.c: __cgroupfs_mount: 2197 Permission denied - Failed to mount cgroup2 filesystem onto 19((null))lxc-start: test: ../src/lxc/cgroups/cgfsng.c: cgfsng_mount: 2366 Permission denied - Failed to force mount cgroup filesystem in cgroup namespacelxc-start: test: ../src/lxc/conf.c: lxc_mount_auto_mounts: 659 Permission denied - Failed to mount "/sys/fs/cgroup"lxc-start: test: ../src/lxc/conf.c: lxc_setup: 3944 Failed to setup remaining automatic mountslxc-start: test: ../src/lxc/start.c: do_start: 1273 Failed to setup container "test"lxc-start: test: ../src/lxc/sync.c: sync_wait: 34 An error occurred in another process (expected sequence number 4)lxc-start: test: ../src/lxc/start.c: __lxc_start: 2119 Failed to spawn container "test"lxc-start: test: ../src/lxc/tools/lxc_start.c: lxc_start_main: 307 The container failed to startlxc-start: test: ../src/lxc/tools/lxc_start.c: lxc_start_main: 312 Additional information can be obtained by setting the --logfile and --logpriority options

Statistics: Posted by whiteman808 — Sun Feb 08, 2026 9:54 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles