Dear Nomad community,
I am trying to start nomad agent client as root on a server and I am getting the following error:
2025-05-23T17:41:00.912+0200 [ERROR] agent: error starting agent: error="client setup failed: failed to initialize process manager: failed to create nomad cgroup: write /sys/fs/cgroup/cgroup.subtree_control: invalid argument"
However, I don’t get any error when running nomad as nomad user.
My problem is that I need to run Nomad agent client as root because I use raw-exec to start other jobs as root user.
I saw this doc Nomad installation requirements | Nomad | HashiCorp Developer and cgroups looks ok?
# cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io memory hugetlb pids rdma misc
Any idea how can I run nomad agent client as root?
kind regards