This article is specifically regarding Oracle Linux 9 with UEK R8 kernel (6.12+):
[root@localhost ~]# cat /etc/os-release PRETTY_NAME="Oracle Linux Server 9.5"
[root@localhost ~]# uname -r 6.12.0-0.20.20.el9uek.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 [veeamblksnap] error":
[error] Failed to create volume snapshot [error] Failed to take volume snapshot [error] Failed to perform backup [error] Veeam snapshot kernel module not found
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 R8 is built with GCC 14, while Oracle Linux 9 ships GCC 11. This causes veeamsnap kernel module build failure because DKMS uses GCC 11:
[root@localhost ~]# cat /var/lib/dkms/blksnap/6.3.1.1016/build/make.log DKMS (dkms-3.1.8) make.log for blksnap/6.3.1.1016 for kernel 6.12.0-0.20.20.el9uek.x86_64 (x86_64) Tue Apr 29 04:08:26 PM EEST 2025 Building module(s) # command: make -j2 KERNELRELEASE=6.12.0-0.20.20.el9uek.x86_64 -j2 -C /lib/modules/6.12.0-0.20.20.el9uek.x86_64/build M=/var/lib/dkms/blksnap/6.3.1.1016/build modules make: Entering directory '/usr/src/kernels/6.12.0-0.20.20.el9uek.x86_64' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1) You are using: gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5.0.1) CC [M] /var/lib/dkms/blksnap/6.3.1.1016/build/bdevfilter.o CC [M] /var/lib/dkms/blksnap/6.3.1.1016/build/log.o gcc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’? make[2]: *** [scripts/Makefile.build:229: /var/lib/dkms/blksnap/6.3.1.1016/build/bdevfilter.o] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’? make[2]: *** [scripts/Makefile.build:229: /var/lib/dkms/blksnap/6.3.1.1016/build/log.o] Error 1 make[1]: *** [/usr/src/kernels/6.12.0-0.20.20.el9uek.x86_64/Makefile:1960: /var/lib/dkms/blksnap/6.3.1.1016/build] Error 2 make: *** [Makefile:226: __sub-make] Error 2 make: Leaving directory '/usr/src/kernels/6.12.0-0.20.20.el9uek.x86_64'
This article will guide you through rebuilding the veeamsnap module using Software Collection (SCL) for GCC 14 SCL for GCC 14, which is shipped with UEK R8 kernel.
Example output:
[root@localhost ~]# rpm -qa | grep kernel-uek-devel-$(uname -r) kernel-uek-devel-6.12.0-0.20.20.el9uek.x86_64
Example output:
[root@localhost ~]# dkms status blksnap/6.3.1.1016: added
Example output:
[root@localhost ~]# scl enable gcc-toolset-14 -- dkms install -m blksnap/6.3.1.1016 --force Deprecated feature: CLEAN (/var/lib/dkms/blksnap/6.3.1.1016/source/dkms.conf) Sign command: /lib/modules/6.12.0-0.20.20.el9uek.x86_64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Building module(s)..... done. Signing module /var/lib/dkms/blksnap/6.3.1.1016/build/veeamblksnap.ko Signing module /var/lib/dkms/blksnap/6.3.1.1016/build/bdevfilter.ko Installing /lib/modules/6.12.0-0.20.20.el9uek.x86_64/extra/veeamblksnap.ko.xz Installing /lib/modules/6.12.0-0.20.20.el9uek.x86_64/extra/bdevfilter.ko.xz Running depmod..... done.
Example output:
[root@localhost ~]# uname -r 6.12.0-0.20.20.el9uek.x86_64
[root@localhost ~]# dkms status blksnap/6.3.1.1016, 6.12.0-0.20.20.el9uek.x86_64, x86_64: installed
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case