VirtualBox and Linux kernel updates
By Fat Bloke on Sep 08, 2010
In order to weave its magic, VirtualBox uses loadable kernel modules both on the Host, and in the Guest as part of the Guest Additions. On Linux, these kernel modules are related to the version of the kernel that you're running and if you update the kernel then the modules need to be rebuilt to match the new version. Technologies such as dkms handle this and so if you're running dkms you'll be in good shape. But if you aren't running dkms, then you may find that after an update and a reboot, VirtualBox or the Guest Additions don't run anymore. Here's how to fix things...
If your Linux system is setup to build modules you can just execute one of:
If your system is not setup to build kernel modules you will need to get the relevant packages to do this. For example, on Oracle Enterprise Linux you need to:
- Update your system to the latest version: open a terminal and as root, execute
- Install the GNU C compiler and the kernel development packages using
- Reboot your guest system in order to activate the updates before then running the commands above to rebuild the VirtualBox modules.
yum install gcc yum install kernel-devel
Hope this is some use to someone