Page 1 of 1

Solved: Error inserting vboxsf Invalid module format

Posted: 2. Aug 2010, 16:24
by petpsi
I'm trying to share folders between my host (sidux) and guest (debian). I installed the virtualbox-ose, extras and guest additions packages on my host and rebooted so the vbox modules were loaded. I started the guest, selected devices->install guest additions and ran VBoxLinuxAdditions-x86.run. I then rebooted the guest, but got the error message:

Code: Select all

Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!
I tried the following, but kept getting errors:

Code: Select all

>modprobe vboxsf
FATAL: Error inserting vboxsf (/lib/modules/2.6.32-trunk-686/misc/vboxsf.ko): Invalid module format

>modprobe vboxguest
FATAL: Error inserting vboxguest (/lib/modules/2.6.32-trunk-686/misc/vboxguest.ko): Invalid module format

> insmod /lib/modules/2.6.32-trunk-686/misc/vboxsf.ko
insmod: error inserting '/lib/modules/2.6.32-trunk-686/misc/vboxsf.ko': -1 Invalid module format

> insmod /lib/modules/2.6.32-trunk-686/misc/vboxguest.ko
insmod: error inserting '/lib/modules/2.6.32-trunk-686/misc/vboxguest.ko': -1 Invalid module format
The output of dmesg:

Code: Select all

vboxvideo: disagrees about version of symbol module_layout
vboxguest: disagrees about version of symbol module_layout
vboxsf: disagrees about version of symbol module_layout
Needless to say mount -t vboxsf shared_folder /mnt/shared_folder results in an no such device error.


Update:

I installed a different kernel (2.6.32-5-686) and the following works fine now:

Code: Select all

> insmod /lib/modules/2.6.32-5-668/updates/dkms/vboxsf.ko
> mount -t vboxsf shared_folder /mnt/shared_folder

Re: Solved: Error inserting vboxsf Invalid module format

Posted: 10. Aug 2010, 06:36
by vhax0r
AWESOME find!! Using your technique, I actually was able to do insmod on the kernel version already present on my VM..

For whatever reason, modprobe vboxsf did NOT work..

However, doing insmod /lib/modules/(MY_KERNEL_PATH)/vboxsf.ko DID work! You rule!

Re: Solved: Error inserting vboxsf Invalid module format

Posted: 12. Nov 2010, 09:47
by peab
I confirm the issue with virtualbox 3.2.10 on host Windows XP running Linux Mint Isadora:
- modprobe vboxsf fails with this message in dmesg:
exports duplicate symbol RTMemExecFree (owned by vboxguest)
- insmod succeeds and a Windows share can be mounted

Re: Solved: Error inserting vboxsf Invalid module format

Posted: 23. Jan 2011, 23:42
by marlar
YES!

I had the same problem with Virtualbox 4.0.0 on Linux Mint Debian 64 bit host.

running Insmod before mounting worked.

Thank you so much.