How to Update your Linode's Existing Kernel

Updated by Linode Contributed by Linode

Contribute on GitHub

Report an Issue | View File | Edit File

This guide is about updating your Linode’s current kernel to a newer version. For information on how to change which kind of kernel your Linode runs, check out the How to Change your Linode’s Kernel guide.

Which Kernel Am I Running?

Your Linode is capable of running one of three kinds of kernels:

  • An upstream kernel that is maintained and provided by your Linux distribution’s authors (this is also referred to as the distribution-supplied kernel).

  • The Linode kernel. Linode maintains an up-to-date kernel: Linode’s engineering team monitors for new versions of the Linux kernel and then packages them for users shortly after they are available. These kernels are not installed on your filesystem–instead, the Linode Manager supplies them to your system when it boots.

    Note
    A version history for Linode’s kernel is available here.
  • A kernel that you compile from source.

The steps needed to update your kernel vary depending on the type of kernel you are running. To find out which type you’re using, SSH into your Linode and run the following command:

uname -r

If your output contains linode in the version tag, then you are running the Linode kernel:

  
4.14.12-x86_64-linode92

If your output contains generic in the version tag, then you are probably running a distribution-supplied kernel:

  
44.15.0-29-generic

Update Your Linode Kernel with Linode’s Cloud Manager

  1. Select the Linode from the Dashboard

  2. Click the Settings tab and expand the Advanced Configurations section.

  3. Find your current Configuration, click on the corresponding ellipses () menu and select Edit.

  4. Scroll to the Boot Settings section.

  5. Select Latest 64 bit from the Kernel dropdown and click Submit to save the changes (if you need a 32-bit kernel, select Latest 32 bit).

  6. Reboot the Linode to boot into the new kernel and verify the kernel version:

    uname -r
    
      
    4.17.15-x86_64-linode115
    
    

Update your Distribution-Supplied Kernel

If you boot your Linode using the GRUB2 or Direct Disk boot setting, your kernel is supplied by your distribution’s maintainers, not Linode. If you’ve compiled your own kernel, download a new set of kernel sources and recompile.

Update your kernel to the latest available version using the distribution’s package manager:

CentOS

sudo yum update kernel

Debian

sudo apt-get update
sudo apt-get upgrade linux-base

Ubuntu

sudo apt-get update
sudo apt-get upgrade linux-generic

Reboot the Linode. When it comes back up, use the command uname -r to verify which version you are running. It’s recommend that you compare your new kernel version against the patched version given in your distribution’s security bulletin: CentOS; Debian; Ubuntu.

Join our Community

Find answers, ask questions, and help others.

comments powered by Disqus

This guide is published under a CC BY-ND 4.0 license.