Hi Serge, I have used normal "lxc launch", then I made changes to the init system. The container does come up with the init system when I disable one option in /sbin/init file
s6 ~ # ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 8 0.0 0.2 218740 4052 ? Ss 07:02 0:00 bash root 10 0.0 0.1 217660 2528 ? R+ 07:02 0:00 \_ ps auxf root 1 0.0 0.0 1044 780 ? Ss 07:02 0:00 66-boot root 6 0.0 0.0 1044 80 ? Ss 07:02 0:00 66-boot root 7 0.0 0.0 2756 1980 ? Ss+ 07:02 0:00 sulogin s6 ~ # cat /sbin/init #!/bin/execlineb -P 66-boot When I add -c option to 66-boot ( https://framagit.org/Obarun/66/commit/b69e8c25c0d5f4313c3dd5b2f1d7995a67f3a022) it throws this error about the memory.oom.group. Also the container doesn't load all the services (when started without -c). Thanks for any further pointers. Pavol On Sun, Dec 29, 2019 at 2:48 AM Serge E. Hallyn <se...@hallyn.com> wrote: > How did you create the container? This seems independent of the > init system. If you alter the rootfs to specify a different init, > does it then come up? > > On Sat, Dec 28, 2019 at 10:28:15PM +0100, Pavol Cupka wrote: > > Hi list, > > > > I am trying to start a container with s6 as the init system and > supervisor. > > > > I am getting this error when trying to run inside unprivileged container: > > > > lxc s6 20191228211015.399 WARN cgfsng - > cgroups/cgfsng.c:chowmod:1525 - > > No such file or directory - Failed to > > chown(/sys/fs/cgroup/unified//lxc.payload/s6/memory.oom.group, 131072, 0) > > > > kernel 5.3.12 > > lxd-3.18 > > lxc-3.2.1 > > > > Can anybody please point me in the right direction? > > > > Thank you in advance > > Pavol > > > _______________________________________________ > > lxc-users mailing list > > lxc-users@lists.linuxcontainers.org > > http://lists.linuxcontainers.org/listinfo/lxc-users > > _______________________________________________ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users >
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users