Bug 393

Summary: problems with loading virtualbox modules - module version missing
Product: Mageia Reporter: MichaÅ Walenciak <Kicer86>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-linus-2.6.38-1.mga1.src.rpm, virtualbox-4.0.4-3.mga1.src.rpm CVE:
Status comment:

Description MichaÅ Walenciak 2011-03-16 15:15:52 CET
Description of problem:
I've installed kernel-linus-2.6.38 today and I had problem with building VirtualBox modules (same situation for rpm from VB site and mageia's ones).

Actually modules were building, but kernel could not load them.
The problem was (kill me but I don't remember what exactly was written in dmesg, and I also can't find it in logs) with missing module versions (or something like that).

I've downloaded kernel-linus-source and unchecked 
Enable loadable module support -> Module versioning support in kernel config and now it's ok (of course after kernel build, install and reboot ;) )

I'm not sure if the same problem occurs with another kernel packages, as previosly I've used my own one.

Version-Release number of selected component (if applicable):
kernel as describet above 2.6.38
virtualbox: 4.0.4

Steps to Reproduce:
1. install kernel-linus-2.6.38 
2. install virtualbox
3. try to run any machine in VB - the error message
4. have a look at dmesg and see the error about vbox module load failure 


Reproducible: 

Steps to Reproduce:
Comment 1 Ahmad Samir 2011-03-16 17:23:18 CET
Uninstall kernel-linus-source and install the kernel-linus-devel-2.6.38 then reboot to make DKMS compile the modules (or uninstall then reinstall dkms-virtualbox after install kernel-linus-devel*).

Keywords: (none) => NEEDINFO

Comment 2 MichaÅ Walenciak 2011-03-16 21:10:31 CET
I tried with devels at the begining
The problem isn't that dkms can't build nodules - it cans (even without rebooting - I just used dkms build + install).
The problem is that kernel cannot (in my case) load those modules.
Comment 3 MichaÅ Walenciak 2011-03-17 09:29:54 CET
here it is:

# modprobe vboxdrv
FATAL: Error inserting vboxdrv (/lib/modules/2.6.38-1.mga/dkms/3rdparty/vbox/vboxdrv.ko.gz): Invalid module format

# dmesg | tail -n 1
vboxdrv: no symbol version for module_layout
Thierry Vignaud 2011-03-17 14:29:37 CET

CC: (none) => thierry.vignaud
Assignee: bugsquad => tmb

Comment 4 Thomas Backlund 2011-03-20 19:49:29 CET
I cant reproduce this.

whats the output of rpm -qa kernel* |sort
Comment 5 MichaÅ Walenciak 2011-03-22 10:14:43 CET
kernel-firmware-20110314-2.mga1
kernel-linus-2.6.38-1.mga-1-1.mga1
kernel-linus-source-2.6.38-1.mga-1-1.mga1
Comment 6 Thierry Vignaud 2011-03-22 10:18:30 CET
I cannot reproduce this too and I used the same kernel.
You've installed kernel-linus-source instead of kernel-linus-devel though.
We used to install kernel*-devel for dkms...
Since kernel*source aren't much tested with dkms, that may be your
issue...

Just remove kernel-linus-source-2.6.38-1.mga-1-1.mga1 and install kernel-linus-devel instead
Comment 7 Ahmad Samir 2011-03-22 15:52:05 CET
AFAIK you need kernel-devel for the running kernel to compile kernel modules, kernel-source won't work, c.f. Thomas' comment here: https://qa.mandriva.com/show_bug.cgi?id=57780#c1 (that's what I already said in my previous comment....).
Comment 8 MichaÅ Walenciak 2011-03-24 08:23:59 CET
hmm it works now. Maybe I had some mandriva garbage
Thierry Vignaud 2011-03-24 14:30:09 CET

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME