For Cloud Backup

Cyber Protection Agent supports Linux with kernel 2.6.9 through 5.1 and glibc 2.3.4, as well as a number of x86 and x86_64 distributions. These are listed in the following article:

https://dl.managed-protection.com/u/baas/help/20.08/user/en-US/index.html#33496.html

Ensure that your server has a kernel installed that is supported by the Cyber Protection Agent.

If the installed kernel version is not supported, you will see the following error message:

Failed to install the required package 'RPM' by using APT. │
         │ Please install it manually.
root@localhost:~# yum install rpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rpm

In this case, first check the installed kernel version and update the kernel.

Checking Kernel Versions

To check the kernel version, enter the following command:

root@localhost:~# uname -r

Showing Available Kernels

To display the available kernels, type the following command:

yum --showduplicates list kernel | expand

Showing Kernel Level Packages

To display the available kernel-devel packages, issue the following command:

yum --showduplicates list kernel-devel | expand

Installing the Latest Kernel Version

Below you will learn how to install a CentOS the latest kernel version.

Attention
  • Always perform a backup before performing a kernel update. You can use WinSCP for this purpose, for example.

  • Always check the release notes before updating the kernel.

  • Most distributions support parallel installation of new and existing kernels. Do not delete the existing kernel until you have finished testing the new kernel.

  • To install the latest kernel version, enter the following commands:

    yum install kernel
    yum install kernel-devel

  • To reboot, enter the following command:

    [root@localhost ~]# reboot

  • To check which kernel version is used at boot time, enter the following command:

    [root@localhost ~]# $ uname -r

Checking Whether a Dedicated Server Uses UEFI or BIOS

Depending on whether UEFI or BIOS is used as the interface between the hardware and the operating system, you must specify different parameters when you set the kernel version as the default.

To check whether your server uses BIOS or UEFI as the interface between the hardware and the operating system, enter the following command:

[root@localhost ~]# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

Setting the Kernel Version as Default

To set the kernel version as default in CentOS 7, do the following:

  • Open the /etc/default/grub file with the vi editor. Enter the following command:

    [root@localhost ~]# vi /etc/default/grub

  • Replace the value at the entry GRUB_DEFAULT= with 0:

    GRUB_TIMEOUT=1
    GRUB_DEFAULT=0
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop crashkernel=auto"
    GRUB_DISABLE_RECOVERY="true"

  • Rebuild the grub configuration file. To do this, enter the following command:

    BIOS

    [root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg

    UEFI

    [root@localhost ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg