Not able to spin up new containers nor open existing ones.

santhosh98

New Member
Oct 7, 2022
2
0
1
I have been trying to work on bind mount points on unprivileged containers following this documentation: "https://pve.proxmox.com/wiki/Unprivileged_LXC_containers#Using_local_directory_bind_mount_points". I ended up accidentally changing /etc/subuid and /etc/subgid. So, I was not able to spin up new containers or open existing ones. However, I did remember the default values on subuid and subgid. So, I wrote into the file the following line "root:100000:65536". However I still cannot spin up new containers or open existing ones. I get the following error when I try to open up a existing one.

lxc_map_ids: 3668 newgidmap failed to write mapping "newgidmap: gid range [0-65536) -> [100000-165536) not allowed": newgidmap 1341 0 100000 65536
lxc_spawn: 1791 Failed to set up id mapping.
__lxc_start: 2074 Failed to spawn container "101"
TASK ERROR: startup for container '101' failed


Can anybody help ? Please and thank you.
 
Did you happen to get this resolved? I am having the exact same issue.

I attempted to edit lxc mappings roughly a week ago and sort of gave up on it. Went to restart Proxmox this morning and now none of my containers will boot and I get a very similar error message.

lxc_map_ids: 3672 newgidmap failed to write mapping "newgidmap: gid range [0-65536) -> [100000-165536) not allowed": newgidmap 18598 0 100000 65536

/etc/subuid is empty
/etc/subgid is empty

Here's one of the conf files in question

Code:
arch: amd64
cores: 4
features: nesting=1
hostname: CA
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=fa:10:f2:f7:66:01,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-112-disk-0,size=50G
swap: 16384
unprivileged: 1
 
Did you happen to get this resolved? I am having the exact same issue.

I attempted to edit lxc mappings roughly a week ago and sort of gave up on it. Went to restart Proxmox this morning and now none of my containers will boot and I get a very similar error message.

lxc_map_ids: 3672 newgidmap failed to write mapping "newgidmap: gid range [0-65536) -> [100000-165536) not allowed": newgidmap 18598 0 100000 65536

/etc/subuid is empty
/etc/subgid is empty

Here's one of the conf files in question

Code:
arch: amd64
cores: 4
features: nesting=1
hostname: CA
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=fa:10:f2:f7:66:01,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-112-disk-0,size=50G
swap: 16384
unprivileged: 1
I was able to get it resolved by writing "root:100000:65536" in /etc/subgid and /etc/subuid