Featured Post

Linux daemon using Python daemon with PID file and logging

The python-daemon package ( PyPI listing , Pagure repo ) is very useful. However, I feel it has suffered a bit from sparse documentation, an...

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!