I found that post about using bindfs for sharing files into CT https://forum.proxmox.com/threads/lxc-user-mappings.75450/
It seams like much easier thing that using mp0 and setting up uid/gid map (I couldn't get it done).
So I add into fstab on the host system:
It mounts fine and maps fine, but the problem is that the files a visible in the CT only if that patch is mounted after the CT is started, if the CT is started when the patch is already mounted the dir is empty in the CT, when I then umount it on the host and remount it starts working.
I don't need high performance since I only need that for sharing proxmox certs with the CT because I have only on public IP and running different services on different ports (I know I could use a reverse proxy but I don't like that).
Can I somehow use lxc.mount.entry for binding the bindfs?
It seams like much easier thing that using mp0 and setting up uid/gid map (I couldn't get it done).
So I add into fstab on the host system:
Code:
/etc/pve/nodes/ocs /sas/subvol-101-disk-0/certs fuse.bindfs perms=0000:u+rD,uid-offset=100000,gid-offset=100000 0 0
/etc/pve/nodes/ocs /rpool/data/subvol-103-disk-0/certs fuse.bindfs perms=0000:u+rD,uid-offset=100000,gid-offset=100000 0 0
It mounts fine and maps fine, but the problem is that the files a visible in the CT only if that patch is mounted after the CT is started, if the CT is started when the patch is already mounted the dir is empty in the CT, when I then umount it on the host and remount it starts working.
I don't need high performance since I only need that for sharing proxmox certs with the CT because I have only on public IP and running different services on different ports (I know I could use a reverse proxy but I don't like that).
Can I somehow use lxc.mount.entry for binding the bindfs?