Tanjir's IBlog » Page 'Virtualbox: Shared directory- “unknown filesystem type vboxsf”'

Virtualbox: Shared directory- “unknown filesystem type vboxsf”

I got the error message “unknown filesystem type vboxsf”  while I was trying to share a directory from my Windows XP host to Ubuntu Interpid Ibex (8.10). In almost every where it said to install Guest additions. After spending few hours I found the solution.  So decided to share with you for reference.

Step 1: Install host additions (usually you install them when you install virualbox).

Step 2: If you have created a new machine, then create a shared directory/folder. (From the machine’s Devices menu)

Step 3: From machine’s Devices menu, select “Install guest additions”

Step 4: Now in the guest (Ubuntu Ibex Interpid for my case), fire up a console and type the following:

1
sudo /media/cdrom/VBoxLinuxAdditions-x86.run

It should install the additions.

Step 5: Now create a directory where you want to mount your shared drive. For example I have created shared directory under mount using following:

1
2
3
#cd /media

#sudo mkdir shared

Step 6: Mount using following command:

1
sudo mount -t vboxsf shared /media/shared

Note that shared was the name of the directory I shared from virtual box and /media/shared is the directory where I wanted to mount my shared directory.

Now you should be able to see the files under shared directory in both system.

Enjoy!

29 comments to “Virtualbox: Shared directory- “unknown filesystem type vboxsf””

  1. thank you this was helpful. I followed all the steps and got the following error
    /sbin/mount.vboxsf: mounting failed with the error: No such device

  2. try running this as root user: “modprobe vboxvfs” then follow step 6.

  3. it is a crap. it does not work.

  4. Andrius Burlega@ how far have you gone? or you got no clue what you are trying to do?

  5. If mount works from / , but does not works from /export/home/andrius, is it not an idiocity?

  6. “sbin/modprobe vboxvfs” , Step 6
    Then it works

  7. This is what worked for me:

    sudo /sbin/mount.vboxfs

  8. Doing a

    1
    sudo modprobe vboxvfs

    worked for me. Careful not to forget the v in vboxvfs.

  9. I am new to VirtualBox and just exploring. I am running Ubuntu 9.04 as the Host Machine, and have successfully setup guest machines on my computer and on a USB drive. I have not been successful at finding a way to share. I couldn’t do the first suggestion, since I don’t know where to get the guest additions. I have tried all of the other suggestions and all end up with “unknown filesystem type vbox”. Still searching.

  10. The filesystem type name seems to have changed in recent editions of Virtualbox, if a type of vboxfs does not work for you then try vboxsf, this worked for me in 3.0.10, e.g.

    mount -t vboxsf sharename mountpoint

  11. Thanks a lot! It worked

  12. [...] http://www.tanjir.net/2009/01/virtualbox-shared-directory/ Possibly related posts: (automatically generated)AJAX and PHP Building Responsive Web Applications by Cristian Darie, Bogdan…Essential downloads [...]

  13. [...] of shared folders using which you can seamlessly move files from the host box to the guest box. Setting this up was not child’s play, but once it was done it saved me tons of donkey work. In VMware, I had to use Samba to get this [...]

  14. Thanks a lot. Big help.

  15. Hi Man,
    Thanks a lot. After a long struggle for 3 hours finally saw ur blog. It worked! Grt Help. Bye

  16. Thanks a lot. Very helpful.

  17. My ubuntu is not configured to build the kernel… do you know what I need to install to be able to build a kernel?

    Thanks,
    Wayne

  18. try vboxsf rather than vboxfs when mounting. It worked for me.

  19. Hi i almost had it working until the final step. When i try mounting it i get a protocol error. I am a noob programmer, so i have no idea what i did wrong. Please help.

  20. I realised the folder was no longer being shared
    I continued trying, i tried the command
    mount -t vboxsf (filename) /
    someone above mentioned using the slash
    i didnt get an error message
    i try again with the commands and i get a error saying invalid argument
    my computers name is overlord, the command i used was
    mount -t vboxsf Procedural_Programming /home/overlord/Procedural_Programming
    I tried all the solutions above.

  21. Hi,
    I was able to successfully mount the shared folder.
    My Environment:
    PC running windows 7 OS (Host)
    Virtual box 3.1.x
    UBUNTU 9.x (running as guest)
    Oracle 11gR1 running on UBUNTU

    I needed the share for installing oracle, whose binaries were downloaded into windows :)
    Steps:

    On the Virtual Box Main window, select the Details tab (right side).
    In this, choose the last option “Shared Folders”
    Provide the full windows path of the folder you wnat to share and assign a nickname, say, ‘winshare’
    Now fire up ubuntu
    From the Device menu on the Main Virtual Box window, select “install guest additions” (this will mount a cdrom in ubuntu)
    From the ubuntu guest, run /media/cdrom0/VBoxLinuxAdditions-x86.run
    this will install the “vboxsf” type of filesystem.
    sudo mkdir /media/winmount
    sudo mount -t vboxsf winshare /media/winmount
    VOILA! You are done!!!

    Hope This helps:)
    -Anand

  22. Also note that you need to have your guest system to allow compiling kernel modules. This typically means having headers and dev tools installed. It’s where I was falling short.

  23. Try installing the below package:
    virtualbox-ose-guest-utils

    sudo apt-get install virtualbox-ose-guest-utils

  24. you have just to exec sh autorun.sh to install vbox additions
    then sudo mount -t vboxsf winshare /media/winmount

  25. Step 3: From machine’s Devices menu, select “Install guest additions”
    This didn’t initially work for me on virtualbox-ose installed through Synaptic.
    (the iso file was missing)

    What finally did work:
    I ran synaptic on the guest (the virtual machine), and installed the virtual guest package there.
    After that, the other tips here worked well. i.e. in guest:

    sudo modprobe vboxvfs
    sudo mount -t vboxsf shared /mnt/shared

    BTW – The iso file eventually downloaded and I could mount it like originally described, but this took so long, I had the package installed by synaptic running first.

  26. Thanks a lot,you saved my day!

  27. Very intressting and informativ Post from you. I gonna try that by my own and i hope it will work proper right. I hope to see more of these Post in the future. Thank you

  28. Dear sir
    I have installed oracle linux 6 on virtual box and tried under root # mount -t vboxfs share /Myshare
    says unknown filesystem type ‘vboxfs’

    when tried for sudo modprobe vboxsf or vboxfs
    FATAL: Module vboxsf not not found

    Pls help

  29. Hi Guys, i was also facing the same error
    “/sbin/mount.vboxsf: mounting failed with the error: No such device”

    i have updated my guest additions, and restarted guest OS.
    It worked fine !!!!

Leave a comment

XHTML - You can use:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2008 Tanjir's IBlog is powered by WordPress