Centos7 kernel upgrade & amp; started by default

Source: Internet
Author: User

Centos7 kernel upgrade & default startup
Centos7 kernel upgrade & default startup

Recently an Intel®Pentium®Processor J4205 machine, after installing centos7 found very slow, saw the start of said did not recognize the CPU, so go to the motherboard vendors official website to see what operating systems are supported, found to support Linux: ubuntu 16.10/Fedora 25, centos7 uses the kernel 3.10, and Fedora25 uses the kernel 4.9. So I upgraded the kernel for my centos 7:

  • Kernel upgrade

  • Default kernel startup

Yum source for Kernel upgrade and installation of elrepo:
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Query the kernel
[ddd@localhost ~]$ yum --enablerepo=elrepo-kernel  list  |grep kernel* * elrepo-kernel: mirrors.tuna.tsinghua.edu.cnabrt-addon-kerneloops.x86_64            2.1.11-45.el7.centos           @anacondakernel.x86_64                           3.10.0-514.el7                 @anacondakernel.x86_64                           3.10.0-514.6.1.el7             @updates kernel-devel.x86_64                     3.10.0-514.el7                 @anacondakernel-devel.x86_64                     3.10.0-514.6.1.el7             @updates kernel-headers.x86_64                   3.10.0-514.6.1.el7             @updates kernel-ml.x86_64                        4.9.10-1.el7.elrepo            @elrepo-kernelkernel-ml-devel.x86_64                  4.9.10-1.el7.elrepo            @elrepo-kernelkernel-tools.x86_64                     3.10.0-514.6.1.el7             @updates kernel-tools-libs.x86_64                3.10.0-514.6.1.el7             @updates erlang-kernel.x86_64                    R16B-03.18.el7                 epel     kernel-abi-whitelists.noarch            3.10.0-514.6.1.el7             updates  kernel-debug.x86_64                     3.10.0-514.6.1.el7             updates  kernel-debug-devel.x86_64               3.10.0-514.6.1.el7             updates  kernel-doc.noarch                       3.10.0-514.6.1.el7             updates  kernel-lt.x86_64                        4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-devel.x86_64                  4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-doc.noarch                    4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-headers.x86_64                4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-tools.x86_64                  4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-tools-libs.x86_64             4.4.49-1.el7.elrepo            elrepo-kernelkernel-lt-tools-libs-devel.x86_64       4.4.49-1.el7.elrepo            elrepo-kernelkernel-ml-doc.noarch                    4.9.10-1.el7.elrepo            elrepo-kernelkernel-ml-headers.x86_64                4.9.10-1.el7.elrepo            elrepo-kernelkernel-ml-tools.x86_64                  4.9.10-1.el7.elrepo            elrepo-kernelkernel-ml-tools-libs.x86_64             4.9.10-1.el7.elrepo            elrepo-kernelkernel-ml-tools-libs-devel.x86_64       4.9.10-1.el7.elrepo            elrepo-kernelkernel-tools-libs-devel.x86_64          3.10.0-514.6.1.el7             updates  libreport-plugin-kerneloops.x86_64      2.1.11-35.el7.centos           base     lirc-disable-kernel-rc.x86_64           0.9.1a-4.el7                   epel     perf.x86_64                             4.9.10-1.el7.elrepo            elrepo-kernelphp-symfony-http-kernel.noarch          2.8.12-2.el7                   epel     python-perf.x86_64                      4.9.10-1.el7.elrepo            elrepo-kerneltexlive-l3kernel.noarch                 2:svn29409.SVN_4469-38.el7     base     texlive-l3kernel-doc.noarch             2:svn29409.SVN_4469-38.el7     base     [ddd@localhost ~]$ 
Install Kernel

In the ELRepo source of yum, the mainline is issued and can be installed as follows:

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

Of course, you can also install long term:

yum --enablerepo=elrepo-kernel  install  kernel-lt -y
Default kernel startup

Open the grub2-efi.cfg and find CentOS Linux (4.9.10-1. el7.elrepo. x86_64) 7 (Core) replication

vim /etc/grub2-efi.cfg

Set the default startup Item

 grub2-set-default "CentOS Linux (4.9.10-1.el7.elrepo.x86_64) 7 (Core)"

Verify default startup items

grub2-editenv list

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.