Cmk-agent-ctl-daemon.service fails in vers. 2.2.0 raw -> LXC Container? Failed to set up mount namespacing: /run/systemd/unit-root/proc: Permission denied

**CMK version: 2.2
**OS version: debian 11 bullseye, running as LXC Container in Proxmox

Error message:

May 24 23:12:11 monitoring systemd[144434]: cmk-agent-ctl-daemon.service: Failed to set up mount namespacing: /run/systemd/unit-root/proc: Permission denied
May 24 23:12:11 monitoring systemd[144434]: cmk-agent-ctl-daemon.service: Failed at step NAMESPACE spawning /usr/bin/cmk-agent-ctl: Permission denied
May 24 23:12:11 monitoring systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=226/NAMESPACE
May 24 23:12:11 monitoring systemd[1]: cmk-agent-ctl-daemon.service: Failed with result ‘exit-code’.
May 24 23:12:11 monitoring systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 1.
May 24 23:12:11 monitoring systemd[1]: Stopped Checkmk agent controller daemon.

anybody has an idea if i can do something?

i migrated my server to a qemu machine → now it works.
i belive the agent does not run on a LXC vm (debian 11)

I had the same problem in ProxmoxVE LXC container and soveld it by setting Container-> Options → Features → Nesting=1 (on) or something like:

/etc/pve/lxc/105.conf:features: nesting=1
1 Like