How to use a Windows Share in VMWare ESX server?


There are 3 steps to mount the Windows share in VMWare ESX server.

1. On a freshly installed ESX 3.x servers, SMB (Server Message Block) client is blocked by the firewall. smbClient is used to connect to Windows Shares in ESX (Linux) servers. To open the firewall for smbClient, type the following on the ESX server (or via remote session using PuTTy). Be sure you are logged on as "root" or with root privileges.

esxcfg-firewall -e smbClient

Mind the above command is case sensitive. Only "C" in smbClient is upper case character.

2. Where do you want to mount the Windows Share? I usually do it at /mnt location. But you can mount it wherever you want.

Create a sub directory under /mnt by typing the following command.

mkdir /mnt/WindowsShare

3. Mount the Windows share to /mnt/WindowsShare using mount command. Before you mount, make sure you have a valid Windows Account (either Windows machine’s local account or domain account).

If you have Windows computer’s local account, type this.

mount -t smbfs -o username=<Windows user name>,password=<password>  //<Windows Computer Name or IP address>/ShareName  /mnt/Windowshare

If you have Windows Domain Account credetials to access the Windows Share, type this.

mount -t smbfs -o username=<Windows user name>,password=<password>,workgroup=<Domain Name>  //<Windows Computer Name or IP address>/ShareName  /mnt/Windowshare

If the Windows Share is mounted successfully, you don’t get any response, otherwise the error message will be displayed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s