Tutorials:Build a custom kernel for OVH servers

From Knowledge base
Jump to: navigation, search

I am dealing with TC and shorewall. The default kernel from OVH lack of some built-in modules.

To build a custom kernel based on OVH default settings :

  1. get the latest kernel here
  2. get the matching config from OVH here
  3. copy both to your /tmp
$ sudo su -
$ cd /usr/src
$ xz -dc /tmp/linux-*.tar.xz | tar x
$ cp /tmp/config-* .config
$ make menuconfig
Go to General and custom the "Local version" (you need to end the string with -64)
Add more builtin module you need
Save and exit
$ make -j8
$ cp arch/x86/boot/bzImage /boot/bzImage-CUSTOMIZE # (pickup the local you have set)
$ cp System.map /boot/System.map-CUSTOMIZE
$ update-grub
$ reboot

If anything goes wrong, just reboot in rescue, and fix the kernel.

Source: http://fr.wikitwist.com/ovh-compiler-kernel-personnalise/#axzz2eJVwnpqG

Share your opinion