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

Lars Ellenberg Lars.Ellenberg at linbit.com
Thu Jul 20 21:44:49 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.

you need to subscribe to be allowed to post here...

/ 2006-07-20 16:15:02 +0200
\ Aike de Jongste:
> Hi,
> 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".

: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
please use the "List-Reply" function of your email client.

More information about the drbd-user mailing list