[lxc-users] Systemd as LXC 2.0 dependency ?

Serge Hallyn serge.hallyn at ubuntu.com
Tue Apr 12 16:44:39 UTC 2016


Quoting Harald Dunkel (harald.dunkel at aixigo.de):
> Hi folks,
> 
> On 04/04/2016 05:50 PM, Serge Hallyn wrote:
> > Quoting Milan BeneŇ° (milan at benesovi.eu):
> >> Hello,
> >> does anybody know if systemd is a requirement for LXC 2.0?
> > 
> > Systemd is not required.  A name=systemd cgroup mount is.  You
> > can create that trivially
> > 
> > sudo mkdir /sys/fs/cgroup/systemd
> > sudo mount -t cgroup -o none,name=systemd /sys/fs/cgroup/systemd
> > 
> 
> Should be "mkdir -p", AFAICT.
> 
> This is pretty painful. Obviously a simple entry in /etc/fstab
> is not sufficient.
> 
> Would it be possible to add some "if test -d /sys/fs/cgroup/systemd"
> to the code, bypassing the systemd support for native sysv init
> on HA systems?

We have 'lxc.cgroup.use' in the global lxc configuration, perhaps
we can do one of the following:

1. if lxc.cgroup.use is specified, then let that override the 
'madatory' list, bc you should know better

2. add a 'lxc.cgroup.required' which if unspecified defaults to
the current list.

3. add a 'lxc.cgroup.ignore' list


More information about the lxc-users mailing list