Compiling the Xen Hypervisor and dom0 on RHEL6

From Alteeve Wiki
Jump to navigation Jump to search

 Alteeve Wiki :: How To :: Compiling the Xen Hypervisor and dom0 on RHEL6

This tutorial assumes that you have a Red Hat Network account and, as such, makes use of repositories accessible via RHN only. I will try to create a totally open tutorial when CentOS 6 is released.

Setting Up The Build Environment

yum -y groupinstall "Development Tools"

Configure Repos

Add the following repositories to your RHN.

  • Red Hat Enterprise Linux Server Optional (v. 6)

Enable the source RPM repo

vim /etc/yum.repos.d/rhel-src.repo
[rhel-src]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Install Available Dependencies

yum install transfig libidn-devel zlib-devel texi2html SDL-devel curl-devel libX11-devel python-devel ghostscript tetex-latex ncurses-devel gtk2-devel libaio-devel texinfo dev86 gnutls-devel openssl-devel pciutils-devel libuuid-devel iasl bzip2-devel xz-devel e2fsprogs-devel glibc-devel.i686

Download the Xen and dom0 Source RPMs

cd ~
wget -c http://fedorapeople.org/~myoung/dom0/src/kernel-2.6.32.25-172.xendom0.fc12.src.rpm
wget -c ftp://ftp.nrc.ca/pub/systems/linux/redhat/fedora/linux/releases/14/Fedora/source/SRPMS/xen-4.0.1-6.fc14.src.rpm
rpm -ivh xen-4.0.1-6.fc14.src.rpm kernel-2.6.32.25-172.xendom0.fc12.src.rpm
cd ~/rpmbuild/SPECS/
rpmbuild -ba xen.spec

# 
yum install xmlto asciidoc elfutils-libelf-devel binutils-devel PyXML 
cd ~
cd ~/rpmbuild/SPECS/
vim kernel.spec
# Make appropriate chages
rpmbuild -ba kernel.spec
rpmbuild -ba --target=noarch kernel.spec


Build dependencies.

# Build 'libdwarf'
cd ~

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.