I tried to reproduce this with a few tricks, but I couldn’t.
Getting to the bottom of this might require several iterations of (adding debug messages and re-testing). I see a couple of options, in order of preference:
- Give me SSH address to those 4 VMs, I’ll then build lxd there and test
- I upload somewhere a modified version of the lxd .snap file, then you download it and install it by hand, testing again at each new build and sending me the logs.
Let me know how feasible those options would be for you.