This guide was written using an OVH dedicated instance, using their Ubuntu 18.04 template, which uses the
4.15.0-51-generic kernel (at the time of this writing). I will show you how to install a kernel that is supported by KernelCare.
- Tip: You can get KernelCare licenses for $2.95/month from BuycPanel.com
Find a Supported Kernel Version
To find the latest kernel supported by KernelCare on Ubuntu 18.04, visit this site: https://patches.kernelcare.com/
I chose the
4.18.0-21.22 kernel as it was the latest version supported (at the time of this writing).
Check Repo for Selected Kernel
You can check if your selected kernel exists in the Ubuntu apt repositories by issuing the following command:
apt-cache search linux-image-4.18.0-21
You should see the following if it is found:
linux-image-4.18.0-21-generic - Signed kernel image generic linux-image-4.18.0-21-lowlatency - Signed kernel image lowlatency
Install the New Kernel
Run the following command to install the chosen kernel and restart:
apt install linux-image-4.18.0-21-generic reboot
Install and Verify KernelCare
- Reference: How to Install KernelCare
Issue the following commands to install KernelCare:
apt install python curl -s https://repo.cloudlinux.com/kernelcare/kernelcare_install.sh | bash
Once installed, verify that KernelCare is activated:
# Get KernelCare info /usr/bin/kcarectl --info # Perform manual update /usr/bin/kcarectl --update
KernelCare applies security patches automatically to a running kernel. Live installation of security patches takes seconds, doesn’t alter the performance of servers, doesn’t require a reboot, and quickly delivers a more secure Linux.