Sharing between Host and guest?

Discussions about using Linux guests in VirtualBox.
Post Reply
Jades
Posts: 4
Joined: 11. Nov 2010, 09:48
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mac OS X, Ubuntu, 7, XP

Sharing between Host and guest?

Post by Jades »

Well I have Linux Mint 9 (upgrading to 10) on my Windows 7 using VirtualBox.

I'm trying to share between my Windows C drive and Linux so I can have my music/photos/videos on Linux.
I've been trying but it doesn't work.
No error message pops up it just doesn't work.

But I have seen this in XP, is it only for Windows guest OS's?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Sharing between Host and guest?

Post by Perryg »

You need to read Chapter 4.3. Shared folders in your VirtualBox users manual.
HwyChld
Posts: 6
Joined: 11. Nov 2010, 17:50
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Puppy Linux

Re: Sharing between Host and guest?

Post by HwyChld »

You must have Guest additions installed. Assuming this has been done correctly go to the devices menu item and select the shared folders item. Click the folder add button and browse to the folder on the host that you want to share with the guest. Click the make permanent button and then OK. You should now have a folder with a name and the associated path in the Machine folders section. We now have told Virtual Box where the folder we are going to share is located on the host.

Next we need to make the guest able to see the share by mounting the device. Lets assume you named the folder VirtualShare in the preceding step and you want to mount it in a folder called host in your home directory on the guest.

Code: Select all

mount -t vboxsf VirtualShare ~/host
If you get a protocol error it is because the name you provided in the mount instruction did not match the name of the share as shown in the Shared folders dialog box when you click on Devices->Shared Folders...

To make this happen every time the guest is booted put the mount instruction in the rc.local script.
Jades
Posts: 4
Joined: 11. Nov 2010, 09:48
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mac OS X, Ubuntu, 7, XP

Re: Sharing between Host and guest?

Post by Jades »

Ok I will try that.
I have XP working with it on my Windows 7 host and my Windows XP host (for testing).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Sharing between Host and guest?

Post by Sasquatch »

In case you're having difficulties with the installation of the Guest Additions and the above instructions aren't working, you might want to check the Howto/Tutorial section and read my howto's on the subject.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply