Kernel Headers (for building r1soft's kernel module)

William G

New Member
Apr 17, 2016
5
0
1
40
When trying to build r1soft's kernel module, the build process fails because the kernel-source [pve-kernel-4.2.6-1-pve] does not match the running kernel. We rebooted right before trying to build to ensure we were running the latest kernel available.

I contacted their support, who said:

"I do not believe you will be able to obtain the correct kernel devel packages for your Proxmox server in order to install the agent. You will need to contact proxmox directly to have kernel-devel-4.2.6-1-pve installed on the server. In the past users have had to install a normal distribution kernel in order to use R1Soft because Proxmox had not provided this package to them. "
Relevant pveversion info:
proxmox-ve: 4.1-26 (running kernel: 4.2.6-1-pve)
pve-kernel-4.2.6-1-pve: 4.2.6-26

root@vm6:~# dpkg -l | grep pve-headers
ii pve-headers-4.2.6-1-pve 4.2.6-26 amd64 The Proxmox PVE Kernel Headers

There are some other thread, such as https://forum.proxmox.com/threads/u...dkms-driver-module-install.26470/#post-132861 , but they seem to refer to situations where the wrong kernel is running.

There is also https://forum.proxmox.com/threads/installing-r1soft-cdp-3-0-agent-into-proxmox.7518/ where someone says "The issue is that the running kernel does not match the source being installed with `apt-get install pve-headers-x` - They are not the same. This can happen even if the running kernel and kernel source have the same numerical value"

Does anyone have any suggestions - or, is it possible to run a normal kernel instead of the proxmox special kernel so that I can have access to the correct headers?
 
...

"I do not believe you will be able to obtain the correct kernel devel packages for your Proxmox server in order to install the agent. You will need to contact proxmox directly to have kernel-devel-4.2.6-1-pve installed on the server. In the past users have had to install a normal distribution kernel in order to use R1Soft because Proxmox had not provided this package to them. "

We always provide the pve-header packages for all kernels, just check:http://download.proxmox.com/debian/dists/jessie/pve-no-subscription/binary-amd64/

this should be enough for building.
 
Thank you - I am raising this issue back with r1soft, as I think this might be on their side.

As you kindly point out, you do provide the headers, and those are the headers i've been passing to r1soft.

Annoyingly, they use a 'build server' so I can't see what exactly is failing on their side. However, as of now, believe this is a r1soft problem, and not a proxmox problem!
 
Steps

1)First remove old kernels https://forum.proxmox.com/threads/remove-old-kernel-in-pve3.15351/

2) Install Proxmox kernel headers ( match the existing kernel)

root@gina:~# uname -r
4.4.35-2-pve

wget http://download.proxmox.com/debian/.../pve-headers-4.4.35-2-pve_4.4.35-78_amd64.deb

dpkg -i pve-headers-4.4.35-2-pve_4.4.35-78_amd64.deb

3) Packages

Original docs at http://wiki.r1soft.com/display/Serv...ll+Backup+Agent+on+Debian+and+Ubuntu+manually
Download the Linux Backup Agent software http://wiki.r1soft.com/display/ServerBackup/Obtain+Linux+Backup+Agent

unzip ServerBackup-Enterprise-Agent-linux64.zip
dpkg -i *.deb

3) Install kernel modules

Building header archive ...
Session ID: 865965334
Waiting to upload...
Uploading file...
Waiting in build queue...
Building...
Downloading module…

Check successfully installation
  • lsmod | grep hcpdriver
    hcpdriver 69632 4
ls -l /lib/modules/r1soft/
total 1356
-rw-r--r-- 1 root root 1387072 Jan 17 21:23 hcpdriver-cki-4.4.35-2-pve.ko
lrwxrwxrwx 1 root root 49 Jan 17 21:16 hcpdriver.o -> /lib/modules/r1soft/hcpdriver-cki-4.4.35-2-pve.ko

4) Setup

serverbackup-setup --user admin --pass XXXXX
serverbackup-setup --http-port 8080 --https-port 8443

Tricky : serverbackup-setup --get-key https://YourIP:8443

After you have copied the Backup Manager public key to the Backup Agent, you can add this machine to your Backup Manager. For more information about copying the Backup Manager public key to the Backup Agent, see Add the key to Windows Backup Agent, and Add key to Linux Backup Agent.http://wiki.r1soft.com/display/ServerBackupManager/Backup+Now +

http://wiki.r1soft.com/display/ServerBackupManager/Add+key+to+Linux+Backup+Agent
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!