How to mount virtualbox shared folder on Ubuntu server 10.04 + GUI/sbin/mount.vboxsf mouning failed with error: no such device
Solution 1
i've found out that the kernel version and the kernel headers version were different.I got latest kernel and kernel headers from synapic and rebuilt the Guest addition.works fine.thanks for at least reading :D
Solution 2
On Ubuntu, I still couldn't get it to mount even after installing the guest additions. These two commands fixed it for me:
apt-get install dkms
/etc/init.d/vboxadd setup
Good luck.
Solution 3
The following command worked for me -
modprobe -a vboxguest vboxsf vboxvideo
I am unsure but I think this uses the VirtualBox shared folders kernel module to redetect the available share. Credit to the following link -
VirtualBox: mount.vboxsf: mounting failed with the error: No such device
Solution 4
Some important detail. Before installing VirtualBox guest additions, ensure you've done this:
sudo apt-get install make gcc
Solution 5
I solved this problem by installing the guest additions from the ubuntu repository.
Related videos on Youtube
black sensei
Updated on July 09, 2022Comments
-
black sensei almost 2 years
i'm new to this forum but i've been a occasional vbox user. I had windows 7 host and ubuntu 9.10 guest which works fine with vboxadditions installed, share folder and everything perfect. Now for some simulations i needed to have the ubuntu server 10.04 intall with x-window. what i did and so far so good.
now the problem i'm having now is that for the server i seem not to be able to mount a share folder.following the same process :
-install dkms
-update
-upgrade
-mount the vboxadditions iso in the host virtual drive and have it mounted in the guest as well
-install vboxadditions (sudo sh ./VBoxLinuxAdditions-x86.run)
-restart the guest os
- created ubuntu_share folder under /media/ubuntu_shareany time i'm trying to mount the folder ubuntu_share on my drive D (D:/Ubuntu_Share) with this command :
mount -t vboxsf ubuntu_share /media/ubuntu_share
i always get :
/sbin/mount.vboxsf mouning failed with error: no such device locate mount.vboxsf output this: /opt/VBoxGuestAdditions-3.2.6/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf
is there any problem with ubuntu server 10.04? or i'm just missing the mark somewhere? thanks for reading this and helping me out.
-
glerYbo almost 8 yearsPossible duplicate of VirtualBox: mount.vboxsf: mounting failed with the error: No such device
-
-
black sensei almost 14 yearsi think i got this done with same name for folder and shared folder on ubuntu 9.10 desktop
-
James A Wilson over 13 yearsthank you. I used this same answer to solve the same error message I started getting after updating the Ubuntu guest OS kernel (via auto-update). A simple matter of re-running "sudo ./VBoxLinuxAdditions-x86.run".
-
Alexis Wilke over 10 yearsIn my case it looks like those extensions are not compatible with the 32bit 13.10... Too bad. But the compile generates errors.
-
OozeMeister about 10 yearsTo install the headers:
sudo apt-get install linux-headers-$(uname -r)
-
IsaacS almost 10 years+1. It's worth noting that the suggested way here is available when you installed
Guest Additions
viaISO
(multiple ways of how to install it is well elaborated here askubuntu.com/questions/22743/…). -
jalanb over 8 yearsThe
modprobe
command also worked for me (CentOS 7 guest on a Windows 7 host) -
emsr over 5 yearsMore recently, this works: sudo /etc/init.d/virtualbox-guest-utils restart