What are paths for LXD installed by apt and installed by snap?

Hi all,
there is any documentation about the paths used by LXD when installed by snap?

I was forced by a bug to install LXD using snap; but now I was not able to find the paths needed by commands.

For example working commands when LXD is installed by APT are not working when LXD is installed by SNAP:

root@kvmnode1:~# sudo systemctl status lxd
Unit lxd.service could not be found.
root@kvmnode1:~#

sysop@kvmnode1:~$ sudo -i
root@kvmnode1:~# echo “SELECT * FROM config” | sqlite3 /var/lib/lxd/database/local.db
Error: unable to open database “/var/lib/lxd/database/local.db”: unable to open database file
root@kvmnode1:~# ls -lha /var/lib/lxd/database/
ls: impossibile accedere a ‘/var/lib/lxd/database/’: File o directory non esistente
root@kvmnode1:~#

Someone told me some paths in posts in the past; but there is any documentattion about the paths used?

Maybe a table with two columns: one fot LXD/APT paths and the other for LXD/SNAP paths

you can find a systeld unit based on part of its name

systemctl list-units *lxd*

then when you have zeroed on snap.lxd.daemon you can use
systemctl status snap.lxd.daemon

and to find the paths

systemctl cat snap.lxd.daemon

1 Like

Thanks. It worked.