Make sure the configured kernel source is available on your Linux system. This section describes how to prepare the kernel source for the following Linux systems:
  • Red Hat Enterprise Linux 8
  • SUSE Linux Enterprise Server 15
  • CentOS Linux 8
  • A Linux system you custom build
To determine which distribution you are using, check the Summary screen in the ServerProtect Web console or by typing the following command:
uname -a
For Red Hat Enterprise Linux 8 and CentOS 8
Make sure you have installed the following RPM package:
  • kernel-devel
  • kernel
Note
Note
To check if you have already installed one of these packages, see #1 in Troubleshooting for more information.
Type the following command to install the RPM package. The package you choose to install depends on your running kernel version.
rpm -ivh <rpm package name>
Example:
If your running kernel version is “4.18.0-80.el8” and the kernel architecture is “x86_64”, type the following:
rpm -ivh kernel-devel-4.18.0-80.el8.x86_64.rpm
In addition to using the command line, you can use one of the following methods to install the packages:
  • Linux desktop environment (for example in GNOME, click ApplicationSystem SettingsAdd/Remove Program).
  • the up2date program
For SUSE Linux Enterprise Server 15
Make sure you have installed the following RPM packages on your Linux system:
  • kernel-source
  • kernel-syms
  • kernel-default
  • .kernel-default-devel
  • .kernel-macros
  • .kernel-devel
Note
Note
To check if you have already installed one of these packages, see troubleshooting solution 1 in Building and Installing Kernel Hook Module for more information.
Type the following command to install the packages:
rpm -ivh <rpm package name>
Example:
If your running kernel version is “4.12.14-195-default”, type the following commands:
rpm -ivh kernel-source-4.12.14-195.1.noarch.rpm
rpm -ivh kernel-syms-4.12.14-195.1.x86_64.rpm
rpm -ivh kernel-default-devel-4.12.14-195.1.x86_64
rpm -ivh kernel-macros-4.12.14-195.1.noarch
rpm -ivh kernel-macros-4.12.14-195.1.noarch
rpm -ivh kernel-default-4.12.14-195.1.x86_64
In addition to using the command line, you can also use the YaST tool to install the packages.
For the customized kernel you built yourself
Make sure the kernel source is configured and prepared correctly with your running kernel version.
Generally, you can do this by copying the configuration files from the /boot directory to the kernel source directory (eg. /usr/src/linux-<Kernel Version>) and type the make oldconfig and make modules_prepare commands:
cp /boot/config-<Kernel Version> /usr/src/linux-<Kernel Version>/.config
cd /usr/src/linux-<Kernel Version>
make oldconfig
make modules_prepare