Issue
- LVE Module cannot be loaded with error
modprobe: ERROR: could not insert 'kmodlve': Cannot allocate memory
- dmesg contains error
LVE: [53551] mount_cgroup_root_fs: failed to mount cgroup(memory), rc=-16
- The command below return
cgroup2fs
# stat -fc %T /sys/fs/cgroup/
cgroup2fs - No
systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller
in/proc/cmdline
Environment
- CloudLinux
- tuned-profiles-cloudlinux >= 0.2-5
- LVE
Solution
- Edit the file
/etc/default/grub
:
Changesystemd.unified_cgroup_hierarchy=1
tosystemd.unified_cgroup_hierarchy=0
in the file - Regenerate the grub configuration
grub2-mkconfig -o /etc/grub2.cfg
grub2-mkconfig -o /etc/grub2-efi.cfg
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/almalinux/grub.cfg - Reboot the server.
Also the problem can related to a specific tuned profile set before the cldeploy.
Please set to the correct one:
tuned-adm profile cloudlinux-default
We are going to release the next version of tuned-profiles-cloudlinux 0.2-7 to automate the switching of the profile to ours.
Cause
Cgroups v2 is not supported by kmodlve.
Comments
0 comments
Please sign in to leave a comment.