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:

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!