Compile Linux Kernel

This article describe how to compile a Linux Kernel. I needed to do that because one of my dedicated server did not have the modules activated, which prevented me to use VirtualBox on them. This procedure is supposed to be used on OVH servers.

The server is runnin on Ubuntu 12.04LTS. I chose to compile last kerner version (3.2.13 64bits at that time) which is the one that was initially provided.

Then select the line “Enable loadable module support” (modules management, which will allow to later install VirtualBox), then exit and save :

Then, launch the kernel compilation with :

(depending on your server, this step could take from several minutes up to some hours)
Edit : (On Debian, you may have to type

at this point.)

The last line is there to check if all necessary files are present in /boot.

The OVH boot files will then have to be moved, before having the boot manager updated.

After reboot, don’t forget to check the kernel version with uname : (What is important here is the “-std-” which tells that we’re not using the OVH version anymore)

And that’s all…

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may 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>

© Crocoware technical blog
CyberChimps