LXD 2.0.11 does not support clustering.
In fact the failure you get is about the missing ‘lxc storage’ subcommand (and API).
You can easily upgrade to the snap of LXD 3.0, https://blog.simos.info/how-to-try-lxd-3-0-beta/
and the clustering should work. Note that the post is about the beta version. Now 3.0 is stable, so choose stable 3.0.
Ok, thanks for your replies.
I’ve tried to moved a container from 2.0.11 to 3.0.0 using the lxc move command. It works.
But when I tried to move it back (from 3.0 to 2.0.11), I’m stuck with this error: Invalid device configuration key for disk: pool
If I check the container config I see that, effectively, there is an additional pool parameter for disk devices in v3.0.0.
devices:
root:
path: /
pool: lxd
size: 5GB
type: disk
But as the pool is mandatory in v3.0.0, I can’t remove it. So v2.0.11 do not accept the container.
To me, it sounds like a bug… but is there any trick to move a CT from v3 to v2 ?
A trick would be to move the pool entry to the container’s profile rather than directly on the container. So the 2.0 LXD would have a default profile without the pool entry and the 3.0 LXD would have a default profile with the pool entry.
Containers should then be able to move back and forth by just using that profile.