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
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
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.
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!
You will then need to create the NFS Table that contains the NFS Exports of your shares.
sudo exportfs -a
You now need to start the NFS Service. This can be completed by running
sudo service nfs-kernel-server start
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
Select Network File System and Press Next
Type in the relevant network details for your server and for the folder you created.
You will then be able to see your NFS share as below in your Configuration –> Storage tab.