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 one or more unprivileged LXC containers in one pass.
It automates:
- Creating a host-side mountpoint under
/mnt/lxc_shares/<folder>
. - Writing a properly-tuned
/etc/fstab
entry (systemd.automount
,uid/gid
mapping, etc.). - Mounting the share immediately.
- Injecting the bind-mount (
mpX:
) into the live LXC configuration withpct set
. - Stopping and restarting each container to apply the mount.