How to connect Proxmox to Network NFS mount
Follow these instructions to connect your Proxmox Server to a NFS mount over the network.
- Please note - In most cases you will be required to mount the NFS using a private IP subnet assigned to a VLAN by your hosting provider.
- You will need to apply the Static IP provided before attempting these steps.
- Install NFS Client:
Ensure that the NFS client package is installed on your system. The package name may vary depending on your Linux distribution.
For example, on Ubuntu or Debian-based systems, you can install it with:
- Create a Mount Point :
Create a directory where you want to mount the NFS share.
For this example, let's use /mnt/nfs_mount.
- Mount the NFS Share Manually:
Now, you can manually mount the NFS share to test the connection before making it persistent.
Replace 10.10.100.254:/path/to/nfs/share with the actual NFS server IP and the path to the shared directory.
Verify that the NFS share is successfully mounted by checking the contents of the mounted directory: - Automount NFS Share on Boot using /etc/fstab:
To make the NFS mount persistent across reboots, you need to add an entry in the /etc/fstab file. Edit the fstab file using your preferred text editor:
Add the following line at the end of the file to mount the NFS share on boot. Replace 10.10.100.254:/path/to/nfs/share with the actual NFS server IP and the path to the shared directory.
Save and Exit the editor. - Test the NFS Mount:
To ensure everything is set up correctly, you can now test the mount using the following command:
This command will mount all filesystems listed in/etc/fstab
. - Reboot and Verify Persistence:
Reboot your system to ensure that the NFS share is automatically mounted at boot time. After the reboot, check if the NFS share is mounted by running:
You should see the NFS share mounted at
/mnt/nfs_mount
.
That's it! You've successfully configured NFS to connect to the network mount and made it persistent across reboots by modifying the/etc/fstab