SEARCH

How-To Geek

Access Shared Folders in a VirtualBox Ubuntu 11.04 Virtual Machine

00_shared_folder_in_nautilus

Have you installed Ubuntu 11.04 as a virtual machine in VirtualBox but have had problems getting the Shared Folders feature to work? We were able to add a shared folder, but were unable to access it.

We found the secret to accessing shared folders in an Ubuntu 11.04 virtual machine in VirtualBox. VirtualBox adds a user group called “vboxsf” to the Ubuntu 11.04 virtual machine. Any user that needs to have access to shared folders defined for that virtual machine need to be a member of that group. This article shows you how to add a user to the vboxsf group.

Setting up shared folders in VirtualBox is fairly straightforward. Select Shared Folders from the Devices menu.

01_selecting_shared_folders_option

The Shared Folders screen on the Settings dialog box displays. Use the buttons on the right side to add folders from your host machine to the Folders List. Refer to the help in VirtualBox for more information about adding shared folders.

02_shared_folders_settings

Once you have added your shared folders in VirtualBox, you must add users in the Ubuntu 11.04 virtual machine to the vboxsf group created by VirtualBox. To do this, select Administration | Users and Groups from the System menu in the Ubuntu virtual machine.

03_selecting_users_and_groups

On the Users Settings dialog box, click Manage Groups.

04_clicking_manage_groups

The Groups settings dialog box displays. Scroll down in the list of groups and select the vboxsf group. Click Properties.

05_clicking_properties_for_group

On the Properties box for the vboxsf group, select the check boxes in the Group Members box for the users you want to add to the vboxsf group and click OK.

06_adding_user_to_group

To make this change, you must provide authentication. Enter your user account password in the Password edit box and click Authenticate.

07_authenticate_dialog

You are returned to the Groups settings dialog box. Click Close and then also click Close on the Users Settings dialog box.

08_closing_group_settings_dialog

Now, you should be able to access your shared folders in the /media/sf_Ubuntu_11.04 folder.

NOTE: The name of the folder inside the media folder that contains the shared folders in VirtualBox always starts with “sf_” and continues with the name of your virtual machine.

10_pasting_into_a_shared_folder

Remember to add any new users you add to your Ubuntu 11.04 virtual machine to the vboxsf group if you want them to be able to access the shared folders.

Lori Kaufman is a freelance technical writer who likes to write geeky how-to articles to help make people's lives easier through the use of technology. She loves watching and reading mysteries and is an avid Doctor Who fan.

  • Published 10/3/11

Comments (3)

  1. straydog

    Another way if there are only 1 user in the Linux guest system is to mount it on startup.

    *Put this line in /etc/init.d/rc.local

    sudo mount -t vboxsf shared /media/shared

    *Create a favorite link ‘shared’ from /media/shared.

  2. Praveen

    I am using Ubuntu 11.04 (Host and Guest) with VirtualBox from the Ubuntu repository. vboxsf was automatically created on the guest, I think this is because of the VirtualBox guest additions. I removed the vboxsf group and I was still able to access the shared folder.

    FYI…. I did add the following in /etc/fstab and the mount happened automatically on boot.

    mini /home/praveensripati/Shared vboxsf rw,gid=100,uid=1000,auto 0 0

  3. jasray

    Nice reminder–I remember having to do something like this awhile ago, but since it’s not so often I use the VM, I easily forget. Thanks!

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!