Accessing Shared Folder in VirtualBox with Ubuntu Guest

we have shown you how to access shared folder in VirtualBox with Linux host and Windows guest. If you want to access shared folder in Ubuntu guest (running Ubuntu as virtual machine), here is how you can do so.

1. In VirtualBox, select the Ubuntu VM and go to “Settings -> Shared Folders”. Select the local folder that you want to share with the Linux VM.

virtualbox-shared-folder

2. Boot into the Ubuntu VM. Open the file manager and navigate to the “/media” folder. You should see the shared folder with a “sf_” prefix.

virtualbox-shared-folder-in-vm

3. Now when you try to access it, it will give you a “you do not have the permission necessary to view the contents of…” error. The trick to fix this is to add yourself to the “vboxsf” group.

Open a terminal and type:

sudo usermod -a -G vboxsf username

Replace “username” with your login username.

4. Restart the Ubuntu VM. This time, you should be able to access the shared folder.

Do you like what you read here?

Receive the latest update in your inbox.

Or connect with us: