I've got NFS shares mapped to my PVE host, which is then mapping it into some LXCs.
I'm struggling to get UID/GID mapping working in a Helper Scripts Sonarr LXC that has Sonarr running as root. I've tried following the wiki and a few other forum threads here to get this working, so I'm doing something wrong but I just can't figure out what.
Host fstab:
Container.conf:
Both the subuid and subgid:
With this all set, I'm getting permissions errors when the LXC boots. So it's clearly making changes to something in the container, but my understanding was that mapping would only change how the LXC talks to the host, not anything within the LXC itself. Should I be changing the user Sonarr is running as? Will that also break updating the LXC?
I'm struggling to get UID/GID mapping working in a Helper Scripts Sonarr LXC that has Sonarr running as root. I've tried following the wiki and a few other forum threads here to get this working, so I'm doing something wrong but I just can't figure out what.
Host fstab:
Code:
192.168.0.10:/volume1/Torrents /mnt/atlas/torrents nfs defaults,hard,_netdev,x-systemd.automount,noatime,ac 0 0
192.168.0.10:/volume1/Media /mnt/atlas/media nfs defaults,hard,_netdev,x-systemd.automount,noatime,ac 0 0
Container.conf:
Code:
arch: amd64
cores: 2
features: nesting=1,keyctl=1
hostname: sonarr
memory: 1024
mp0: /mnt/atlas/media,mp=/mnt/media
mp1: /mnt/atlas/torrents,mp=/mnt/torrents
net0: name=eth0,bridge=vmbr0,gw=192.168.0.1,hwaddr=BC:24:11:4A:BF:DA,ip=192.168.0.54/24,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-105-disk-0,size=4G
swap: 512
tags: arr;community-script
timezone: America/Toronto
unprivileged: 1
lxc.idmap: u 0 1001 1
lxc.idmap: g 0 1001 1
lxc.idmap: u 1 100001 65535
lxc.idmap: g 1 100001 65535
Both the subuid and subgid:
Code:
root:100000:65536
root:1001:1
With this all set, I'm getting permissions errors when the LXC boots. So it's clearly making changes to something in the container, but my understanding was that mapping would only change how the LXC talks to the host, not anything within the LXC itself. Should I be changing the user Sonarr is running as? Will that also break updating the LXC?
Last edited: