That sounds a plausible reason. Preventing change of target name when migrating a running container would be a reasonable temporary solution.
So I retried, this time keeping the target container name the same. However it failed again, but with a different error:
root@nuc1:~# lxc move sample nuc2:sample error: Error transferring container data: restore failed: (00.213976) 1: Error (mount.c:2406): mnt: Can't mount at ./sys/kernel/debug: Invalid argument (00.229795) Error (cr-restore.c:1352): 4333 killed by signal 9 (00.272166) Error (cr-restore.c:2182): Restoring FAILED.
Running again with inotifywait on the target:
root@nuc2:~# inotifywait -mr /var/lib/lxd/shmounts Setting up watches. Beware: since -r was given, this may take a while! Watches established. /var/lib/lxd/shmounts/ CREATE,ISDIR sample /var/lib/lxd/shmounts/ OPEN,ISDIR sample /var/lib/lxd/shmounts/ ACCESS,ISDIR sample /var/lib/lxd/shmounts/ CLOSE_NOWRITE,CLOSE,ISDIR sample /var/lib/lxd/shmounts/sample/ DELETE_SELF /var/lib/lxd/shmounts/ DELETE,ISDIR sample
Let me know if you want this opening as a separate issue.
That sounds a plausible reason. Preventing change of target name when migrating a running container would be a reasonable temporary solution.
So I retried, this time keeping the target container name the same. However it failed again, but with a different error:
root@nuc1:~# lxc move sample nuc2:sample c:1352) : 4333 killed by signal 9 c:2182) : Restoring FAILED.
error: Error transferring container data: restore failed:
(00.213976) 1: Error (mount.c:2406): mnt: Can't mount at ./sys/kernel/debug: Invalid argument
(00.229795) Error (cr-restore.
(00.272166) Error (cr-restore.
Running again with inotifywait on the target:
root@nuc2:~# inotifywait -mr /var/lib/ lxd/shmounts lxd/shmounts/ CREATE,ISDIR sample lxd/shmounts/ OPEN,ISDIR sample lxd/shmounts/ ACCESS,ISDIR sample lxd/shmounts/ CLOSE_NOWRITE, CLOSE,ISDIR sample lxd/shmounts/ sample/ DELETE_SELF lxd/shmounts/ DELETE,ISDIR sample
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
Let me know if you want this opening as a separate issue.