CentOS7 upgrade kernel to the latest version

Source: Internet
Author: User
The default kernel version of CentOS7 is 3.10. to test the dockeroverlay network mode, the kernel must be 3.16 or later. Elrepo is required for Kernel upgrade

The default kernel version of CentOS 7 is 3.10.

 

The reason for upgrading the kernel is that you want to test the docker overlay network mode.

 

In docker overlay network mode, the kernel must be 3.16 or later.

 

 

  1. Elrepo yum source is required for Kernel upgrade

First, import the elrepo key.

 

  rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

 

2. install elrepo source

  rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

 

3. in the ELRepo source of yum, mainline is the kernel of the latest version.

Install the ml kernel

  yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml -y

 

4. modify the kernel startup sequence. the default boot sequence is 1. after the upgrade, the kernel is inserted to the front, and the value is 0.

  grub2-set-default 0

 

5. restart the system

  reboot

 

6. view the kernel version

  uname -r 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.