如何在ESX Server中mount Windows的共享文件

In this how-to you’ll learn that it is possible to mount a Windows folder share to the VMWare ESX Service Console. Like this you can use your windows shares as an additional storage sp ace within your ESX Server. So in this scenario I imagine that I have one physical server running 2003 Server, and on the other side I have another physical server running VMware ESX server. What I’ll try to do is basically follow this procedure that you see below.

What you will need:

1.) Windows local or domain account, and an available Windows file share
2.) You have to open firewall port for smbClient
3.) Create local mount point
4.) You also have to make sure that the Netfs service is started
5.) Modify Windows 2003 Local Security Policy (if necessary)

So you can just follow this guide:

  • From the local console or ssh session, for example: Putty, open the ESX firewall port:

"esxcfg-firewall -enableService smbClient" (please type without quotes)

  • Create a new local mount point, for example:

“mkdir /tmp/smbmnt”

  • Enable netfs:

“chkconfig netfs on”
“service netfs start”

  • Now, if your are connecting to a Windows 2003 Server share, you need to log on as local administrator to the server and open Administrative Tools (within Control Panel or Start/Programs).
  • Open Local Security Policy , expand Local Policie s -> Security Options , and set the following objects to Disabled if not already:

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

  • Go Start and open the command prompt window.
  • Enter “gpupdate /force” to refresh local policy. Also check that domain group policy is not overriding local policy.

From the ESX console run: “mount -t smbfs -o username=<username>/<domain>,password=<password> //<server name>/<share> /tmp/smbmnt/”

To delete the local map point after you had unmapped the share you can use the following command: “rmdir /mnt/myshare”

如果這裏報錯的話。直接用mount.如:
mount //192.168.2.204/Tools /mnt/share -o username=Administrator
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章