Containers lost after transition to snap package

I just migrated to 20.04, and LXD was replaced with the snap version. Now, unfortunately LXD is not in a working state, and my containers are not accessible: lxc list returns an empty list.

I had a look at other similar posts in this forum, and I can confirm that the debian package is not installed:

$ dpkg -l | grep lxd
ii  lxd                                                         1:0.9                                                       all          Transitional package - lxd -> snap (lxd)

The containers are still listed in /var/lib/lxd/storage-pools/default/containers, but lxd.migrate returns an error:

=> Connecting to source server
error: Unable to connect to the source LXD: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket: connect: no such file or directory

Any hints on what I could try next?

I should specify that my current /var/lib/lxd is a bind mount from another hard drive location. Anyway, I’ve now tried to bind mount the same source location to /var/snap/lxd/common/lxd, and indeed all image and containers are now visible under that directory tree.

But even after restarting the lxd systemd unit (sudo systemctl restart snap.lxd.daemon.service) lxc list is not showing any images:

lxc list
ERROR: object '' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Error: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory

Update your /etc/fstab for the bind mount and then reboot your system, that should do it.