0

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.

2
  • 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... Commented Nov 30, 2010 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
    Commented Nov 30, 2010 at 18:18

2 Answers 2

3

On ubuntu for instance I just run

/etc/init.d/vboxdrv setup

when I install a new kernel.

1
  • 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
    Commented Nov 29, 2010 at 0:48
1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .