Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[HowTo] Install or Upgrade to Kernel 4.17 in CentOS 7 and VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
xorro
Posts: 87
Joined: Sun Nov 13, 2016 3:11 pm
Contact:
Contact xorro
Website Skype

Os: CentOS 6x
Web: apache + nginx
[HowTo] Install or Upgrade to Kernel 4.17 in CentOS 7 and VestaCP
  • Quote

Post by xorro » Tue Sep 11, 2018 7:14 pm

In this tutorial we’ll updating/installing Kernel 4.17 on Linux OS – Centos 7. So what is kernel? -A kernel is the lowest level of easily replaceable software that interfaces with the hardware in your computer/server. It is responsible for interfacing all of your applications that are running in “user mode” down to the physical hardware, and allowing processes, known as servers, to get information from each other using inter-process communication (IPC).

In order to Update Kernel This requirements are mandatory :
  • Centos 7 with root access
  • KVM virtualization/any other full virtualization OR Dedicated Server
  • SSH/Terminal access
Let’s started with Kernel install/update procedure :

Check current kernel version :

Code: Select all

uname -sr
Eg. output :

Code: Select all

[root@server ~]# uname -sr
Linux 3.10.0-123.4.2.el7.x86_64
Now We’ll Start the procedure of Kernel upgrade on CentOS 7 :

We need to enable the ELRepo repository on CentOS 7, run the below commands :

Code: Select all

rpm --import http://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
You can retrieve latest download links on official page here

Now we’ll install Kernel 4.16 with the below command :

** at the time kernel 4.16 was available as latest version, for latest versions the procedure will be the same.

Code: Select all

yum --enablerepo=elrepo-kernel install kernel-ml -y
Now kernel 4.16 will downloaded and installed this process will take some time to complete.

Now we need to add/modify config under /etc/default/grub :

Code: Select all

nano /etc/default/grub
And put this line or modify the line if already exists to :

Code: Select all

GRUB_DEFAULT=0
eg :

Code: Select all

[root@server ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="vconsole.keymap=us crashkernel=auto  vconsole.font=latarcyrheb-sun16 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
[color=#FF0000]GRUB_DEFAULT=0[/color]
Save the file and run this command to create the kernel configs :

Code: Select all

grub2-mkconfig -o /boot/grub2/grub.cfg
That’s it reboot your server and check the kernel version again :

Code: Select all

uname -sr

Code: Select all

[root@server ~]# uname -sr
Linux 4.17.6-1.el7.elrepo.x86_64
TO update :

Code: Select all

yum clean all
yum --enablerepo=elrepo-kernel install kernel-ml
or
yum --enablerepo=elrepo-kernel update kernel-ml
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password