Installing the Low Latency Kernel in Ubuntu
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. The40-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
- 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
- Reboot the host:
sudo reboot now
The host will boot and persist into the most current Ubuntu low-latency kernel.
Offline Install
- Download the script locally and copy it to the target system:
https://telos-public.s3.amazonaws.com/devops/install-low-latency-kernel.sh
- 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
- Run the script to install the low-latency kernel:
sudo sh ./install-low-latency-kernel.sh
- 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.