Hi, some context of the situation:
On host A the LXD daemon has crashed permanently (due to snap’s automatic updates). The containers are working, but to fix the problem I need to migrate them to other machine (host B). Storage is on ZFS pool. My steps to migrate were:
on host B: lxc init contX --empty
zfs send-receive contX dataset from host A to host B
on Host B: lxc start contX
The problem is that at this first start LXD performs remapping of IDs, bumping root’s ID from 1000000 to 2000000.
Thanks for this hint, I was actually considering it already but in my situation it’s too risky. There is some fragile, legacy production software running in those containers and I need to be sure I have a parallel fully working instance before stopping those orphaned.
I was finally able to try this method and it worked. I had to manually edit backup.yaml file before running lxd recover so that the storage pool name and other resource names matched those on new host.