Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

Hi,

I have installed the Veeam agent for Linux on 3 different freshly installed Ubuntu 24.04 servers, and they all report the same issue - Failed to load module [veeamblksnap]
I initially did this from a VBR server that manages a computer / protection group, and thought that was the issue.
So i removed it again, and then installed it manually - but saw that it also reports an issue.

Code: Select all

 ERR |Failed to load module [veeamblksnap].
 >>  |--tr:Failed to create Veeam snapshots.
 >>  |--tr:in void lpbcorelib::service::CSnapshotService::CreateVeeamSnapshots(const SVeeamSnapDeviceRequests&, const CSnapshotResourcePtr&, const Ptr&) at /mnt/Sources/LPBCoreLib/lpbcorelib/service/SnapshotService.cpp:146
 >>  |--tr:Failed to finish snapshot creation process.
 >>  |--tr:in virtual lpbcorelib::interaction::ISnapshotResourceLockPtr lpbcorelib::service::CSnapshotOperation::EndCreateSnapshot(lpbcorelib::service::CSnapshotTask::Ptr&) at /mnt/Sources/LPBCoreLib/lpbcorelib/service/SnapshotOperati

 >>  |--tr:Failed to execute method [1] for class [lpbcorelib::interaction::ISnapshotOperation].
 >>  |--tr:in void remoting::CStubBase<TStub, TObject>::ExecuteMethod(remoting::method_id_t, remoting::IStub::SDispatchContext&) const [with TStub = lpbcorelib::interaction::proxystub::CSnapshotOperationStub; TObject = lpbcorelib::int
unsigned int] at /mnt/Sources/LPBCoreLib/lpbcorelib/interaction/proxystub/../../../../ProtocolLib/remoting/StubBase.h:77
 >>  |--tr:Failed to take volume snapshot.
 >>  |--tr:in static lpbcorelib::interaction::ISnapshotResourceLockPtr lpbcorelib::backup::CSnapshotHelper::TakeSnapshot(vmbplatform::model::CBackupJobPtr, const std::__cxx11::list<boost::shared_ptr<lpbcorelib::backup::IBackupObject> 
ggerPtr, lpbcorelib::backup::CCbtDataContainer&, bool) at /mnt/Sources/LPBCoreLib/lpbcorelib/backup/snapshot/SnapshotHelper.cpp:142
 >>  |Managed backup job has failed.
 >>  |--tr:in virtual void lpbcorelib::backup::CManagedBackupJobPerformer::execute() at /mnt/Sources/LPBCoreLib/lpbcorelib/backup/ManagedBackupJobPerformer.cpp:205
 >>  |An exception was thrown from thread [123324529116864].
uname -r

Code: Select all

6.8.0-45-generic
lsb_release -a

Code: Select all

Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble
Is this a known issue, or what am i missing here?
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev »

Hello Kristian,

Are you running those machine with SecureBoot enabled?
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

Hi Rovshan,

Yes according to mokutil --sb-state​, then SecureBoot is enabled.
Is that the issue?
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev » 1 person likes this post

You need to install certificate and enroll MOK, so module can be loaded.

See the the following topic, where I posted several instructions: veeam-agents-for-linux-mac-aix-solaris- ... 90746.html

Also see the User Guide: https://helpcenter.veeam.com/docs/agent ... _boot.html

Let me know the results.
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

Hi Rovshan,

I have tried your guide, but i am never asked to set the MOK password.
So far i have done this:

Code: Select all

wget https://repository.veeam.com/.private/deb/veeamsnap/veeamsnap_6.2.0.101_all.deb

Downloaded the veeam repo, and ran this - dpkg -i ./veeam-release* && apt-get update

 dpkg -i veeamsnap_6.2.0.101_all.deb
(Reading database ... 123896 files and directories currently installed.)
Preparing to unpack veeamsnap_6.2.0.101_all.deb ...
Deleting module veeamsnap-6.2.0.101 completely from the DKMS tree.
Unpacking veeamsnap (6.2.0.101) over (6.2.0.101) ...
Setting up veeamsnap (6.2.0.101) ...
Loading new veeamsnap-6.2.0.101 DKMS files...
Building for 6.8.0-45-generic
Building initial module for 6.8.0-45-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/veeamsnap.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-45-generic (x86_64)
Consult /var/lib/dkms/veeamsnap/6.2.0.101/build/make.log for more information.
dpkg: error processing package veeamsnap (--install):
 installed veeamsnap package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 veeamsnap



