ZFS backed VM copy fails to a remote host

Hi All,
Had a strange error before trying to copy a zfs backed virtual machine to another remote host also running ZFS.

Seemed to error on trying to create a directory with mkdir.

I got past the error by manually creating the remote directory using mkdir -p

root@p20:/etc/systemd/system# lxc copy mptcp-server lm1:mptcp-server --stateless      
Error: Failed instance creation: Error transferring instance data: Failed to create mount directory "/var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines/mptcp-server": mkdir /var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines/mptcp-server: no such file or directory

Just thought I’d put it out there just in case its a bug?


What version of LXD was this? Thanks

It was version 4.8 on both sides.

Was the storage pool on the receiving side freshly created or had it been in use for some time?

Was the /var/snap/lxd/common/lxd/storage-pools/zfs1/virtual-machines directory missing?

In use for some time, it was imported after I reinstalled everything.
Tbh its probably a non issue as this wasn’t a fresh install so I don’t want to cause alarm, I just thought it may have been something that was common but seems maybe its unique to my setup.
I’m running lxd on proxmox aswell which probably isn’t ideal.

Perhaps the storage pool didn’t have the virtual machine directory, but was imported after LXD ran the patch to add it to existing storage pools.