Mount CIFS share to a non-privileged container

golfbravo

New Member
Aug 8, 2024
7
0
1
Hi folks,

I am attempting to add access to a NAS shared disk that holds all my books to a Caliber-web CT (from promox-helper-scripts).

Here is what I have done on the PVE hosting the ct:
  • added a .credentials file with login info
  • added //192.168.NN.NN/Books /mnt/nas/media cifs credentials=/root/.nerdycifs,uid=100000,gid=100000 0 0 to /etc/fstab
  • added mp0: /mnt/nas/media,mp=/mnt/nas/media to etc/pve/lxc/<container_id>.conf

As a result when I start the ct and go to the admin interface of caliber-web via a web browser, I can navigate to the /mnt/nas/media folder, but no files are listed. Ditto if I go to /mnt/nas/media via the PVE shell The files ARE visible if I navigate to that same folder (/Books) via a share mounted as a shared drive in the PVE (/mnt/pve/library), but of course that mapping isn’t available to the ct.


I am new to Proxmox, but have studied the LearnLinuxTV course on Proxmox and followed through those and other tutorials. I used specifically the instructions here: https://dev.to/oswllt/proxmox-bind-smb-mount-to-unprivileged-lxc-container-the-easy-way-3l4k modified for my own environment (Proxmox 8.2.4)


I suspect that I’m missing something fundamental here, any advice most welcome.


Cheers

Graham
 

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!