WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] compiling xen with custom kernel

To: "John A. Sullivan III" <jsullivan@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] compiling xen with custom kernel
From: Shavian Shakes <shavian78@xxxxxxxxx>
Date: Tue, 27 Sep 2005 14:21:21 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 27 Sep 2005 21:19:06 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=iylDU4U1e3y8dXwLDYPDobG68zw6yqM+MDQS6qLRRmwpSCI8GOJkhYMqHdwk/Z0xieZgBuClRSiupzfrQ+gH3aUsLzyfngKPeVfTHn6+a/hONTcauSucECuMQQpnrFgvTsmodFBxyOlaWEfojeNf32k6s2mo3O6buH0CZp+hBCQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1127834424.2652.18.camel@localhost>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <a7243e5e0509262318db6b983@xxxxxxxxxxxxxx> <1127834424.2652.18.camel@localhost>
Reply-to: Shavian Shakes <shavian78@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On 9/27/05, John A. Sullivan III <jsullivan@xxxxxxxxxxxxxxxxxxx> wrote:
On Mon, 2005-09-26 at 23:18 -0700, Shavian Shakes wrote:
> Hello,
>
> I am trying to compile xen with either Suse sles9 or RH rhel4 kernels
> ( to make xen0 and xenU kernels from the sles9 or rhel4 sources). I
> have downloaded the xen sources but not sure how to proceed. Do I need
> a special xen patch for sles9 or rhel4? I did find a patch for debian
> referred to at http://www.xmlvalidation.com/xen_howto_sarge.0.html.
> But I cant find a similar patch for rhel/sles. I apologize if this is
> common information but I cannot easily find it. Or if someone can
> point me to instructions for doing the same it will be great !
<snip>
You can pretty much find all the information you need in the
documentation and readme.  Go ahead and install xen.  Find the kernel
you want to customize (e.g., 2.4 or 2.6, xen0 or xenU) in the xen
directory.  Customize it as with any kernel but adding the setting
ARCH=xen, e.g.,

make ARCH=xen menuconfig
make ARCH=xen
make ARCH=xen modules
etc.

Hope this helps.  If you need more help, I do have a step by step
instruction sheet on how we set it up in our test lab.  It is very
specific to us.  I sent it to some others on this list at their request.
Perhaps they could comment if they found it helpful; I won't be the
least bit offended if they say it was not -- it was very specific and
based upon our first, ignorant attempt!
 
 
When I untar the xen sources, I get a top level dir "xen-2.0" under which there is a directory called "xen". Per your instruction "Find the kernel you want to customize (e.g., 2.4 or 2.6, xen0 or xenU) in the xen directory. " , I did the following:
 
cd xen-2.0
mv xen xen_orig
ln -s /usr/src/linux xen  (since I want to customize the sles9 kernel residing in /usr/src/linux)

Then I try to configure the kernel but this failed (as expected, since it does not know anything about xen):
 
# cd /xen/xen-2.0/xen
# make ARCH=xen menuconfig
scripts/kconfig/mconf arch/xen/Kconfig
can't find file arch/xen/Kconfig
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2
 
I guess I need to apply some patch to the sles kernel. The only patch I find in the xen sources is :
# cd /xen/xen-2.0/patches/linux-2.6.11
# ls
.  ..  .makedep  agpgart.patch  iomap.patch  linux-2.6.11.10.patch  nettel.patch
 
which seem to be for the 2.6.11 kernel, but the sles9 kernel I have is  2.6.5-7.97-smp.
 
John, If you can send me your instructions from your test lab, that will be really helpful.
 
thanks
Shavian.
 
 
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>