I'm running Proxmox VE 8.2.7. I have a TrueNAS Core VM, and a few of my unprivileged LXCs access an NFS share provided by the TrueNAS VM via a bind mount.
The solution I ended up with is using autofs to mount the TrueNAS VM's share to the Proxmox host and then bind mount that share to the unprivileged LXCs. To get this to work, I have to use a startup delay of 30-60 seconds after the VM starts, or the LXCs will fail to boot (since the bind mount directory doesn't exist instantaneously).
I'm wondering the following: is there is a way to do this without using autofs?
EDIT: See comments below. Now I'm using an /etc/fstab entry with the x-systemd.automount option, which removes the need to install autofs. A startup delay after the TrueNAS VM boots is still required, though.
The solution I ended up with is using autofs to mount the TrueNAS VM's share to the Proxmox host and then bind mount that share to the unprivileged LXCs. To get this to work, I have to use a startup delay of 30-60 seconds after the VM starts, or the LXCs will fail to boot (since the bind mount directory doesn't exist instantaneously).
I'm wondering the following: is there is a way to do this without using autofs?
EDIT: See comments below. Now I'm using an /etc/fstab entry with the x-systemd.automount option, which removes the need to install autofs. A startup delay after the TrueNAS VM boots is still required, though.
Last edited: