Unprivileged_LXC_containers bind mounts

BigBenni

New Member
Feb 4, 2024
3
0
1
Hey there,
I try to pass a NFS folder from a NAS through the pve into an container.
I'm able to acces the folder on the host (and edit it) but in my Container I just can see it but get the notorious acces denied error.
I was using this as a guide on how to set things up.
From what I read around the internet I assume I did something wrong on the UID mapping. There I used the setting in the mentioned doc from proxmox.
Do I need to adjust something from it, like using another ID?
Using the command
Code:
lxc-start -F -n 1234
everything is ok.
It is a fresh created unprivileged container running Debian 12. I did nothing with it except edditing the config to include the mount point and the mapping.
Could anyone help me solve this problem I,m running out of ideas.
Thanks in advance
Benni
 
I was able to bind mount a local USB drive with this guide. The clue is (IMO) to set the correct group ID in the container and the host.
 
I tried following that guide but here I run in an permision denied error on the setfacl command. Do you have any idea what I could do to solve it. I already tried apt install acl on the host, added acl in the fstab also on the host and included acl = 1 in the mountpoint.
 

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!