[DRBD-user] Compiling drbd0.7-module for the xen-kernel from backports

Jurrit de Vries jurrit at virtualconcepts.nl
Thu Aug 3 17:39:33 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Lars Ellenberg wrote:
>> I am trying to use drbd between two xen-guests running debian sarge.
>> But I am having trouble compiling the drbd module. The xen-kernel I am
>> using is 2.6.16-2-xen-k7 which is available trough backports.org. I
>> tried to compile drbd0.7.10-4 (debian stable) and
>> drbd0.7.20-1(unstable) using the kernel headers that belong to this 
>> kernel.
>>
>> 0.7.10-4 error:
>> make[1]: Entering directory `/usr/src/linux-headers-2.6.16-2-xen-k7'
>> make[1]: Makefile: No such file or directory
>> make[1]: *** No rule to make target `Makefile'.  Stop.
>>
>> 0.7.20-1 error (almost the same):
>> Calling toplevel makefile of kernel source tree, which I believe is in
>> KDIR=/usr/src/linux-headers-2.6.16-2-xen-k7/
>> SORRY, kernel makefile not found. You need to tell me a correct KDIR!
>>
>> Is it possible to compile the drbd module against the kernel headers?
> 
> yes. when they are there.
> your "toplevel Makefile" is not there.
> I guess it is a symlink to some part of kernel headers which you 
> forgot to "install".

It turned out we had to compile the drbd module on the xenhost against
the kernel headers without ARCH=Xen. There is no seperate arch for xen
in the backports debian kernel packages.

The compiled drbd .deb can be used on the domU systems. Probably you
need to do mknod to create drbd devices.

Jurrit




More information about the drbd-user mailing list