Share folder with other containers

nomadmike

New Member
Oct 20, 2022
29
4
3
Thialand
Hi I have setup proxmox, I have 2 SSD, I have used the 512Gb for the main install and for storing my containers. The second drive 1Tb I have created a shred folder and added the user that I am using on all the containers, with admin permission.

I have created 3 containers:

1. Sonarr, Jackett
2. Qbittorent-nox
3. Plex server

I have added the SharedDrive as a mount point on the sonarr container, when I try to set it as the root folder, I can browse and select the folder but it does not remain set?

How can I share the second drive with other containers?

thanks
 
Partition and format that disk. Mount it on your PVE host. Then use bind-mounts to bind-mount folders of it into your different LXCs. But it gets complicated when working with unprivileged LXCs because there is user remapping. So UID/GID 0 to 65535 inside the LXC map to UID/GID 100000 to 165535 on the PVE host. That means if UID 1000 should be able to access that bind-mounted folder it has to be owned by UID 101000 on the PVE host. And working working with groups is also more complicated, as a GID on host or different LXCs can have different UIDs as members.
So with a GID 101000 on the host and UID 102000 as a member of that group doesn't mean that UID 2000 inside a LXC can access stuff owned by GID 1000. It gets really complicated when not just chmodding the folders to 777 rights.
See here: https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
 
Last edited: