How to share an NFS folder?

Share your awesome tips and tricks here.
0xc0ffee
Posts: 4
youtube meble na wymiar Warszawa
Joined: Thu May 12, 2022 11:12 pm

How to share an NFS folder?

Post by 0xc0ffee »

I can't find a way to create and share a folder in NFS. I must do something wrong. Could you please check what I'm doing?

First, I activate the NFS service:

Image

Then, I create an shared folder:

Image

After this, I open the NFS Privileges of this newly created folder:

Image

Here are the detailed privileges:

Image

Finally, I try to connect the NFS shared folder on the client machine:

Code: Select all

root@egg:~# mkdir ~/shared_nfs
root@egg:~# mount.nfs 192.168.88.32:/volume1/martin-nfs ~/shared_nfs -v -r
mount.nfs: timeout set for Thu Dec 21 20:50:54 2023
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.88.32,clientaddr=192.168.88.129'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'addr=192.168.88.32'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.88.32 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.88.32 prog 100005 vers 3 prot UDP port 2195
mount.nfs: mount(2): Operation not permitted
mount.nfs: Operation not permitted
root@egg:~#
Why can't the client connect to the NAS? What did I do wrong?
:? :?:
0xc0ffee
Posts: 4
Joined: Thu May 12, 2022 11:12 pm

Re: How to share an NFS folder?

Post by 0xc0ffee »

I've found what was wrong:

It is not possible to use a shared NFS folder in default Proxmox (LXC) container, nor in WSL 1 (Windows Linux).

The previous steps work fine on a bare metal Linux machine.