This article explains how to deploy a machine with Ubuntu and configure it to use a real-time kernel.
The real-time kernel is included in all Ubuntu Pro subscriptions for Ubuntu 22.04 LTS.
[note] The RT kernel is currently in Beta and scheduled for general availability in the near future. [/note]
While the real-time kernel isn't included in MAAS as a kernel to use, we use cloud-init to first deploy the machine with a generic kernel. The cloud-init kicks in and installs the real-time kernel, and then finally reboots the machine in order to make use of the newly installed kernel.
This means that after the machine has been marked as DEPLOYED in MAAS, there will be a delay until cloud-init has finished running and the machine finishes rebooting.
If you execute the steps in the previous section, MAAS is going to execute the tasks:
Ubuntu 22.04 LTS
and a stock kernelAt this moment it's not possible to install the RT kernel without Internet access in the host.
All steps should be performed in MAAS UI.
To deploy an RT kernel:
Enlist/Commission the host as usual
Select the host and click Deploy
Select Ubuntu
and Ubuntu 22.04 LTS "Jammy Jellyfish"
as OS and Release respectively
Select Cloud-init user-data
Use the following snippet as template, remember to replace YOUR_TOKEN
with a valid value
```
power_state: mode: reboot ubuntu_advantage: token: YOUR_TOKEN enable: - esm-infra - realtime-kernel ```
Click Start deployment for machine
The following command can be executed in the host to check if the RT kernel was enabled with success
pro status
text
SERVICE ENTITLED STATUS DESCRIPTION
esm-infra yes enabled Expanded Security Maintenance for Infrastructure
realtime-kernel yes enabled Ubuntu kernel with PREEMPT_RT patches integrated
uname -a
Linux vm01 5.15.0-1030-realtime #33-Ubuntu SMP PREEMPT_RT Mon Jan 9 17:28:40 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux