Friday, April 03, 2009


Port Xen 3.3.1 to CentOS 5.3 via http://gitco.de


Current port has obvious advantages as significantly more stable VNC connections to DomUs,
virt-manager utility providing option of install PV DomUs via local HTTP mirror and managing DomUs been created via virt-install and virt-manager.Occasionally vnc sessions gets crashed, however reconnection to DomU works pretty stable,requiring just one attempt.
Original download been done from http://gitco.de/repo/xen3.3.1 :-

[root@dhcppc1 xen-rpms]# ls -l
total 50224
-rw-r--r-- 1 root root 355799 Apr 3 13:32 gtkglext-debuginfo-1.2.0-6.x86_64.rpm
-rw-r--r-- 1 root root 161634 Apr 3 13:32 gtkglext-devel-1.2.0-6.x86_64.rpm
-rw-r--r-- 1 root root 146052 Apr 3 13:32 gtkglext-libs-1.2.0-6.x86_64.rpm
-rw-r--r-- 1 root root 80216 Apr 3 13:32 gtk-vnc-0.3.7-2.x86_64.rpm
-rw-r--r-- 1 root root 165124 Apr 3 13:32 gtk-vnc-debuginfo-0.3.7-2.x86_64.rpm
-rw-r--r-- 1 root root 10421 Apr 3 13:32 gtk-vnc-devel-0.3.7-2.x86_64.rpm
-rw-r--r-- 1 root root 13479 Apr 3 13:32 gtk-vnc-python-0.3.7-2.x86_64.rpm
-rwxr--r-- 1 root root 759 Apr 3 13:37 install.sh
-rw-r--r-- 1 root root 1841193 Apr 3 13:20 libvirt-0.4.4-3.x86_64.rpm
-rw-r--r-- 1 root root 196006 Apr 3 13:20 libvirt-devel-0.4.4-3.x86_64.rpm
-rw-r--r-- 1 root root 113567 Apr 3 13:20 libvirt-python-0.4.4-3.x86_64.rpm
-rw-r--r-- 1 root root 14384 Apr 3 13:20 pypxeboot-0.0.2-2.noarch.rpm
-rw-r--r-- 1 root root 340597 Apr 3 13:20 python-virtinst-0.400.0-5.noarch.rpm
-rw-r--r-- 1 root root 11954599 Apr 3 13:22 qemu-0.9.1-10.x86_64.rpm
-rw-r--r-- 1 root root 24421993 Apr 3 13:26 qemu-debuginfo-0.9.1-10.x86_64.rpm
-rw-r--r-- 1 root root 77372 Apr 3 13:26 qemu-img-0.9.1-10.x86_64.rpm
-rw-r--r-- 1 root root 1364938 Apr 3 13:36 virt-manager-0.6.0-1.x86_64.rpm
-rw-r--r-- 1 root root 49973 Apr 3 13:36 virt-manager-debuginfo-0.6.0-1.x86_64.rpm
-rw-r--r-- 1 root root 28711 Apr 3 13:36 virt-viewer-0.0.3-3.x86_64.rpm
-rw-r--r-- 1 root root 9271929 Apr 3 13:18 xen-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 229074 Apr 3 13:19 xen-debuginfo-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 260471 Apr 3 13:19 xen-devel-3.3.1-0.x86_64.rpm
-rw-r--r-- 1 root root 162412 Apr 3 13:19 xen-libs-3.3.1-0.x86_64.rpm

Installation script:-

[root@dhcppc1 xen-rpms]# cat install.sh
yum install xen-3.3.1-0.x86_64.rpm \
xen-debuginfo-3.3.1-0.x86_64.rpm \
xen-devel-3.3.1-0.x86_64.rpm \
xen-libs-3.3.1-0.x86_64.rpm \
libvirt-0.4.4-3.x86_64.rpm \
libvirt-devel-0.4.4-3.x86_64.rpm \
libvirt-python-0.4.4-3.x86_64.rpm \
python-virtinst-0.400.0-5.noarch.rpm \
pypxeboot-0.0.2-2.noarch.rpm \
qemu-0.9.1-10.x86_64.rpm \
qemu-debuginfo-0.9.1-10.x86_64.rpm \
qemu-img-0.9.1-10.x86_64.rpm \
gtk-vnc-0.3.7-2.x86_64.rpm \
gtk-vnc-debuginfo-0.3.7-2.x86_64.rpm \
gtk-vnc-devel-0.3.7-2.x86_64.rpm \
gtk-vnc-python-0.3.7-2.x86_64.rpm \
gtkglext-debuginfo-1.2.0-6.x86_64.rpm \
gtkglext-devel-1.2.0-6.x86_64.rpm \
gtkglext-libs-1.2.0-6.x86_64.rpm \
virt-manager-0.6.0-1.x86_64.rpm \
virt-manager-debuginfo-0.6.0-1.x86_64.rpm \
virt-viewer-0.0.3-3.x86_64.rpm \

[root@dhcppc1 xen-rpms]# ./install.sh

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.yandex.ru
* updates: mirror.yandex.ru
* addons: mirror.yandex.ru
* extras: mirror.yandex.ru
xen | 951 B 00:00
primary.xml.gz | 8.5 kB 00:00
xen 25/25
base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 951 B 00:00
Setting up Install Process
Parsing package install arguments
Examining xen-3.3.1-0.x86_64.rpm: xen-3.3.1-0.x86_64
Marking xen-3.3.1-0.x86_64.rpm to be installed
Examining xen-debuginfo-3.3.1-0.x86_64.rpm: xen-debuginfo-3.3.1-0.x86_64
Marking xen-debuginfo-3.3.1-0.x86_64.rpm to be installed
Examining xen-devel-3.3.1-0.x86_64.rpm: xen-devel-3.3.1-0.x86_64
Marking xen-devel-3.3.1-0.x86_64.rpm to be installed
Examining xen-libs-3.3.1-0.x86_64.rpm: xen-libs-3.3.1-0.x86_64
Marking xen-libs-3.3.1-0.x86_64.rpm to be installed
Examining libvirt-0.4.4-3.x86_64.rpm: libvirt-0.4.4-3.x86_64
Marking libvirt-0.4.4-3.x86_64.rpm to be installed
Examining libvirt-devel-0.4.4-3.x86_64.rpm: libvirt-devel-0.4.4-3.x86_64
Marking libvirt-devel-0.4.4-3.x86_64.rpm to be installed
Examining libvirt-python-0.4.4-3.x86_64.rpm: libvirt-python-0.4.4-3.x86_64
Marking libvirt-python-0.4.4-3.x86_64.rpm to be installed
Examining python-virtinst-0.400.0-5.noarch.rpm: python-virtinst-0.400.0-5.noarch
Marking python-virtinst-0.400.0-5.noarch.rpm to be installed
Examining pypxeboot-0.0.2-2.noarch.rpm: pypxeboot-0.0.2-2.noarch
Marking pypxeboot-0.0.2-2.noarch.rpm to be installed
Examining qemu-0.9.1-10.x86_64.rpm: qemu-0.9.1-10.x86_64
Marking qemu-0.9.1-10.x86_64.rpm to be installed
Examining qemu-debuginfo-0.9.1-10.x86_64.rpm: qemu-debuginfo-0.9.1-10.x86_64
Marking qemu-debuginfo-0.9.1-10.x86_64.rpm to be installed
Examining qemu-img-0.9.1-10.x86_64.rpm: qemu-img-0.9.1-10.x86_64
Marking qemu-img-0.9.1-10.x86_64.rpm to be installed
Examining gtk-vnc-0.3.7-2.x86_64.rpm: gtk-vnc-0.3.7-2.x86_64
Marking gtk-vnc-0.3.7-2.x86_64.rpm to be installed
Examining gtk-vnc-debuginfo-0.3.7-2.x86_64.rpm: gtk-vnc-debuginfo-0.3.7-2.x86_64
Marking gtk-vnc-debuginfo-0.3.7-2.x86_64.rpm to be installed
Examining gtk-vnc-devel-0.3.7-2.x86_64.rpm: gtk-vnc-devel-0.3.7-2.x86_64
Marking gtk-vnc-devel-0.3.7-2.x86_64.rpm to be installed
Examining gtk-vnc-python-0.3.7-2.x86_64.rpm: gtk-vnc-python-0.3.7-2.x86_64
Marking gtk-vnc-python-0.3.7-2.x86_64.rpm to be installed
Examining gtkglext-debuginfo-1.2.0-6.x86_64.rpm: gtkglext-debuginfo-1.2.0-6.x86_64
Marking gtkglext-debuginfo-1.2.0-6.x86_64.rpm to be installed
Examining gtkglext-devel-1.2.0-6.x86_64.rpm: gtkglext-devel-1.2.0-6.x86_64
Marking gtkglext-devel-1.2.0-6.x86_64.rpm to be installed
Examining gtkglext-libs-1.2.0-6.x86_64.rpm: gtkglext-libs-1.2.0-6.x86_64
Marking gtkglext-libs-1.2.0-6.x86_64.rpm to be installed
Examining virt-manager-0.6.0-1.x86_64.rpm: virt-manager-0.6.0-1.x86_64
Marking virt-manager-0.6.0-1.x86_64.rpm to be installed
Examining virt-manager-debuginfo-0.6.0-1.x86_64.rpm: virt-manager-debuginfo-0.6.0-1.x86_64
Marking virt-manager-debuginfo-0.6.0-1.x86_64.rpm to be installed
Examining virt-viewer-0.0.3-3.x86_64.rpm: virt-viewer-0.0.3-3.x86_64
Marking virt-viewer-0.0.3-3.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package gtk-vnc-python.x86_64 0:0.3.7-2 set to be updated
---> Package gtk-vnc.x86_64 0:0.3.7-2 set to be updated
---> Package pypxeboot.noarch 0:0.0.2-2 set to be updated
--> Processing Dependency: udhcp = 0.9.8-1usermac for package: pypxeboot
--> Processing Dependency: tftp >= 0.39 for package: pypxeboot
---> Package libvirt.x86_64 0:0.4.4-3 set to be updated
--> Processing Dependency: bridge-utils for package: libvirt
--> Processing Dependency: cyrus-sasl-md5 for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
---> Package virt-manager.x86_64 0:0.6.0-1 set to be updated
--> Processing Dependency: gnome-python2-gnomekeyring >= 2.15.4 for package: virt-manager
---> Package xen-libs.x86_64 0:3.3.1-0 set to be updated
---> Package xen-devel.x86_64 0:3.3.1-0 set to be updated
---> Package libvirt-devel.x86_64 0:0.4.4-3 set to be updated
---> Package xen.x86_64 0:3.3.1-0 set to be updated
--> Processing Dependency: xen-hypervisor-abi = 3.1 for package: xen
---> Package libvirt-python.x86_64 0:0.4.4-3 set to be updated
---> Package qemu-debuginfo.x86_64 0:0.9.1-10 set to be updated
---> Package gtkglext-libs.x86_64 0:1.2.0-6 set to be updated
---> Package virt-manager-debuginfo.x86_64 0:0.6.0-1 set to be updated
---> Package virt-viewer.x86_64 0:0.0.3-3 set to be updated
---> Package gtkglext-devel.x86_64 0:1.2.0-6 set to be updated
---> Package python-virtinst.noarch 0:0.400.0-5 set to be updated
---> Package qemu-img.x86_64 0:0.9.1-10 set to be updated
---> Package gtkglext-debuginfo.x86_64 0:1.2.0-6 set to be updated
---> Package gtk-vnc-devel.x86_64 0:0.3.7-2 set to be updated
---> Package qemu.x86_64 0:0.9.1-10 set to be updated
---> Package xen-debuginfo.x86_64 0:3.3.1-0 set to be updated
---> Package gtk-vnc-debuginfo.x86_64 0:0.3.7-2 set to be updated
--> Running transaction check
---> Package kernel-xen.x86_64 0:2.6.18-128.el5 set to be installed
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.868-0.18.el5 set to be updated
---> Package bridge-utils.x86_64 0:1.1-2 set to be updated
---> Package udhcp.x86_64 0:0.9.8-1usermac set to be updated
---> Package gnome-python2-gnomekeyring.x86_64 0:2.16.0-2.el5 set to be updated
---> Package cyrus-sasl-md5.x86_64 0:2.1.22-4 set to be updated
---> Package tftp.x86_64 0:0.42-3.1.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
gtk-vnc x86_64 0.3.7-2 gtk-vnc-0.3.7-2.x86_64.rpm 78 k
gtk-vnc-debuginfo x86_64 0.3.7-2 gtk-vnc-debuginfo-0.3.7-2.x86_64.rpm 161 k
gtk-vnc-devel x86_64 0.3.7-2 gtk-vnc-devel-0.3.7-2.x86_64.rpm 10 k
gtk-vnc-python x86_64 0.3.7-2 gtk-vnc-python-0.3.7-2.x86_64.rpm 13 k
gtkglext-debuginfo x86_64 1.2.0-6 gtkglext-debuginfo-1.2.0-6.x86_64.rpm 347 k
gtkglext-devel x86_64 1.2.0-6 gtkglext-devel-1.2.0-6.x86_64.rpm 158 k
gtkglext-libs x86_64 1.2.0-6 gtkglext-libs-1.2.0-6.x86_64.rpm 143 k
libvirt x86_64 0.4.4-3 libvirt-0.4.4-3.x86_64.rpm 1.8 M
libvirt-devel x86_64 0.4.4-3 libvirt-devel-0.4.4-3.x86_64.rpm 191 k
libvirt-python x86_64 0.4.4-3 libvirt-python-0.4.4-3.x86_64.rpm 111 k
pypxeboot noarch 0.0.2-2 pypxeboot-0.0.2-2.noarch.rpm 14 k
python-virtinst noarch 0.400.0-5 python-virtinst-0.400.0-5.noarch.rpm 333 k
qemu x86_64 0.9.1-10 qemu-0.9.1-10.x86_64.rpm 11 M
qemu-debuginfo x86_64 0.9.1-10 qemu-debuginfo-0.9.1-10.x86_64.rpm 23 M
qemu-img x86_64 0.9.1-10 qemu-img-0.9.1-10.x86_64.rpm 76 k
virt-manager x86_64 0.6.0-1 virt-manager-0.6.0-1.x86_64.rpm 1.3 M
virt-manager-debuginfo
x86_64 0.6.0-1 virt-manager-debuginfo-0.6.0-1.x86_64.rpm 49 k
virt-viewer x86_64 0.0.3-3 virt-viewer-0.0.3-3.x86_64.rpm 28 k
xen x86_64 3.3.1-0 xen-3.3.1-0.x86_64.rpm 8.8 M
xen-debuginfo x86_64 3.3.1-0 xen-debuginfo-3.3.1-0.x86_64.rpm 224 k
xen-devel x86_64 3.3.1-0 xen-devel-3.3.1-0.x86_64.rpm 254 k
xen-libs x86_64 3.3.1-0 xen-libs-3.3.1-0.x86_64.rpm 159 k
Installing for dependencies:
bridge-utils x86_64 1.1-2 base 28 k
cyrus-sasl-md5 x86_64 2.1.22-4 base 46 k
gnome-python2-gnomekeyring
x86_64 2.16.0-2.el5 base 17 k
iscsi-initiator-utils x86_64 6.2.0.868-0.18.el5 base 591 k
kernel-xen x86_64 2.6.18-128.el5 base 17 M
tftp x86_64 0.42-3.1.el5.centos
base 21 k
udhcp x86_64 0.9.8-1usermac xen 28 k

