Start a new topic

Enabling Windows EC2 clients to access NFS volumes

Setting up the Windows installation media


Amazon's Windows EC2 AMIs do not include the installation media as part of the base OS install. Since we obviously can't insert a Windows CD when prompted, we have to attach an EBS volume to the instance containing the Windows files.




  1. Identify the correct EBS snapshot. Depending on your OS version, CPU architecture, and region.


  2. Create a volume from the snapshot. Ensure that the volume is located in the same availability zone as your EC2 instance

  3. Attach volume to EC2 instance


Installing the Windows NFS client



  1. Go to Control Panel --> Add or Remove Programs

  2. Click "Add/Remove Windows Components" on the left sidebar

  3. Highlight (but don't tick the checkbox) "Other Network File and Print Services"

  4. Click the "Details" button

  5. Select "Microsoft Services for NFS" and click "Details"

  6. Tick the boxes for "Client for NFS" and "User Name Mapping"

  7. Click the Ok and then the Next buttons

  8. When prompted to browse to the file location find E:\Disc2\CMPNENTS\R2 and click the Ok button.

  9. Click the Finish button


Configuring User Name Mapping


NFS uses UNIX user IDs (UIDs) and group IDs (GIDs) to determine file ownership and permissions.  UID/GIDs are simply numeric representations of user and group names.  For example the root user most commonly has a UID of "0."  The User Name Mapping service under Windows provides a means to translate Windows user names/UUIDs to a matching UNIX UID.




  1. Copy the "/etc/passwd" and "/etc/group" files from the NFS server or a spare a Linux server to the Windows server.  Optionally, these files can be copied directly to the NFS volume so that all clients can easily access the file.  (Despite it's name, the "passwd" file does not contain passwords and it is minimally risky to share access.)

  2. Start --> Programs --> Administrative Tools --> "Microsoft Services for Network File System"

  3. Right click on User Name Mapping and select Properties

  4. Change the radio button from NIS to Password and Group files

  5. In the two boxes below, browse to the "passwd" and "group" files previously copied.

  6. Click the "Synchronize Now" button.

  7. Click OK

  8. Expand "User Name Mapping"

  9. Right click on "User Maps" and select "Create Map"


  10. Click "List Windows Users."  The Windows users list should populate.


  11. Click "List UNIX Users."  After 15-20 seconds, the UNIX users list should populate.

  12. Select the two accounts your wish to map (such as "Administrator" and "root") and click Add.

  13. Repeat the process until all of the mappings are added.


  14. Either reboot the server.  (Restarting the "Client for NFS" service itself may or may not be enough.)

Login to post a comment