I get "Unable to connect to NFS server" when I try to connect to FreeNAS NFS share using ESXi 5.1, but both can connect to NFS share on linux. Further linux can connect to the share on FreeNAS. I think it is some setting or protocol thing between ESXi and FreeNAS 8.2. Any help would be appreciated.
The exact error is:
Call "HostDatastoreSystem.CreateNasDatastore" for object "ha-datastoresystem" on ESXi "192.168.0.242" failed.
NFS mount 192.168.0.239:/mnt/array1 failed: Unable to connect to NFS server.
Also get similar error an ESXi 3.51 server.
IP#: esxi 3.51 192.168.0.241 / esxi 5.1 192.168.0.242 / FreeNAS 192.168.0.239 (not virtual) / linux vm (on esxi 3.51) 192.168.0.249
I have checked the following actions
- vmkping 192.168.0.239 (freeNAS IP) and get response on both esxi 3.51 & 5.1
- I have checked ESXi5.1 firewall and made sure outgoing NFS connection is enable.
- I can connect to an NFS share on a linux box via both ESX 3.51 & 5.1 (same 192.168.0.0/24 network)
- I can also connect to the FreeNAS share from linux box and virtual linux machine (same 192.168.0.0/24 network)
- the FreeNAS can ping the esxi servers
- reverse DNS is working on FreeNAS (ie the IP of ESXi boxes gets resolved to a name)
- the ip of the esxi boxes is in the Authorized networks
- I have set "Map User" to root in FreeNAS. I dont know how to set no_root_squash in FreeNAS or BSD shell.
Here is the /etc/export file for the FreeNAS
/mnt/array1 -alldirs -maproot=root: -network 192.168.0.0/24