Invalid cross-device link when exporting the container

LXD version: 5.13
When I’m exporting container, I’m getting this:

luken@hypervisor:~$ lxc export test --instance-only --compression none
Exporting the backup: 100% (1.51GB/s)Error: Failed to rename export file: rename /var/lib/snapd/hostfs/home/luken/test.backup test.tar: invalid cross-device link

Does anyone have any idea what’s going on here? The test.backup file seems to be saved, it just cannot be renamed for some reason.

If you specificy the Target file name it will work.

This was fixed in lxd 5.14.

1 Like