Issues with permissions between pve host and lxc containers

utensilsforks

New Member
Nov 27, 2022
5
1
3
Hello,

I am trying to setup plex, sonarr and sabnzbd in a LXC unprivileged container. Most of it is done but I am stuck at permissions.

On the PVE host I have created a group called "medialab" with gid 1000 this group has read/write/execute permissions chmod770 for the mounted folder.

In each of the LXC container (plex, sonarr, sabnzbd) I have created the same group "medialab" with gid 1000.

When plex, sonarr and sabnzbd were installed they automatically created a user for it. So I added these user to the medialab group for each container.

In the PVE host I modified each containers conf file with the following mappings:

Code:
xc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
lxc.idmap: g 1000 1000 1
lxc.idmap: u 1001 101001 64530
lxc.idmap: g 1001 101001 64530
lxc.idmap: g 65534 165534 1

The problem is plex cannot read the files or see the downloaded content, and sonarr does not create series folder.

Upon further investigating, I noticed plex and sonarr uid is 998 and 110.

Also in each of these LXC containers I am unable to access the mount points that I pointed via conf files. It says permission denied.
Here is ls -l for each of the LXC containers mount points:

Code:
drwxrws--- 10 nobody medialab 122 Nov 29 18:03 video

Would really appreciate some help and understand what I am doing wrong?
 

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!