Solved: Error inserting vboxsf Invalid module format

Discussions about using Linux guests in VirtualBox.
Post Reply
petpsi
Posts: 4
Joined: 6. Feb 2010, 15:21
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Win XP/7, Sidux, Mac OSX

Solved: Error inserting vboxsf Invalid module format

Post 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
vhax0r
Posts: 1
Joined: 10. Aug 2010, 06:32
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu

Re: Solved: Error inserting vboxsf Invalid module format

Post 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!
peab
Posts: 2
Joined: 12. Nov 2010, 09:40
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: mint/isadora

Re: Solved: Error inserting vboxsf Invalid module format

Post 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
marlar
Posts: 1
Joined: 23. Jan 2011, 23:34
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Linux, Windows XP

Re: Solved: Error inserting vboxsf Invalid module format

Post 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.
Post Reply