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.

  1. Install NFS Client: (Can be skipped if using Proxmox to access the mount as NFS-common should be installed by Default)

    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:

    01078e0f793d7dc371712f9f6f2594de75ad76c9e9db9429b90e429ed22709a217059bfacdd7636a?t=c2fdc7a1e0092126a1ebc26ce21e62b3

     

  2. Create a Mount Point :
    Create a directory where you want to mount the NFS share.
    For this example, let's use /mnt/nfs_mount.

    00734dc9f7c80aeebec136dccc06800cc3a0116ef8e7ecae0b924d5d69a18761946bc33e2d233240?t=6a0488bf9048ce9d07e3897b94efbcd2

     

  3. 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.

    0d005c16fcb6824e234fc19bc30b60d9355bde40252d20887e5f2aa087c38536eb73bc18381e186a?t=906c7d7927d96dc1fd7ec92b09cf65d8
    Verify that the NFS share is successfully mounted by checking the contents of the mounted directory:


    f5cc50344a1a51fc32d1e8483b88126d1209da4e13144640267d01342db20ff050f7b11786c8a3a0?t=eaa943ee147f57e56ae8449d463ef1ec

  4. 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:

    2d41fbd6ce2b85e3d7d70f4c05078f8e5735b6fb83254b93e0c200a329acee599e854ccf6ccab628?t=ff1051a673e228a89abca3cc312f8bfd


    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.


    34502e07e974990c3905e26af3d3c7f0386c71bec51431e397d4a4591450bf8fa59a2cdb1175614e?t=bb505c0817ca2a079ea9296229a0f30a

    Save and Exit the editor.

  5. Test the NFS Mount:
    To ensure everything is set up correctly, you can now test the mount using the following command:

    98b0bcc14ee5fbeb531db18ff22229f7188efae371b6d3e5118f1872dcba1297554eeef207d949cc?t=9971b1357a18c1fe0b4399b1a29801bd


    This command will mount all filesystems listed in /etc/fstab.

  6. 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:

    707c5d9b8fea7df39d8178196b26e4f251c6ffd2a5158da7f7854715549b6bd2e45dec7560297cd9?t=6cc90b8e0f9af73117a4d95183c0e3a9

    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

    Alternatively you can opt to use the GUI in Proxmox to add the NFS.

    f872af36419b6dba787baba5f911adbdae75cd3cff802974cf5fefcfe935c47f23a87743d6325658?t=b1baa564482b782426b3670c07123998