Bug 90517

Summary: RHEL 6: systemd can't run in containers
Product: systemd Reporter: Gunther Klessinger <gk>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WONTFIX QA Contact: systemd-bugs
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Gunther Klessinger 2015-05-19 10:11:14 UTC
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 ?
Comment 1 Lennart Poettering 2015-05-19 10:16:58 UTC
Nope. systemd requires a lot of kernel features that are not available in the RHEL 6 kernel. It's really not just about /cgroup vs. /sys/fs/cgroup...

Sorry, but this cannot work.
Comment 2 Gunther Klessinger 2015-05-19 10:23:18 UTC
Ok - danke dir. First reliable info regarding this :-)

We'll have to push our customers to upgrade their kernels to > 3.8 then, saw those available on EPEL.

Cheers,
G.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.