Compiling the Xen Hypervisor and dom0 on RHEL6

From Alteeve Wiki
Jump to navigation Jump to search

 AN!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
name=Red Hat Enterprise Linux $releasever - $basearch - Source

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
wget -c
rpm -ivh xen-4.0.1-6.fc14.src.rpm kernel-
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.