Incus migration error

Hi all

Following [How to import physical or virtual machines to Incus instances - Incus documentation]

I try to migrate a linux machine inside KVM to Incus server.

Hercules is a machine inside a KVM based in ubuntu20.04 as:
root@hercules:~# ls
-rwxr-xr-x 1 root root 19354386 dez 13 03:37 bin.linux.incus-migrate.x86_64

root@hercules:~# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 197M 20M 178M 10% /run
/dev/mapper/zeus-barra 2,9G 402M 2,4G 15% /
/dev/mapper/zeus-usr 5,3G 4,0G 1,1G 79% /usr
tmpfs 982M 0 982M 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
/dev/mapper/zeus-tmp 920M 108K 857M 1% /tmp

/dev/mapper/zeus-srvsamba 482G 355G 108G 77% /srv/samba
tmpfs 197M 0 197M 0% /run/user/1000

I include binary from incus inside it:

root@hercules**:~# ls**
-rwxr-xr-x 1 root root 19354386 dez 13 03:37 bin.linux.incus-migrate.x86_64

Inside incus I already had an profile for this machine:
Cerberus os the name of incus server:
root@cerberus:~# incus profile show hercules
config:
boot.autorestart: “yes”
boot.autostart: “yes”
limits.cpu: “2”
limits.memory: 2GiB
security.privileged: “yes”
snapshots.expiry: 1d
snapshots.schedule: 5 0 * * *
description: “”
devices:
lan:
nictype: bridged
parent: lan
type: nic
root:
path: /
pool: hercules
type: disk
name: hercules
used_by:

  • /1.0/instances/hercules
    project: default

Started migration:
Please pick one of the options above [default=1]:
Instance hercules successfully created
Instance to be created:
Name: hercules
Project: default
Type: container
Source: /
Profiles:

  • hercules
    Storage pool: hercules

root@cerberus:~# incus start hercules
Error: Failed to run: /opt/incus/bin/incusd forkstart hercules /var/lib/incus/containers /run/incus/h
ercules/lxc.conf: exit status 1
Try incus info --show-log hercules for more info

root@cerberus:~# incus info --show-log hercules
Name: hercules
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2024/12/18 19:53 -03
Last Used: 2024/12/18 19:55 -03

Log:

lxc hercules 20241218225540.981 ERROR start - …/src/lxc/start.c:start:2204 - No such file or dire
ctory - Failed to exec “/sbin/init”
lxc hercules 20241218225540.981 ERROR sync - …/src/lxc/sync.c:sync_wait:34 - An error occurred in
another process (expected sequence number 7)
lxc hercules 20241218225540.986 WARN network - …/src/lxc/network.c:lxc_delete_network_priv:3674

  • Failed to rename interface with index 0 from “eth0” to its initial name “veth0aa5caae”
    lxc hercules 20241218225540.986 ERROR lxccontainer - …/src/lxc/lxccontainer.c:wait_on_daemonized_
    start:837 - Received container state “ABORTING” instead of “RUNNING”
    lxc hercules 20241218225540.986 ERROR start - …/src/lxc/start.c:__lxc_start:2114 - Failed to spaw
    n container “hercules”
    lxc hercules 20241218225540.986 WARN start - …/src/lxc/start.c:lxc_abort:1037 - No such process
  • Failed to send SIGKILL via pidfd 18 for process 753786
    lxc 20241218225541.482 ERROR af_unix - …/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - C
    onnection reset by peer - Failed to receive response
    lxc 20241218225541.482 ERROR commands - …/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to
    receive file descriptors for command “get_init_pid”

hercules#)
/dev/drbd8 590G 402M 560G 1% /srv/containers/hercules

What is wrong?

best regards

Huum I remove lan from profile . No more erros about , but migration is not working:

lxc hercules 20241219125319.134 ERROR start - …/src/lxc/start.c:start:2204 - No such file or directory - Failed to exec “/sbin/init”
lxc hercules 20241219125319.134 ERROR sync - …/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 7)
lxc hercules 20241219125319.134 ERROR lxccontainer - …/src/lxc/lxccontainer.c:wait_on_daemonized_start:837 - Received container state “ABORTING” instead of “RUNNING”
lxc hercules 20241219125319.134 ERROR start - …/src/lxc/start.c:__lxc_start:2114 - Failed to spawn container “hercules”
lxc hercules 20241219125319.134 WARN start - …/src/lxc/start.c:lxc_abort:1037 - No such process - Failed to send SIGKILL via pidfd 18 for process 831489
lxc 20241219125319.167 ERROR af_unix - …/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20241219125319.167 ERROR commands - …/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command “get_init_pid”

looking at place where image should be I see that part of files have been migrated:
root@cerberus:/srv/containers/hercules/containers/hercules/rootfs# cat /srv/containers/hercules/containers/hercules/rootfs/etc/fstab

/etc/fstab: static file system information.

/dev/mapper/zeus-barra / ext4 errors=remount-ro 0 1

/dev/zeus/srvsamba /srv/samba ext4 defaults,usrquota,grpquota,acl,user_xattr 0 2
/dev/zeus/varlogsamba /var/log/samba ext4 defaults 0 2
/dev/zeus/varlogsmb_audit /var/log/smb_audit ext4 defaults 0 2
/dev/zeus/varlogapache2 /var/log/apache2 ext4 defaults 0 2

but symbolic links are empty
root@cerberus:/srv/containers/hercules/containers/hercules/rootfs# ls -l
total 72
lrwxrwxrwx 1 root root 7 dez 27 2022 bin → usr/bin
drwxr-xr-x 3 root root 4096 dez 19 06:05 boot
drwxr-xr-x 4 root root 4096 fev 24 2016 dev
drwxr-x–x 149 root root 12288 dez 19 10:01 etc
drwxr-xr-x 2 root root 4096 fev 24 2016 home
lrwxrwxrwx 1 root root 34 dez 19 06:04 initrd.img → boot/initrd.img-5.15.0-128-generic
lrwxrwxrwx 1 root root 34 dez 19 06:04 initrd.img.old → boot/initrd.img-5.15.0-127-generic
lrwxrwxrwx 1 root root 7 dez 27 2022 lib → usr/lib
lrwxrwxrwx 1 root root 9 dez 27 2022 lib32 → usr/lib32
lrwxrwxrwx 1 root root 9 dez 27 2022 lib64 → usr/lib64
lrwxrwxrwx 1 root root 10 dez 27 2022 libx32 → usr/libx32
drwx------ 2 root root 4096 fev 24 2016 lost+found
drwxr-xr-x 3 root root 4096 fev 24 2016 media
drwxr-xr-x 2 root root 4096 fev 24 2016 mnt
drwxr-xr-x 3 root root 4096 dez 9 20:03 opt
drwxr-xr-x 2 root root 4096 ago 26 2015 proc
drwx------ 9 root root 4096 dez 18 20:06 root
drwxr-xr-x 2 root root 4096 fev 24 2016 run
lrwxrwxrwx 1 root root 8 dez 27 2022 sbin → usr/sbin
drwxr-xr-x 4 root root 4096 mar 15 2016 srv

root@cerberus:/srv/containers/hercules/containers/hercules/rootfs# ls -l usr/
total 0

But I have space for this machine:
/dev/drbd8 618129788 411056 586246032 1% /srv/containers/hercules /dev/drbd1

Any ideas?