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] how to build xen + dom0 and domU from source?

To: TMC <tmciolek@xxxxxxxxx>
Subject: Re: [Xen-users] how to build xen + dom0 and domU from source?
From: Riccardo Veraldi <Riccardo.Veraldi@xxxxxxxxxxxx>
Date: Sat, 19 Jan 2008 10:10:47 +0100
Cc: Xen users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 19 Jan 2008 01:11:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <d2a2bd30801190103r4bb39496y923ea32c16866bd6@xxxxxxxxxxxxxx>
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: <d2a2bd30801190103r4bb39496y923ea32c16866bd6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
it won't work.
it will work straight for kernel 2.6.18.
But for any other kernels 2.6.18.X it won't work.
Otherwise you need specific patches to be applied but they are not present in hte default
xen 3.1.0 sources.
I can provide you a src rpm with all te patches needed to compile Xen 3.1.2
under the latest RHEL5 kernel 2.6.18-53.1.4

Rick


TMC wrote:
Hi Guys.

I am trying to build xen 3.1 + linux dom0 and linux domU from source
with linux  2.6.18.8 as linux kernel.

I do the following steps, which seem logical to me (because that is
how things worked for me with Xen 3.0.4)

1. extract 3.1 source tarball

2. edit buildconfigs/mk.linux-2.6-xen to reflect chanage in kernel
version to 2.6.18.8.

3. run 'make linux-2.6-xen0-config config=menuconfig'

4. run 'make dist KERNELS="linux-2.6-xen0" and instead of a clan
build, I end up with this  error:

/usr/src/xen-3.1.0-src/linux-2.6.18.8-xen/arch/i386/kernel/head-xen.S:4:27:
error: linux/elfnote.h: No such file or directory
make[6]: *** [arch/i386/kernel/head-xen.o] Error 1
make[5]: *** [arch/i386/kernel] Error 2
make[4]: *** [vmlinuz] Error 2
make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory
`/usr/src/xen-3.1.0-src/build-linux-2.6.18.8-xen_x86_32'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/usr/src/xen-3.1.0-src'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/usr/src/xen-3.1.0-src'
make: *** [install-kernels] Error 1

Can someone tell me:

a) if there is a limit as to which 2.6.18.x kernels I can build?

b) HOW the build process changed form the one in Xen 3.0.x?

c) what are the dependencies for building Xen 3.1 from source?

d) is there is a documented build from source process and if so where?

NOTE: the link on xen.org howto section to a page entitled "The
Perfect Xen 3.1.0 Setup For Debian Etch (i386)" seems of no use. The
process detailed in there produces the same error.

ANY help is welcome

Tomasz



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users