[pkg-lxc-devel] Bug#944389: lxc: Fails to work with cgroupv2 / unified hierarchy

Ryutaroh Matsumoto ryutaroh.matsumoto at nagoya-u.jp
Sun Dec 1 22:42:43 GMT 2019


Package: lxc
Version: 3.2.1+master~20191129-1942-0ubuntu1~disco
Tags: fixed-upstream
Followup-For: Bug #944389

Dear Maintainer,

On the github I was advised to add
lxc.cgroup.devices.allow =
lxc.cgroup.devices.deny =
lxc.mount.auto = proc:mixed sys:mixed cgroup:rw:force

to /var/lib/lxc/container/config, and with above lines lxc can
start Debian 10.2, on the lxc 3.2.1+master~20191129-1942-0ubuntu1~disco
from https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/daily
even on cgroup 2 enabled Debian.

But Debian package 3.1.0+really3.0.4-2 is still unable to start
a container on unified cgroup hierarchy.

I added the fixed-upstream tag. On github I was also suggested to add
lxc.cgroup.relative = 1
to obey the systemd guideline at

https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md#some-donts

Best regards,
Ryutaroh

-- System Information:
Debian Release: 10.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lxc depends on:
ii  lxc-utils  3.2.1+master~20191129-1942-0ubuntu1~disco

lxc recommends no packages.

lxc suggests no packages.

-- no debconf information



More information about the Pkg-lxc-devel mailing list