Bug 90517 - RHEL 6: systemd can't run in containers
Summary: RHEL 6: systemd can't run in containers
Status: RESOLVED WONTFIX
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 10:11 UTC by Gunther Klessinger
Modified: 2015-05-19 10:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.