How to update kernel of CloudLinux.
Hello,
My VPS server(Xenserver) is running with CloudLinux 6.x 64 bit + cPanel/WHM 11.50.0.
I saw the warning message at Home "Security Center "Security Advisor like,
Current kernel version is out of date. running kernel: 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64, most recent kernel: 2.6.32-531.29.2.lve1.3.11.10.el6
Update the system"s software by running "yum update" from the command line and reboot the system.
To update kernel, is this procedure correct?
1. Log in to the server via ssh.
2. Run command: "yum update kernel" or "yum -y update kernel" or "yum update" or "yum install kernel". Which is the recommended command?
3. Reboot the server.
After updated, open grub file at /etc/grub.conf to verify which kernel will be loaded when server is restarted.
Any additional advice would be appreciated.:)
-
No I don't think there is any more precautions needed. You can go with yum update kernel option and update the kernel and once done then reboot the server. 0 -
Hello, Thank you for your reply. What do you mean "I don't think there is any more precautions needed."? Thank you. 0 -
Hello, Running "yum update kernel" will install the newer kernel on your system. Once the new kernel is installed, login to grub and make the server bootable with new kernel on next reboot only by doing below: fire grub command then at grub prompt, do below: grub> savedefault --default=0 --once grub> exit then reboot your server once and it should be booted from newer kernel. Once it is up, login as root, edit /etc/grub.conf file and set the default=0. If the server doesn't come up after first reboot, login to your dc panel and reboot it again, and it will boot from the kernel whichever is set in /etc/grub.conf at default=x option. Then you can diagnose why the server failed to boot from newer kernel. But, after installing new kernel and setting default=0 in grub.conf and rebooting it should work just fine and that's why I said "I don't think there is any more precautions needed." 0 -
Hello, Thank you for detailed explanation. I could update kernel to the latest version.:) 0 -
Hello :) I am happy to see you were able to successfully update your kernel. Thank you for updating us with the outcome. 0 -
@24x7ss Thank you so much! I've been looking high and low to try and work out how to update server kernel to latest version. Kernel updates appear to have stopped loading from /boot when KernelCare trial ended! I can confirm solution here worked on Linux CentOS 7, upgrading from ( 3.10.0-514.26.2.el7.centos.plus.x86_64 x86_64 ) to ( 3.10.0-1160.62.1.el7.centos.plus.x86_64 x86_64 ). 0
Please sign in to leave a comment.
Comments
6 comments