Veeam cant be installed because veeamsnap is not available
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev »

Hello Kristian,

Veeamsnap module is supported up to Linux kernel 5.18
The Blksnap module is supported for Linux kernels starting from 5.10

See also offline installation guide: https://helpcenter.veeam.com/docs/agent ... ver=60#deb
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

I have executed this:

Code: Select all

apt-get remove veeam veeam-libs veeamsnap

wget https://repository.veeam.com/backup/linux/agent/dpkg/debian/public/pool/veeam/b/blksnap-dkms/blksnap_6.2.0.101_all.deb
wget https://repository.veeam.com/backup/linux/agent/dpkg/debian/public/pool/veeam/v/veeam-libs/veeam-libs_6.2.0.101_amd64.deb
wget https://repository.veeam.com/backup/linux/agent/dpkg/debian/public/pool/veeam/v/veeam/veeam_6.2.0.101_amd64.deb

apt-get install ./blksnap_6.2.0.101_all.deb
apt-get install ./veeam-libs_6.2.0.101_amd64.deb
apt-get install ./veeam_6.2.0.101_amd64.deb
I installed blksnap instead of veeamsnap, since thats what mentioned in the guide - https://helpcenter.veeam.com/docs/agent ... ver=60#deb

Little did it help - the backup still fails when triggered from a 12.2 VBR server - Failed to load module [veeamblksnap].
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev »

Did you follow instruction after installations? https://helpcenter.veeam.com/docs/agent ... nel-module
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

I am unsure what the instructions are exactly - but i rebooted the VM, and entered the encryption password (the VM was installed with an encryption password for booting).
But there were no MOK enrollment or similar, like in the screenshots.

Any suggestions?
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev » 1 person likes this post

Hi,

During blksnap installation you should get following step, where you input password, which you would use for enrolment during reboot:

Image

After that installing veeam-libs & veeam packages, module will load as expected:

Image

As troubleshoot, after reboot try to load module manually:

Code: Select all

# modprobe veeamblksnap
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

Thanks for the support, but it still doesnt work.

If i understand it correctly, then during this step, i should get a pop-up?
Image
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev »

Hello,

Yes during blksnap package installation, you should get pop up message with password input step:

Code: Select all

apt-get install ./blksnap_6.2.0.101_all.deb
Try following:

1. Remove all packages
2. Install blksnap_6.2.0.101_all.deb
3. If you still do not get that pop up message, check following files if exist:

Code: Select all

ls -l /var/lib/shim-signed/mok/
total 8
-rw-r--r-- 1 root root  927 Sep 21 10:22 MOK.der
-rw------- 1 root root 1704 Sep 21 10:22 MOK.priv
4. If so, run following command, which will ask password prompt:

Code: Select all

mokutil --import /var/lib/shim-signed/mok/MOK.der
5. Reboot the machine and catch MOK enrollment (blue) screen
6. Enroll with password which you input in the step 4
7. After reboot install veeam-libs & veeams packages
8. Test simple backup job

Let me know the result.
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
ksl28
Enthusiast
Posts: 63
Liked: 12 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by ksl28 »

Awesome - this command did the trick!

Code: Select all

mokutil --import /var/lib/shim-signed/mok/MOK.der
I have tested this across all 3 servers now, and it worked flawlessly on all of them.

Could this be a bug ?
rovshan.pashayev
Veeam Software
Posts: 568
Liked: 113 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: Ubuntu 24.04 - Veeamsnap

Post by rovshan.pashayev » 1 person likes this post

Hello,

Happy to hear that all worked for you.
This is not a bug, and User Guide has this information already: https://helpcenter.veeam.com/docs/agent ... nel-module

[Ubuntu 22.04 and later] After you install the Veeam kernel module, the key is generated and imported into your system automatically. By default, the key is stored in the /var/lib/shim-signed/mok directory.
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests