Hello,
I can't find anywhere how to idmap root in the host with root in a container. I do not have other users at the moment. Root uid and gid is 0 and all example expect some number which makes it confusing.
Can somebody help?
Regards
Here is what I have:
/etc/pve/lxc/101.conf:
Here is the error I am getting:
I can't find anywhere how to idmap root in the host with root in a container. I do not have other users at the moment. Root uid and gid is 0 and all example expect some number which makes it confusing.
Can somebody help?
Regards
Here is what I have:
/etc/pve/lxc/101.conf:
Code:
arch: amd64
cores: 1
hostname: ssl
memory: 256
mp0: /mnt/certs,mp=/mnt/certs
nameserver: 1.1.1.1
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.0.254,hwaddr=...
onboot: 1
ostype: debian
rootfs: node2-hdd-data-pool:vm-101-disk-0,size=2G
swap: 64
unprivileged: 1
lxc.idmap: u 0 100000 0
lxc.idmap: g 0 100000 0
lxc.idmap: u 0 0 1
lxc.idmap: g 0 0 1
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 65536
Code:
==> /etc/subgid <==
root:100000:65536
Code:
==> /etc/subuid <==
root:100000:65536
Here is the error I am getting:
Code:
lxc_map_ids: 2816 newuidmap failed to write mapping "newuidmap: uid range [0-0) -> [100000-100000) not allowed": newuidmap 5546 0 100000 0 0 0 1 0 100000 65536
lxc_spawn: 1683 Failed to set up id mapping.
__lxc_start: 1950 Failed to spawn container "101"
startup for container '101' failed
Last edited: