Installing the Low Latency Kernel in Ubuntu

Updated by Bryan Jones


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


  • 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


Online Install

  1. Copy/paste the command below into the Linux CLI to download and run the script:
curl -sSf | 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:
  1. From the Linux CLI on the target system, run the command below to make the script executable:
sudo chmod +x
  1. Run the script to install the low-latency kernel:
sudo sh ./
  1. Reboot the host:
sudo reboot

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


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

uname -r

Example Output:

ubuntu@APP-123456789:~$ uname -r

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?