Migrating from LXD 6.1?

Hello! I migrated, it seems ok. Something weird is happening with my uuid. Only my priviliged containers are running, the others cannot start

incus start u1

Error: Failed to run: /usr/libexec/incus/incusd forkstart u1 /var/lib/incus/containers /run/incus/u1/lxc.conf: exit status 1
Try `incus info --show-log u1` for more info

incus info --show-log u1

Name: u1
Status: STOPPED
Type: container
Arquitectura: x86_64
Creado: 2024/02/07 12:47 CET
Last Used: 2024/08/28 23:21 CEST

Registro:

lxc u1 20240828212102.787 ERROR    conf - conf.c:lxc_map_ids:3668 - newuidmap failed to write mapping "newuidmap: uid range [1000-1001) -> [1000-1001) not allowed": newuidmap 37066 0 1000000 1000 1000 1000 1 1001 1001001 999998999
lxc u1 20240828212102.787 ERROR    start - start.c:lxc_spawn:1791 - Failed to set up id mapping.
lxc u1 20240828212102.787 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:877 - Received container state "ABORTING" instead of "RUNNING"
lxc u1 20240828212102.788 ERROR    start - start.c:__lxc_start:2074 - Failed to spawn container "u1"
lxc u1 20240828212102.788 WARN     start - start.c:lxc_abort:1039 - No existe el proceso - Failed to send SIGKILL via pidfd 17 for process 37066
lxc 20240828212102.836 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Conexión reinicializada por la máquina remota - Failed to receive response

cat /etc/subuid

miguel:100000:65536
root:1000000:1000000000

cat /etc/subgid

miguel:100000:65536
root:1000000:1000000000

I’ve tried with subuid and subgid containing only the root line, but same thing happen. I restarted incus daemon after every subuid/subgid change.

It was working in LXD without the root line in subuid/subgid, I added it because of this: Incus: No uid/gid allocation configured - #11 by stgraber

But it does not fix it for me.

EDIT: I 've found this

Containers are now starting. I’m too tired to test if they work ok now :slight_smile:
Let’s see tomorrow.

1 Like