proxmox-lxc-cifs-share.sh
is an interactive helper that mounts a network CIFS/SMB share on a Proxmox VE node and bind-mounts it into an unprivileged LXC container in one pass.
It automates:
- Creating a host-side mountpoint under
/mnt/lxc_shares/<folder>
. - Writing a properly-tuned
/etc/fstab
entry (persistent,systemd.automount
,uid/gid
mapping, etc.). - Mounting the share immediately.
- Creating/ensuring a
lxc_shares
group inside the container (GID 10000) and adding your target user. - Injecting the bind-mount (
mpX:
) into the live LXC configuration withpct set
.