Installing the Low Latency Kernel in Ubuntu

Updated by Bryan Jones

Scope

This document provides a scripted installation of the low-latency kernel on Ubuntu Linux.


Prerequisites

  • Ubuntu Server 20.04 or 22.04 on metal or in AWS
  • Internet access, Internet Gateway, or NAT Gateway to allow the script to download the low latency kernel from the Canonical repositories
  • AWS ONLY Prerequisite -
    If you are installing the low latency kernel on an AWS EC2 instance, run the command below prior to proceeding to the Online Install or Offline Install portions of this document. The 40-force-partuuid.cfg file must be removed from the EC2 host or it could get stuck in a boot loop. The command below prevents this from occurring.
    • sudo rm -f /etc/default/grub.d/40-force-partuuid.cfg

Installation

Online Install

  1. Copy/paste the command below into the Linux CLI to download and run the script:
curl -sSf https://telos-public.s3.amazonaws.com/devops/install-low-latency-kernel.sh | bash
  1. Reboot the host:
sudo reboot now

The host will boot and persist into the most current Ubuntu low-latency kernel.

Offline Install

Please note that the Offline install must still download and install the low-latency kernel via the apt package manager. The script assumes access to the Canonical repositories.
  1. Download the script locally and copy it to the target system:
https://telos-public.s3.amazonaws.com/devops/install-low-latency-kernel.sh
  1. From the Linux CLI on the target system, run the command below to make the script executable:
sudo chmod +x install-low-latency-kernel.sh
  1. Run the script to install the low-latency kernel:
sudo sh ./install-low-latency-kernel.sh
  1. Reboot the host:
sudo reboot

The host will boot and persist into the most current Ubuntu low-latency kernel.


Troubleshooting

To verify which kernel your Ubuntu system is booted into, run the command below:

uname -r

Example Output:

ubuntu@APP-123456789:~$ uname -r
5.4.0-162-lowlatency

Let us know how we can help

If you have further questions on this topic or have ideas about improving this document, please contact us.


How did we do?