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] Howto compiling Xen 3.2 on Debian/Ubuntu (was: Compiling

To: Maik Brauer <mailinglist@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Howto compiling Xen 3.2 on Debian/Ubuntu (was: Compiling Xen-3.2.0)
From: Jeremie Le Hen <jeremie@xxxxxxxxxx>
Date: Thu, 24 Jan 2008 18:57:39 +0100
Cc: Ian Tobin <itobin@xxxxxxxxxxxxx>, Emre Erenoglu <erenoglu@xxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 24 Jan 2008 10:04:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3B1DDC21-E595-491F-AD87-D6F11211DC97@xxxxxxxxxxxxxxx>
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: <1241F505DD3E2145B9BE36BDC4342CFE024049@xxxxxxxxxxxxxxxxxxxxxx> <20080123131434.GF86598@xxxxxxxxxxxxxxxxxxxxxxxx> <1241F505DD3E2145B9BE36BDC4342CFE02404B@xxxxxxxxxxxxxxxxxxxxxx> <20080123152640.GG86598@xxxxxxxxxxxxxxxxxxxxxxxx> <1241F505DD3E2145B9BE36BDC4342CFE024054@xxxxxxxxxxxxxxxxxxxxxx> <D16159AA-A1F0-4737-8A1F-EEE43CFE87A9@xxxxxxxxxxxxxxx> <fe9771a80801240448p6d5f5239ld0d72abecb6efe0c@xxxxxxxxxxxxxx> <3B1DDC21-E595-491F-AD87-D6F11211DC97@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.15 (2007-04-06)
Hi,

I finally carried out "make world" with Xen 3.2 after much struggle.
The problems occured in the kernel part of the world.

First, contrary to xen-3.1.0-src.tgz, xen-3.2.0.tar.gz doesn't come
along with the linux-2.6-xen-sparse/ and patches/ directories which
allow to build a xen-infied kernel from a vanilla kernel source.
Therefore it is impossible to use "make world XEN_LINUX_SOURCE=tarball".

One must use Mercurial to fetch the xen-ified kernel from Xensource
Mercurial repository, but it seems that the current Mercurial version
shipped with Debian/Ubuntu is outdated and cannot be used out-of-the-box
to download the xenified kernel source tree automatically during make
world.

It is necessary, at least from my own understanding, to "make
prep-kernels" in order to create the kernel build directory.  Indeed if
you put your .config file directory into the kernel tree, the kernel's
build system will complain about its cleanliness and will ask you to run
"make mrproper".  The reason is that the kernel is not built directly in
the source tree -- as most of people used to do -- but instead uses a
separate directory to store produced object files, thus the assumption
about the cleanliness.

So I devised with the following process to build Xen 3.2.
% mkdir build
% wget http://bits.xensource.com/oss-xen/release/3.2.0/xen-3.2.0.tar.gz
% tar xzf xen-3.2.0.tar.gz
% # Download the xenifid kernel tree manually, but NOT in xen-3.2.0/
% # because the buildconfig/select-repository script would skip it.
% # ! xen-3.2.0/ and linux-2.6.18-xen.hg/ must be at the same level !
% hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
% cd xen-3.2.0
% make prep-kernels
% cp /boot/config-2.6.18-my build-linux-2.6.18-xen_x86_32/.config
% make dist

Hope this will help.
Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

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