Have you ever start lxc on that host succesfully before? Or is this a first attempt?
IIRC on my centos 6.6: - I need newer kernel. Went with kernel ml (http://elrepo.org/linux/kernel/el6/x86_64/RPMS/) which had 4.4 back then. It had /sys/fs/cgroup, so I can mount tmpfs there (with fstab), and mount cgroups on top of it with cgconfig. I can't remember whether lxc works when it was mounted on /cgroup, but it works correctly with /sys/fs/cgroup - For each cgroup, I need cgroup.clone_children=1 on /etc/cgconfig.conf. Otherwise I can't start the container (forgot the exact error message, something about "resource" or "quota", I think) - lxc-net (the one that creates lxcbr0) would fail to start with original centos kernel. It works fine with 4.4 though. - need to install lxcfs as well That was with 2.0.0-rc5, haven't had time to upgrade yet. -- Fajar On Thu, Apr 21, 2016 at 7:54 AM, F Dave <[email protected]> wrote: > Turns out that it was cgroup was mounted under /cgroup, so I was able to > create the folder there and mount it. However the container shows the same > error: > > [root@devhost fs]# mount -t cgroup -o none,name=systemd cgroup > /cgroup/systemd/ > > [root@devhost fs]# grep cg /proc/mounts > cgroup /cgroup/cpuset cgroup rw,relatime,cpuset 0 0 > cgroup /cgroup/cpu cgroup rw,relatime,cpu 0 0 > cgroup /cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0 > cgroup /cgroup/memory cgroup rw,relatime,memory 0 0 > cgroup /cgroup/devices cgroup rw,relatime,devices 0 0 > cgroup /cgroup/freezer cgroup rw,relatime,freezer 0 0 > cgroup /cgroup/net_cls cgroup rw,relatime,net_cls 0 0 > cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0 > cgroup /cgroup/systemd cgroup rw,relatime,name=systemd 0 0 > > [root@devhost fs]# lxc-start -F -n node2 > lxc-start: cgfsng.c: all_controllers_found: 431 no systemd controller > mountpoint found > lxc-start: start.c: lxc_spawn: 1079 failed initializing cgroup support > lxc-start: start.c: __lxc_start: 1329 failed to spawn 'node2' > lxc-start: lxc_start.c: main: 344 The container failed to start. > lxc-start: lxc_start.c: main: 348 Additional information can be obtained by > setting the --logfile and --logpriority options. > > > On Thu, Apr 21, 2016 at 11:38 AM, F Dave <[email protected]> wrote: >> >> I cloned the master branch and rebuilt it. Did 'make uninstall' for the >> previous lxc-2.0.0 and installed new version. However it still throws the >> same error. Also tried to create the systemd folder: >> >> [root@devhost lxc]# mkdir -p /sys/fs/cgroup/systemd >> mkdir: cannot create directory `/sys/fs/cgroup/systemd': No such file or >> directory >> >> [root@devhost lxc]# ll /sys/fs/cgroup/ >> total 0 >> >> [root@devhost lxc]# ll /sys/fs/ >> total 0 >> drwxr-xr-x. 2 root root 0 Apr 21 07:07 btrfs >> drwxr-xr-x. 2 root root 0 Apr 20 09:07 cgroup >> drwxr-xr-x. 4 root root 0 Apr 21 07:07 ext4 >> drwxr-xr-x. 2 root root 0 Apr 21 07:07 selinux >> >> >> On Thu, Apr 21, 2016 at 9:14 AM, Serge Hallyn <[email protected]> >> wrote: >>> >>> > cgfsng.c:all_controllers_found:431 - no systemd controller mountpoint >>> > found >>> > lxc-start: cgfsng.c: all_controllers_found: 431 no systemd controller >>> > mountpoint found >>> >>> This is known. You can either run from git head to get the patch which >>> fixes this, or just make sure to have a name=systemd cgroup controller >>> mounted on the host. >>> _______________________________________________ >>> lxc-users mailing list >>> [email protected] >>> http://lists.linuxcontainers.org/listinfo/lxc-users >> >> > > > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
