5

I set a shared folder between my Ubuntu VM (on VirtualBox) and Windows 7 host machine correctly. Now I have no idead how to access the shared folder from my VM. Any idea ?

I tried the solution one could understand as shown on this picture. Each time I type the password of the host machine I got prompted to type it again and again:

enter image description here

1
  • This page is out of date and should be deleted. It applies to outdated versions of Virtual-box and Ubuntu. But, like lots of old info it's at the top of Google results. For version Ubuntu 14.04 this works: Mount VirtualBox shared folder on Ubuntu or Linux guest – user525126 Mar 31 '16 at 13:45
5

If you are facing trouble in accessing your shared folder, you can try following.

First install Guest Additions.

  • After installing Guest Addition, go to Devices -> Shared Folder form VirtualBox's menu and add you folder.
  • Now make a directory using sudo mkdir /media/windows. This directory will be used as mount point of shared folder.
  • Once mount point has been created, mount your folder using sudo mount -t vboxsf <folder_name> /media/windows.

It will mount your folder in /media/windows.

If this method works perfectly add the last command in /etc/init.d/rc.local file.

2
  • It says /sbin/mount.vboxsf mounting failed with the error: 'Protocol error' – user284234 Aug 19 '14 at 15:25
  • Users in a guest Ubuntu must be in the group vboxsf to be able to access shares. – g_p Aug 19 '14 at 16:11
0

In fact, I just typed the wrong username to my Windows 7 host machine. Here is the proof that I succeeded to access to the shared folder:

enter image description here

1
  • I'm curious if you've heard of vagrant. It's a way to use virtualbox and setup the shared folders seamlessly. – Erik Aug 20 '14 at 6:30