VirtualBox

Ticket #5937 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

Red Hat install VirtualBox error: vboxdrv.ko Invalid module format

Reported by: mantovam Owned by:
Priority: major Component: installer
Version: VirtualBox 3.1.2 Keywords:
Cc: Guest type: other
Host type: Linux

Description

Hi

I tried install the VirtualBox (VirtualBox-3.1-3.1.2_56127_rhel4-1.i386.rpm ), but failed

ERROR:


[root@cc etc]# /etc/init.d/vboxdrv setup Stopping VirtualBox kernel module [ OK ] Removing old VirtualBox netadp kernel module [ OK ] Removing old VirtualBox netflt kernel module [ OK ] Removing old VirtualBox kernel module [ OK ] Recompiling VirtualBox kernel module [ OK ] Starting VirtualBox kernel module [FAILED]

(modprobe vboxdrv failed. Please use 'dmesg' to find out why)


Dmesg message:


vboxdrv: disagrees about version of symbol struct_module


I did try force the instalation of vboxdrv


/sbin/modprobe vboxdrv FATAL: Error inserting vboxdrv (/lib/modules/2.6.9-78.0.17.ELsmp/kernel/misc/vboxdrv.ko): Invalid module format


My host system is:


Red Hat Enterprise Linux ES release 4 (Nahant Update 7) 32B uname -r 2.6.9-78.0.17.ELsmp


I also instaled the dkms package, and all gcc software are the same version of kernel build.

So I need help to solve this issue.

Attachments

vbox-install.log Download (6.9 KB) - added by mantovam 4 years ago.

Change History

comment:1 Changed 4 years ago by frank

Please attach the file /var/log/vbox-install.log (use the Attach button!)

Changed 4 years ago by mantovam

comment:2 Changed 4 years ago by frank

I'm not sure but your dkms installation seems to be a bit broken. What is the output of

dkms status

?

comment:3 Changed 4 years ago by mantovam

Hi frank.

I fix the problem. When I install the package kernel-smp-devel, and re-run /etc/init.d/vboxdrv setup Must be the same version of the kernel.

I guess that the error in dkms package, isn't important, because the virtualbox must install without this.I just instaled, because I didn't know the cause of the errors (Invalid module format).

My suggetion to developer group, is make a pre-requirement when run the install of Virtual Box. Like:

Check supported kernell Check if the version of gcc was the same that the kernel was buid. Check if there is packages kernel-devel. Check if the /usr/src/kernel/<kernel> is correct.. in the right place.

I spend 2 day to install the virtualbox, because I needed discover whta was wrong.

comment:4 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme

These checks are quite difficult, especially the check for the correct gcc version. The documentation clearly states that the correct kernel sources must be installed to compile the VBox kernel modules.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use