How to install the real-time kernel on Ubuntu Core

The Linux kernel on Ubuntu Core is a snap. Because of that, switching to another compatible kernel is fairly straightforward.

This guide assumes you have booted into Ubuntu Core, using one of the pre-built images published by Canonical. If you intend to build an image that includes a real-time kernel, refer to How to create a Real-time Ubuntu Core image instead.

Find available kernels

Run the following command on the same Ubuntu Core host, or on another system with the same architecture:

snap info pc-kernel

Tip

For the list of kernel snaps for other architectures, refer to the pc-kernel Snap Store page.

Under channels, look for entries that contain -rt.

The results can be filtered with grep:

ubuntu@machine-amd64:~$ snap info pc-kernel | grep -e "-rt"
  25.04-rt/stable:          6.14.0-1004.4               2025-06-19 (2511) 368MB -  ...  24-rt-hwe/candidate:      6.11.0-1011.11~24.04.1      2025-06-12 (2551) 363MB -  ...  24-rt/stable:             6.8.1-1023.24               2025-06-19 (2550) 351MB -  ...

The above output has been truncated for readability. Each row shows a snap channel, version, date, revision, and size. Each channel consists of a track followed by the risk level.

Examples:

  • 24-rt/stable channel contains the real-time kernel for Ubuntu 24.04 LTS. The release is stable. The snap version 6.8.1-1023.24 indicates that the kernel version is 6.8.1.

  • 24-rt-hwe/candidate contains the Hardware Enablement (HWE) real-time kernel for Ubuntu 24.04 LTS. This release is on the candidate risk level. The snap version 6.11.0-1011.11~24.04.1 includes the kernel version.

  • 25.04-rt/stable provides the real-time kernel based on Ubuntu 25.04 interim release. This is stable. The kernel version is 6.14.0.

See also

Read more about the Ubuntu kernel lifecycle and HWE kernels.

Switch to another kernel

Once you identify a suitable channel, switch to that channel and refresh the snap.

For example:

ubuntu@machine-amd64:~$ sudo snap refresh pc-kernel --channel=25.04-rt/stable
... Broadcast message from root@uc-rt (Wed 2025-06-25 12:00:39 UTC): reboot scheduled to update the systemThe system will reboot now!

After the installation, the system will reboot automatically and boot with the new kernel:

ubuntu@machine-amd64:~$ uname -a
Linux uc-rt 6.14.0-1004-realtime #4-Ubuntu SMP PREEMPT_RT Fri May 23 22:22:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Tip

Install and run a benchmarking tool such as rt-tests to measure the system performance:

sudo snap install rt-tests --candidate
sudo cyclictest --mlockall --smp --priority=80 --interval=200 --distance=0 --loops=100000

Refer to Tools for measuring real-time metrics for more.