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
 
fstab should work.
otherwise why don't you mount it directly inside the container ?
 
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!