Proxmox

Tips for Unprivileged Containers/LXC using NFS

Some users will have issues mounting NFS shares in unprivileged LXC containers.

To do so, use the command line on the Proxmox Host. It assumes your vmID is "903"; host_dir is the share on the host and guest_dir is the dir on the guest

# On Proxmox host sudo mount -t nfs 192.168.7.10:/mnt/share_dir /mnt/host_dir # Bind mount to container pct set 903 -mp0 /mnt/host_dir,mp=/mnt/guest_dir