bind mapping in a lxc

Jokie74

New Member
Dec 18, 2024
3
0
1
Dear community,

I'm new to proxmox and now stucked with uid / Gid mapping for my nfs share mapped to my container.
Here is my lxc-conf:
INI:
arch: amd64
cores: 4
hostname: plex
memory: 4096
mp0: mp=/mnt/media,path=/mnt/media
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=bc:24:11:b7:12:65,ip=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-105-disk-0,size=20G
swap: 1024
tags: media
unprivileged: 1

I've red a lot about lxc.idmap, but it seems I'm to dumb to get it. All posts and wiki entries are talking about id 1005 and 1006 and entries like this: lxc.idmap = u 1005 1005 1
I just want to map my mount so, that my plex user with ID 999 and GID 990 can access the mount.
Do I have to create the plex user in the proxmox host as well with the same ID and GID?

Please can someone explain it to me?

I already found a python script, that should help. But I don#t know what ID's I should take for the input.
Many thanks in advance for your effort, support and patient.

kind regards,
Joerg
 
Last edited: