WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Can someone please build a Xen 3.2 rpm for CentOS 5.1x64

To: "Ross S. W. Walker" <rwalker@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Can someone please build a Xen 3.2 rpm for CentOS 5.1x64?
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Mon, 31 Mar 2008 19:57:31 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 31 Mar 2008 10:58:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E2BB8074E5500C42984D980D4BD78EF9022A7062@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: SoftDux
References: <47F10EB7.5010609@xxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A7062@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Ross S. W. Walker wrote:
Rudi Ahlers wrote:
Hi all

I'm looking for the rpm's for Xen 3.2 x64 to use on CentOS 5.1. Unfortunately I have had no joy in trying to rebuild the src rpm. If anyone has done it before, please let me know

I can get you going, though you will need to type in the commands
to compile it on your end.

1) Install CentOS 5.1 x86_64 + virtualization package
I have done that already
2) Install these packages via yum:

# yum intstall gcc binutils dev86 bison flex kernel-xen-devel transfig 
libidn-devel zlib-devel texi2html SDL-devel curl-devel libX11-devel 
python-devel ghostscript tetex-latex ncurses-devel gtk2-devel libaio-devel perl 
glibc-devel.x86_64 glibc-devel.i386 gettext gnutls-devel openssl-devel
I have done already, but I am missing a few packages,
Installing:
bison x86_64 2.3-2.1 base 549 k flex x86_64 2.5.4a-41.fc6 base 131 k kernel-xen-devel x86_64 2.6.18-53.1.14.el5 updates 4.9 M perl i386 4:5.8.8-10.el5_0.2 updates 12 M
Installing for dependencies:
db4 i386 4.3.29-9.fc6 base 917 k gdbm i386 1.8.0-26.2.1 base 27 k m4 x86_64 1.4.5-3.el5.1 base 171 k

A lot of dependencies will be pulled in, but hey that's life..

3) Download the xen 3.2 src rpm from xen.org and install it
I have done that already, it's currently in /xen-3.2.0-0xs.centos5.src.rpm
4) cd to '/usr/src/redhat/SPECS' and type in 'rpmbuild -ba xen.spec'

If it aborts with an error, it shouldn't, so post it and
someone will help you with it.
Ok, this is what I get, which I presume isn't right?

Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/xen-3.2.0-0xs-root
error: Installed (but unpackaged) file(s) found:
  /usr/lib/xen/boot/hvmloader


RPM build errors:
   Installed (but unpackaged) file(s) found:
  /usr/lib/xen/boot/hvmloader


5) cd to '/usr/src/redhat/RPMS/x86_64' and type in
'rpm -Uvh xen-3.2.0-0xs.x86_64.rpm xen-libs-3.2.0-0xs.x86_64.rpm'
The files don't exist there:

cd /usr/src/redhat/RPMS/x86_64/
[root@temp01 x86_64]# ll
total 0
[root@temp01 x86_64]# updatedb && locate xen-3.2.0-0xs.x86_64.rpm

Then your done.

There are 2 issues I encountered with the xen.org 3.2 version.

1) The Xen API interface doesn't handle an unspecified
'timer_mode' option which causes virt-manager and
virt-install to break. There is a patch for this and
I can send a patched src rpm with it if you want.

2) utc_timeoffset isn't automatically calculated so
you need to specify it. I also have a patch for that
too, included in my new src rpm.

-Ross

--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users