logos

With Andrii Grytsenko


Technical Diary - With Andrii Grytsenko

How to compile VirtualBox module

In the event of you repository doesn’t consist VirtualBox’s kernel module for your current kernel version. In this post I will describe how to make it manually.

NOTICE: In my case distro is Debian.

My current kernel version is :

# uname -r
2.6.30-1-686

Let’s have a look about virtualbox module :

# apt-cache search virtualbox | grep [you_kernel_version]
# 

Nothing was found.

First of all we have to get kernel sources:

# apt-get install linux-source-[you_kernel_version]

Go to /usr/src and delete symbolic link linux if it exist:

# cd /usr/src
# rm linux 

extract files from archive and make new one linx:

# tar -xjvf linux-source-2.6.30.tar.bz2
# ln -s linux-source-2.6.30 linux

Now go to sources and set current configuration:

# cd linux
# make oldconfig && make prepare

After finished, run :

# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module:done..
Recompiling VirtualBox kernel module:done..
Starting VirtualBox kernel module:done..

Check is everything done right:

# lsmod | grep -i vbox

It’s okay if you get something like this:

vboxdrv                63936  0

Now you are ready to run VirtualBox.

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories

Translate