How to add NFS Storage on Proxmox VE

To add NFS Storage on Proxmox VE

Proxmox VE allows you to configure Local Storage and also some of the Network Storages like NFS, ISCSI, GlusterFS and etc for storing guest virtual machines disk image, iso files, and templates etc. Here let’ s see how to set up an NFS Storage for Proxmox VE.

Additionally, we require an NFS Server for configuring NFS Storage. Login to your NFS server and follow the below steps to configure NFS


Adding NFS Storage

You need to install the packages for NFS service by making use of the following command.

[root@localhost ~]# yum install nfs* -y
Loaded plugins: fastestmirror, langpacks
base                                                                                                                                                               | 3.6 kB  00:00:00     
extras                                                                                                                                                             | 3.4 kB  00:00:00     
updates                                                                                                                                                            | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/group_gz                                                                                                                                      | 156 kB  00:00:01     
(2/4): extras/7/x86_64/primary_db                                                                                                                                  | 145 kB  00:00:01     
(3/4): updates/7/x86_64/primary_db                                                                                                                                 | 5.2 MB  00:00:16     
(4/4): base/7/x86_64/primary_db                                                                                                                                    | 5.7 MB  00:00:16     
Determining fastest mirrors
 * base: mirror.xeonbd.com
 * extras: mirror.xeonbd.com
 * updates: mirror.xeonbd.com
Resolving Dependencies
-->  Running transaction check
--->  Package nfs-utils.x86_64 1:1.3.0-0.48.el7 will be updated
--->  Package nfs-utils.x86_64 1:1.3.0-0.48.el7_4 will be an update
--->  Package nfs4-acl-tools.x86_64 0:0.3.3-15.el7 will be installed
--->  Package nfsometer.noarch 0:1.7-1.el7 will be installed
-->  Processing Dependency: python-matplotlib for package: nfsometer-1.7-1.el7.noarch
-->  Processing Dependency: python-mako for package: nfsometer-1.7-1.el7.noarch
.
.
.
  python-paste.noarch 0:1.7.5.1-9.20111221hg1498.el7   python-tempita.noarch 0:0.5.1-6.el7                               t1lib.x86_64 0:5.1.2-14.el7                                    
  texlive-base.noarch 2:2012-38.20130427_r30134.el7    texlive-dvipng.noarch 2:svn26689.1.14-38.el7                      texlive-dvipng-bin.x86_64 2:svn26509.0-38.20130427_r30134.el7  
  texlive-kpathsea.noarch 2:svn28792.0-38.el7          texlive-kpathsea-bin.x86_64 2:svn27347.0-38.20130427_r30134.el7   texlive-kpathsea-lib.x86_64 2:2012-38.20130427_r30134.el7      
Updated:
  nfs-utils.x86_64 1:1.3.0-0.48.el7_4                                                                                                                                                     
Complete!

Once it is done, you need to create a storage directory by making use of the following command.

[root@localhost ~]# mkdir /pve 

After that, you need to configure your NFS share in exports file as follows.

[root@localhost ~]# vim /etc/exports
/pve        192.168.7.223{rw,sync}

Later, you need to update your NFS Configuration to Kernel.

[root@localhost ~]# exportfs -r
[root@localhost ~]# exportfs &ndash a


Start and enable NFS Service by making use of the following commands.

[root@localhost ~]# systemctl start nfs-server
[root@localhost ~]# systemctl enable nfs-serve


Created symlink from /etc/systemd/system/multi-user.target.wants/nfs-server.service to /usr/lib/systemd/system/nfs-server.service.

After that, you need to configure your firewall to allow NFS service for all remote hosts.

[root@localhost ~]# firewall-cmd --permanent --add-service=nfs
success
[root@localhost ~]# firewall-cmd --reload
Success

Once NFS server is configured, you need to login to your Proxmox interface through browser, and then click Datacenter Storage NFS.

Once it is done, you need to fill the details of your NFS server like ID, Server IP, export path then click Add.



Now, your NFS storage is added.

With this, the method to add NFS storage comes to an end.

Tag : NFS Proxmox
FAQ
Q
How to list exported NFS shares in proxmox?
A
You can get a list of exported NFS shares with:

# pvesm nfsscan
Q
How to Adding NFS Datastore?
A
Use the following steps:
First, you need to log into vcenter Web client.
Next, you need to select vcenter inventory lists as follows.
After that, you need to select the hosts menu as follows.
Later, click on the datastore option and select related objects
And then click the datastore menu to create NFS datastore and follow the below steps to create NFS datastore.
You should select the type of datastore now.
Q
How to install Cinnamon desktop on Proxmox?
A
You can use the tasksel command to install a cinnamon desktop before that make sure you have installed tasksel on your system, then you can run the below command to install cinnamon desktop
# tasksel install cinnamon
Q
Can I run NFS across the TCP/IP Transport Protocol?
A
Client support for NFS over TCP is integrated into all 2.4 and later kernels.

Server support for TCP appears in 2.4.19 and later 2.4 kernels, and in 2.6 and later kernels. Not all 2.4-based
Q
What distribution is Proxmox VE based on?
A
Proxmox VE is based on Debian GNU/Linux.