Skip to content

Commit def35a9

Browse files
authored
Update LTS kernel installation steps
1 parent 71e1e88 commit def35a9

File tree

1 file changed

+33
-12
lines changed
  • docs/cloudlinuxos/cloudlinux_os_kernel

1 file changed

+33
-12
lines changed

docs/cloudlinuxos/cloudlinux_os_kernel/README.md

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This documentation describes specific features of the CloudLinux kernel. In other cases the kernel has the same features and innovations as any similar RHEL kernel.
44
More information about the actual kernel changes and releases can be obtained from our [changelog](https://changelog.cloudlinux.com/).
55

6-
* [CL9 LTS kernel](./#cl9-lts-kernel)
6+
* [LTS kernel](./#lts-kernel)
77
* [Hybrid Kernels](./#hybrid-kernels)
88
* [SecureLinks and Link Traversal Protection](./#securelinks-and-link-traversal-protection)
99
* [File change API](./#file-change-api)
@@ -21,41 +21,62 @@ More information about the actual kernel changes and releases can be obtained fr
2121
* [Enter LVE when using cPanel utilities](./#enter-lve-when-using-cpanel-utilities)
2222
* [Proactive reporting kernel crash events with Sentry and Kernel Panic Receiver](./#proactive-reporting-kernel-crash-events-with-sentry-and-kernel-panic-receiver)
2323

24-
## CL9 LTS kernel
24+
## LTS kernel
2525

2626
In CL9 we don’t have our own kernel, instead we use AlmaLinux’s one which gets regular upstream updates.
2727

2828
For stability purposes we have also prepared the LTS (Long Term Support) kernel which is older than AlmaLinux by upstream version but has all security fixes / high scored CVEs.
2929

3030
We recommend this kernel as it minimizes changes while maintaining comprehensive CVE coverage.
3131

32+
Also, this kernel is available for CL8 serving as a analogue of Hybrid kernel (CL9 kernel + CL8 system).
33+
3234
### How To Install
3335

34-
Run the following commands:
36+
Install the LTS kernel main packages
3537

3638
```
37-
dnf install -y --allowerasing kernel-lts kmod-lve-lts perf-lts bpftool-lts
38-
```
39-
In case you have dkms third-party modules that need devel package you should install them too:
40-
```
41-
dnf install -y kernel-lts-devel kernel-lts-devel-matched
39+
dnf install kernel-lts
4240
```
41+
Note: if kernel-lts-purge-all was previously installed then add --allowerasing
4342

4443
After that, you should reboot:
4544

4645
```
4746
reboot
4847
```
48+
Note: some systems might do additional SELinux relabeling and they will reboot one more time.
4949

50-
After the reboot, you should delete regular kernels to prevent regular updates from overwriting default boot kernel:
50+
After the reboot, replace all kernel packages with LTS versions
5151
```
52-
dnf remove kernel-core
52+
dnf install --allowerasing kernel-lts-install-all
5353
```
54+
This will:
55+
- Install all matching -lts tools (e.g., perf-lts, bpftool-lts, etc.)
56+
- Remove kernel-core to avoid accidental switch to it on updates
57+
- Remove original kernel tools packages to avoid file conflicts
5458

55-
You should see the similar dnf output:
59+
### Reverting to the Original Kernel Environment
5660

57-
![](/images/dnf-cl9-lts.png)
61+
Use this path to return from the LTS kernel to the generic kernel.
5862

63+
Install the original kernel core
64+
```
65+
dnf install --allowerasing kernel
66+
```
67+
68+
After that, you should reboot:
69+
```
70+
reboot
71+
```
72+
73+
Replace all LTS kernel packages with original versions
74+
```
75+
dnf install --allowerasing kernel-lts-purge-all
76+
```
77+
This will:
78+
- Install original versions of tools (e.g., perf, bpftool, etc.)
79+
- Remove all -lts packages (except kernel-lts-purge-all itself, it's ok to remove it later, but not required)
5980

6081
## Hybrid Kernels
6182

0 commit comments

Comments
 (0)