Page 1 of 1

[Solved] Shared folders, network res-Win guest-Linux host

Posted: 5. Sep 2009, 22:58
by supervinx
Hi to everyone ...

VBOX 3.0.4 on Ubuntu Linux 9.10 AMD64 (Dual Centrino notebook), everything updated.
WinXP 32 guest.
I set up the shared folder, it's listed in the netwok resources/VirtualBox shared folders, but it's inaccessible ...
net view / net use gives server not found.
I reinstalled GuestAddition and nothing ...

So I shared a folder on my host machine with samba, and it's accessible in the Microsoft Network ... but ...
If my PC is disconnected from the physic network (LAN, ADSL) or from the GPRS modem, I have no more the virtual network ... host and guest can't comunicate, no ping, no telnet ...
There's a way to mantain active the network when the cable/modem is disconnected ?
Thanks

Re: Shared folders, network resources-Windows guest- Linux host

Posted: 5. Sep 2009, 23:06
by Perryg
Sure it is called host-only. You can setup an additional adapter as host-only and be able to communicate with the host<>guest.

Re: Shared folders, network resources-Windows guest- Linux host

Posted: 5. Sep 2009, 23:30
by supervinx
The second part has been resolved ...
I noticed, with ifconfig, that only lo and eth0 were listed as interfaces.
So I issued sudo ifconfig vboxnet0 10.0.0.2 up and now I can see the shared folders I created with samba on Linux host from the WinXP guest.
But I still can't see the shared folders created by Vbox (those listed \\VBOXSVR\name-of-the-share)
This don't seem to be host-related ... the PCLinuxOS guest sees correctly both samba shares and VBox shares.
I noticed that Linux hosts, when connecting to VBox shared folders (as for samba shares) ask for autentication (user and pwd) while the WinXP host fails without asking nothing ...

Re: Shared folders, network resources-Windows guest- Linux host

Posted: 5. Sep 2009, 23:48
by Perryg
But I still can't see the shared folders created by Vbox (those listed \\VBOXSVR\name-of-the-share)
These would be setup from the command line in Windows as shown below

Code: Select all

net use x: \\vboxsvr\<sharename> -p
replace <sharename> with the name you used for the share. Remember no spaces and no illegal characters.
The -p makes the mount persistent and you should see them in the file manager after the mount.

[Solved] Shared folders, network res-Windows guest-Linux hos

Posted: 6. Sep 2009, 00:01
by supervinx
I issued the command
net use x: \\vboxsvr\shared (with or without -p)
and from the gui, also, I right-clicked on the \\VBOXSVR\shared item, setting login as another user, inserting the correct usr/pwd.
The command is correctly processed but, when in the explorer I click on the drive, I get
x: refers to a resource not available (I'm translating ... sorry) ... blah, blah, blah
From the cmdline ... dir x: ... cannot find the specified path ... where is the problem ?

BTW, I could easily ignore it ... I can transfer data through an USB device or samba shares ... but for the sake of completessness

** SOLVED **
I removed all the shared folders, restarted vbox and the machine, recreated the shares, all ok !
I thought about complex solution ... not the easy one ...

What happened ?