Problem with lxc.idmap

jvank

Active Member
Mar 30, 2019
5
0
41
Hey Guys,

In proxmox, I have an unpriviliged container, which runs debian. I use this container for my home automation software, and I need to passthrough a serial device. I mapped the symlink for this device to uid 100000, which made it show up as root/root in the container.
For some reason the container IDs changed (I think after a reboot), and because of this it stopped working.
I thought I would fix this by using lxc.idmap, and mapping all 65536 uids and gids to 200000 and up. When I did this, however, debian started giving me permission denied errors on basically everything. I couldn't even use sudo commands in the terminal.
Does anyone have a clue as to how I can fix this issue?

Kind Regards,
jvank
 
hi,

did you set the contents of /etc/subuid and /etc/subgid also according to your mapping?
 
Hey,

I forgot to that at first, but after that I set it to root:100000:1000000000. Is that actually allowed, or do I need to put in the exact numbers?