[lxc-users] CGroup V2 Support

ITeng A asraaiteng at gmail.com
Mon Apr 8 14:53:55 UTC 2019


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.

kind regards,
Asraa Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190408/031278b8/attachment.html>


More information about the lxc-users mailing list