Transaction Summary
=================================================================================================
Install 29 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 67 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): gnome-python2-gnomekeyring-2.16.0-2.el5.x86_64.rpm | 17 kB 00:24
(2/7): tftp-0.42-3.1.el5.centos.x86_64.rpm | 21 kB 00:14
(3/7): bridge-utils-1.1-2.x86_64.rpm | 28 kB 00:26
(4/7): udhcp-0.9.8-1usermac.x86_64.rpm | 28 kB 00:00
(5/7): cyrus-sasl-md5-2.1.22-4.x86_64.rpm | 46 kB 00:51
(6/7): iscsi-initiator-utils-6.2.0.868-0.18.el5.x86_64.rpm | 591 kB 02:26
(7/7): kernel-xen-2.6.18-128.el5.x86_64.rpm | 17 MB 06:04
-------------------------------------------------------------------------------------------------
Total 25 kB/s | 18 MB 12:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xen-libs [ 1/29]
Installing : bridge-utils [ 2/29]
Installing : gtkglext-libs [ 3/29]
Installing : gtk-vnc [ 4/29]
Installing : qemu-img [ 5/29]
Installing : gtk-vnc-python [ 6/29]
Installing : cyrus-sasl-md5 [ 7/29]
Installing : udhcp [ 8/29]
Installing : tftp [ 9/29]
Installing : gnome-python2-gnomekeyring [10/29]
Installing : iscsi-initiator-utils [11/29]
Installing : libvirt [12/29]
Installing : libvirt-python [13/29]
Installing : virt-viewer [14/29]
Installing : qemu [15/29]
Installing : virt-manager-debuginfo [16/29]
Installing : gtkglext-debuginfo [17/29]
Installing : xen-debuginfo [18/29]
Installing : gtk-vnc-debuginfo [19/29]
Installing : python-virtinst [20/29]
Installing : xen-devel [21/29]
Installing : kernel-xen [22/29]
Installing : gtkglext-devel [23/29]
Installing : gtk-vnc-devel [24/29]
Installing : virt-manager [25/29]
Installing : libvirt-devel [26/29]
Installing : pypxeboot [27/29]
Installing : qemu-debuginfo [28/29]
Installing : xen [29/29]

