-
To check current kernel version on CentOS, open a command-line interface and enter following command:
# uname -msr
-
To update CentOS software repositories, use the command:
# sudo yum -y update
-
To install the new kernel version, a new repository (ELRepo repository) needs to be enabled, type:
# sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
-
Next, install the ELRepo repository by executing the following command:
# sudo rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
-
Allow the system to finish performing the operation.
-
To list available kernels, enter:
# yum list available --disablerepo='*' --enablerepo=elrepo-kernel
-
To install the latest mainline kernel:
# sudo yum --enablerepo=elrepo-kernel install kernel-ml
-
Reboot your system by running the command:
# reboot
-
In case VM is not accessible after this step then soft reboot from Fiware-Lab GUI.
-
To set Default Kernel Version type the following in the terminal:
# sudo vim /etc/default/grub
-
Once the file opens, look for the line that says
GRUB_DEFAULT=X
, and change it toGRUB_DEFAULT=0
-
Save the file, and then type the following command in the terminal to recreate the kernel configuration:
# sudo grub2-mkconfig -o /boot/grub2/grub.cfg
-
Reboot once more:
# reboot
-
In case VM is not accessible after this step then soft reboot from Fiware-Lab GUI.