lxd systemd cgroups on boot?

Daniel Gray
Message ID
DKIM signature
Download raw message

I was having some trouble with my lxc containers starting, when the
distribution was one that used systemd, (debian, archlinux etc).

Seems the solution is here:


# mkdir -p /sys/fs/cgroup/systemd
# mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd

Running these commands allows my containers to start.

However, I'd like a more permanent solution as I use Alpine Linux in

I've added the groups service to default runlevel so it starts on boot:

# rc-update add cgroups
# rc-service cgroups start

I don't think putting the above mount point in fstab will work for
cgroups as they're started by the groups service. Any suggestions?

Daniel Gray (dng) 0x41911F722B0F9AE3