Maintain xen-4.0.0.7.f12.src.rpm in sync with http://xenbits.xensource.com/xen-4.0-testing.hg

As of 06/09/2010 checkout either xen/stable or xen/stable-2.6.32.X branch will generate pvops kernel 2.6.32.15 which in meantime requires 4.0.1 Hypervisor at least. Procedure bellow briefly describes how to update xen-4.0.0.7.f12.src.rpm to stay in sync with tip of the mercurial http://xenbits.xensource.com/xen-4.0-testing.hg. Xen rpms created during corresponding rpmbuild run been installed will allow to create Xen 4.0.1 Dom0 with kernel 2.6.32.15 running on top of F13.

cd /usr/src
hg clone http://xenbits.xensource.com/xen-4.0-testing.hg
cp -R xen-4.0-testing.hg xen-4.0.1
cd xen-4.0.1
git clone http://xenbits.xensource.com/git-http/qemu-xen-4.0-testing.git qemu-xen.git

cd ..
vi Config.mk and update as follows

# Specify which qemu-dm to use. This may be `ioemu' to use the old
# Mercurial in-tree version, or a local directory, or a git URL.
CONFIG_QEMU ?= ../qemu-xen.git
# CONFIG_QEMU ?= $(QEMU_REMOTE)
QEMU_TAG := xen-4.0.1-rc1
#QEMU_TAG ?= f1d909f0f854194f5a40d850886d1413fb8b63c2
# Wed Mar 24 17:16:51 2010 +0000
# Make hweight32 function static

Create xen-4.0.1.tar.gz archive and copy to /root/rpmbuild/SOURCES
Update xen.spec as follows

Summary: Xen is a virtual machine monitor
Name: xen
Version: 4.0.1
Release: 5.7%{?dist}
Group: Development/Libraries
License: GPLv2+ and LGPLv2+ and BSD
URL: http://xen.org/
# Source0: http://bits.xensource.com/oss-xen/release/4.0.0/xen-%{version}.tar.gz
Source0: xen-%{version}.tar.gz

Now build
# rpmbuild -ba ./xen.spec
Generated in ../RPMS/x64_86 rpms will install current xen-4.0.1 version

yum install xen-4.0.1-5.7.fc13.x86_64.rpm \
xen-debuginfo-4.0.1-5.7.fc13.x86_64.rpm \
xen-devel-4.0.1-5.7.fc13.x86_64.rpm \
xen-doc-4.0.1-5.7.fc13.x86_64.rpm \
xen-hypervisor-4.0.1-5.7.fc13.x86_64.rpm \
xen-libs-4.0.1-5.7.fc13.x86_64.rpm \
xen-runtime-4.0.1-5.7.fc13.x86_64.rpm

Leave a comment