Missing Subfolders in Bind Mount for Unprivileged LXC

MG_M3rt

New Member
Feb 15, 2025
1
0
1
Hi,

This is my first time seeking help in such a forum, so please excuse any mistakes.
I'm having a frustrating issue with bind mounting a host directory into an unprivileged LXC container on Proxmox.

My setup
One raidz1 HDD pool
One ZFS stripe SSD pool

LXC running on SSD and added a bind mount of the raidz1 pool directory using this command from the wiki: pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared

The Problem:

When I log into the container and list my shared directory, I see my 3 folders from the HDD pool correctly displayed, then after entering one of them they are empty and no subfolders are displayed. I've attempted several approaches:
  • Permissions Reset:
    I reset ownership and permissions on the host to defaults (root:root, 755 for directories, 644 for files). However, this did not help.
  • Recursive Bind Mount:
    I looked into using a recursive bind (rbind), but when I tried adding rbind=1 to the mount options, I received an error when starting the LXC
I tried to search for my problem on Google and used two AI chatbots, but to no avail…
The wiki suggested mapping IDs, but I didn't understand when to map IDs, if it would be any useful and even if I had tried it, I didn't really understand how to.

I hope someone more knowledgeable than me can help solve my issue, and I would be genuinely grateful for it.
Thanks in advance!