Difference between revisions of "Compile the XAPI toolstack from source"

From Xen
(Created page with "The easiest way to compile the XCP toolstack from source is to use the [https://github.com/jonludlam/xapi-autobuilder xapi-autobuilder]. First install the perquisites: <pre> a…")
 
Line 1: Line 1:
The easiest way to compile the XCP toolstack from source is to use the [https://github.com/jonludlam/xapi-autobuilder xapi-autobuilder].
+
The easiest way to compile the XCP toolstack from source is to use the xapi-autobuilder. We usually run on a debian unstable or ubuntu 11.10 amd64 machine.
 
First install the perquisites:
 
   
   
  +
==Prerequisites==
  +
Install the required packages:
 
<pre>
 
<pre>
apt-get install pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap python-debian mercurial git
+
apt-get install cowbuilder pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap
  +
python-debian git git-buildpackage omake ocaml-findlib
wget http://downloads.xen.org/XCP/debian/blktap-dkms_0.1_all.deb
 
dpkg -i blktap-dkms_0.1_all.deb
 
 
</pre>
 
</pre>
   
  +
==Building==
 
Then clone xapi-autobuilder and build:
+
First, clone the build scripts:
 
   
 
<pre>
 
<pre>
 
git clone https://github.com/jonludlam/xapi-autobuilder.git
 
git clone https://github.com/jonludlam/xapi-autobuilder.git
 
cd xapi-autobuilder
 
cd xapi-autobuilder
make clean ; make
 
 
</pre>
 
</pre>
   
  +
The build scripts can build for several different distributions and architectures. To select, run
   
  +
<pre>
This will build all of the required Debian packages for Xapi (except for vncterm, which is only available as a binary until we sort out licensing issues). Take a look at xapi-autobuilder/build.sh to see what's going on inside. You can modify the files git-repos and hg-repos to point to your own repositories if you plan on compiling your own code. If you only want to build a subset of the packages, comment out the ones you don't want to build from the build.sh script.
 
  +
export DIST=oneiric # or sid or precise
  +
export ARCH=amd64 # or i386
  +
</pre>
   
  +
Then run:
You can manually download all of the latest packages and source packages using:
 
  +
<pre>
  +
make
  +
</pre>
   
   
  +
This will build all of the required packages for Xapi on Debian. Take a look at 'git-repos' to see which repositories are involved, and modify that to point to your own repositories if you plan on compiling your own code.
<pre>
 
wget -r -l1 --no-parent -nd http://downloads.xen.org/XCP/debian/latest/
 
rm index.html*
 
</pre>
 

Revision as of 16:51, 23 December 2011

The easiest way to compile the XCP toolstack from source is to use the xapi-autobuilder. We usually run on a debian unstable or ubuntu 11.10 amd64 machine.


Prerequisites

Install the required packages:

apt-get install cowbuilder pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap
  python-debian git git-buildpackage omake ocaml-findlib

Building

First, clone the build scripts:

git clone https://github.com/jonludlam/xapi-autobuilder.git
cd xapi-autobuilder

The build scripts can build for several different distributions and architectures. To select, run

export DIST=oneiric # or sid or precise
export ARCH=amd64 # or i386

Then run:

make


This will build all of the required packages for Xapi on Debian. Take a look at 'git-repos' to see which repositories are involved, and modify that to point to your own repositories if you plan on compiling your own code.