Accessing files from WinXP host from Ubuntu guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
cswebgrl
Posts: 4
Joined: 9. Jun 2009, 01:56
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu

Accessing files from WinXP host from Ubuntu guest

Post by cswebgrl »

Hello.

I'm fairly new to the sysadmin world of Linux so I'm learning with VirtualBox running on a WinXP machine. I have Ubuntu 8.04 as the guest. I'd like to transfer files from WinXP to the Ubuntu guest and can't seem to figure out if it's possible and if it is, how to do this.

Can someone point me to a resource or provide instructions? I've Googled many things and have not found anything that works.

If it's not possible to do a direct file copy and paste what are some other options?

Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing files from WinXP host from Ubuntu guest

Post by Perryg »

Welcome to the forums,

You probably want to setup a shared folder in VBox. You can see how to do this here Forum FAQ - GA & Share

You might want to bookmark this too. Full of helpful tidbits.
cswebgrl
Posts: 4
Joined: 9. Jun 2009, 01:56
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Accessing files from WinXP host from Ubuntu guest

Post by cswebgrl »

Hi,

Thanks for your reply. Yes, I mounted the shares and can view them when I do ls -l in the directory. But I don't see them in my file browser and I can't figure out how to copy files from winxp to ubuntu.

Thanks.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing files from WinXP host from Ubuntu guest

Post by Perryg »

Where did you mount the shared folder? What was the exact mount statement that you used?
cswebgrl
Posts: 4
Joined: 9. Jun 2009, 01:56
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Accessing files from WinXP host from Ubuntu guest

Post by cswebgrl »

It's mounted in home/(user directory)

Here's what I used

sudo mount.vboxsf MyShare /MyShare
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing files from WinXP host from Ubuntu guest

Post by Perryg »

This is the command for mounting a folder in Ubuntu given what you sent. You probably should not use caps though it can cause problems.

Code: Select all

sudo mount -t vboxsf MyShare /home/<your user name>/MyShare
It is all explained here http://forums.virtualbox.org/viewtopic.php?f=3&t=15868
cswebgrl
Posts: 4
Joined: 9. Jun 2009, 01:56
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Accessing files from WinXP host from Ubuntu guest

Post by cswebgrl »

Thanks for the link. I followed that and it worked great!

Thanks so much for your time and help.
jaymaechtlen
Posts: 3
Joined: 7. Apr 2009, 18:36
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS Windows 7

Re: Accessing files from WinXP host from Ubuntu guest

Post by jaymaechtlen »

my previous post- browse local network from Linux guest - same result, different approach. Adding the bridged adapter let the guest see all shared resources on the local network, which included the host.
Of course, if you want only certain folders to be shared with that guest, then the bridged adapter might not be the way to go?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Accessing files from WinXP host from Ubuntu guest

Post by vbox4me2 »

Bridge is the way to go, you must see the Bridge as a switch with virtual unlimited ports.
Post Reply