How do I mount network share AFTER TrueNAS VM starts?

i_love_proxmox

New Member
Jun 26, 2022
1
0
1
I'm using a TrueNAS VM for network shares and some of my containers use network folders in that VM. So I mount the shares in Proxmox and bind mount & remap uid/gid's in my unprivileged containers. This works fine unless I reboot. Proxmox fails to mount these folders since the VM hasn't started, and empty bind mounts cause problems in my containers. Does this situation have already a workaround? Or should I need to write a cron script to check if TrueNAS VM started and then mount + start containers?
 
If you really want to make shure that the NAS VM is running before starting the LXCs, a script like that is also the best solution that comes to my mind.