When you update your kernel you have to recompile VirtualBox’s kernel module to make it work again.
Let’s see how to recompile VirtualBox’s kernel module…
Requisites
First of all, you have to make sure you have installed the compilation tools (gcc and other stuff). If you haven’t (or you aren’t sure) just install the build-essential package:
yum install build-essential
You will also need your current kernel headers. In order to know what kernel you’re running type this:
uname -r
In my case, my PC is running kernel 2.6.29-4-686. Now install let’s the headers
yum install linux-headers-2.6.29-4-686
If you want it more generic, you can combine commands:
yum install linux-headers-$(uname -r)
This way will work no matter what kernel version you are running
Recompiling VirtualBox’s kernel module
Now it’s time to recompile the module. Just type this:
/etc/init.d/vboxdrv setup