This is an automated archive.

The original was posted on /r/homelab by /u/svarta_gallret on 2024-01-24 12:23:22+00:00.


TL;DR Running LXD snap package on ubuntu with overlayFS.

Hi, I’m setting up a small server to use for backups and development of webapps and such. Hardware is Odroid H3+ with a 4x network card in the m2 slot, 64G ram, 2x 2T ssd disks for data and a 64G eMMC system drive. I’ve setup the system disk to mount r/o with overlayroot and have /home and /srv on the first ssd and just backups on the second disk. Reason is eMMc is slow and I want to limit writes, plus I like the idea of a very stable and hard to fuckup installation.

I’ve installed LXD as a snap package to run all services but I can’t figure out how to make settings persist over reboots. I don’t really understand how snap packages work but I assumed that there should create a config/data store somewhere in my home folder. It seems to me like the configuration is stored with the application, which in my case means on an overlayFS. Should I move /var/snap/lxd to a different disk or is there some other way to do it? Or should I just avoid snap at all cost?