Share folders with LXC

drakelive

New Member
Jun 23, 2024
1
0
1
Hello everyone,

I'll start by saying I'm a newbie so I don't know everything.
I'm asking for your opinion on something I can't get working on my installation.
I have a small home server where I installed Proxmox and created a ZFS pool (Z001).
Now I need to share the Z001 pool with several unprivileged LXCs, and I'm having trouble doing so.

The first unprivileged LXC I created is based on Debian 12 (I could also use Ubuntu) to manage SAMBA/NFS shares.
To do this, I'll need:
  1. The pool on PVE must be mounted on the LXC, in a folder like /mnt/Z001.
  2. Install a Samba/NFS server to create the shares. I've seen some people install Cockpit with add-ons that simplify the management of shares and users.
To mount the POOL inside the LXC, simply run this command from pve: pct set 130 -mp0 /Z001,mp=/mnt/Z001So, inside /mnt/Z001 will be all the folders and files on the ZFS pool, but obviously there will be problems with the UIDs and GIDs, and that's exactly why I'm asking for help on how to configure it.

In the future, I'll have other LXCs that will need access to the Z001 pool, so I'll have to learn to manage everything independently.

Thanks in advance.