Search code examples
macoscentosvirtual-machinevirtualbox

VirtualBox: mount.vboxsf: mounting failed with the error: No such device


I'm using VirtualBox with OS X as host and CentOS on the guest VM.

In OS X I created folder myfolder, added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing:

sudo mount -t vboxsf myfolder /home/user/myfolder

and have output:

/sbin/mount.vboxsf: mounting failed with the error: No such device

What I'm doing wrong?

UPDATED:

Guest Additions installed.


Solution

  • This was resolved by:

    yum install gcc kernel-devel make
    

    workaround is here: https://gist.github.com/larsar/1687725