Question

Kernel update

Posted May 31, 2013 24.4k views
Running a "yum update", CentOS try to install a new kernel. However, I get this: Installing : kernel-2.6.32-358.6.2.el6.x86_64 1/1 grubby fatal error: unable to find a suitable template Verifying : kernel-2.6.32-358.6.2.el6.x86_64 1/1 Installed: kernel.x86_64 0:2.6.32-358.6.2.el6 The installation completes, but the system keep booting on old kernel. Maybe it's related to "grubby fatal error: unable to find a suitable template". I think the kernel is installed but not added to grub. How can I fix this in a safe way?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
22 answers

Hey there,

Just wanted to step in and offer a quick update here. It’s no longer necessary for us to import new kernels. Instead, if you’re using one of our older images, you can ensure you’re using the newest kernel by switching to our “GrubLoader” kernel in the control panel, and performing a full power off/on.

This will allow your Droplet to boot using your locally installed kernels rather than the ones on our HV that we manually used to import.

Newer images boot like this automatically, but older images need to be switched over manually.

More info here: https://www.digitalocean.com/community/tutorials/how-to-update-a-digitalocean-server-s-kernel

Thanks,
Eris
Customer Success Engineer

The kernel is managed through the control panel so you would need to click on the "settings" tab and select a kernel there.

Then power off from the command line and boot the server and the new kernel that you selected will be activated.

Thanks
Hello,

Thanks for your reply. This worked. So I can't manage the kernel's using my SSH terminal? For example, if I run "yum remove kernel", will the system still be able to boot?
@andre You have to have the kernel installed on the droplet as well. The droplet won't boot if you specify a kernel that is not found in the droplet.
I did not see the latest kernels in the control panel.
How can I use the latest kenels if they are installed on the droplet but missing in the Control panel ?
Please open up a support ticket so we can add the latest kernel for the image you're using.

For now, you can use the latest one in the control panel.
Got the same "fatal error" today after updating kernel to 2.6.32-431.11.2.el6.x86_64. There's no 2.6.32-431.11.2.el6.x86_64 in control panel - please add it.
But the question still remains: why grubby throws an error "grubby fatal error: unable to find a suitable template" during a kernel update via yum?
sorry I'm a newbie I just wanted to make sure I understood this right
I ran a yum update and got this error

[shuaT@webmaster ~]$ Installing : kernel-2.6.32-431.11.2.el6.i686 3/15
-bash: Installing: command not found
[shuaT@webmaster ~]$ grubby fatal error: unable to find a suitable template
grubby: unexpected argument fatal
[shuaT@webmaster ~]$ Updating : selinux-policy-targeted-3.7.19-231.el6_5.1.noarch 4/15
-bash: Updating: command not found

Am I suppose to go to the go to kernel settings and change to * CentOS 6.5 x32 vmlinuz-2.6.32-431.11.2.el6.i686?

Thanks
@cytalansky: These aren't commands -- it's just the output of yum update. Make sure you run yum install kernel-2.6.32-431.11.2.el6.i686, and then set the kernel to * CentOS 6.5 x32 vmlinuz-2.6.32-431.11.2.el6.i686 and reboot.
I ran it and got
Setting up Install Process
Package kernel-2.6.32-431.11.2.el6.i686 already installed and latest version
Nothing to do
also in the kernel drop-down there are 2 with the exact same name is this a mistake?
I just selected one however when I ran
cat /boot/grub/menu.lst
I got this
title CentOS (2.6.32-431.el6.i686)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-431.el6.i686
isn't that the old kernel?
Previous 1 2 3 Next