I have been using non-systemd guests (gentoo) from a non-systemd host (gentoo) without problem.
Then I need to create a debian guest and I found out that the guest won’t start if
/sys/fs/cgroup/systemd is unmounted (which is the case on gentoo host).
# mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd
the debian guest could start.
But then no way to exec anything in non-systemd containers:
$ lxc exec guest bash Error: Failed to retrieve PID of executing child process $ unmount /sys/fs/cgroup/systemd $ lxc exec guest bash guest #
What can explain this and how can I fix the issue ?