[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Howto compiling Xen 3.2 on Debian/Ubuntu (was: Compiling Xen-3.2.0)
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |