map network drive ubuntu shared folder in windows XP

Discussions about using Linux guests in VirtualBox.
Post Reply
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

map network drive ubuntu shared folder in windows XP

Post by chidge »

Hi all

I want to map a shared folder from my Guest Ubuntu Virtual box in my host windows XP

I have followed the advice given here https://help.ubuntu.com/9.10/internet/C ... hares.html but cannot map the shared folder in Ubuntu in windows XP.

When broswing after clicking tools>map network drive (in a folder in XP) I can see my Ubuntu VM in WORKGROUP but no shared folders.

In my Guest Ubuntu I have shared the folder in question.

I have had a really good look around on Google but no joy at all.

The aim is to be able to map the shared folder in Ubuntu to XP so I can work with the files on XP but open them from the shared folder in Ubuntu.

Any help/tutorials or ideas would be hugely appreciated.

thanks in advance
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: map network drive ubuntu shared folder in windows XP

Post by vbox4me2 »

Samba installed ? have you tried a 'net use' from xp ?
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

yup samba is installed latest version

and

net use \\servername gives me

"System error 53 has occured.
The network path was not found"
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: map network drive ubuntu shared folder in windows XP

Post by vbox4me2 »

Its usually:
net use s: \\ip_address\share_name /user:username_on_remote_machine
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

Thanks with that I get:

System error 1326 has occured
Logon failure: unknown user name or bad password


and thats using the user I am logged in with on Ubuntu
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

ok so I go into Ubuntu terminal

shares-admin

add in a new fresh folder

click close

this message appears in the terminal "(shares-admin:2254): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed"

then I go to XP terminal type:

net use s: \\ip\folder /user:user_name

I then get the message
"The password or user name is invalid for \\ip\folder"

I enter the password and then it says

"System error 1326 has occured
Login failure: unknown user name or bad password"
I have tried my login username and password and my samba one - no joy with either
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

ok I have googled all over about this and tried various things - i have also setup anoher non admin account enabled sharing files and this doesnt work.

Rather frustrating! as this is meant to simply work?
oilblue
Posts: 2
Joined: 26. Feb 2011, 12:27
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows

Re: map network drive ubuntu shared folder in windows XP

Post by oilblue »

Why not share a host folder with a guest than the other way around--see Howtos and Tutorials < Linux Guests < HOWTO: Use Shared Folders

Sharing a guest folder brings other variables into play, like the network mode. Default is NAT, which isn't very helpful for host to guest comms. Bridged or Host-only should work better. Check the manual for more details on those types.

Hope that helps.
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

thanks- just tried that and get the error

" mounting failed with the error: Protocol error"
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: map network drive ubuntu shared folder in windows XP

Post by vbox4me2 »

Do you have (XP)file and print sharing installed and the shared symbol on the shared folder has appeared? NAT or Bridge mode for the Guest? for XP if you leave everything default it always works out of the box.
Ea. some videos about it http://www.google.nl/search?hl=nl&sourc ... =&aql=&oq=
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

yes folder is shared (with the little hand)

folder location is

d:/development/www

I then go into the guest Ubuntu and type

sudo mount -t vboxsf www /webdev

as I would like it to be mounted in my folder /webdev
I then get the error:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

and Im nat on the guest
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: map network drive ubuntu shared folder in windows XP

Post by vbox4me2 »

Ah, you are mixing real samba sharing with VBox sharing, they are not the same, for VBox sharing you also need the Guest additions.
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

guest additions is installed
chidge
Posts: 10
Joined: 24. Feb 2011, 21:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 10.04 LTS

Re: map network drive ubuntu shared folder in windows XP

Post by chidge »

ok after pressing the help button on the shared folders pop up (devices>shared folders) and searching for "shared folders"

I have found out that if I share a folder here and click auto mount then it is automatically added to /media/sf_shared_folder_name

I have had to change my user to the group vboxsf - after a reboot (not a restart) I can now interact with this folder as intended.

Hopefully the above may help someone else in the future if they are also struggling!

Thank you everyone for all your help
Post Reply