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