Wednesday Feb 20, 2008

Although Virtual Box provided an option of shared folder, it is not straightforward to use this shared folder. It took me some searches on VirtualBox forum to find it how Ubuntu guest OS can access the shared Folder on WinXP host OS.

1. Add folder(s) to shared folder menu.

 

It is important to write down the folder names at this step. 

 

2. Boot guest system, open a terminal and type in the following commands
 

sudo mkdir /mnt/tao_xp

sudo mount.vboxsf TAO /mnt/tao_xp

The shared folder would be accessible now: read & write!

Reference:

[1] http://forums.virtualbox.org/viewtopic.php?t=3201&highlight=share+folder

[2] http://virtualdebian.blogspot.com/2007/12/sharing-folders-with-virtualbox.html

Comments:

Thank you very much !!!

Posted by NGUYEN Van Tien on June 18, 2008 at 09:15 PM EST #

You have no idea how much of a help you have been. There are a zillion posts on how to do it for Ubuntu as the host os but not for ubuntu as guest os. Thanks a ton!! You are a lifesaver!!

Posted by RB on July 11, 2008 at 11:12 PM EST #

Your a Legend, thanks, simple to the point how-to instructions that worked first time. Not like the help in virtual box.

Cheers!

Posted by MonkeyMan on July 25, 2008 at 02:34 AM EST #

My guest OS is OpenSolaris, it's seems do not support . vbboxsf.:

bash-3.2# mount . vboxsf win_share /mnt/share/
Usage:
mount [-v | -p]
mount [-F FSType] [-V] [current_options] [-o specific_options]
{special | mount_point}
mount [-F FSType] [-V] [current_options] [-o specific_options]
special mount_point
mount -a [-F FSType ] [-V] [current_options] [-o specific_options]
[mount_point ...]

Posted by xue on October 18, 2008 at 01:28 AM EST #

You should remove the spaces between mount, ., and vboxsf. If that still doesn't work, this should work:
mount -t vboxsf win_share /mnt/share

Make sure the name of the folder and the share are not equal, otherwise you get a protocol error

Posted by Martin on November 04, 2008 at 08:44 PM EST #

it still can not work.
Guest OS is OpenSolaris, it's seems do not support . vbboxsf.
Please check virtualbox manual. Share fored do not support on guest OS Opensolaris currently.

Posted by xue on November 05, 2008 at 03:38 PM EST #

have you installed the gues-os additions?
only i noticed i had to have those installed before i could use mount.vboxsf .

Posted by tommie on November 06, 2008 at 05:45 AM EST #

thanks for this, i have the shared folder successfully working. however I would like to have the folder enabled when I start the machine. so I don't have to run the second command every time I want to share a file.

is there some startup file I can edit? and is there a way around the need for an admin password as implied by the sudo?

thanks!

Posted by Richard on November 22, 2008 at 12:56 AM EST #

@Richard: You can see all the startup mounts in /etc/fstab

@Original Post: Thanks for your post. It is indeed very rare to find such a search result with Ubuntu as guest and XP as host. It is very handy! I've don't have the Shared folders working: The mount.vboxfs gives the following error-message: command not found. I also cannot find this command in the repositories... What am I forgetting? Can anybody help?

Posted by Joren on November 30, 2008 at 09:26 AM EST #

Richard: You can see all the startup mounts in /etc/fstab

Original Post: Thanks for your post. It is indeed very rare to find such a search result with Ubuntu as guest and XP as host. It is very handy! I've don't have the Shared folders working: The mount.vboxfs gives the following error-message: command not found. I also cannot find this command in the repositories... What am I forgetting? Can anybody help?

Posted by Joren on November 30, 2008 at 09:27 AM EST #

Brilliant.
Many Thanks.

Posted by Job on January 16, 2009 at 04:39 AM EST #

Thank you VERY MUCH for this. It's strange.. the entire time I was thinking that the host starts up some sort of virtual samba server for the guest.

Again thanks :D

Posted by Mohammed Khoory on February 15, 2009 at 05:39 AM EST #

Hi
I'm kind of new to virtualization and don't know how to set up shared folders...
I have Vista Ultimate as a Host and Ubuntu as guest OS.
I tried exchanging "xp" for "vista" but that doesn't seem to work...
If anybody know how to share the folders I'd be truly gratefull

Posted by Simon on March 27, 2009 at 06:30 AM EST #

I followed your instructions but receive the following error:

/sbin/mount.vboxsf: mounting failed with the error: No such device

Posted by Neil Tomlinson on April 10, 2009 at 11:44 PM EST #

Sorry, I forgot to add; any help would be much appreciated, thanks in advance.

Posted by Neil Tomlinson on April 10, 2009 at 11:45 PM EST #

I figured it out...
I first created a directory as mentioned above using:
cd /media
sudo mkdir shared
and then just this line
Sudo mount -t vboxsf music /media/shared

where "music" is the name of folder specified in Virtualbox and "shared" is the folder you created...
I hop this helps....

Posted by Simon Hanna on April 11, 2009 at 05:02 AM EST #

Awesome. Many thanks.

Posted by Craig Smith on May 06, 2009 at 03:51 PM EST #

THANK YOU !!

GREAT HELP for the starters

Posted by GEORGE BAXTER on May 07, 2009 at 05:58 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed