Building XAPI for debian: Difference between revisions

From Xen
Jump to navigationJump to search
(Created page with "=Compiling xapi from source= 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 machine…")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Compiling xapi from source=
#REDIRECT [[Compile the XCP toolstack from source]]


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 machine.
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:
<pre>
apt-get install cowbuilder pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap python-debian git git-buildpackage omake ocaml-findlib
</pre>

==Building==
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
Requirements for xapi-autobuilder:


<pre>
<pre>
export DIST=oneiric # or sid or precise
pbuilder debhelper dh-ocaml dh-autoreconf cdebootstrap python-debian mercurial git
export ARCH=amd64 # or i386
</pre>
</pre>

Then run:
<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.
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.

Latest revision as of 19:05, 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.