The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to update kernel of CloudLinux.

Discussion in 'CloudLinux' started by sadasan, Jun 18, 2015.

  1. sadasan

    sadasan Member

    Joined:
    Feb 10, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    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.:)
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  3. sadasan

    sadasan Member

    Joined:
    Feb 10, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for your reply.
    What do you mean "I don't think there is any more precautions needed."?

    Thank you.
     
  4. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    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."
     
  5. sadasan

    sadasan Member

    Joined:
    Feb 10, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for detailed explanation. I could update kernel to the latest version.:)
     
    SageBrian likes this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page