Mount a NFS Share from a VM to an LXC container

RNab

Member
Jun 20, 2021
31
3
13
34
Hi,

I have one VM on my proxmox, with a NFS share mounted from it. It contains a significant amount of data.
I'm able to access from another machine on my LAN so the share is set properly.

I have read that the right way to do that, would normally be to mount the nfs on the host, and then use bind mount to mount it on the LXC container.

But how do I ensure that the NFS is always mounted on the host, after reboot ? Using /etc/fstab obivously can't work.

Sorry if these are all noob questions.

Thanks
 
You are absolutely right. I just didn't do it the right way, but now it works...

Thanks for the answer though
 
  • Like
Reactions: pascalc