[pkg-lxc-devel] Bug#968049: Failed to kill unit rsyslog.service: Input/output error

Harald Dunkel harald.dunkel at aixigo.com
Mon Aug 17 12:10:14 BST 2020

According to the comment of Christian Brauner on https://github.com/lxc/lxc/issues/3520
the problem is using cgroupv2 in a LXC container without proper initialization of
cgroupv2 on the host system.

Manually mounting cgroupv2 (next to traditional cgroup) on the host fixed the problem.

cd /sys/fs/cgroup
mkdir -p unified
mount -t cgroup2 -o rw,nosuid,nodev,noexec,relatime,nsdelegate cgroup2 unified || echo ignored

You have to stop and start the containers. A reboot inside the container is not

Since cgroupv2 shouldn't be used for container based virtualization on kernels <5.2
(see https://kernelnewbies.org/Linux_5.2#Add_freezer_controller_for_cgroups_v2) I
would recommend to install a recent backports kernel.


More information about the Pkg-lxc-devel mailing list