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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!