Linux VM network share to Windows - help!
Posted: 23. Feb 2013, 19:15
I’m trying to make a simple Samba share on my VirtualBox (v4.2.6) Linux Mint 14 VPC visible to the rest of my network, so I can map a Windows network drive letter to it, but I just can’t get it to work. I’m a newbie to Linux, and this is really basic – I must be doing something stupid. I've searched this forum, but don't understand half of what I'm reading. Can anybody please help me? All suggestions gratefully received.
So far (sorry about the length of this, but I wanted to include as much info as possible):
1) My home network consists of 2 Win 7 PCs: MESHSTUDY (the host), and DELLXPS8300. The Windows Workgroup name is CULTURE.
2) I’ve amended VirtualBox’s network settings (File/Preference/Network/’VirtualBox Host-Only Ethernet Adaptor’) to give it a static IP of 192.168.0.9, mask 255.255.255.0. This puts it in the same subnet as the Win 7 PCs. I’ve also disabled VB’s DHCP Server, hoping that this will mean VMs will talk to the DHCP server in my ADSL router. And an ifconfig shows that the VM is picking up the right subnet settings:
3) In the Linux VM’s own VB settings, I’ve amended Network to Bridged Adaptor, using the host’s “Realtek PCIe GBE Family Controller”
4) I can successfully ping both Win PCs from the VM. From the host PC, I can ping the VM:…which I assume means that the VB network refuses to pass on the ping to the VM, but the VM somehow responds anyway.
5) I have created a share on the VM called ‘john’, and this is what the VM reports:This isn’t perfect. Findsmb isn’t giving much info about the DELLXPS8300, and doesn’t show the host PC at all. Smbtree shows the ‘john’ share on the VM. I’ve used chmod 777 on all the files and folders in the share.
6) When I try and view the Network Map from the host PC, it shows JOHN-VIRTUALBOX, but does not fit it into the network map, stating ‘The following discovered device cannot be placed in the map.’ If I try and open JOHN-VIRTUALBOX, or try and map a drive to it, I get a Windows error:
This is mystifying me. Either Windows can see it, or it can’t. It seems to be saying I can see it, but I can’t find it.
Can anybody please help me?
Regards
John
So far (sorry about the length of this, but I wanted to include as much info as possible):
1) My home network consists of 2 Win 7 PCs: MESHSTUDY (the host), and DELLXPS8300. The Windows Workgroup name is CULTURE.
2) I’ve amended VirtualBox’s network settings (File/Preference/Network/’VirtualBox Host-Only Ethernet Adaptor’) to give it a static IP of 192.168.0.9, mask 255.255.255.0. This puts it in the same subnet as the Win 7 PCs. I’ve also disabled VB’s DHCP Server, hoping that this will mean VMs will talk to the DHCP server in my ADSL router. And an ifconfig shows that the VM is picking up the right subnet settings:
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
john@john-VirtualBox ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:81:a6:cf
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe81:a6cf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6800 errors:0 dropped:12 overruns:0 frame:0
TX packets:3988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6321662 (6.3 MB) TX bytes:476135 (476.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:197 errors:0 dropped:0 overruns:0 frame:0
TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21642 (21.6 KB) TX bytes:21642 (21.6 KB)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4) I can successfully ping both Win PCs from the VM. From the host PC, I can ping the VM:
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\john>ping 192.168.0.5
Pinging 192.168.0.5 with 32 bytes of data:
Reply from 192.168.0.9: Destination host unreachable.
Reply from 192.168.0.5: bytes=32 time<1ms TTL=64
Reply from 192.168.0.5: bytes=32 time<1ms TTL=64
Reply from 192.168.0.5: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.5:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5) I have created a share on the VM called ‘john’, and this is what the VM reports:
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
john@john-VirtualBox ~ $ net rap domain
Enter john's password:
Enumerating domains:
Domain name Server name of Browse Master
------------- ----------------------------
CULTURE
john@john-VirtualBox ~ $ findsmb
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.0.4 unknown nis name+[ CULTURE ]
john@john-VirtualBox ~ $ smbclient -L 192.168.0.5
Enter john's password:
Domain=[CULTURE] OS=[Unix] Server=[Samba 3.6.6]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (john-VirtualBox server (Samba, LinuxMint))
print$ Disk Printer Drivers
homes Disk Home Directories
Canon-iP4700-series Printer Canon iP4700 series
john Disk Home Directories
Domain=[CULTURE] OS=[Unix] Server=[Samba 3.6.6]
Server Comment
--------- -------
JOHN-VIRTUALBOX john-VirtualBox server (Samba, LinuxMint)
Workgroup Master
--------- -------
CULTURE
john@john-VirtualBox ~ $ smbtree
Enter john's password:
CULTURE
\\MESHSTUDY
\\MESHSTUDY\Users
\\MESHSTUDY\print$ Printer Drivers
\\MESHSTUDY\MeshDVD
\\MESHSTUDY\IPC$ Remote IPC
\\MESHSTUDY\Canon iP4700 series Canon iP4700 series
\\MESHSTUDY\C$ Default share
\\MESHSTUDY\ADMIN$ Remote Admin
\\JOHN-VIRTUALBOX john-VirtualBox server (Samba, LinuxMint)
\\JOHN-VIRTUALBOX\john Home Directories
\\JOHN-VIRTUALBOX\Canon-iP4700-series Canon iP4700 series
\\JOHN-VIRTUALBOX\homes Home Directories
\\JOHN-VIRTUALBOX\print$ Printer Drivers
\\JOHN-VIRTUALBOX\IPC$ IPC Service (john-VirtualBox server (Samba, LinuxMint))
\\DELLXPS8300
\\DELLXPS8300\Users
\\DELLXPS8300\IPC$ Remote IPC
\\DELLXPS8300\C$ Default share
\\DELLXPS8300\ADMIN$ Remote Admin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6) When I try and view the Network Map from the host PC, it shows JOHN-VIRTUALBOX, but does not fit it into the network map, stating ‘The following discovered device cannot be placed in the map.’ If I try and open JOHN-VIRTUALBOX, or try and map a drive to it, I get a Windows error:
Code: Select all
“Windows cannot access \\JOHN-VIRTUALBOX. Error code 0x80070035. The network path was not found.”Can anybody please help me?
Regards
John