Select Page

Configure NFS on Ubuntu 14.03 LTS

If you have been following my other guides I have created guides for setting up Ubuntu and also setting up Plex on Ubuntu. This is slightly related as you may want to use a NFS server to store your media files. I personally have a ISO NFS share for my vCenter as it makes it easier to track what VM’s still have ISO’s connected to them. I would recommend following my Ubuntu setup guide before completing this one unless you already have an Ubuntu machine.

sudo apt-get update

Sudo Apt Get update - Configure NFS on Ubuntu 14.03 LTS

Sudo Apt Get update complete - Configure NFS on Ubuntu 14.03 LTS

sudo apt-get install nfs-kernel-server

sudo apt get install nfs kernel server - Configure NFS on Ubuntu 14.03 LTS

You will need to create a NFS Directory that you will be using as your NFS Mount Point. This can be completed by running the below command 

sudo mkdir /Data – This will create a Directory called ‘Data’ on the root of your file system. The next command will create the NFS folder inside of the Data folder.

sudo mkdir /Data/nfs

We can now continue to the NFS configuration itself as we have setup all of the prerequisites.

sudo vi /etc/exports

etc exports - Configure NFS on Ubuntu 14.03 LTS

You will need to add the following lines to enable the correct share to be enabled. The IP address will be the address of your ESXI Host or another machine that you will be connecting to the device via NFS such as a Windows machine.

/Data/nfs    172.16.0.215(rw,async,no_subtree_check)

Press Insert on your keyboard, Insert the line and make sure you have the spacing correct. Then save the file by typing the below

Esc key then :wq!

etc exports line added - Configure NFS on Ubuntu 14.03 LTS

You will then need to create the NFS Table that contains the NFS Exports of your shares.

sudo exportfs -a

sudo exportfs a - Configure NFS on Ubuntu 14.03 LTS

You now need to start the NFS Service. This can be completed by running

sudo service nfs-kernel-server start

sudo service nfs kernel server start - Configure NFS on Ubuntu 14.03 LTS

This completes the configuration on the NFS Server. You will now need to navigate to your client machine to configure the NFS Location. In my example I will be adding this to a Vmware ESXI Server.

Browse to your ESXI Host and select Configuration –> Storage and Add Storage

Add NFS Storage - Configure NFS on Ubuntu 14.03 LTS

Select Network File System and Press Next

NFS Configuration Page - Configure NFS on Ubuntu 14.03 LTS

Type in the relevant network details for your server and for the folder you created.

Ready to Complete NFS - Configure NFS on Ubuntu 14.03 LTS

You will then be able to see your NFS share as below in your Configuration –> Storage tab.

VMware NFS Datastore - Configure NFS on Ubuntu 14.03 LTS

Pin It on Pinterest

Share This