Ran into an interesting issue today. I have two Ubuntu 17.04 servers - each running LXD 2.12.
Server 1 storage pool is normal directory and server 2’s storage pool is btrfs.
I did a “lxc copy server1:alpine1 server2:alpine1” and was give the message:
error: Migration failed on target host: Failed to run: btrfs subvolume create /var/lib/lxd/storage-pools/default/containers/alpine1: ERROR: not a btrfs filesystem: /var/lib/lxd/storage-pools/default/containers
I understand that the storage pools don’t match, thus LXC can’t do a “btrfs send snapshot” to the other side. However, how can I get the container copied to the other server? Do I have to create an image and launch that image on server-2? Seems to me LXC should catch this type of error and fall back to normal “dir” to “dir” copying.