I had a running lxd environment on ubuntu 17.04 (using snap). I botched an upgrade to 17.10 (on my way to 18.04) and decided to install a fresh 18.04 on new disks. I have the old 17.04 OS filesystem mounted in the new environment (/media/oldos). The main 17.04 storage pool for my containers are all on a separate btrfs disk system that is mounted in the new 18 environment. What would be the easiest path to get my containers back running on 18? As options I see:
1- copy the old lxd directory to new
2- lxd import old lxd.yaml s from each container
3- lxc import tarballs
Re 1, I tried: stopping lxd, cp -R /media/oldos/var/snap/lxd /var/lib/ ; re-starting lxd, but no luck.
I don’t think I’ve successfully told the new lxd where my btrfsstor pool is … I am worried about wiping it out with the wrong init options.
Thanks for any insights!