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

本文档介绍了如何将Windows文件共享挂载到VMware ESX服务控制台,以便将Windows共享用作ESX Server的附加存储空间。你需要一个Windows本地或域账户,打开防火墙端口,创建本地挂载点,确保Netfs服务已启动,并可能需要修改Windows 2003本地安全策略。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值