Bug 3107 - Kernel 3.1.0-0.rc7.1.mga2 and rc6 break VirtualBox
Summary: Kernel 3.1.0-0.rc7.1.mga2 and rc6 break VirtualBox
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 06:52 CEST by Peter Nunn
Modified: 2011-10-28 00:43 CEST (History)
1 user (show)

See Also:
Source RPM: kernel
CVE:
Status comment:


Attachments
vbox install log (160.43 KB, text/x-log)
2011-10-20 12:18 CEST, Peter Nunn
Details

Description Peter Nunn 2011-10-19 06:52:48 CEST
I updated to the lates kernels today and have found that VirtualBox is broken with the latest kernels in that the modules won't compile.

When trying to start VirtualBox I get a message saying to run /etc/init.d/vboxdrv setup and when I do I get

$ /etc/init.d/vboxdrv setup
WARNING: "include /lib/module-init-tools/modprobe.compat" is deprecated, please use /etc/modprobe.d
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Stopping VirtualBox kernel modules                                [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules                   [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Bad return status for module build on kernel: 3.1.0-0.rc7.1.mga2 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/4.1.0/build/ for more information.
                                                                  [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                             [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
Comment 1 Manuel Hiebel 2011-10-19 12:37:04 CEST
please attach the file /var/log/vbox-install.log

Source RPM: Kernel 3.1.0-0.rc7.1.mga2, rc6, rc8 => kernel

Comment 2 Peter Nunn 2011-10-20 12:18:54 CEST
Created attachment 981 [details]
vbox install log
Comment 3 Manuel Hiebel 2011-10-20 12:28:25 CEST
I see that:

echo "  ERROR: Kernel configuration is invalid.";		\
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\

what is the output of rpm -qa | grep kernel ?

I add the maintainer of the kernel in CC

CC: (none) => tmb

Comment 4 Thomas Backlund 2011-10-20 12:34:50 CEST
Do you have the kernel-*-devel matching your kernel installed ?
Comment 5 Peter Nunn 2011-10-21 01:12:40 CEST
Devel packages seem to be installed..

rpm -qa | grep kernel
kernel-desktop-latest-3.1.0-0.rc10.1.mga2
kernel-linus-devel-latest-3.1.0-0.rc10.1.mga2
kernel-linus-3.1.0-0.rc8.1.mga2-1-1.mga2
kernel-linus-3.1.0-0.rc10.1.mga2-1-1.mga2
kernel-linus-3.1.0-0.rc9.1.mga2-1-1.mga2
kernel-desktop-devel-3.1.0-0.rc9.1.mga2-1-1.mga2
lib64kplatokernel8-2.4-0.beta2.2.mga2
kernel-desktop-3.0.4-1.mga2-1-1.mga2
kernel-linus-latest-3.1.0-0.rc10.1.mga2
kernel-firmware-20110703-1.mga2
kernel-desktop-3.1.0-0.rc10.1.mga2-1-1.mga2
kernel-desktop-devel-3.1.0-0.rc10.1.mga2-1-1.mga2
kernel-desktop-3.0.6-1.mga2-1-1.mga2
kernel-linus-devel-3.0.4-1.mga2-1-1.mga2
lib64kplatokernel7-2.2.2-1mdv2010.1
kernel-linus-devel-3.1.0-0.rc10.1.mga2-1-1.mga2
kernel-linus-devel-3.1.0-0.rc9.1.mga2-1-1.mga2
kernel-desktop-3.1.0-0.rc9.1.mga2-1-1.mga2
kernel-desktop-devel-3.0.4-1.mga2-1-1.mga2
kernel-linus-devel-3.1.0-0.rc8.1.mga2-1-1.mga2
kernel-desktop-devel-latest-3.1.0-0.rc10.1.mga2
kernel-firmware-extra-20110817-2.mga2.nonfree
kernel-linus-3.0.4-1.mga2-1-1.mga2
kernel-desktop-devel-3.0.6-1.mga2-1-1.mga2
Comment 6 Peter Nunn 2011-10-27 01:53:18 CEST
It seems the devel packages are missing some headers.

When I try and install, even with the latest release kernel, I get a failure message from both dkms and non-dkms installs looking for a .h file

/var/lib/dkms/vboxhost/4.1.0/build/vboxpci/linux/VBoxPci-linux.c:38:27: fatal error: asm/amd_iommu.h: No such file or directory
compilation terminated.

when I try and locate this file I get

$ locate amd_iommu.h
/usr/src/kernel-linus-devel-3.0.4-1.mga2/arch/x86/include/asm/amd_iommu.h
/usr/src/linux-3.0.4-desktop-1.mga2/arch/x86/include/asm/amd_iommu.h
/usr/src/linux-3.0.6-desktop-1.mga2/arch/x86/include/asm/amd_iommu.h

Which are the last kernels on the system that successfully compiled the driver.

Peter.
Comment 7 Thomas Backlund 2011-10-27 09:31:33 CEST
You are running an old version of virtualbox.

you should be using 4.1.4 available in the repos.
That one works with kernel 3.1 series.
Comment 8 Peter Nunn 2011-10-28 00:43:36 CEST
Thankyou.. that has indeed solved the issue.

Peter.

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


Note You need to log in before you can comment on or make changes to this bug.