[Pkg-systemd-maintainers] Bug#723197: lxc does not work with cgroups hierarchy mounted by systemd-logind

Laurent Bigonville bigon at debian.org
Tue Sep 17 10:19:56 BST 2013


Package: lxc
Version: 0.9.0~alpha3-2+deb8u1
Severity: important

Hi,

I've already reported this bug upstream, I'm opening this here too to
keep it track in debian:

==========

Hi,

On my debian machine I'm using the good old SysVinit but I've systemd-logind
running (started by some GNOME component). logind is mounting the following
cgroup hierarchy by default:

    cat /proc/mounts |grep cgroup
    none /sys/fs/cgroup tmpfs rw,rootcontext=system_u:object_r:sysfs_t:s0,seclabel,relatime,size=4k,mode=755 0 0
    systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0

    cat /proc/cgroups
    #subsys_name hierarchy num_cgroups enabled
    cpuset 0 1 1
    cpu 0 1 1
    cpuacct 0 1 1
    memory 0 1 0
    devices 0 1 1
    freezer 0 1 1
    net_cls 0 1 1
    blkio 0 1 1
    perf_event 0 1 1

But this prevent lxc from starting a container:

    lxc-start: No cgroup mounted on the system
    lxc-start: failed to spawn 'debian-lxc'

If I switch the init to systemd then the container is starting as expected

========

Cheers

Laurent Bigonville

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




More information about the Pkg-systemd-maintainers mailing list