2011-11-18

VirtualBox with latest Fedora 15 kernel upgrade

There was a kernel upgrade in Fedora 15 today, to 2.6.41.1-1.fc15. This broke VirtualBox, as usual. However, the usual process for rebuilding the kernel modules didn't work:
$ sudo /etc/init.d/vboxdrv setup
A look at the log file /var/lib/dkms/vboxhost/4.1.6/build/make.log showed:
/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.c:39:28: fatal error: asm/amd_iommu.h: No such file or directory
compilation terminated.
Well, all I did was copy in all the amd_*.h files from the older kernel source into the current kernel source directory, and  it worked:
$ sudo cp /usr/src/kernels/2.6.40.6-0.fc15.x86_64/arch/x86/include/asm/amd_*.h /usr/src/kernels/2.6.41.1-1.fc15.x86_64/arch/x86/include/asm
$ sudo /etc/init.d/vboxdrv setup
Brilliant!

5 comments:

  1. Thanks it's worked

    Too bad that you need in Fedora 15 to read 20 guides/blog/post for a simple common installation like VirtualBox instead of double click in the package manager

    Idan

    ReplyDelete
  2. You're welcome. I'm glad it worked for you.

    ReplyDelete
  3. Awesome .. worked in my case too. Thanks!

    ReplyDelete
  4. Good work thanks for posting this fix it made my day! :)

    ReplyDelete

Note: Only a member of this blog may post a comment.