my unoffical way of getting shared media and smb shares so i created my smb server directly inside proxmox using cockpit added users and groups needed set smb share password for users so that i should be able to view in logs
then on the pve server to connect those shares to the lxc
make note of your container id number mine is 101 now in pve shell
also note what you have set to your mount location on pve "proxmox server"
pct set 101 -mp0 /Mirror/backup,mp=/shared
this is closer to the right way ?? https://ubuntu.com/server/docs/how-to-mount-cifs-shares-permanently
this is if you need to access smb share in a lxc
first your lxc needs the unprivledge box uncheck set the rest of the lxc the way you want and save without booting it right away
then goto the lxc options tab then features box and check smb/cifs
then boot your lxc apt update && apt upgrade
apt-get install cifs-utils
then create your creds in nano /etc/.smb_creds nano is a simple txt edititor built into all lxcs i have used
username=
password=
domain=WORKGROUP
ctrl x then enter and enter
domain by default is usually workgroup if you changed this in your smb/cifs creation then you know that name.
then nano /etc/fstab in this file we use tab instead of spaces except for your mount location will just be a space after your smb address
//server/share /mnt/smb cifs credentials=/etc/.smb_creds,rw,noperm,uid=10000 0 0
so my file looks like
//192.168.100.81/smb /mnt/smb cifs credentials=/etc/.smb_creds,rw,noperm,uid=1000 0 0
mkdir /mnt/smb
systemctl daemon-reload "this will load our fstab edit and was needed for my debian 12 lxc
then to test if it works just ls your mont loacation
ls /mnt/