Cannot start copied containers

Hi :slight_smile:

At the moment I’ve got 2 working lxd servers (Ubuntu 22.04 and LXD 6.2) where I can copy containers back and forth without problem.
I’ve built a new system (Ubuntu 24.04 and LXD 6.2) and creating containers works fine.
I can also copy newly created containers to and from the other servers and they work fine.

But if I copy or import old containers from the first two servers to the new one then I get get the following error

Error: Failed to run: /snap/lxd/current/sbin/lxd forkstart lms /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/lms/lxc.conf: exit status 1
Try lxc info --show-log lms for more info

root@DomainX:/mnt/lxd# lxc info --show-log lms
Name: lms
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2025/02/01 10:49 CET
Last Used: 2025/02/01 11:11 CET

Snapshots:
±------±---------------------±-----------±---------+
| NAME | TAKEN AT | EXPIRES AT | STATEFUL |
±------±---------------------±-----------±---------+
| snap0 | 2023/03/19 10:13 CET | | NO |
±------±---------------------±-----------±---------+

Log:

lxc lms 20250201101140.794 ERROR dir - …/src/src/lxc/storage/dir.c:dir_mount:163 - Permission denied - Failed to open “/var/snap/lxd/common/lxd/storage-pools/default/containers/lms/rootfs”
lxc lms 20250201101140.794 ERROR conf - …/src/src/lxc/conf.c:lxc_mount_rootfs:1236 - Failed to mount rootfs “/var/snap/lxd/common/lxd/storage-pools/default/containers/lms/rootfs” onto “/var/snap/lxd/common/lxc/” with options “(null)”
lxc lms 20250201101140.794 ERROR conf - …/src/src/lxc/conf.c:lxc_setup_rootfs_prepare_root:3496 - Failed to setup rootfs for
lxc lms 20250201101140.794 ERROR conf - …/src/src/lxc/conf.c:lxc_setup:3871 - Failed to setup rootfs
lxc lms 20250201101140.794 ERROR start - …/src/src/lxc/start.c:do_start:1273 - Failed to setup container “lms”
lxc lms 20250201101140.794 ERROR sync - …/src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
lxc lms 20250201101140.801 WARN network - …/src/src/lxc/network.c:lxc_delete_network_priv:3674 - Failed to rename interface with index 0 from “eth0” to its initial name “vethe7707b7a”
lxc lms 20250201101140.801 ERROR lxccontainer - …/src/src/lxc/lxccontainer.c:wait_on_daemonized_start:837 - Received container state “ABORTING” instead of “RUNNING”
lxc lms 20250201101140.801 ERROR start - …/src/src/lxc/start.c:__lxc_start:2114 - Failed to spawn container “lms”
lxc lms 20250201101140.801 WARN start - …/src/src/lxc/start.c:lxc_abort:1037 - No such process - Failed to send SIGKILL via pidfd 17 for process 31568
lxc 20250201101140.885 ERROR af_unix - …/src/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20250201101140.885 ERROR commands - …/src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command “get_init_pid”

edit:
So… I stumbled on this thread:
https://discuss.linuxcontainers.org/t/error-failed-importing-backup-from-lxc-import/17813/4

And indeed, deleting the snapshots before exporting or copying works.
The backups I made by exporting the containers are unusable on a new server with a new storage pool.

Completely useless…
I’m not happy.