Search the VMware Knowledge Base (KB)
View by Article ID

Troubleshooting the failed process of adding a datastore from a Windows Services NFS device (1004490)

  • 28 Ratings

Symptoms

  • The process of adding the NFS datastores times out
  • Unable to add NFS datastores
  • Adding NFS datastores fails


Purpose

This article identifies steps for resolving issues with mounting an NFS share from a server using Windows Services for UNIX.
 
Warning: Windows Services for UNIX is not a supported storage solution for use with ESX, and the information in this article is provided as-is. For a full list of supported storage solutions, refer to our Hardware Compatibility List. VMware provides support only for the devices that are listed in the Hardware Compatibility List. If you are having a technical issue with 3rd party hardware or software and it is not found on this list, see our 3rd Party Hardware and Software support policy.

Resolution

Note: The links in this article were correct as of August 10, 2011. If you find a link is broken, provide feedback and a VMware employee will update the link.
 
To correctly set up the Windows Service for UNIX:
  1. Install Windows Services for UNIX (WSFU).
  2. Copy the ESX host password and group files to Windows.
  3. Configure WSFU to accept ESX host connections.
  4. Share the Windows folder for NFS compatibility.
  5. Configure the ESX host to mount the Windows NFS Share as a datastore.

Install Windows Services for UNIX (WSFU)

To install WSFU:
  1. Download WSFU from the Microsoft Download Center.
  2. Install WSFU by extracting and running the setup.exe.
  3. Select the Custom Installation.
  4. Choose the following Components to install:
    • Expand NFS, click Server for NFS, and choose Will be installed on local hard drive.



    • Expand Authentication tools for NFS, click User Name Mapping, and choose Will be installed on local hard drive.



  5. Open the services control panel applet and change the service User Name Mapping to startup automatically and start the service. 

Copy the ESX host password and group files to Windows

Copy /etc/passwd and /etc/group to C:\SFU (or the location where WSFU is installed).
 

Configure WSFU to accept ESX host connections

To configure WSFU to accept ESX host connections:

  1. Click Start > Programs > Windows Services for UNIX > Services for UNIX Administration.
  2. Click user name mappings.
  3. Click Configuration.
  4. Click Password and Group Files.
  5. From the browse dialog box for both the password and group fields, browse for the password and group files that you copied.
  6. Click Apply.
  7. Go to maps.
  8. Click Show Maps.
  9. List windows users and list Unix users.
  10. Select a local administrator user on the left that can be mapped to the root account and the root user on the right.
  11. Click Apply.

Share the Windows folder for NFS

To share the Windows folder for NFS:
  1. Right-click the local folder you want to share via NFS.
  2. Click NFS Sharing.
  3. Type in the name for the share. For example, NFS-VMFS01.
  4. Remove Allow anonymous access.
  5. Click Permissions.
  6. Change the type of access to Read+Write and select Allow root Access.

Configure the ESX host to mount the Windows NFS Share as VMFS

To configure the ESX host to mount the Windows NFS Share as VMFS:
  1. Verify that the ESX host firewall permits NFS traffic.
  2. Verify the configuration of the network port groups. For more information, see the Server Configuration Guide.
  3. Verify connectivity to the NFS server. For more information, see Troubleshooting connectivity issues to an NFS datastore (1003967).
  4. Add the NFS storage. For more information, see the Server Configuration Guide.

Additional Information

Sometimes accessing the folder might fail with the error:
 
reading directory: permission denied.
 
To troubleshoot this issue, try granting Anonymous Logon access in the security tab for the folder.

Note: If you are using Veeam NFS restore share, your Windows Operating System may deny access to the same share. To resolve the issue you may need to specify TCP transport on the server while exporting NFS. For more information, see the Microsoft article Specify Server for NFS TCP and UDP Settings.
 
THE CONTENT OF THIS ARTICLE IS PROVIDED "AS-IS," AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, VMWARE DISCLAIMS ALL OTHER REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS CONTENT, INCLUDING THEIR FITNESS FOR A PARTICULAR PURPOSE, THEIR MERCHANTABILITY, OR THEIR NONINFRINGEMENT. VMWARE SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF THIS CONTENT, INCLUDING DIRECT, INDIRECT, CONSEQUENTIAL DAMAGES, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF VMWARE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Tags

nfs-connectivity add-nfs-datastore

See Also

Update History

08/10/2011 - Update the link to download WSFU

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 28 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 28 Ratings
Actions
KB: