LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-27-2011, 12:20 AM   #1
DrDwayne
Member
 
Registered: May 2010
Location: Wichita
Distribution: Ubuntu Debian
Posts: 157

Rep: Reputation: 4
Mapping Network drive through windows running on VMPlayer


Scenario:
Setup 1.

I have SAMBA running on a server.
This server is 100 percent linux.
All other computers accessing this server are windows machines.
I can go into Windows Networking and MAP a letter to the server.

With the above, I now can have a drive letter mapped to the server.
Everything works perfectly.

Setup 2.

I have SAMBA server running on a server.
This server is 100 percent Linux.
*Some* computers are LINUX computers running VMPlayer. VMPlayer is running Windows.

My problem lies in trying to map the Linux server inside the VMPlayer running Windows. I try to do a right click on networks and find the linux server, it doesnt exist. I tried mounting the server first, then loading up VMPlayer with windows. I still could not map or find the linux server.

I tried changing the wireless connection setup to attempt to go directly to the server, but to no avail.

How can I find (or map)on Windows XP running on VMPlayer the Linux Samba disk?
 
Old 10-28-2011, 09:24 AM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
I have (I think) a similar setup. I have Samba running on my Ubuntu 10.04 machine with Windows XP running as a VMWare virtual machine on the same physical machine. The key is for the Windows machine to be able to find the address of the Linux machine. This can be facilitated with a DNS or LDAP server etc. As I have only a simple network I have use the brute force approach.

The Linux physical machine has a fixed IP address reserved in my router. I edited the hosts file on the Windows virtual machine (located logically(?) under c:\windows\system32\drivers\etc) to contain the entry
Quote:
192.168.0.112 taylor12
taylor12 being the Linux physical machine.

A couple of suggestions...

From the Windows machine try to ping the Linux machine by name and IP address.
Try mapping the Samba share manually e.g.
Quote:
net use g: \\taylor12\data
And a couple more things to check...

Are the Windows machine and the Samba server in the same workgroup? I think this is necessary to be able to browse the network in search of shares although I generally know the location and name of the share I wish to connect to and it has been a long time since I did any Windows network administration.

There was a setting in Win NT (and perhaps XP) re. which machine was the master browser. Again a distant memory. Not sure how that impacts more modern Windows versions.

I am using a "bridged" network adapter on the VM settings. This way the VM gets an address from the router in the same subnet as the physical Linux machine on which it is running. I can look at the router and see the address of the VM and ping it from another machine (physical or virtual) on my network.

Ken
 
Old 10-28-2011, 09:54 AM   #3
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I echo Ken's suggestions.

I have a WinXP VM (running in VirtualBox but I don't think the networking issues are all that different). It's connected via NAT but it can ping the samba server (a separate physical machine on my home network) by hostname and by IP address. (Without a custom hosts file.) It, and all the machines, are on the same workgroup - I think this is important.

Windows Explorer > My Network Places > Entire Network > Microsoft Windows Network shows a list of workgroups (for me, one). Expanding this shows the servers and the other PCs. Expanding the server shows the shares, and I can map to a drive letter.

Be sure to allow at least 2 minutes - maybe longer - for network resources to appear in windows, especially ... but not only ... if an hourglass cursor shows.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping a windows network drive andy1974 Linux - Networking 8 02-01-2011 06:09 PM
windows question: how do I script network drive mapping w/ username/password? genmaicha General 2 07-24-2010 02:06 AM
Mapping a network drive mikepengelly Linux - Networking 1 08-31-2004 04:27 PM
Regarding Mapping to Network Drive ssnkumar Linux - General 3 06-18-2004 02:11 PM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:40 AM.

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