Difference between revisions of "XCP Building Instructions"

From Xen
(Created page with "<!-- MoinMoin name: XCP_Building_Instructions --> <!-- Comment: Added category --> <!-- WikiMedia name: XCP Building Instructions --> <!-- Page revision: 00000005 --> <!…")
 
m (Removed superfluous <nowiki></nowiki> tag pairs.)
Line 22: Line 22:
   
   
<pre><nowiki>[xcp]
+
<pre>
  +
[xcp]
 
name = xcp
 
name = xcp
 
baseurl = http://downloads.xen.org/XCP/xcp-1.0-repo
 
baseurl = http://downloads.xen.org/XCP/xcp-1.0-repo
gpgcheck = 0</nowiki></pre>
+
gpgcheck = 0
  +
</pre>
   
   
Line 33: Line 35:
   
   
  +
<pre>
<pre><nowiki>rpm -e libaio
 
  +
rpm -e libaio
yum install gcc autoconf automake tetex ghostscript java-1.6.0-openjdk java-1.6.0-openjdk-devel ant pam-devel python-devel zlib-devel openssl-devel dev86 rpm-build texinfo flex bison sharutils elfutils-devel ncurses-devel e4fsprogs-devel ocaml ocaml-findlib ocaml-getopt ocaml-type-conv ocaml-xmlm omake ocaml-xmlm-devel xen-devel xapi-libs-devel xapi-libs-utils</nowiki></pre>
 
  +
yum install gcc autoconf automake tetex ghostscript java-1.6.0-openjdk java-1.6.0-openjdk-devel ant pam-devel python-devel zlib-devel openssl-devel dev86 rpm-build texinfo flex bison sharutils elfutils-devel ncurses-devel e4fsprogs-devel ocaml ocaml-findlib ocaml-getopt ocaml-type-conv ocaml-xmlm omake ocaml-xmlm-devel xen-devel xapi-libs-devel xapi-libs-utils
  +
</pre>
   
   
Line 41: Line 45:
 
Check out the xapi source:
 
Check out the xapi source:
   
  +
<code><nowiki>
<code><nowiki>hg clone http://xenbits.xen.org/XCP/xen-api.hg</nowiki></code>
 
  +
hg clone http://xenbits.xen.org/XCP/xen-api.hg
  +
</nowiki></code>
   
 
or
 
or
   
  +
<code><nowiki>
<code><nowiki>git clone git@github.com:xen-org/xen-api.git</nowiki></code>
 
  +
git clone git@github.com:xen-org/xen-api.git
  +
</nowiki></code>
   
 
and then build it:
 
and then build it:
   
   
  +
<pre>
<pre><nowiki>cd xen-api.hg
 
  +
cd xen-api.hg
make</nowiki></pre>
 
  +
make
  +
</pre>
   
   
Line 57: Line 67:
   
   
<pre><nowiki>cd xen-api
+
<pre>
  +
cd xen-api
make</nowiki></pre>
 
  +
make
  +
</pre>
   
   

Revision as of 04:38, 29 November 2011


Xen Cloud Platform Building Instructions

Building the xapi toolstack

The recommended way to build the xapi toolstack is in an environment similar to that in which it will be installed - therefore you'll need a CentOS 5.5 32-bit OS installed - we tend to use VMs for this.

For convenience, there are YUM repositories hosted on downloads.xen.org that contain the build dependencies of xapi. To enable these, create a a file /etc/yum.repos.d/xcp.repo with the following contents:


[xcp]
name = xcp
baseurl = http://downloads.xen.org/XCP/xcp-1.0-repo
gpgcheck = 0


If you're building XCP unstable, replace '1.0' in the URL with 'unstable'.

Then execute the following commands:


rpm -e libaio
yum install gcc autoconf automake tetex ghostscript java-1.6.0-openjdk java-1.6.0-openjdk-devel ant pam-devel python-devel zlib-devel openssl-devel dev86 rpm-build texinfo flex bison sharutils elfutils-devel ncurses-devel e4fsprogs-devel ocaml ocaml-findlib ocaml-getopt ocaml-type-conv ocaml-xmlm omake ocaml-xmlm-devel xen-devel xapi-libs-devel xapi-libs-utils


You'll also need mercurial or git depending upon whether you're building the unstable version of XCP or 1.0. These are both available in the EPEL repository (http://download.fedora.redhat.com/pub/epel/5/i386/repoview/)

Check out the xapi source:

hg clone http://xenbits.xen.org/XCP/xen-api.hg

or

git clone git@github.com:xen-org/xen-api.git

and then build it:


cd xen-api.hg
make


or


cd xen-api
make


It is also possible to build xapi in a non-CentOS 5.5 32-bit environment with the help of mock. Instructions for this are coming.