VMware Cloud Community
ingsamsam
Contributor
Contributor

cannot mount windows share

Hi,

I have a problem to mount windows share in esx, I enabled smb client and execute the following command :

mount -t smbfs -o username=admin1 //server1/ImagesIso /vmimages/iso

but I got the error below:

Packet send failed to 192.168.2.255(137) ERRNO=Operation not permitted

2589: connection to server1 failed

SMB connection failed

should I do somethings else ?

thanks in advance for your help.

0 Kudos
12 Replies
RParker
Immortal
Immortal

This is 100% no doubt a permissions issue.

You have to ENABLE root access and make sure the share AND the file folder has access for that mount.

And also enable the firewall on the host to allow outgoing smb connections.

0 Kudos
ingsamsam
Contributor
Contributor

This is 100% no doubt a permissions issue.

You have to ENABLE root access and make sure the share AND the file folder has access for that mount.

And also enable the firewall on the host to allow outgoing smb connections

Thanks Rparker,

enable root access to what ? how can i do that? ( I m new in this)

for the share I gived everyone full access. ( at windows level). should I do something else?

thanks

0 Kudos
RParker
Immortal
Immortal

enable root access to what ? how can i do that? ( I m new in this)

Ah ok, sorry. Well what is your target? I assume NFS. Your Windows folder should be enabled for everyone or anonymous to allow r/w as appropriate. Then the share should also be enable for r/w if you need it for VM's. Root is done from NFS wizard, but it requires a nis server for root / user translations, which means you have to install it on the domain controller so it can link the two.

Then in security profile for your ESX host did you enable SMB client? If you don't it won't even let you try, because the firewall is blocking it. (That may be the whole issue)

0 Kudos
ingsamsam
Contributor
Contributor

smb client was already enabled ( throught security profile)

should go throught the domaine controller ? ( in my case, it is litle bit dificult because our domaine controller is managed in an other countries)

how can enable Root from nfs wizard?

Thanks

0 Kudos
J1mbo
Virtuoso
Virtuoso

Is that a broadcast address or are you using VLSM?

0 Kudos
ingsamsam
Contributor
Contributor

Broadcast

0 Kudos
J1mbo
Virtuoso
Virtuoso

so why is it broadcasting...., can't resolve the host name maybe?

0 Kudos
ingsamsam
Contributor
Contributor

the adress 192.168.2.255 is the broadcast. but even by using the ip adress I get the same error.

0 Kudos
TomHowarth
Leadership
Leadership

Have you enabled the SMBClient in the Firewall

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

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
0 Kudos
DSTAVERT
Immortal
Immortal

If this is ESXi then there is no way to mount SMB shares. If this is ESX then this is in the wrong forum.

-- David -- VMware Communities Moderator
0 Kudos
AndreTheGiant
Immortal
Immortal

If you do:

ping server1

do you resolv the name?

Try to use //ServerIP/ShareName insted.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
ingsamsam
Contributor
Contributor

Andre, you are right

it was dns problem.

using Ip adress I can mount Windows shares without any problem.

thxs every body

0 Kudos