Trying to create a SMB shared storage container for Plex and Sonarr

nomadmike

New Member
Oct 20, 2022
29
4
3
Thialand
Hi I have just created a new container using the latest Ubuntu 22.04 template, under options I have selected SMB/CIFS I have tried to follow this guide https://neil-p.medium.com/plex-on-proxmox-293328ae3182

But sonarr and its annoying permissions will not let me access the drive I have used my sudo user name for the sonarr config, after I tried using smbusr it failed to run!

When I try to access the smb share I get folder not writable by user xxx I thought by running apt-get install smbclient && smbclient -L //<Container-IP> edit I do get this in the console SMB1 disabled -- no workgroup available

and then apt-get install cifs-utils && mkdir /mnt/Share && mount -t cifs -o uid=110,username=smbusr //192.168.0.194/Share /mnt/Share/

I would automatically get access, but I guess sonarr has its own set of rules for shared folders

any guides on getting this to work, thanks in advance
 
Last edited:
You are using an privileged LXC? The default unprivileged LXCs won't allow you to mount SMB shares and you will see alot of "permission denied" problems.
 
Hi yes I am using privileged LXC's its sonarr that seems to have the problem!

There must be a better solution, like mounting a shared drive!
 
You can't share block devices. What will work is bind-mounting of folders (so mounting same folder on host into two LXCs, so all 3 can access the same files; won't work with VMs, only with privileged+unprivileged LXCs) or using NFS/SMB shares (only for privileged LXCs and VMs).
 
Last edited:
  • Like
Reactions: nomadmike
Thanks, that what I have done - setup the smb file server, added an additional storage disk, added users, set permissions, then used bind mount for the plex and sonarr containers. Works a treat, it also means I can access the share from my desktop PC if I want to add media from there.