Compiling a Module on Debian with Linux Kernel 2.6.29 and Higher with Xen

Debian, Suse, and other distributions with recent 2.6.29 and higher kernels, package their kernel headers in a new architecture-specific manner, which breaks compatibility with earlier established methods of building modules for kernels.

Consequently, attempting to build kernel modules on these Linux distributions can prove unsuccessful.

This is the excerpted output from one attempt. In our example here, we use r1soft-cki, but this applies for r1soft-setup in CDP3 as well.


cd /usr/src/
rsync -avz /usr/src/linux-headers-2.6.32-5-xen-amd64/ r1build/
rsync -avz /usr/src/linux-headers-2.6.32-5-common-xen/ r1build/
/usr/bin/r1soft-setup --get-module --kernel-dir /usr/src/r1build
/etc/init.d/cdp-agent restart
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing R1Soft CDP Agent on Debian/Ubuntu

Preperation: echo deb stable main >> /etc/apt/sources.list wget...

Generate and install a RapidSSL certificate on CDP Server

./keytool -genkey -keyalg RSA -alias backup01 -keystore keystoretom -keysize 2048 ./keytool...