In this guide, we will explain how to Fix CageFS Startup Error: Unsupported Kernel.
Fix the CageFS initialisation error to ensure the system uses a supported kernel, allowing CageFS to function properly and enhance server security.
Issue:
If initialisation fails due to an unsupported kernel, you will see the following error:
# /usr/sbin/cagefsctl –init
Error: current running kernel is NOT supported
Environment:
- CloudLinux 7
- CloudLinux 8
- CageFS
Solution:
- Verify the Running Kernel
Ensure the server is using the CloudLinux kernel (lve should be present in its name):# uname -r
Example of a correct CloudLinux kernel:
4.18.0-305.12.1.lve.el8.x86_64
When the system runs CentOS or another OS kernel, update the default entry in the GRUB bootloader and reboot the server. - Check & Install kmod-lve Module:
- Verify kmod-lve Installation
# rpm -q kmod-lve # lsmod | grep kmodlve
- Install kmod-lve If Missing
# yum install kmod-lve
Manually load the module:
# modprobe kmodlve
Confirm installation:
# lsmod | grep kmodlve
- Ensure kmod-lve Loads Automatically
- Check for Blocklisting
# grep lve /etc/modprobe.d/* # grep black /etc/modprobe.d/*
- Verify & Update Grub Configuration
First, remove systemd.unified_cgroup_hierarchy=1 from /etc/default/grub and then rebuild Grub:# grub2-mkconfig -o /boot/grub2/grub.cfg
- Confirm Modules Are Enabled in sysctl
# sysctl -a | grep kernel.modules_disabled
Ensure the value is set to 0.
- Verify Package Integrity
# rpm -V liblve-devel liblve
- Check for Blocklisting
- Unmask & Start LVE Services
If you find LVE services masked, unmask and start them:# systemctl unmask lvectl.service # systemctl unmask lve.service # systemctl unmask lve_namespaces.service # systemctl unmask lvestats.service # systemctl start lvectl # systemctl start lve.service # systemctl start lve_namespaces.service # systemctl start lvestats.service
- Verify kmod-lve Installation
Cause:
Failure to load the LVE module prevents CageFS from initialising properly.
That is it! Hope you liked our article. If you require any additional help, feel free to reach out to our support team.
Need to manage CageFS for users? Learn How to enable or disable CageFS for users in CloudLinux