[Solved] LXC OpenWrt 21.02 lxc-start error

root@OWRT-DEV:/# lxc-start -n myBUSTER --foreground --logpriority TRACE         
lxc-start: myBUSTER: cgroups/cgfsng.c: cg_legacy_set_data: 2824 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 hierar
chy                                                                             
   lxc-start: myBUSTER: cgroups/cgfsng.c: cgfsng_setup_limits_legacy: 2873 No su
ch file or directory - Failed to set "devices.deny" to "a"                      
                                                          lxc-start: myBUSTER: s
tart.c: lxc_spawn: 1828 Failed to setup legacy device cgroup controller limits  
                                                                              lx
c-start: myBUSTER: start.c: __lxc_start: 1999 Failed to spawn container "myBUSTE
R"                                                                              
  lxc-start: myBUSTER: tools/lxc_start.c: main: 308 The container failed to star
t                                                                               
lxc-start: myBUSTER: tools/lxc_start.c: main: 314 Additional information can be 
obtained by setting the --logfile and --logpriority options                     

REF :


https://github.com/openwrt/packages/issues/15433#

fixed by removing all cgroupv1 reference from /usr/share/lxc/config/common.conf !

1 Like