VMware Communities > VMTN > Archives > Beta Archives > Installation and Upgrade (VI3 beta, LOCKED) > Discussions

This Question is Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
7 Replies Last post: Apr 25, 2006 2:15 PM by mba

NFS datastore on Windows 2003 & SFU

Mar 2, 2006 6:56 AM

Click to view JP76's profile Enthusiast JP76 87 posts since
Jun 15, 2004
Hi,

I am trying to define an NFS share on a Windows Server 2003 R2 (that includes Services for Unix 3.5) to be used as Datastore for an ESX Server 3.0 box. Performances is not an issue, I want to share iso files, not put VMDK there for a start.

I installed SFU, configured user mapping (root to Administrator and annymous to anonymous). I NFS-share a folder on the Windows box, allowing root access, anonymous access and read-write to all machines (security in no an issue either for now). I also granted Anonymous Access full control on the shared folder.

I can use the SFU client on the Windows 2003 server to browse to the NFS Share (through NFS of course) and access it.

I can define an NFS datastore in ESX 3 and it sees the total /free disk space, and accept to connect but I cannot browse the NFS share and have an Access Denied from the console when trying to list the content of /vmfs/MyNFSshare.

I wonder if anyone successfully used a Windows Server with SFU to export a share that ESX 3 could use as datastore?

Thanks for your help.
Re: NFS datastore on Windows 2003 & SFU Mar 2, 2006 7:20 PM
Click to view mba's profile Hot Shot mba 130 posts since
Feb 17, 2006
In the past I have used Win2k3 and SFU 3.5 to export a share that ESX 3.0 used
as a datastore, although I can't seem to find the machine anymore.

I remember running into a problem where when I installed SFU 3.5
I failed to install the User Name Mapping service. You can see the
list of services installed by going to:

Start -->
All Programs -->
Windows Services for UNIX -->
Service For UNIX Administrator

On the left there should be a heading that says:

Service for UNIX [local]

Under that you should see a User Name Mapping service, do you have it?

Also, under the security tab on the folder you shared, what entries do you have listed?
Do you have an entry for Everyone?
Re: NFS datastore on Windows 2003 & SFU Mar 3, 2006 1:33 PM
in response to: mba
Click to view cwenzel's profile Enthusiast cwenzel 32 posts since
Dec 13, 2004
I just accomplished this...

This is what I did:

1) Perform a COMPLETE install of the Microsoft Services for NFS (By default the Identity Management pieces are not installed)
2) Change User Name Mapping so it does not use NIS
3) Copy the password and group files from my ESX server to the box that is running Services for NFS.
4) Map root to Administrator
5) Share the folder in question using the "NFS Sharing" tab. When doing this, I allowed anonymous access, as well as root access (This is visible when you click on the permissions button)

I left the permissions as read only, and I am currently building a VM.
Re: NFS datastore on Windows 2003 & SFU Mar 3, 2006 6:37 PM
Click to view JP76's profile Enthusiast JP76 87 posts since
Jun 15, 2004
Thank you,

You confirm what my research led me to discover. I already posted my own comments in another thread: http://www.vmware.com/community/thread.jspa?threadID=34032&tstart=0 with references to a quick 101 setup paper regarding SFU and my own settings (quite like yours).

I shall add that with very few ESX to Windows user / group mappings it is better not touch the security on the Windows side, but on the ESX side.

I mapped root to the local Administrator account and the root group to the local Administrators group and any other user / groups default to <unmapped>, because all root:root is owning all files & folders under /vmfs.

My first operation after mounting the nfs share was to "chown root:root" & "chmod" the entire content of the share and ownership+permissions are consistent from the ESX box point of view. On the Windows side, it looks more weird (Windows admin point of view) where the Unix permissions translate to explicit rights to Administrator (user), Administrators (local group) and, well Anonymous. No inherited permissions, none of the usual familiar fancy groups (e.g. Creator Owner & al).

When I add content from Windows into the NFS share, I always correct ownership and rights to remain consistent with the ESX box.

Hope this will help beginners like me.
Re: NFS datastore on Windows 2003 & SFU Mar 6, 2006 7:28 AM
Click to view curtboy's profile Enthusiast curtboy 59 posts since
Nov 29, 2004
You know it would be nice if there was a posting of all the issues and fixes for using NFS (and of course NFS on Windows) in one location. There have been alot of good posts by various people on here about it. I've got 4 hosts connected on a private Gig VLAN back to a 2003 R2 box running NFS with 1.5 TB for all the Host machines. So far it works pretty good. Maybe a primer guide for some of the people who want to do this but are not too sure.
Re: NFS datastore on Windows 2003 & SFU Apr 25, 2006 11:59 AM
Click to view rzomerman's profile Enthusiast rzomerman 50 posts since
Jan 31, 2005
hmm strange..

i cannot get it to work.. i exported the passwd and groups files from /etc.. and copied them to the windows machine.. i can create a share.. but i cannot add users for permissions to it..

when i enter root, administrator it claims the user cannot be found.. any clues?
Re: NFS datastore on Windows 2003 & SFU Apr 25, 2006 1:45 PM
in response to: rzomerman
Click to view Mike_Laverick's profile Virtuoso Mike_Laverick 3,938 posts since
Jan 5, 2004
Moderator
I wrote in my blog about SFU...

You might find it useful...

http://www.rtfm-ed.co.uk/?p=228

Regards
Mike
Re: NFS datastore on Windows 2003 & SFU Apr 25, 2006 2:15 PM
in response to: rzomerman
Click to view mba's profile Hot Shot mba 130 posts since
Feb 17, 2006
How are you trying to add users for permissions to it?

There are several different layers of permissions, the first level restricts what machines are able to access a volume. You can set this by:

1) right click on folder you want to share
2) select properties
3) click on NFS sharing tab
4) Select the "Share this folder" option

Then you need to decide on what permissions you want:

1) click on the permissions button
2) select the allow root access box
3) For a start try adding an entry for "all machines" , you can tailor this list later to include just the machines that you want to be able to mount this volume.

Once you have this setup showmount -e <NFS Server name> from the Service Console should show you the folder you exported.

Once you have done this you can change what users are allowed to access the folder by

1) right click on folder
2) select properties
3) select security tab

In this window if you want to allow root to have access I believe you need to add rights for the administrator user, not the root user. The users you specify here must be windows users, and then you need to create the appropriate mapping from a UNIX user to a Windows user in the User Name Mapping service provided my SFU.

What happens currently when you try to mount the volume?
Actions