bret@idempiere-erp:~$ incus launch images:debian/12 bret
Launching bret
Error: Failed instance creation: Failed to run: /opt/incus/bin/incusd forkstart bret /var/lib/incus/containers /run/incus/bret/lxc.conf: exit status 1
Can you show incus info --show-log bret
?
I suspect it may have something to do with idmaps, so would also need:
cat /etc/subuid
cat /etc/subgid
Thanks for your help.
My original Incus container had a mapping issue which you sorted me out on; also subuid / subgid related.
Also wondering where lxc is in this. Is it a required install?
Big thanks
bret@idempiere-erp:~$ incus info --show-log bret
Name: bret
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2024/11/20 21:48 PST
Last Used: 2024/11/20 21:48 PST
Log:
lxc bret 20241121054805.272 ERROR idmap_utils - …/src/lxc/idmap_utils.c:lxc_ map_ids:245 - newuidmap failed to write mapping “newuidmap: write to uid_map fai led: Invalid argument”: newuidmap 7066 0 1000000 1000000000 0 1001000000 1000000 000
lxc bret 20241121054805.272 ERROR start - …/src/lxc/start.c:lxc_spawn:1795 - Failed to set up id mapping.
lxc bret 20241121054805.272 ERROR lxccontainer - …/src/lxc/lxccontainer.c:wa it_on_daemonized_start:837 - Received container state “ABORTING” instead of “RUN NING”
lxc bret 20241121054805.273 ERROR start - …/src/lxc/start.c:__lxc_start:2114 - Failed to spawn container “bret”
lxc bret 20241121054805.273 WARN start - …/src/lxc/start.c:lxc_abort:1037 - No such process - Failed to send SIGKILL via pidfd 43 for process 7066
bret@idempiere-erp:~$ cat /etc/subuid
bret:1000000:1000000000
chuboe:165536:65536
root:1000000:1000000000
root:1001000000:1000000000
bret@idempiere-erp:~$ cat /etc/subgid
bret:100000:65536
chuboe:165536:65536
root:1000000:1000000000
root:1001000000:1000000000
So yeah, the problem you have is that you have conflicts/overlaps in your /etc/subuid and /etc/subgid.
Wipe both /etc/subuid and /etc/subgid and replace their content with:
root:1000000:1000000000
The remaining entries aren’t needed and should go away.
Once you’ve got both files down to just that one line, restart Incus with systemctl restart incus
and things should start behaving again.
SG. The container is running. I’m sure this isn’t the end of this, after reading
the internals… Idmaps for user namespace
These feel like pointers.
Can’t thank you enough for getting me back ontrack.
Hope to be an asset soon for others.