VMware Cloud Community
cybernav
Contributor
Contributor

Mounting external HDD using mount -t help

Hi i am new to this site and would like to post my first question

I am using ESX 3.5 for my virtual machines, I am tying the mount a HDD to restore a VM I use the following command:

#mount -t smbfs //192.168.23.1/june23 /smbshare -o username=administrator

the reply I get is

error connecting to 192.168.23.1 (connection refused)

14268 connection to 192.168.23.1 failed

SMB connection failed

the number 14268 is different on every attempt

I have used this before but now its not working is this a windows thing?

Reply
0 Kudos
6 Replies
Texiwill
Leadership
Leadership

Hello,

Moved to ESx 3.5 forum.

#mount -t smbfs //192.168.23.1/june23 /smbshare -o username=administrator

I have used this before but now its not working is this a windows thing?

Most likely it is, or ESX is no longer allowing smb out..... To allow use:

esxcfg-firewall -e smbClient

After that look on the Windows host for errors, perhaps june23 is not a proper sharename.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
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
cybernav
Contributor
Contributor

Hi i have checked #esxcfg-firewall -e smbClient

I queried it #esxcfg-firewall -q smbClient all ok the share is correct

I think it could be the management console but im not sure what to look for?

Reply
0 Kudos
Cooldude09
Commander
Commander

Is the Samba server working fine...use testparm to see if it is working fine or not....also on esx box do..service iptables stop

Regards

Anil

Save the planet, Go Green

if you found my answer to be useful, feel free to mark it as Helpful or Correct.

If U find my answer useful, feel free to give points by clicking Helpful or Correct.

Subscribe yourself at walkonblock.com

Lightbulb
Virtuoso
Virtuoso

IF the SMB share is on a Windows system check if that system has Windows Firewall turned on. If it is on Linux/Unix system running SAMBA make sure that there is not a host based firewall in place on that system.

Reply
0 Kudos
americhanac
Contributor
Contributor

I had the same problem.

Configure the firewall to allow the connections for Netbios - port 135 and probably 139.

I am still in the testing phase of ESX so i just enable all incming and all outgoing.

#esxcfg-firewall allowOutgoing

#esxcfg-firewall allowIncoming

Hope this helps!

Reply
0 Kudos
cybernav
Contributor
Contributor

Thankyou all for your advice

I used the service iptables stop command to flush the firewall suggested by and removed the mounted.txt file, its all working.

I can relax now

I have an other question, because I couldn't mount the HDD the backups were stored on the host.

How do I remove or move the backups to the external HDD to reclaim valuable disk space.

I have tried rmdir and rm with no avail

Reply
0 Kudos