vSphere - How to NFS Datastore
Just quick one for those want to know how to create NFS datastore on vSphere.
Requirements :
- NFS v3 over tcp
- VMkernel
As for my testing purposes, I choose No-X Linux distro to be my NAS box running NFS v3 with below configuration (/etc/exports) :
/mnt/sdb1 192.168.1.55(rw,sync,no_root_squash)
From above “exports” config we knew that I will only allow VMkernel IP (192.168.1.55) to mount the NFS volume with root & read, write permission. Once finished, I just need to make sure below services are running fine :
- mountd
- portmap
- statd
- nfsd
Note:You can verify this by running ‘netstat -tulpn” command.
Now, I need to create VMkernel for my ESX host and FYI, we can do this from vCenter whether through vDS or vSS. For this example I’m using vSS instead of vDS and for reference, you can check my previous post on how to add VMkernel using vDS here. Read more
2 comments
