Change kernel of Centos OVH
Solution 1:
I've been wasting several hours too on that problem, and finaly I found out what was going on : I'm partially blind... OR the interface is not working well sometimes.
First, when you use an OVH template to install your centos, just before the last confirmation, you have the possibility to clic "install the original kernel", just between "installation URL" and the "SSH Key" choice.
If you don't select that option, then by default, you'll systematically boot by the network the 3.14 grs kernel, which makes the changes in grub useless since it's not charged at all at runtime.
So either you select that option during install process, either you can choose afterward the way you boot in the backoffice->General information->Boot->modify->boot on hd.
Could be enough (good idea to start a console to see what happend during the boot sequence).
If not enough, then you'll have to change the default kernel in grub2.
First, print the choices you have :
$ grep '^menuentry' /boot/grub2/grub.cfg
(the first result is 0)
Open /etc/default/grub with a text editor, and set GRUB_DEFAULT to the numeric entry value for the kernel you chose as the default, for exemple the first result :
GRUB_DEFAULT=0
And then re-generate GRUB configuration.
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
You're done -> reboot
Thanks that link
Hope it helps, enjoy !
Solution 2:
After you install the OS distribution's kernel on your dedicated server, you must reconfigure it to boot from the hard drive instead of from OVH's kernel. This is done in your OVH management pages. It should look like the following:
Solution 3:
Watch out for OVH's static motd. It caught me out for a bit.
They generate it with the kernel name but it wont update when you update the kernal for example to elrepo mainline.
If you run uname -a, you'll see that it's different.