Comment 18 for bug 303199

Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

One can build virtualbox kernel module package for the latest kernel using module assistant and virtualbox-ose-source package.

First, 'apt-get install virtualbox-ose-source', that would install module-assistant too if it's not allready installed.

Then, go to /usr/src, there will be virtualbox-ose.tar.bz2 file. Untar it, go to /usr/src/modules, and create symboilic link from virtualbox-ose to virtualbox:

ln -s virtualbox-ose virtualbox

Then use module assistant to build the kernel module package:

module-assistant build virtualbox

After that, in /usr/src you'll have a .deb package with the virtualbox kernel module for your installed kernel.

module-assistant install virualbox

and your package is installed.

Load the module:

modprobe vboxdrv

To check if the kernel module is loaded, use: lsmod | grep vbox. vboxdrv module should be listed.

Of course, then the next kernel update arrives this proces should be repeated.