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

Hi,

I had similar experiences when I was installing 3.2.0 to Debian Lenny/Etch.

On Thu, 24 Jan 2008, Jeremie Le Hen wrote:

Hi,

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

I newer got 'make world' run succesfully.
Problem was that it can't download the kernel using mercurial.
Lenny and Etch both saffered this issue.

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".


That's shame, because I really would have those patches.
Other way would be that someone has documents about the ne "architecture".

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.

Yep!

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


This is almoust same way I go.

- Instead of 'make prep-kernels' I used 'make linux-2.6-xen-config 
CONFIGMODE=menuconfig'
 -> Make little changes to kernel for my needs.

- And instead of 'make dist' I used 'make linux-2.6-xen-build'

- After that i did 'make install' but if I remember correctly i needed todo Grub's menu.lst, initrd and copy vmlinuz and modules to right places by myself.

I still would like to know that is there any patches available.
Or is the only way to go mercurial?

How does this new "system" works?
I supposed that 'linux-2.6.18-xen.hg' ships with already patched?
Cos i don't see any patching happening when do 'make anything'

Regards,
Kalle

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


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