Link to home
Start Free TrialLog in
Avatar of Silense
Silense

asked on

An error occurred during host configuration.

I am running Lab environment to learn more about esxi 5.0. I install esxi5.0 on bare metal. Now I want to setup my QNAP NAS for datastore for vmotion & other facility. But I am getting error message as follows:

An error occurred during host configuration.

Call “HostDatastoreSystem.CreateNasDatastore” for object “ha-datastoresystem” on esxi "x.x.x.4" failed. NFS mount x.x.x.6:/esx failed: Unable to connect to NFS server.

I already Setup:

1. VMkernel port
2. Access to NFS client
3. can ping to NAS server from esx1 5.0
4. Share on NAS to allow all
5. ping is ok to NAS server

How can I resolve the issue?

ESXi IP: 192.168.04
NAS IP: 192.168.0.6
NAS share name: esx
NAS share parth: /esx

I checked the VMkernel and it says that " NSF Mount x.x.x.6/esx failed: Unable to connect NFS server.

Please help.
Avatar of ssujai
ssujai
Flag of United States of America image

This could be a firewall issue. Browse to Configuration/Software/Security Profile and verify that the  “NFS Client” is listed under “Outgoing Connections:”. you do not see the NFS Client entry, You can enable it by clicking on properties.
Avatar of Silense
Silense

ASKER

Outgoing all port is enable and open for NFS client in Firewall.
can you try out this Vmware KB

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007352

Also check out the command that you used to mount. It is case sensitive , so you need to be careful on that

Let me know if the above helps
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
check the logs on the server, this is often permissions or the incorrectr mount point has been used.

have you enabled the NAS for NFS?

have you tried using the IP address rather than the NAS name?

also with Qnap NAS, there have been many issues with firmware, check the firmware is the latest, and Qnap forums for Beta firmware.
Avatar of Silense

ASKER

I create folder and Setup NFS permission as well on NAS. Path, foldername & permission is ok on Qnap NAS but not sure why it says. NFS client is ok on vsphare."Unable to connect NFS server and NFA mount (IP address:/shaare) failed. Is there any command which I can force to mount the NFS share.

Is there any way I can setup from command or Power CLI...
esxcfg-nas -a -o 192.168.1.10 -s /VolumeName DataStoreName

can you vmkping the NAS from the ESXi server?
Can you list the command that you used for mounting the device?
Avatar of Silense

ASKER

At the beginning I didn't use the command to mount a Datastore. I used the GUI "Add Storage" then "Network File System"

Later on I used the following command but still the same.

esxcfg-nas -a -o 192.168.0.6 -s /esx NAS_Datastore

I add few snap shor of my NAS share access. Please check the images & advice.

Thanks in Advance.
ESXi-Add-Datastore.JPG
Qnap-NFS-Share.JPG
Qnap-Share.JPG
Firewall-settings.JPG
Avatar of Silense

ASKER

Yes my vmkping & ping to NAS is successfull from esxi
You need to create a vmkernel port group for the NFS traffic. You can refer this video for the configuration:

http://andysworld.org.uk/2011/06/21/new-hd-video-adding-an-nfs-datastore-to-a-vmware-vsphere-esxesxi-4x-host-server/

If you give the command "esxcfg-nas -l" , does it list any NFS shares?
Avatar of Silense

ASKER

My VMkernel port is already configured. I run "esxcfg-nas -l" & it doesn't show anything as it's not mounted with any NFS share yet.
Check the Qnap firmware and configuration.
can you check the following prereqs:

•Ensure the NFS server supports NFSv3 over TCP. ESX/ESXi does not use UDP for NFS.
•The NFS server must be accessible in read-write mode by all ESX/ESXi hosts.
•The NFS server must allow read-write access for the root system account (rw).
•The NFS export must be set for either no_root_squash or chmod 1777.
•Ensure the ESX/ESXi VMkernel IP is allowed to mount the NFS share by inspecting the export list.
•Ensure the mount is exported by running exportfs -a to re-export all NFS shares.
ASKER CERTIFIED SOLUTION
Avatar of Silense
Silense

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Silense

ASKER

Thanks to all.