I have my network share added as a storage location in proxmox. I then edit the config file for LXC, so /etc/pve/lxc/ID.conf and add a mount point: mp0: /mnt/pve/share,mp=/mnt/share
I also have my NAS VM boot priority set to boot first with the LXCs set to boot like 2 minutes later. My LXC disks are also stored on a different network share from the NAS VM but that part is optional.
This is what I have:
mp0: /mnt/netfolder/Plex,mp=/mnt/extfolder/Plex
So, mount the smb share via proxmox webui, not via fstab/linux. Then it should work in the LXC after my vm boots?
I thought maybe, but I didn’t want to start there. I’ll probably mount via NFS then, I have that going on another instance just fine pointing to an onboard VM’s NAS.
Yeah, if it’s mounted via the web interface on the Proxmox host it will be in /mnt/pve on the host and you can map that to whatever you want in the container. I only did it that way because it’s less of headache for me, but you could just set boot priority in your vm/lxc options so that the NAS boots first and then wait a few minutes before starting the LXC.