Thursday, December 4, 2008

VmWare ESX with Windows based NAS (NTFS)

Above there is the complete procedure to use a Windows Based NAS NTFS share as NFS for VMware ESX server.

The main steps in this process are:

  1. Installing Windows Services for UNIX (WSFU)

  2. Copying the ESX Server password and group files to Windows

  3. Configuring WSFU for accepting ESX Server connections

  4. Sharing the Windows folder for NFS compatibility

  5. Configuring the ESX Server to mount the Window NFS Share as Datastore.



1. Installing Windows Services for UNIX (WSFU)

Download windows services for UNIX at:
http://www.microsoft.com/windowsserversystem/sfu/downloads/default.mspx

Install WSFU on the desired machine
Add in the following options
NFS + Server for NFS
Authentication tools for NFS + user name mapping
After installation, open services control panel applet and change the service ‘User Name Mapping’ to startup automatically and then start the service (if it's not started)


2. Copy the ESX Server password and group files to Windows

Use a program like WinSCP or similar process to copy the following files to your local system where WSFU is installed
You can get WinSCP from the fowling location.
http://winscp.net/eng/download.php#download2
Transfer the file /ect/password and the file /ect/group to C:\SFU or to the location where you installed WSFU


3. Configure WSFU to accepting ESX Server connections

Click Start, Programs, Windows Services for UNIX, Services for UNIX Administration
Go to user name mappings then configuration
Click password and group files
Then browse for the password and group files that you copied, from the browse dialog box for both the password and group fields
Click apply
Then go to maps
Click Show User Maps
List Windows users and list Unix users
Then select a local administrator user on the left that will be mapped to the root account and the root user on the right.
Then click on Add button
Then click apply (upper right)



4. Sharing the Windows folder for NFS compatibility

Right click the local folder you wish to share via NFS
Share the folder by clicking NFS sharing
Type in the name for the share i.e. NFS-VMFS01
Remove allow anonymous access
Click permissions
Now Change type of access to “Read+Write” then check allow root access.


5. Configure the ESX Server to mount the Window NFS Share as VMFS

Open the VC client and highlight the Vi3 host
In the Configure tab choose Networking
Add networking, VMKernel then pick a vSwitch, then give the VMkernel an IP that is accessible via the NFS host.
Now open the storage option for this host
Click add storage, > Network File System
In the Server Field enter in the name or the ip address of your server
In the Folder field enter /NFS-VMFS01 (or the name you give to the share)
For the Datastore I also used NFS-VMFS01

No comments: