On Wed, Apr 20, 2016 at 2:13 PM, Harald Dunkel <harald.dun...@aixigo.de> wrote: > I tried, but it did not work: > > # grep /sys/fs/cgroup /etc/fstab > systemd /sys/fs/cgroup cgroup none,name=systemd
Should be # grep systemd /proc/mounts cgroup /sys/fs/cgroup/systemd cgroup rw,relatime,clone_children,name=systemd 0 0 name=systemd /run/lxcfs/controllers/name=systemd cgroup rw,relatime,clone_children,name=systemd 0 0 The first one (on my system) is created in /etc/cgconfig.conf (this is on a Centos 6 system with kernel 4.4): ### mount { cpuset = /sys/fs/cgroup/cpuset; cpu = /sys/fs/cgroup/cpu; cpuacct = /sys/fs/cgroup/cpuacct; memory = /sys/fs/cgroup/memory; devices = /sys/fs/cgroup/devices; freezer = /sys/fs/cgroup/freezer; net_cls = /sys/fs/cgroup/net_cls; blkio = /sys/fs/cgroup/blkio; "name=systemd" = /sys/fs/cgroup/systemd; } group . { cpuset {cgroup.clone_children=1;} cpu {cgroup.clone_children=1;} cpuacct {cgroup.clone_children=1;} memory { cgroup.clone_children=1; memory.use_hierarchy=1; } freezer {cgroup.clone_children=1;} net_cls {cgroup.clone_children=1;} blkio {cgroup.clone_children=1;} "name=systemd" {cgroup.clone_children=1;} } ### The second one is automatically created by lxcfs. How you should proceed depends on whether or not you already have other cgroup mounted (e.g /sys/fs/cgroup/cpu). If yes, then configure whatever-mounts-that to also mount systemd cgroup. If no, then you can't JUST use fstab, you need a custom script (e.g. mount tmpfs on /sys/fs/cgroup, mkdir systemd, THEN mount) -- Fajar _______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users