Failed to load module [veeamblksnap] on Oracle Linux 9 with UEK R8 kernel
| KB ID: | 4732 |
| Product: | Veeam Agent for Linux | 6.3 | 6.3.1 | 6.3.2 | 13 | 13.1 |
| Published: | 2025-05-02 |
| Last Modified: | 2025-05-02 |
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.
Challenge
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
Cause
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'
Solution
Summary
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.
Rebuilding the veeamblksnap Module
- Check the version of Veeam Agent for Linux that is installed using the following command:
Take note of the build number that is installed, it will be referred to in later steps as v.x.y.zzzz.
- Make sure the kernel-uek-devel package matching your running kernel is installed:
Example output:
[root@localhost ~]# rpm -qa | grep kernel-uek-devel-$(uname -r) kernel-uek-devel-6.12.0-0.20.20.el9uek.x86_64
- Check dkms status output. blksnap/v.x.y.zzzz must have added status:
Example output:
[root@localhost ~]# dkms status blksnap/6.3.1.1016: added
- Build blksnap/v.x.y.zzzz with dkms using GCC 14 SCL:
Replace v.x.y.zzzz with the installed build number from Step 1.
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.
- Verify that blksnap/v.x.y.zzzz has installed status for the kernel you are running:
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
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.