Problem with automatic LXD daemon start

Hi,
Some of my services must have the lxdbr0 interface available before the start. Therefore, I need to have the LXD daemon starting automatically after reboot even when no containers are configured. I can activate the daemon via the socket by running lxc list.
How is it possible to make the lxd daemon always start automatically?
I have Ubuntu 24.04 and LXD 5.21.2-2f4ba6b

# snap services lxd
Service          Startup  Current   Notes
lxd.activate     enabled  inactive  -
lxd.daemon       enabled  inactive  socket-activated
lxd.user-daemon  enabled  inactive  socket-activated

Thank you,
Leonid

One way would be to lxc config set core.https_address 127.0.0.1 or similar so that it has a HTTPS listener which is a condition for always starting on boot.

Thank you, @sdeziel1.
It works.

1 Like