Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
LickABrick
Enthusiast
Posts: 67
Liked: 31 times
Joined: Dec 23, 2019 7:26 pm
Full Name: Lick A Brick
Contact:

[Question] Veeamsnap 4.0.0.1961 not able to install/build

Post by LickABrick »

EDIT: Fixed it by running:

Code: Select all

dkms build -m veeamsnap/4.0.0.1961 --kernelsourcedir /usr/src/linux-headers-4.19.0-8-amd64
Followed by:

Code: Select all

dkms install -m veeamsnap/4.0.0.1961 --kernelsourcedir /usr/src/linux-headers-4.19.0-8-amd64
Looked for a solution for hours yesterday, guess I need to make a forum post for help faster next time ;)

I am running proxmox with kernel version 5.3.18-3-pve.
I have installed pve-headers and pve-headers-5.3.18-3-pve (and pve-headers-5.3).

When I try to install Veeamsnap via:

Code: Select all

dkms build -m veeamsnap/4.0.0.1961 --kernelsourcedir /usr/src/linux-headers-5.3.18-3-pve/
I get the following error:

Code: Select all

Preparing kernel 5.3.18-3-pve for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper...(bad exit status: 2)
Warning: using /usr/src/linux-headers-5.3.18-3-pve//.config
(I hope this is the correct config for this kernel)
make oldconfig...(bad exit status: 2)
make prepare-all...(bad exit status: 2)

Building module:
cleaning build area...(bad exit status: 2)
make -j8 KERNELRELEASE=5.3.18-3-pve -C /usr/src/linux-headers-5.3.18-3-pve/ M=/var/lib/dkms/veeamsnap/4.0.0.1961/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.18-3-pve (x86_64)
Consult /var/lib/dkms/veeamsnap/4.0.0.1961/build/make.log for more information.
If I look in the mentioned log I see the following:

Code: Select all

DKMS make.log for veeamsnap-4.0.0.1961 for kernel 5.3.18-3-pve (x86_64)
Wed 08 Apr 2020 06:10:36 PM CEST
make: Entering directory '/usr/src/linux-headers-5.3.18-3-pve'
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/log.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/mem_alloc.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/sparse_bitmap.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/container.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/container_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/queue_spinlocking.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/bitmap_sync.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/page_array.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/rangelist.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/rangelist_ex.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/rangevector.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/blk_util.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/blk_direct.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/blk_redirect.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/blk_deferred.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/defer_io.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_storage.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_map.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_notify.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_params.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_persistent.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_checkfs.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/ext4_check.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/tracker.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/tracker_queue.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/snapimage.o
/var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_persistent.c: In function ‘cbt_persistent_device_attach’:
/var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_persistent.c:862:37: error: too few arguments to function ‘lookup_bdev’
         struct block_device* bdev = lookup_bdev(dev_name);
                                     ^~~~~~~~~~~
In file included from /var/lib/dkms/veeamsnap/4.0.0.1961/build/stdafx.h:12,
                 from /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_persistent.c:1:
./include/linux/fs.h:2680:29: note: declared here
 extern struct block_device *lookup_bdev(const char *, int mask);
                             ^~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:290: /var/lib/dkms/veeamsnap/4.0.0.1961/build/cbt_persistent.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/veeamsnap/4.0.0.1961/build/snapdata_collect.o
make: *** [Makefile:1655: _module_/var/lib/dkms/veeamsnap/4.0.0.1961/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.3.18-3-pve'

I have tried many things like reinstalling Veeam Agent, rebooting, building veeamsnap from source. All without success, so I hope someone here might be able to help me.
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: [Question] Veeamsnap 4.0.0.1961 not able to install/build

Post by PTide »

Hi,

Hmmm...well, although proxmox utilizes .deb packages, it's neither Debian or Ubuntu, hence VAL doesn't yet support it officially.

However, the error is related to the functionality that is not utilized by the product yet (not sure how it got there). I will figure it out and will ask our dev team if there are ways to cut it out so the module will build on PVE kernel.

As for the workaround that you used - I am afraid that if you build the module using non-pve kernel sources then it won't work on PVE kernel.

Thanks!
LickABrick
Enthusiast
Posts: 67
Liked: 31 times
Joined: Dec 23, 2019 7:26 pm
Full Name: Lick A Brick
Contact:

Re: [Question] Veeamsnap 4.0.0.1961 not able to install/build

Post by LickABrick »

@PTide, you were right it didn't work indeed. I also figured out the issue in the end. I had to create a symlink with:

Code: Select all

ln -s /usr/src/linux-headers-5.3.18-3-pve /lib/modules/5.3.18-3-pve/source
For some reason this was not done automatically. I checked with someone else and on his system this link was made automatically.
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: [Question] Veeamsnap 4.0.0.1961 not able to install/build

Post by PTide »

Please try the following:

1. Open veeamsnap-4.0.0.1961/Makefile
2. Comment out

Code: Select all

ccflags-y += $(shell if [[ 0 -ne $(shell cat $(include_linux)/fs.h | grep 'lookup_bdev' | grep -c 'mask' ) ]]; then echo "-DLOOKUP_BDEV_MASK"; fi )
and add this:

Code: Select all

ccflags-y += "-DLOOKUP_BDEV_MASK"
3. Rebuild and reinstall

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests