XCP Building Instructions: Difference between revisions
m (Removed superfluous <nowiki></nowiki> tag pairs.) |
Johngarbutt (talk | contribs) |
||
Line 13: | Line 13: | ||
<!-- #format wiki --> |
<!-- #format wiki --> |
||
<!-- #language en --> |
<!-- #language en --> |
||
== Building xapi on CentOS 6.3 == |
|||
⚫ | |||
=== Setting up Xen === |
|||
While not strictly required for the build, to help us test it, lets install Xen. |
|||
Minimal install of CentOS 6.3 x86_64. Use network install iso on VMware fusion, or full iso, minimal confuses things. |
|||
This is based on http://wiki.centos.org/QaWiki/Xen4 |
|||
<pre> |
|||
yum install wget |
|||
cd /etc/yum.repos.d/ |
|||
wget http://dev.centos.org/centos/6/xen-c6/xen-c6.repo |
|||
yum repolist |
|||
yum install kernel kernel-firmware |
|||
yum install xen |
|||
</pre> |
|||
Now need to edit '''/etc/grub.conf''' |
|||
Note: check the paths and the kernel version, also check dom0 memory. |
|||
Also: The above 3.4.x kernel should the second in the list, xen should be first. |
|||
<pre> |
|||
title xen |
|||
root (hd0,0) |
|||
kernel /xen.gz dom0_mem=1024M,max:1024M loglvl=all guest_loglvl=all |
|||
module /vmlinuz-3.4.32-6.el6.centos.alt.x86_64 ro root=/dev/mapper/vg_jgarbuttcentos-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_LVM_LV=vg_jgarbuttcentos/lv_root rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_NO_DM rd_LVM_LV=vg_jgarbuttcentos/lv_swap |
|||
module /initramfs-3.4.32-6.el6.centos.alt.x86_64.img |
|||
</pre> |
|||
Reboot, then check all is well: |
|||
<pre> |
|||
uname -a |
|||
xl info |
|||
</pre> |
|||
⚫ | |||
=== Building the xapi toolstack === |
=== Building the xapi toolstack === |
Revision as of 10:56, 1 March 2013
Building xapi on CentOS 6.3
Setting up Xen
While not strictly required for the build, to help us test it, lets install Xen.
Minimal install of CentOS 6.3 x86_64. Use network install iso on VMware fusion, or full iso, minimal confuses things.
This is based on http://wiki.centos.org/QaWiki/Xen4
yum install wget cd /etc/yum.repos.d/ wget http://dev.centos.org/centos/6/xen-c6/xen-c6.repo yum repolist yum install kernel kernel-firmware yum install xen
Now need to edit /etc/grub.conf Note: check the paths and the kernel version, also check dom0 memory. Also: The above 3.4.x kernel should the second in the list, xen should be first.
title xen root (hd0,0) kernel /xen.gz dom0_mem=1024M,max:1024M loglvl=all guest_loglvl=all module /vmlinuz-3.4.32-6.el6.centos.alt.x86_64 ro root=/dev/mapper/vg_jgarbuttcentos-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_LVM_LV=vg_jgarbuttcentos/lv_root rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_NO_DM rd_LVM_LV=vg_jgarbuttcentos/lv_swap module /initramfs-3.4.32-6.el6.centos.alt.x86_64.img
Reboot, then check all is well:
uname -a xl info
Xen Cloud Platform Building Instructions (CentOS 5.6)
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.