i am having issues similare to this thread but lowering the ptrace_scope from 3 to 0 was not enough i am still getting
lxc-start wireguard 20260420103242.759 INFO utils - ../src/lxc/utils.c:run_script_argv:590 - Executing script “/usr/share/lxcfs/lxc.mount.hook” for container “wireguard”
lxc-start wireguard 20260420103242.759 TRACE utils - ../src/lxc/utils.c:run_script_argv:633 - Set environment variable: LXC_HOOK_TYPE=mount
lxc-start wireguard 20260420103242.759 TRACE utils - ../src/lxc/utils.c:run_script_argv:638 - Set environment variable: LXC_HOOK_SECTION=lxc
lxc-start wireguard 20260420103242.770 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxcfs/lxc.mount.hook produced output: mount: /usr/lib/x86_64-linux-gnu/lxc/rootfs/proc/cpuinfo: bind /var/lib/lxcfs/proc/cpuinfo failed.
dmesg(1) may have more information after failed mount system call.
lxc-start wireguard 20260420103242.771 ERROR utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 32
lxc-start wireguard 20260420103242.771 ERROR conf - ../src/lxc/conf.c:lxc_setup:3948 - Failed to run mount hooks
lxc-start wireguard 20260420103242.771 ERROR start - ../src/lxc/start.c:do_start:1273 - Failed to setup container “wireguard”
i have been fighting with this all day and dont know where to go from here any pointers or requests for log/conf files just let me know i will provide whatever can help you help me understand how to fix this issue
dmesg/journalctl does not cointain more information on why the mount system call fails. i run apparmor and tried to stop the apparmor service but nothing changed. i read the mount script and tried to execute it as a normal user and but was told only root is allowed to mount, i am not sure how this affects the container since even tho its running in unprivlagde mode it should execute these commands as root from within the container?
actual now that i write this it probably does not do that…
nvm just got reminded only root can mount but since i execute lxc-start with sudo it should in turn execute the mount shell script with the right privilege so i am lost as to why it would fail like this
got past this issue but now this is the error i stuck on
lxc-start wireguard 20260420142009.674 INFO conf - ../src/lxc/conf.c:mount_autodev:1027 - Preparing “/dev”
lxc-start wireguard 20260420142009.674 TRACE mount_utils - ../src/lxc/mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start wireguard 20260420142009.674 TRACE mount_utils - ../src/lxc/mount_utils.c:__fs_prepare:177 - Finished initializing new tmpfs filesystem context 20
lxc-start wireguard 20260420142009.674 TRACE mount_utils - ../src/lxc/mount_utils.c:fs_set_property:215 - Set “mode” to “0755” on filesystem context 20
lxc-start wireguard 20260420142009.674 TRACE mount_utils - ../src/lxc/mount_utils.c:fs_set_property:215 - Set “size” to “500000” on filesystem context 20
lxc-start wireguard 20260420142009.674 ERROR mount_utils - ../src/lxc/mount_utils.c:fs_attach:264 - Permission denied - Failed to mount 22 onto 21
lxc-start wireguard 20260420142009.675 ERROR conf - ../src/lxc/conf.c:mount_autodev:1069 - Permission denied - Failed to mount tmpfs on “(null)”
lxc-start wireguard 20260420142009.675 INFO conf - ../src/lxc/conf.c:mount_autodev:1088 - Prepared “/dev”
lxc-start wireguard 20260420142009.675 ERROR conf - ../src/lxc/conf.c:lxc_setup:3906 - Failed to mount “/dev”
lxc-start wireguard 20260420142009.675 ERROR start - ../src/lxc/start.c:do_start:1273 - Failed to setup container “wireguard”
lxc-start wireguard 20260420142009.675 TRACE sync - ../src/lxc/sync.c:lxc_sync_wake_parent:104 - Child waking parent with sequence error
lxc-start wireguard 20260420142009.676 ERROR sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_USER_NS=/proc/6268/fd/19
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_MNT_NS=/proc/6268/fd/20
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_PID_NS=/proc/6268/fd/21
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_UTS_NS=/proc/6268/fd/22
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_IPC_NS=/proc/6268/fd/23
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_NET_NS=/proc/6268/fd/5
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_expose_namespace_environment:907 - Set environment variable LXC_CGROUP_NS=/proc/6268/fd/24
lxc-start wireguard 20260420142009.676 DEBUG network - ../src/lxc/network.c:lxc_delete_network:4220 - Deleted network devices
lxc-start wireguard 20260420142009.676 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:484 - Set container state to ABORTING
Failed to mount 22 onto 21
Failed to mount tmpfs on “(null)”
what does this even mean… does it not know where to mount?