Installed: gtk-vnc.x86_64 0:0.3.7-2 gtk-vnc-debuginfo.x86_64 0:0.3.7-2 gtk-vnc-devel.x86_64 0:0.3.7-2 gtk-vnc-python.x86_64 0:0.3.7-2 gtkglext-debuginfo.x86_64 0:1.2.0-6 gtkglext-devel.x86_64 0:1.2.0-6 gtkglext-libs.x86_64 0:1.2.0-6 libvirt.x86_64 0:0.4.4-3 libvirt-devel.x86_64 0:0.4.4-3 libvirt-python.x86_64 0:0.4.4-3 pypxeboot.noarch 0:0.0.2-2 python-virtinst.noarch 0:0.400.0-5 qemu.x86_64 0:0.9.1-10 qemu-debuginfo.x86_64 0:0.9.1-10 qemu-img.x86_64 0:0.9.1-10 virt-manager.x86_64 0:0.6.0-1 virt-manager-debuginfo.x86_64 0:0.6.0-1 virt-viewer.x86_64 0:0.0.3-3 xen.x86_64 0:3.3.1-0 xen-debuginfo.x86_64 0:3.3.1-0 xen-devel.x86_64 0:3.3.1-0 xen-libs.x86_64 0:3.3.1-0
Dependency Installed: bridge-utils.x86_64 0:1.1-2 cyrus-sasl-md5.x86_64 0:2.1.22-4 gnome-python2-gnomekeyring.x86_64 0:2.16.0-2.el5 iscsi-initiator-utils.x86_64 0:6.2.0.868-0.18.el5 kernel-xen.x86_64 0:2.6.18-128.el5 tftp.x86_64 0:0.42-3.1.el5.centos udhcp.x86_64 0:0.9.8-1usermac
Complete!

[root@dhcppc1 xen-rpms]# virt-install -n CentOS5PV -r 1024 -p --vnc \
-f /etc/xen/images/CentOS5.img l nfs:192.168.1.34:/mnt/tmp











To get network running at CentOS 5.2 DomU i had to disable checksum offloading at DomU:

/usr/local/sbin/ethtool -K eth0 tx off






Install PV DomU via virt-manager:-

















Install F10 PV DOmU via virt-manager