This is the error message that I get while trying to start an lxc container:
lxc-start: mycontainer: ../src/lxc/lxccontainer.c: wait_on_daemonized_start: 878 Received container state "ABORTING" instead of "RUNNING"
lxc-start: mycontainer: ../src/lxc/tools/lxc_start.c: main: 306 The container failed to start
lxc-start: mycontainer: ../src/lxc/tools/lxc_start.c: main: 309 To get more details, run the container in foreground mode
lxc-start: mycontainer: ../src/lxc/tools/lxc_start.c: main: 311
Additional information can be obtained by setting the --logfile and --logpriority options
And this is the errors I get after running with –logfile:
lxc-start mycontainer 20240813222057.438 ERROR conf - ../src/lxc/conf.c:turn_into_dependent_mounts:3951 - No such file or directory - Failed to recursively turn old root mount tree into dependent mount. Continuing...
lxc-start mycontainer 20240813222057.480 ERROR cgfsng - ../src/lxc/cgroups/cgfsng.c:cg_legacy_set_data:3098 - No such file or directory - Failed to setup limits for the "devices" controller. The controller seems to be unused by "cgfsng" cgroup driver or not enabled on the cgroup hierarchy
lxc-start mycontainer 20240813222057.480 ERROR cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_setup_limits_legacy:3165 - No such file or directory - Failed to set "devices.deny" to "a"
lxc-start mycontainer 20240813222057.480 ERROR start - ../src/lxc/start.c:lxc_spawn:1893 - Failed to setup legacy device cgroup controller limits
lxc-start mycontainer 20240813222057.481 ERROR lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc-start mycontainer 20240813222057.481 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:306 - The container failed to start
lxc-start mycontainer 20240813222057.481 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:309 - To get more details, run the container in foreground mode
lxc-start mycontainer 20240813222057.481 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:311 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc-start mycontainer 20240813222057.481 ERROR start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "mycontainer"
I have tried different distros and versions. If anyone could point me in the right direction I would be very grateful.
2