Using VirtualBox Shared Folders With Ubuntu 12.04

Install Guest Additions
VirtualBox includes an easy to user shared folder option in the settings. It allows anyone to add a folder from the host computer and share it with the guest. All that is required is for the guest OS, in this case Ubuntu to have the Guest Additions installed. This can be done using the Devices > Install Guest Additions… menu options.

Shared folder settings
Any shared folders will appear in Ubuntu Precise Pangolin in /media diretory. The Folder Name option will be the name of the mount point prefixed with sf_.

VirtualBox Share In Ubuntu
On the guest Ubuntu side the permissions are very restrictive. It only allows root and a new group called vboxsf to access the mount point. For the user to access the shared folder, add the user to the group vboxsf:
sudo usermod -aG vboxsf [username]
where [username] should be replaced with the actual username. For example adding the user danny to the vboxsf group:
sudo usermod -aG vboxsf danny

After running the above it is necessary to log off and log back in for the changes to take place.

Setup Ubuntu Server on VirtualBox to use as a primary dev environment

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Virtualization and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *.

All comments must go through an approval and anti-spam process before appearing on the website. Please be patience and do not re-submit your comment if it does not appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.