When copying an LXD-driven VM from a ZFS-backed host another ZFS-backed host, I am getting:
$ lxc copy h1:vm1 h2:vm1 --refresh --stateless --mode relay
cannot open 'system/lxd/containers/vm1': dataset does not exist
<...>
This would suggest it is trying to make a container fs for the remote VM and fails.
Should lxc copy support this? Would a --vm flag make sense to create a VM on the target too (but suggesting we could transform them on copy which is likely not quite the case)?
Error transferring instance data: zfs send failed: [exit status 2] (incremental source must be in same filesystem
usage:
send [-DnPpRvLecwhb] [-[i|I] snapshot] <snapshot>
send [-nvPLecw] [-i snapshot|bookmark] <filesystem|volume|snapshot>
send [-nvPe] -t <receive_resume_token>
Did not test the move. But it fails indeed with --stateless.
Edit: I copy and migrate containers and VMs always offline. CRIU doesn’t work well with LXD in my experience. I’m still waiting for a good alternative.