[systemd-bugs] [Bug 90517] New: RHEL 6: systemd can't run in containers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 19 03:11:14 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90517

            Bug ID: 90517
           Summary: RHEL 6: systemd can't run in containers
           Product: systemd
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: gk at axiros.com
        QA Contact: systemd-bugs at lists.freedesktop.org

Hi

we love systemd and are making our apps dependent on it.

Problem:

- Default OS of our customers is RHEL 6.

- systemd depends on /sys/fs/cgroup interface but its not present there:

# ls /sys/fs/
ext4
# cat /proc/cgroups 
#subsys_name    hierarchy    num_cgroups    enabled
cpuset    1    6    1
ns    0    1    1
cpu    2    6    1
cpuacct    3    6    1
memory    4    6    1
devices    5    6    1
freezer    6    6    1
net_cls    7    2    1
blkio    8    6    1
perf_event    0    1    1
net_prio    0    1    1
# ls /cgroup
blkio  cpu  cpuacct  cpuset  devices  freezer  memory  net_cls
# uname -r
2.6.32-504.el6.x86_64

One can't mount it into the countainer at the expected place, since /sys/fs/ is
not writeable to create a mountpoint.

Output e.g. for docker (but lxc has same problem):

# docker run -ti --privileged -e "container=docker" debian:jessie /sbin/init
-> Failed to mount tmpfs at /sys/fs/cgroup: No such file or directory



----

=> Any possibility to have systemd be not dependent on /sys/fs/cgroup but only
on /proc and/or  /cgroup ?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150519/c6467862/attachment.html>


More information about the systemd-bugs mailing list