[lxc-users] CGroup V2 Support

Christian Brauner christian at brauner.io
Fri Apr 19 12:46:09 UTC 2019


On Fri, Apr 12, 2019 at 6:17 PM ITeng A <asraaiteng at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190419/2dfca0ac/attachment.html>


More information about the lxc-users mailing list