Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently installed VirtualBox on my Linux host. I noticed while running the install script that some kernel modules were compiled/installed.

I upgrade the kernel (building from source) quite often. What do I need to do with regards to VirtualBox when I upgrade the kernel? Would I have to completely re-install, or is there a way to just recompile the modules against the updated kernel? Thanks in advance.

share|improve this question

migrated from stackoverflow.com Nov 30 '10 at 9:59

This question came from our site for professional and enthusiast programmers.

    
Not really a Stack Overflow topic. best on the unix SE, but there is no migration as yet, so could be either Super User of Server Fault depending on your use case. This question will likely be migrated to one of those sites soon... –  dmckee Nov 30 '10 at 3:44
    
@dmckee - As a stackoverflow.com "newbie" I was unaware that that question seemed inappropriate for that site. Thanks for the info. –  pr1268 Nov 30 '10 at 18:18

2 Answers 2

On ubuntu for instance I just run

/etc/init.d/vboxdrv setup

when I install a new kernel.

share|improve this answer
    
Thanks - my distro is Slackware, but I just noted that the init script /etc/rc.d/rc.vboxdrv will compile kernel modules if needed. –  pr1268 Nov 29 '10 at 0:48

Recompiling the kernel modules is sufficient, unless the module API changes (which does happen) at which point you would need a new version of at least the kernel modules.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.