lxd

Where does the snap package version of LXD store containers?


In this tutorial, the author gives the following location of the root directory in a container named c1:

/var/lib/lxd/containers/c1/rootfs/

What is the equivalent directory if I've installed lxd using snap install lxd?


Solution

  • On Ubuntu 18.04, lxd version 3.13, using the dir backend, it was this:

    /var/snap/lxd/common/lxd/storage-pools/default/containers/c1/rootfs/