This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] Still un-answered: How-To build Xen (3.2) to override Xe

To: "Jithendra Bethur" <bcj01@xxxxxxxxx>
Subject: Re: [Xen-users] Still un-answered: How-To build Xen (3.2) to override XenSource's linux-kernel (2.6.18) with a xenified kernel (your own or distribution)
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Sun, 6 Jul 2008 18:55:11 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 06 Jul 2008 15:55:56 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type:references; bh=xTZocVsIPpiw2P8zMTtU4t/BBSjqb+tqwmm3iac3IgM=; b=Q3UDsZOI65SKj4lLdo+KoOCpFcSc7mslnUHDdfqkoaa3C8b68YWIil8Hz7ogUWNhqK 9UH7cma87cEjcW0yl0Q6zs8NtdYhS3MAo6arKO40/EOGwck8dVwSQpjBmU0Du5XCUMLG F9b+aGvYzaoSVB0VIeV1P6vaF2QMtbMy6YA3U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:references; b=s7h2RcO6ZbYS80ks+xkRy3PLFwW1jsABGF8cm3eeiSrmv3b4vryD41648AZ8ZfRgw7 WhOQ/ky8qcbuVjB/Zbf8GQqpQz1JIWE0xQXS4tcysk6WUwbCmp95+HB/pmZw4JdnCl5W A0/JniZoHLKo4cq4PfCVgkBsaU56Ng6g9p8uw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <717239.85740.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <717239.85740.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Sun, Jul 6, 2008 at 6:22 PM, Jithendra Bethur <bcj01@xxxxxxxxx> wrote:



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


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-, 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- source tree from Fedora Core 8 repository.

- Now either edit Makefile or export to set variable KERNELS=linux-

- make clean

- make world

RESULT: It still builds the same old linux-2.6.18 stuff.


Method #2:

- In addition to the KERNELS=linux-, 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- 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).


For this method #2, I have had luck getting it to work by changing the file <xen tree>/buildconfigs/src.hg-clone
you just need to change that file to be:

# Mercurial
HG ?= hg

LINUX_SRCDIR ?= linux-$(LINUX_VER)-xen.hg

# Repository to clone.
XEN_LINUX_HGREPO ?= $$(sh buildconfigs/select-repository $(LINUX_SRCDIR) $(LINUX_SRC_PATH))

# Set XEN_LINUX_HGREV to update to a particlar revision.

    ln -snf ../linux-2.6.18-xen-3.2.0 linux-2.6.18-xen.hg
    touch $@

A reference for this:
http://xen.markmail.org/search/?q=building+3.2.1#query:building 3.2.1+page:1+mid:nqzv32jhed3uvqto+state:results

Hope that helps.


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,

Jithendra B


Xen-users mailing list

Todd Deshane
check out our book: http://runningxen.com
Xen-users mailing list