Configure NFS in Windows Server
On Windows Server, creating a new NFS server is simple.
First install this:

And then click the folder properties.

And enable that.

Configure NFS in Ubuntu
Run:
sudo apt update
sudo apt install nfs-kernel-server -y
sudo mkdir -p /mnt/nfs_share
sudo chown -R nobody:nogroup /mnt/nfs_share/
sudo chmod 777 /mnt/nfs_share/
And edit the configuration:
sudo vim /etc/exports
Add this:
/mnt/nfs_share 192.168.0.0/24(rw,async,no_subtree_check)
The 192.168.0.0/24 is the subnet which allows to connect to this server.
Finally:
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
If you have ufw enabled, don't forget to expose 2049 port.
Mounting remote NFS in Windows
Run this in PowerShell.
Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart
Run this in CMD:
# Not admin!!! Do NOT run this as admin!
mount -o anon nfs..server.name:/mnt/nfs_share/ X:
And then you have disk X:
X:
dir

Mounting remote NFS in Ubuntu
sudo apt install nfs-common
sudo mkdir -p /mnt/nfs_remote
sudo mount server-domain-name:/mnt/nfs_share /mnt/nfs_remote
Or you can edit /etc/fstab and append this line:
server-domain-name:/mnt/nfs_share /mnt/nfs_remote nfs defaults 0 0
Mounting remote NFS as a datastore in VMware ESXI
Go to your VCenter server. Select adding new store.

Select type.

Select version.

Enter server details:

And finally works!

Comments (0)
No comments yet. Be the first to leave one!