Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-28-2009, 10:22 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 29

Rep: Reputation: 4
Mounting VMware guest (WinXP) outside Linux host

I am running VMware workstation on a Linux host and WinXP guest using NAT. I have shared a folder on WinXP, and I am able to mount it on the linux host with

mount -t smbfs -o username=Administrator,password=mypasswd // /mnt/tmp

This works fine. However, I want to mount the same folder from a different linux machine (not the host).

I added port forwarding in /etc/vmware/vmnet8/nat/nat.conf:
#445 =

If I run:
mount -t smbfs -o username=Administrator,password=mypasswd //external_ip_number/Shared /mnt/tmp

I am getting
mount error 112 = Host is down
Refer to the mount.cifs(8) manual page ( mount.cifs)

It doesn't work even if I try the above command from the linux host itself. It only works if I use the internal IP number. I suspect vmware is not forwarding port 445 but I am not sure how to verify it.

I am not running smbd on the linux host, in case that make any difference. I didn't think that was required because the server is really on the WinXP and the linux is just a client.
Old 07-28-2009, 10:35 PM   #2
LQ Newbie
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
I've never played with VMWare so I don't know much about how you configure it.

But what I can see is that you got a # before 445 =
What happends if you remove it?

I would've used iptables to forward the port.
Maybe something like this:
iptables -t nat -A PREROUTING -i <ethX> -p tcp --destination-port 445 -j DNAT --to-destination
iptables -A FORWARD -i <ethX> -o <vmX> -p tcp --destination-port 445 -j ACCEPT

Change <ethX> to the the NIC you are using, ie: eth0.
Change <vmX> to the vmware bridge or tap you are using. I have no idea if this will work.

- Simon
Old 07-28-2009, 11:37 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 29

Original Poster
Rep: Reputation: 4
Oops, the # in front of 445 isn't really there. I commented that line it out briefly during tests. It actually is like this:

445 =
Old 07-28-2009, 11:45 PM   #4
LQ Newbie
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
Try my other idea.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 12:20 AM
vmware-server: host linux, guest winxp, usb mouse doesn't work hedpe Linux - Software 5 09-08-2008 04:41 AM
Linux host + VMWare + WinXP guest? Help/Thoughts please? riffin-rich Linux - Newbie 6 04-12-2008 08:56 PM
Why I can't ping winxp host form redhat linux guest in VMWare Jason Bao Linux - Newbie 4 09-09-2006 06:56 AM
VMWare WinXP host Linux guest Swift&Smart Linux - Software 10 04-28-2004 12:54 AM

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration