Ubuntu – mount gives unknown filesystem type ‘vboxsf’

filesystemsmountUbuntuvirtualbox

I'm getting an error message mount: unknown filesystem type 'vboxsf' when trying to mount a shared folder on my guest Ubuntu machine.

I have a Windows 7 machine running 4.1.22V Oracle VM VirtualBox. I set up a shared folder (named shared) in the VirtualBox Manager and on the guest 10.04 Ububtu ran the commands:

mike@mike-laptop: ~$ mkdir win_share
mike@mike-laptop: ~$ sudo mount -t vboxsf shared win_share/
mount: unknown filesystem type 'vboxsf'

What's weird is with the exact same setup, but with my OpenSUSE 12.1 image, the same steps work. Any ideas why Ubuntu can't find the 'vboxsf' filessytem and what I can do about that?

EDIT
Based on the suggestion I got, I thought I would add there's no "menus" on the guest's virtual box window. Clicking on the "icon" in the top left simply gives "move", "max", "min", etc.

enter image description here

Best Answer

Try installing Virtualbox Guest Additions, it should take care of it.

  1. Start the Guest OS (UBUNTU)
  2. Click Devices in the top menu-bar (of the VBOX window housing Ubuntu)
  3. Click Install Guest Additions

VBox Install Devices Window

That should prompt the download of Guest Additions and may open up the nautilus Window when the download is finished.

At that point, if it does not install automagically - you may need to open a terminal and navigate to that folder and execute the bash with

sudo ./whateverTheArchitectureTypeYouHaveIs.sh

It offered to do it automatically for me.

VBOX Guest Additions Auto-Install Popup (note, it does require super user permissions in the guest os.)

Edit

Here is a windows screenshot (Version 4.2.4r81684 - however, I have seen the option since I can remember with VBox. Looks like others do not have menus either around the web, I'd like to disable mine for sure.), looks basically the same. You should be able to hit the Host+D keys to install them (sorry for overlooking that before). Host, by default, is Right Control.

Host + D