Hi,
I destroyed the container, but then created a new one:
incus launch images:archlinux foo
Then I started it:
❯ incus start foo
Error: Failed to run: /opt/incus/bin/incusd forkstart foo /var/lib/incus/containers /run/incus/foo/lxc.conf: exit status 1
Try `incus info --show-log foo` for more info
The log file contained the mapping errors:
Name: foo
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2024/01/30 17:09 GMT
Last Used: 2024/01/30 17:10 GMT
Log:
lxc foo 20240130171041.725 ERROR conf - ../src/lxc/conf.c:lxc_map_ids:3701 - newuidmap failed to write mapping "newuidmap: write to uid_map failed: Invalid argument": newuidmap 38493 0 1000000 1000000000 0 1001000000 1000000000
lxc foo 20240130171041.725 ERROR start - ../src/lxc/start.c:lxc_spawn:1788 - Failed to set up id mapping.
lxc foo 20240130171041.725 ERROR lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc foo 20240130171041.725 ERROR start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "foo"
lxc foo 20240130171041.725 WARN start - ../src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 17 for process 38493
lxc 20240130171041.742 ERROR af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20240130171041.742 ERROR commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"
The container config is as follows:
❯ incus config show --expanded foo
architecture: x86_64
config:
image.architecture: amd64
image.description: Archlinux current amd64 (20240130_04:18)
image.os: Archlinux
image.release: current
image.requirements.secureboot: "false"
image.serial: "20240130_04:18"
image.type: squashfs
image.variant: default
security.nesting: "true"
user.vendor-data: |
#cloud-config
locale: en_GB.UTF-8
timezone: Europe/London
volatile.base_image: 5515a8aa7bd0e66cde9589ce9b3f075e1b780fa18db80b33886f61de5e583fcb
volatile.cloud-init.instance-id: caa02e06-9469-44d6-9392-c8c7833eb281
volatile.eth0.host_name: vethc1d9fd60
volatile.eth0.hwaddr: 00:16:3e:6e:ff:e2
volatile.eth0.name: eth0
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":true,"Isgid":false,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1001000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: STOPPED
volatile.last_state.ready: "false"
volatile.uuid: 945fc8f7-3377-46e3-a7d7-4d1928a8157d
volatile.uuid.generation: 945fc8f7-3377-46e3-a7d7-4d1928a8157d
devices:
eth0:
nictype: bridged
parent: bridge0
type: nic
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
subuid
contains:
❯ cat subuid
root:1000000:1000000000
david:165536:65536
david:1000:1
root:1001000000:1000000000
root:1000:1001
root:1000000:1000000000
david:165536:65536
root:1001000000:1000000000
subgid
contains:
❯ cat subgid
root:1000000:1000000000
david:165536:65536
david:1000:1
root:1001000000:1000000000
root:1000:1001
root:1000000:1000000000
david:165536:65536
root:1001000000:1000000000
Hopefully this helps.
Thank you.
-=david=-