I can say that I have searched the entire 'world wide web' and still haven't found 'complete and clear answers' to the often asked question of:
Given a Xen (release) build (say 3.2.0), which by default tries to get and build and assume Linux kernel-xen 2.6.18 from the mercurial repository, HOW TO override the build and make it work with a 'different' xenified Linux source tree (kernel-xen) say Fedora Core 8 kernel-xen 18.104.22.168-3.fc8-xen.src.rpm
I have seen all the discussions on this topic but there are no complete and clear answers (many of them even digress from the main point and asnwer partial question!).
Some past threads are:
Re: [Xen-devel] building xen without mercury repository access
Re: [Xen-users] Howto compiling Xen 3.2 on Debian/Ubuntu (was: Compiling Xen-3.2.0)
I am able to build with the default XenSource' xenified Linux kernel 2.6.18 (although there are some booting issues and xend fails).
What I (and many) want to know is, how to build the same Xen 3.2.x from source, but make it use (or point to) a different xenified Linux kernel-xen, say with the Fedora Core 8's xenified Linux kernel-xen-2.6-22.214.171.124-3.fc8.src.rpm, instead of using the default tarball (XenSource' xenified Linux kernel 2.6.18).
Note: Now I don't know how to make a tarball from this FC8 rpm though; appriciate any help on that too).
Here is what I have tied:
Method #1: (and a few variations of this)
- Get Xen 3.2.x source tarball and get it to build properly first with default linux-2.6.18 (from mercurial).
- Parallel to Xen-3.2.x (same parent) create linux-126.96.36.199-3.fc8-xen source tree from Fedora Core 8 repository.
- Now either edit Makefile or export to set variable KERNELS=linux-188.8.131.52-3.fc8
- make clean
- make world
RESULT: It still builds the same old linux-2.6.18 stuff.
- In addition to the KERNELS=linux-184.108.40.206-3.fc8, I also tried re-creating the symbolic link in the Xen-3.2.0 directory 'linux-2.6.18' to (wrongly) point to the linux-220.127.116.11-3.fc8 source tree.
RESULT: the link got re-created back to point at the original linux-2.6.18 during 'make world'.
Any clear and complete instructions would be highly appriciated. (The README in the Xen source tarball is also not sufficient or complete).
PS: I am not a expert but an intermediate level user in linux/kernel builds, etc. Prefer instructions spelled out step-by-step.
-Thanks and regards,