Copying a stopped VM (not container) from one standalone host to another, where the source host is 6.0-202404270902-ubuntu20.04 and the destination is 6.0-202405282244-ubuntu22.04
% incus stop nuc1:jool && incus move nuc1:jool nuc3: && incus start nuc3:jool
Error: Failed to delete original instance after copying it: Failed deleting instance "jool" in project "default": Error deleting storage volume: Failed to remove '/var/lib/incus/storage-pools/default/virtual-machines/jool': remove /var/lib/incus/storage-pools/default/virtual-machines/jool: directory not empty
%
Checking on the source host:
root@nuc1:~# ls /var/lib/incus/storage-pools/default/virtual-machines/jool
agent-client.crt agent-client.key agent.crt agent.key
The VM was able to start on the target machine, and it recreated those files by itself:
root@nuc3:~# ls /var/lib/incus/storage-pools/default/virtual-machines/jool/
agent-client.crt agent-client.key agent.crt agent.key backup.yaml config metadata.yaml OVMF_VARS.4MB.ms.fd qemu.nvram
Furthermore, incus delete jool
on the source machine cleaned it up. So it’s not really a major problem, but it was a bit annoying to get an error message and a non-zero exit status. An opportunity to tidy up a bit better, perhaps? Or has this already been fixed in a more recent 6.0?