This article is specifically regarding Oracle Linux 8 with UEK R7 kernel (5.15+):
[root@localhost ~]# cat /etc/oracle-release Oracle Linux Server release 8.7 [root@localhost ~]# uname -r 5.15.0-4.70.5.2.el8uek.x86_64
For all other situations involving the error "Failed to load module [veeamsnap]", please refer to KB2260.
Veeam Agent for Linux backup job fails with "Failed to load module [veeamsnap] error":
[error] Failed to load module [veeamsnap] with parameters [zerosnapdata=1 debuglogging=0 snapstore_block_size_pow=14 change_tracking_block_size_pow=18 logdir=/var/lo... [error] Processing finished with errors
Deployment of Veeam Agent for Linux from the Veeam Backup & Replication console fails with the error:
Failed to install Veeam Agent for Linux: Failed to install agent: non-matching package versions
UEK R7 is built with GCC 11, while Oracle Linux 8 ships GCC 8.5. This causes veeamsnap kernel module build failure because DKMS uses GCC 8.5:
make.log DKMS make.log for veeamsnap-6.0.3.1221 for kernel 5.15.0-4.70.5.2.el8uek.x86_64 (x86_64) make: Entering directory '/usr/src/kernels/5.15.0-4.70.5.2.el8uek.x86_64' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9.1.0.2) You are using: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-15.0.1) CC [M] /var/lib/dkms/veeamsnap/6.0.3.1221/build/log.o gcc: error: unrecognized command line option ‘-ftrivial-auto-var-init=zero’ gcc: error: unrecognized command line option ‘-fzero-call-used-regs=used-gpr’ make[1]: *** [scripts/Makefile.build:288: /var/lib/dkms/veeamsnap/6.0.3.1221/build/log.o] Error 1 make: *** [Makefile:1974: /var/lib/dkms/veeamsnap/6.0.3.1221/build] Error 2 make: Leaving directory '/usr/src/kernels/5.15.0-4.70.5.2.el8uek.x86_64'
This article will guide you through rebuilding the veeamsnap module using Software Collection (SCL) for GCC 11. SCL for GCC 11, which is shipped with UEK R7 kernel.
Example output:
[root@localhost ~]# rpm -qa | grep kernel-uek-devel-$(uname -r) kernel-uek-devel-5.15.0-4.70.5.2.el8uek.x86_64
Example output:
[root@localhost ~]# dkms status veeamsnap/6.0.3.1221: added
Example output:
[root@localhost ~]# uname -r 5.15.0-4.70.5.2.el8uek.x86_64 [root@localhost ~]# dkms status veeamsnap/6.0.3.1221, 5.15.0-4.70.5.2.el8uek.x86_64, x86_64: installed
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case