My Env:
1 2 3 4 5 6 |
~> rpm -qa| grep -i virtual VirtualBox-4.1-4.1.2_73507_fedora15-1.x86_64 ~> rpm -qa| grep -i kernel kernel-2.6.41.1-1.fc15.x86_64 kernel-headers-2.6.41.1-1.fc15.x86_64 kernel-devel-2.6.41.1-1.fc15.x86_64 |
launching VirtualBox failed since it needs to re-compile driver:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
roo@suse> /etc/init.d/vboxdrv setup Stopping VirtualBox kernel modules [确定] Uninstalling old VirtualBox DKMS kernel modules [确定] Removing old VirtualBox netadp kernel module [确定] Removing old VirtualBox netflt kernel module [确定] Removing old VirtualBox kernel module [确定] Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 2.6.41.1-1.fc15.x86_64 (x86_64) Consult /var/lib/dkms/vboxhost/4.1.2/build/make.log for more information. [失败] (Failed, trying without DKMS) Recompiling VirtualBox kernel modules [失败] (Look at /var/log/vbox-install.log to find out what went wrong) |
check the logs and see the err:
1 2 3 4 5 6 7 |
/var/lib/dkms/vboxhost/4.1.2/build/vboxpci/linux/VBoxPci-linux.c:39:28: 致命错误:asm/amd_iommu.h:没有那个文件或目录 编译中断。 make[2]: *** [/var/lib/dkms/vboxhost/4.1.2/build/vboxpci/linux/VBoxPci-linux.o] 错误 1 make[1]: *** [/var/lib/dkms/vboxhost/4.1.2/build/vboxpci] 错误 2 make: *** [_module_/var/lib/dkms/vboxhost/4.1.2/build] 错误 2 make: 离开目录“/usr/src/kernels/2.6.41.1-1.fc15.x86_64” |
Double check that Fedora Kernel 2.6.41 not provides this header again.
not like in 2.6.40(also called 3.1 and 3.0 in mainline kernel.)
1 2 3 4 5 6 7 8 9 10 11 |
kernel-devel-2.6.40.4-5.fc15.x86_64 : Development package for building kernel modules to match the kernel Repo : installed 匹配来自于 : Filename : /usr/src/kernels/2.6.40.4-5.fc15.x86_64/arch/x86/include/asm/amd_iommu.h kernel-devel-2.6.40.6-0.fc15.x86_64 : Development package for building kernel modules to match the kernel Repo : installed 匹配来自于 : Filename : /usr/src/kernels/2.6.40.6-0.fc15.x86_64/arch/x86/include/asm/amd_iommu.h |
Still working on a workaround….
an obvious w/r is to rollback to 2.6.40 kernel.
Thu Dec 8 23:19:43 CST 2011
seems it’s a reported issue…
upgrade to 4.1.6 and change scripts:
VirtualBox-4.1-4.1.6_74713_fedora15-1.x86_64
w/r
1 2 3 4 5 |
/var/lib/dkms/vboxhost/4.1.6/source/vboxpci/linux/VBoxPci-linux.c 38c38 < #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) --- > #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 41) |
Following links may also help:
Default Fedora 15 kernel 2.6.41.1-1: asm/amd_iommu.h missing; bad kernel upgrade!
VirtualBox 4.1.6 on Fedora 15 with Kernel 2.6.41.1: module compilation error