NFS Share ( between two Ubuntu Server VMs )

friendodevil

Member
Apr 5, 2022
39
3
8
I'm trying to create an NFS share drive between two Ubuntu 20.04 VMs -- so far unsuccessful -- help will be highly appreciated

VM1 (Server)
  1. Install NFS srvr package: sudo apt-get install nfs-kernel-server
  2. Create share list
    • add to /etc/exports:
    • /mnt/nfs-share 192.168.1.0/24(rw,sync,root_squash,subtree_check)
    • start NFS: sudo service nfs-kernel-server start
  3. Did not see Ubuntu complain thus far :)

Add NFS share drive to Proxmox in Datacenter, exports autofilled nfs-share so I assume VM1 share drive was setup successfully.

VM2 (Client)
  1. Install NFS client package: sudo apt-get install nfs-common
  2. Create share directory & and mount nfs drive
    • sudo mkdir /mnt/nfs-share-mount
    • edit /etc/fstab:
    • 192.168.1.100:/mnt/nfs-share /mnt/nfs-share-mount nfs rw,soft,intr,noatime,timeo=100,rsize=32768,wsize=32768 0 2

when a running 'mount -a' I get: NFS mount.nfs: access denied by server while mounting.... am I missing some permissions settings anywhere or is it something else?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!