VMware Cloud Community
trini18
Contributor
Contributor

connecting to a windows 2003 san server

how do I connect my esx server to a dedicated san windows 2003 server? Basicly just trying to create a network drive from the esx server

I created a network vmkernel and enable ip storage...when I try to add a storage it gives me and error "Error during the configuration of the host: NFS Error: Unable to Mount filesystem: Unable to connect to NFS Server"

Sorry am new to this...just trying to save all my VM on my san server....I was running vmware server 1.0.5

thanks

Reply
0 Kudos
17 Replies
Gerrit_Lehr
Commander
Commander

What do you mean with Windows 2003 SAN Server? SANs run Fibre Channel or even iSCSI, witch Windows 2003 does not support. A Windows share is something completly diffenrent since it runs the CIFS Protocol which is only capable for file-based access and not block-based like in a SAN. This is refered as Network Attached Storage (NAS) and is (with exception of NFS, which is a Unix protocol) not supportet with ESX and cannot be used.

If you want to move your VMWare Server VMs to ESX, move it to a storage that the ESX can connect or connect to the ESX using SCP or FastSCP and move them there.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
TomHowarth
Leadership
Leadership

If you are meaning Windows Storage server, have you configured NFS for windows, the default sharing on Windows is SMB/CIFS not NFS

Tom Howarth

VMware Communities User Moderator

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
trini18
Contributor
Contributor

ok I shouldn't have said san server...I have a dedicated storage server just to hold images 3TB of space to be exact....

When I was running vmware server on windows 2003 I created a shared folder on the storage server...I never saved the images locally didn't have the room too.....

so how do I get esx to read my shared folder on that windows 2003 server...

Reply
0 Kudos
Gerrit_Lehr
Commander
Commander

That is not possibel using cifs. You could add NFS support and share the disk via NFS to connect the ESX Servers.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
TomHowarth
Leadership
Leadership

firstly ESX can not address a LUN or storage partition greater than 2TB, so you will need to re-work your image library.

if you are intent on having direct access to a Windows server from your host you will need to get deep and personal at the console.

firstly you will need to open access for SMB access This sounds a very convoluted way of doing things! Are you saying that your ESX3 box cannot mount and SMB NTFS share?

To get it to work do the following:

Make a mount point for the SMB share, if your password contains special characters ($!% etc) put it in single quotes.

mkdir /mnt/sharename

Make sure the ESX firewall has the ports required for SMB open.

esxcfg-firewall -e smbClient

Check that smbClient is in the list of enabled services.

esxcfg-firewall -q

Create your share on your Windows box, make sure the Everyone use has read and modify share permissions. Create a backup user and give it read/write NTFS permissions on the directory

Then mount the SMB share onto your mount point.

mount -t smbfs -o username=$smbuser,password=$smbpass //$smbserver/$remotedir /mnt/sharename

note username should be a user on the domain or local machine that has the desired permissions to the share and file system

And that should be it.

You may also need to set the following if you have problems with the mount, as ESX3 does not support CIFS.

Disable Microsoft network server: Digitally sign communications (always)

Disable Microsoft network server: Digitally sign communications (if client agrees)

if you want to make this permanent then you will need to edit the init files to load the mount point at startup

Tom Howarth

VMware Communities User Moderator

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
trini18
Contributor
Contributor

*> *

*

*

*You may also need to set the following if you have problems with the mount, as ESX3 does not support CIFS.

*

**Disable Microsoft network server: Digitally sign communications (always)

*Disable Microsoft network server: Digitally sign communications (if client agrees)

*

*if you want to make this permanent then you will need to edit the init files to load the mount point at startup

*

where do I disable this??

thanks

Reply
0 Kudos
adolopo
Enthusiast
Enthusiast

Local Security Settings

Cheers,

-D

Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

You may not need to do this if you use the latest versions of Samba built for ESX. See http://www.astroarch.com/wiki/index.php/Full_Integration_of_Active_Directory for more assistance.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354, As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos
trini18
Contributor
Contributor

ok did that

now how do I add a storage device in esx

Reply
0 Kudos
Gerrit_Lehr
Commander
Commander

Anyone correct me if I am wrong, but even though you got your Windows Share connected and mounted to the service console now, doesn't change the fact, that the VMKernel still cannot use it and so you cannot start a VM residing on the share. You could now move the VMs from the Share into local or SAN storage via service console, but if the VMKernel (which has nothing to do with mounting a share to the service console in this case) cannot access the VM there is no way to start the VM.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
trini18
Contributor
Contributor

ok so what i did was using VMware Infrastructure Client

clicked on configuration

clicked on storage and then clicked on add storage

selected Netwrok File System

now its asking for server: (put ip of windows server) ?

then folder: (which i created on the esx server as /mnt/sharename)

datastore name: (just called it test)

clicked finished

and it came back with an error "NFS Error: Unable to Mount filesystem: Unable to connect to NFS server"

am I still doing it wrong?

Reply
0 Kudos
Gerrit_Lehr
Commander
Commander

Yes, you still doing it totally wrong! You are using CIFS / SMB which has absolutly nothing to do with NFS! And the VMKernel does not support CIFS (Windows Shares). The only options are: moving the VMs to a SAN / iSCSI / ESX local Storage / NFS. If you got Windows 2003 Storage Server or even R2, you can add NFS Support to your Windows Server and create a NFS on it. Out of the box, Windows cannot share files via NFS.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
trini18
Contributor
Contributor

ok i've installed Microsoft Windows Services for Unix and I've created a folder and its now shared as an nfs share

am trying to use this command mount -t nfs -o rw //<ip address of win2k3>/sharefolder /mnt/sharedname

and this is the error am getting "mount: directory to mount not in host:dir format"

On the esx server I've enable nfs client in the firewall

Reply
0 Kudos
Gerrit_Lehr
Commander
Commander

If NFS works, you dont need to do anything on the Service Console, which as mentioned has nothing to do with the VMKernels access to the VMs. You can now try to add the NFS Share via the VIClient with the Servername, Share and logon credentials.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
Texiwill
Leadership
Leadership

Hello,

Check out http://www.astroarch.com/wiki/index.php/Setting_up_Windows_Services_For_UNIX_%28SFU%29_NFS for help on setting up Windows Services for Unix as an NFS Server.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354, As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos
trini18
Contributor
Contributor

where do I add the NFS share in the VI Client?

is it thee add storage button?

Reply
0 Kudos
Gerrit_Lehr
Commander
Commander

Yes, just as you tried it before.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos