If you’re like most people, you use a virtual machine to run different versions of Windows or Linux on your computer. But what if you want to share a folder between different virtual machines? In this article, we’ll show you how to access shared folders in a virtual machine running Ubuntu 11.04 using the VirtualBox software. First, open VirtualBox and create a new virtual machine. In the New Virtual Machine window, select Ubuntu 11.04 as the operating system and click Next. In the Select Hard Drive window, click the Browse button and select your hard drive where you want to install Ubuntu. Click Next and name your virtual machine Ubuntu 11.04 VM. Click Finish to create your virtual machine. Now we’ll configure VirtualBox so that it can access our shared folder in our host computer. In the main VirtualBox window, click the Settings button and select Network from the list of options on the left side of the window. Under “Network Connections,” click Add Connection and select Hostname from the list of options on the right side of the window (Figure 1). Type in your hostname (for example, mycomputer) and press Enter to connect to it (Figure 2). The next step is to configure our guest computer’s network settings so that it can access our shared folder on our host computer (Figure 3). Under “Host-Only Networks,” make sure that Enable Host-Only Networks is checked and type in your hostname again (for example, mycomputer). Click OK to close all windows and return to VirtualBox’s main window. Now we’ll add our shared folder as an image file for our guest computer (Figure 4). To do this, under Images in VirtualBox’s main window, click New Image File… and browse for your shared folder (Figure 5). Make sure that Use As Image File is checked and press Enter to create your image file (.vdi) ..


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.

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.

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.

On the Users Settings dialog box, click Manage Groups.

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

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.

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

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

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.

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.