Comment 2 for bug 2001737

Revision history for this message
Alberto Contreras (aciba) wrote (last edit ):

The problem is that cloud-init expects `/1.0/devices` to be available in the lxc instance socket, but this information was introduced in LXD 4.21, see [1].

This issue is present in focal (lxd 4.0/stable) and bionic (lxd 3 deb package).

As a workaround for focal images, one could perform an upgrade to 4.21:

sudo snap refresh --channel=4.21/stable lxd

A solution for cloud-init could be to only fetch /1.0/devices on compatible lxd versions and enable/disable the lxd hotplug feature depending on that.

[1] https://discuss.linuxcontainers.org/t/lxd-4-21-has-been-released/12860