On Monday (1st of October), we will be switching the LXD snap to using socket activation.
This should be a completely transparent change for most users and will mean that LXD will only be running on your system if you’re actually using it.
We’re doing this change to avoid wasting valuable CPU time on systems which aren’t actually using LXD.
This is also a requirement as Ubuntu 18.10 ships LXD as a snap in all cloud images and we certainly don’t want it running there if the user isn’t using it.
The LXD daemon will now startup when:
- You first talk to it
- You have auto-started containers
- You are using LXD clustering
- Your LXD daemon is bound to a network address
This matches the behavior we’ve long had with the LXD deb.
Unfortunately socket activation through snapd is currently broken on Fedora.
We have reported this issue here: https://forum.snapcraft.io/t/selinux-blocking-socket-activation-on-fedora/6931
But so far no fixes have been put in place and so unfortunately, the switch to socket activation will break those Fedora users that have SELinux enabled.
As far as I know, the only way out of this currently is to turn off SELinux on your system.
If you have SELinux knowledge and would like to help fixing this, please follow the link above and help the snapd upstream and packagers in fixing this properly.
We have had socket activation enabled in our
edge channels for the past few months and so are pretty confident that it works, at least on our test systems and for those users that are using the edge channel.
If you have a spare system and VM, it’d be very helpful if you could install the edge snap on there and confirm that things are working well for you:
- snap install lxd --edge
- lxc info
- lxc info
The commands above are the bare minimum to confirm that things are working.
You may also want to check whether your containers come back online after reboot and play with clustering and other advanced features.
Should you run into issues, please get in touch with us through one of:
- Comment in this thread
- File a bug at https://github.com/lxc/lxd-pkg-snap
- E-mail us at firstname.lastname@example.org