Open fake-name opened 1 year ago
Second this.. It seems to be generating them backwards to the examples in projects i am setting up.. not superhelpful when trying to understand the weirdness of subgids!
I created a PR for this. Feel free to use https://jo-me.github.io/proxmox-idmap-helper in the meantime.
I'm trying to map id 1001 in a container to 1000 on my host.
The web tool generates:
However, this does not work. It's worth noting my host does not have a user with id 1001.
looking around, it seems like the ordering of the arguments to at least the second pair of idmap values are backwards. (
lxc.idmap: u 1000 1001 1
). https://www.reddit.com/r/Proxmox/comments/jz5ugx/lxc_user_mapping_help/ seems to indicate that the first value is the id for the container, and the second is is the id for the host. I also tried https://github.com/ddimick/proxmox-lxc-idmapper, and it seems to reflect this behaviour. Also, it's output works!So it seems like if you are mapping one id to a different in the host, you need to swap the host/container ids to get a correct result.
This is also the behaviour I get from this tool if I put the container ID in as the host ID, and vice versa, so it can generate the correct output, it's just the inputs are backwards.