On Fri, Apr 12, 2019 at 6:17 PM ITeng A <asraait...@gmail.com> wrote:
> Dear all > > Does the current version of LXC 3.0.3 support the new cgroup v2 ? > I try to run LXC containers with the unified cgroup but containers fail > to start with these error " > > Failed to create directory "/sys/fs/cgroup/unified//lxc/u2 > Failed to create cgroup "/sys/fs/cgroup/unified//lxc/u2" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:mkdir_eexist_on_last:1219 - File exists - Failed to create > directory "/sys/fs/cgroup/unified//lxc/u2-1" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:create_path_for_hierarchy:1243 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-1" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:cgfsng_payload_create:1321 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-1" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:mkdir_eexist_on_last:1219 - File exists - Failed to create > directory "/sys/fs/cgroup/unified//lxc/u2-2" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:create_path_for_hierarchy:1243 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-2" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:cgfsng_payload_create:1321 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-2" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:mkdir_eexist_on_last:1219 - File exists - Failed to create > directory "/sys/fs/cgroup/unified//lxc/u2-3" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:create_path_for_hierarchy:1243 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-3" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:cgfsng_payload_create:1321 - Failed to create cgroup > "/sys/fs/cgroup/unified//lxc/u2-3" > lxc-start u2 20190408090114.500 ERROR cgfsng - > cgroups/cgfsng.c:mkdir_eexist_on_last:1219 - File exists - Failed to create > directory "/sys/fs/cgroup/unified//lxc/u2-4" > .................... > > I am using ubuntu 18.04 with linux kernel 4.18 LTS, in order to use the > new unified cgroup v2 controllers , I need to disable cgroup v1 conrollers > as it is documented in cgroup v2 , when I do that container fail to start > as above. if i re-enable cgroup v1 controllers the container start > successfully. > Sorry for the late reply it took me a while but I backported all the necessary logic to correctly deal with cgroup2 layouts to stable-3.0. With the next stable release this will be supported. Thanks! Christian
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users