User Virtual script to build debian packages for Xen 4.0.1-rc3

June 23, 2010

#!/bin/bash
# Written by User Virtual
# RELEASE-4.0.0
# 4.0.1-rc1

sudo apt-get install libcurl4-openssl-dev xserver-xorg-dev mercurial gitk build-essential libncurses5-dev uuid-dev gawk gettext texinfo bcc libncurses5-dev dpkg-dev debhelper iasl texinfo catdvi fakeroot bison flex
sudo apt-get build-dep xen-3.3

REPOS=xen-4.0-testing.hg
REPURL=http://xenbits.xensource.com/$REPOS

WRKD=/usr/src/build/400
IMGD=/usr/src/build/wget
STARTDIR=$(pwd)
export CONCURRENCY_LEVEL=$(grep processor /proc/cpuinfo | sed -n ‘$=’)
[ -d $WRKD ] || mkdir -p $WRKD
cd $WRKD
[ -d $REPOS ] || hg clone $REPURL #http://xenbits.xensource.com/$REPOS
cd $WRKD/$REPOS
if [ -n "$1" ]; then
LREL=$1
else
LREL=$(hg tags | sed ‘/^tip\b /d’ | sed -n ‘1 s/ *.*//p’) # RELEASE-4.0.0
fi
RELTAG=$(echo $LREL | sed ‘s/^RELEASE-//;s/-\([^-]*\)$/\1/’) # 4.0.0

[ -d $IMGD ] || mkdir -p $IMGD
#! hg pull | grep ‘^no changes found$'; CHANGED=$?; test -z $CHANGED && hg update
hg pull; hg update
echo hg archive –rev=$LREL –type=tgz –prefix=xen-$RELTAG $IMGD/xen-$RELTAG.tar.gz
[ -r $IMGD/xen-$RELTAG.tar.gz ] || \
hg archive –rev=$LREL –type=tgz –prefix=xen-$RELTAG $IMGD/xen-$RELTAG.tar.gz || \
exit $?
cd $WRKD
ORIGZ=xen-$(echo $RELTAG | sed ‘s/\.[^.]*$//’)_$RELTAG.orig.tar.gz
[ -r $ORIGZ ] || \
ln -sv $IMGD/xen-$RELTAG.tar.gz $ORIGZ

rm -rf xen-$RELTAG; tar xzf $ORIGZ

cd $WRKD/xen-$RELTAG
DIFNAME=xen-$(echo $RELTAG | sed ‘s/\.[^.]*$//’)_$RELTAG-0ubuntu1.diff.gz
cp -va $STARTDIR/$DIFNAME $WRKD/
zcat $WRKD/$DIFNAME | patch -p1

dpkg-buildpackage -rfakeroot && \
echo BUILT OK.
exit $?


Hackery Xen 4.0.1-rc1 source & kernels packaged for Ubuntu Lucid @Virtualusr Site up to 4.0.1-rc3

June 17, 2010

Following bellow is attempt to debianize Xen 4.0.1-rc3,in other words to build debian packages been installed on recent Ubuntu 10.04 (9.10) servers set corresponding version of Hypervisor up. We follow closely posting [1], attempting to fix errors in patching of current version of /etc/init.d/xend.

wget http://virtualusr.files.wordpress.com/2010/06/mk-xen40x6.doc
catdoc mk-xen40x6.doc > mk-xen40x.sh
sh mk-xen40x.sh

Then
# gunzip xen-4.0_4.0.1rc1-0ubuntu1.diff.gz
Edit xen-4.0_4.0.1rc1-0ubuntu1.diff and replace line 835
+xen-4.0 (4.0.1rc1-0ubuntu1) karmic; urgency=low
by
+xen-4.0 (4.0.1rc3-0ubuntu1) karmic; urgency=low

# cp xen-4.0_4.0.1rc1-0ubuntu1.diff xen-4.0_4.0.1rc3-0ubuntu1.diff
# gzip xen-4.0_4.0.1rc3-0ubuntu1.diff
# ./packageXen40x.sh 4.0.1-rc3

Build succeed:-
root@ServerLDX:/usr/src/build# find . -name “*.deb” -print
./400/xen-docs-4.0_4.0.1rc3-0ubuntu1_all.deb
./400/libxen4-dev_4.0.1rc3-0ubuntu1_amd64.deb
./400/libxen4_4.0.1rc3-0ubuntu1_amd64.deb
./400/xen-hypervisor-4.0_4.0.1rc3-0ubuntu1_amd64.deb
./400/xen-utils-4.0_4.0.1rc3-0ubuntu1_amd64.deb
./400/python-xen-4.0_4.0.1rc3-0ubuntu1_amd64.deb
*******************************************************************************************************************************************
UPDATE 06/22/2010 Due to new errors followed by update “Xen 4.0.1-rc2 … source & kernels packaged for Ubuntu”

http://virtualusr.wordpress.com/2010/06/17/xen-4-0-1-rc2-source-kernels-packaged-for-ubuntu/

I’ve uploaded to launchpad.net the most recent xen-4.0_4.0.1rc3-0ubuntu1.diff.gz correct version ( per User Virtual )
** Patch added: “xen-4.0_4.0.1rc3-0ubuntu1.diff.gz” http://launchpadlibrarian.net/50750244/xen-4.0_4.0.1rc3-0ubuntu1.diff.gz Packages may be built via original version packageXen40x.sh :-
# ./packageXen40x.sh 4.0.1-rc3
*******************************************************************************************************************************************
Install debian packages been built and load 2.6.32.15 ( which requires rc2) under Xen 4.0.1-rc3 Hypervisor

Make sure:-

root@ServerLNX:/dev/xen# ls -l
total 0
crw-rw---- 1 root root 10, 60 2010-06-17 16:15 evtchn
crw-rw---- 1 root root 10, 59 2010-06-17 16:15 gntdev

It’s a fair . Udevd created evtchn device required for successful xend start under pvops 2.6.32.15. Edit xend, removing attempt to load xen-evtchn module, which in best case scenario would do nothing in worst
case crash xend.

# /etc/init.d/xend start

root@ServerLNX:~# xm info
host : ServerLNX
release : 2.6.32.15
version : #8 SMP Sun Jun 13 14:34:17 MSD 2010
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2999
hw_caps : bfebfbff:20100800:00000000:00000940:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 1666
node_to_cpu : node0:0-1
node_to_memory : node0:1666
node_to_dma32_mem : node0:805
max_node_id : 0
xen_major : 4
xen_minor : 0
xen_extra : .1-rc3
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline :
cc_compiler : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Thu Jun 17 15:24:31 MSD 2010
xend_config_format : 4

root@ServerLNX:~# brctl show
bridge name bridge id STP enabled interfaces
eth1 8000.00221563f99f no peth1
virbr0 8000.000000000000 yes

root@ServerLNX:~# virsh version
Compiled against library: libvir 0.8.1
Using library: libvir 0.8.1
Using API: Xen 3.0.1
Running hypervisor: Xen 4.0.0


References
1. http://virtualusr.wordpress.com/2010/05/26/xen-4-0-1-rc1-source-kernels-packaged-for-ubuntu/


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

June 9, 2010

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


Set up DNJL PPA

June 4, 2010


root@ServerLDX:~# add-apt-repository ppa:dnjl/virtualization
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 5C1F788FDE6E8657FF5864FFD18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

root@ServerLDX:~# apt-get update
Get:1 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Get:2 http://ppa.launchpad.net lucid Release [57.3kB]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Hit http://security.ubuntu.com lucid-security/main Packages
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Get:3 http://ppa.launchpad.net lucid/main Packages [7,589B]
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 65.2kB in 2s (21.9kB/s)
Reading package lists... Done

root@ServerLDX:~# vi /etc/apt/sources.list and add :-
deb http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main
deb-src http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main
:wq

root@ServerLDX:~# apt-get update
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://security.ubuntu.com lucid-security/main Packages
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Get:1 http://ppa.launchpad.net lucid/main Sources [2,594B]
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 2,594B in 2s (978B/s)
Reading package lists... Done
root@ServerLDX:~# apt-get install virtinst python-virtinst virt-viewer virt-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-gtk-vnc python-libvirt
python-urlgrabber qemu-common qemu-kvm seabios vgabios
Suggested packages:
mol-drivers-macosx openbios-sparc kvm-pxe ubuntu-vm-builder uml-utilities qemu
The following NEW packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-gtk-vnc python-libvirt
python-urlgrabber python-virtinst qemu-common qemu-kvm seabios vgabios virt-manager virt-viewer virtinst
0 upgraded, 18 newly installed, 0 to remove and 9 not upgraded.
Need to get 6,996kB of archives.
After this operation, 23.4MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main acl 2.2.49-2 [56.8kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/main bridge-utils 1.4-5ubuntu2 [33.9kB]
Get:3 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 [831kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main libaio1 0.3.107-3ubuntu2 [9,608B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/universe libvdeplug2 2.2.3-3 [13.0kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid/main libxen3 3.3.0-1ubuntu11 [151kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-gtk-vnc 0.3.10-2ubuntu2 [10.0kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-urlgrabber 3.1.0-5ubuntu1 [57.5kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ lucid/main seabios 0.5.1-0ubuntu2 [48.2kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ lucid/main vgabios 0.6c-2ubuntu1 [78.5kB]
Get:11 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 [706kB]
Get:12 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-libvirt 0.8.0-2ubuntu0~dnjl2~lucid0 [62.5kB]
Get:13 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-common 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [30.1kB]
Get:14 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-kvm 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [2,955kB]
Get:15 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [356kB]
Get:16 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virt-manager 0.8.4-2ubuntu0~dnjl0~lucid0 [1,534kB]
Get:17 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [1,576B]
Get:18 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virt-viewer 0.2.1-1ubuntu0~dnjl4~lucid0 [61.9kB]
Fetched 6,996kB in 31s (226kB/s)
Selecting previously deselected package acl.
(Reading database ... 147802 files and directories currently installed.)
Unpacking acl (from .../acl_2.2.49-2_amd64.deb) ...
Selecting previously deselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.4-5ubuntu2_amd64.deb) ...
Selecting previously deselected package libaio1.
Unpacking libaio1 (from .../libaio1_0.3.107-3ubuntu2_amd64.deb) ...
Selecting previously deselected package libvdeplug2.
Unpacking libvdeplug2 (from .../libvdeplug2_2.2.3-3_amd64.deb) ...
Selecting previously deselected package libxen3.
Unpacking libxen3 (from .../libxen3_3.3.0-1ubuntu11_amd64.deb) ...
Selecting previously deselected package libvirt0.
Unpacking libvirt0 (from .../libvirt0_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package libvirt-bin.
Unpacking libvirt-bin (from .../libvirt-bin_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-gtk-vnc.
Unpacking python-gtk-vnc (from .../python-gtk-vnc_0.3.10-2ubuntu2_amd64.deb) ...
Selecting previously deselected package python-libvirt.
Unpacking python-libvirt (from .../python-libvirt_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpacking python-urlgrabber (from .../python-urlgrabber_3.1.0-5ubuntu1_all.deb) ...
Selecting previously deselected package seabios.
Unpacking seabios (from .../seabios_0.5.1-0ubuntu2_all.deb) ...
Selecting previously deselected package vgabios.
Unpacking vgabios (from .../vgabios_0.6c-2ubuntu1_all.deb) ...
Selecting previously deselected package qemu-common.
Unpacking qemu-common (from .../qemu-common_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_all.deb) ...
Selecting previously deselected package qemu-kvm.
Unpacking qemu-kvm (from .../qemu-kvm_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_amd64.deb) ...
Selecting previously deselected package virtinst.
Unpacking virtinst (from .../virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package virt-manager.
Unpacking virt-manager (from .../virt-manager_0.8.4-2ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package python-virtinst.
Unpacking python-virtinst (from .../python-virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package virt-viewer.
Unpacking virt-viewer (from .../virt-viewer_0.2.1-1ubuntu0~dnjl4~lucid0_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
Setting up acl (2.2.49-2) ...
Setting up bridge-utils (1.4-5ubuntu2) ...
Setting up libaio1 (0.3.107-3ubuntu2) ...
Setting up libvdeplug2 (2.2.3-3) ...
Setting up libxen3 (3.3.0-1ubuntu11) ...
Setting up libvirt0 (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up libvirt-bin (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Adding group `libvirtd' (GID 124) ...
Done.
libvirt-bin start/running, process 2473
Setting up python-gtk-vnc (0.3.10-2ubuntu2) ...
Setting up python-libvirt (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up python-urlgrabber (3.1.0-5ubuntu1) ...
Setting up seabios (0.5.1-0ubuntu2) ...
Setting up vgabios (0.6c-2ubuntu1) ...
Setting up qemu-common (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
Setting up qemu-kvm (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
qemu-kvm start/running
Setting up virt-viewer (0.2.1-1ubuntu0~dnjl4~lucid0) ...
Processing triggers for python-central ...
Setting up virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Setting up virt-manager (0.8.4-2ubuntu0~dnjl0~lucid0) ...
Setting up python-virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...

root@ServerLDX:~# virsh version
Compiled against library: libvir 0.8.0
Using library: libvir 0.8.0
Using API: QEMU 0.8.0
Running hypervisor: QEMU 0.12.3


Set up Libvirt 0.8.1 & Xen 4.0.1 Dom0 (2.6.32.15 pvops) on top of Ubuntu 10.04 Server via Daniel Baumann Virtualization PPA

June 2, 2010

Add two lines to /etc/apt/sources list

deb http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main
deb-src http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main

Running “add-apt-repository ppa:/gwibber-daily/ppa” didn’t work for me due to “apt-get update” complaining absence key with different value, that’s why i imported requested key via command bellow and succeeded with “apt-get update”

———————————————————————————————————————
UPDATE on 06/04/2010
———————————————————————————————————————-

# root@ServerLSX:~# add-apt-repository ppa:dnjl/virtualization
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 5C1F788FDE6E8657FF5864FFD18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

root@ServerLSX:~# apt-get update

————————————————————————————————————————
UPDATE on 06/13/2010
————————————————————————————————————————
DNJL’s PPA has been rebuilt and in meantime provides Libvirt 0.8.1 & Virt-manager 0.8.4.The most recent pvops kernel 2.6.32.15 requires Xen Hypervisor upgrade up to 4.0.1-rc3-pre at the time of writing
————————————————————————————————————————


root@ServerLX:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D18C7A1DF6E6BED2
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys D18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)


root@ServerLX:~# apt-get update
Hit http://us.archive.ubuntu.com lucid Release.gpg
Get:1 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu/ lucid/main Translation-en_US
Get:2 http://ppa.launchpad.net lucid Release [57.3kB]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 308B in 5s (55B/s)
Reading package lists... Done

Now install libvirt 0.8.0 related packages

root@ServerLX:~# apt-get install virtinst python-virtinst virt-viewer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-libvirt python-urlgrabber qemu-common
qemu-kvm seabios vgabios
Suggested packages:
mol-drivers-macosx openbios-sparc kvm-pxe ubuntu-vm-builder uml-utilities qemu
The following NEW packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-libvirt python-urlgrabber
python-virtinst qemu-common qemu-kvm seabios vgabios virt-viewer virtinst
0 upgraded, 16 newly installed, 0 to remove and 11 not upgraded.
Need to get 5,451kB of archives.
After this operation, 17.3MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 [831kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/main acl 2.2.49-2 [56.8kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main bridge-utils 1.4-5ubuntu2 [33.9kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main libaio1 0.3.107-3ubuntu2 [9,608B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/universe libvdeplug2 2.2.3-3 [13.0kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid/main libxen3 3.3.0-1ubuntu11 [151kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-urlgrabber 3.1.0-5ubuntu1 [57.5kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ lucid/main seabios 0.5.1-0ubuntu2 [48.2kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ lucid/main vgabios 0.6c-2ubuntu1 [78.5kB]
Get:10 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 [706kB]
Get:11 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-libvirt 0.8.0-2ubuntu0~dnjl2~lucid0 [62.5kB]
Get:12 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-common 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [30.1kB]
Get:13 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-kvm 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [2,955kB]
Get:14 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [356kB]
Get:15 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [1,576B]
Get:16 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virt-viewer 0.2.1-1ubuntu0~dnjl4~lucid0 [61.9kB]
Fetched 5,451kB in 56s (96.5kB/s)
Selecting previously deselected package acl.
(Reading database ... 147802 files and directories currently installed.)
Unpacking acl (from .../acl_2.2.49-2_amd64.deb) ...
Selecting previously deselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.4-5ubuntu2_amd64.deb) ...
Selecting previously deselected package libaio1.
Unpacking libaio1 (from .../libaio1_0.3.107-3ubuntu2_amd64.deb) ...
Selecting previously deselected package libvdeplug2.
Unpacking libvdeplug2 (from .../libvdeplug2_2.2.3-3_amd64.deb) ...
Selecting previously deselected package libxen3.
Unpacking libxen3 (from .../libxen3_3.3.0-1ubuntu11_amd64.deb) ...
Selecting previously deselected package libvirt0.
Unpacking libvirt0 (from .../libvirt0_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package libvirt-bin.
Unpacking libvirt-bin (from .../libvirt-bin_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-libvirt.
Unpacking python-libvirt (from .../python-libvirt_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpacking python-urlgrabber (from .../python-urlgrabber_3.1.0-5ubuntu1_all.deb) ...
Selecting previously deselected package seabios.
Unpacking seabios (from .../seabios_0.5.1-0ubuntu2_all.deb) ...
Selecting previously deselected package vgabios.
Unpacking vgabios (from .../vgabios_0.6c-2ubuntu1_all.deb) ...
Selecting previously deselected package qemu-common.
Unpacking qemu-common (from .../qemu-common_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_all.deb) ...
Selecting previously deselected package qemu-kvm.
Unpacking qemu-kvm (from .../qemu-kvm_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_amd64.deb) ...
Selecting previously deselected package virtinst.
Unpacking virtinst (from .../virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package python-virtinst.
Unpacking python-virtinst (from .../python-virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package virt-viewer.
Unpacking virt-viewer (from .../virt-viewer_0.2.1-1ubuntu0~dnjl4~lucid0_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up acl (2.2.49-2) ...
Setting up bridge-utils (1.4-5ubuntu2) ...
Setting up libaio1 (0.3.107-3ubuntu2) ...
Setting up libvdeplug2 (2.2.3-3) ...
Setting up libxen3 (3.3.0-1ubuntu11) ...
Setting up libvirt0 (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up libvirt-bin (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Adding group `libvirtd' (GID 124) ...
Done.
libvirt-bin start/running, process 2491
Setting up python-libvirt (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up python-urlgrabber (3.1.0-5ubuntu1) ...
Setting up seabios (0.5.1-0ubuntu2) ...
Setting up vgabios (0.6c-2ubuntu1) ...
Setting up qemu-common (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
Setting up qemu-kvm (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
qemu-kvm start/running
Setting up virt-viewer (0.2.1-1ubuntu0~dnjl4~lucid0) ...
Processing triggers for python-central ...
Setting up virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Setting up python-virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...

Packages install and dependencies resolution have been done not via Lucid Repos, but via Daniel’s PPA [1]. Setup Xen 4.0 & 2.6.32.10 pvops kernel as advised in [2].
Following bellow is series of snapshots demonstrating install F13 PV DomU via virt-manager at Xen 4.0 Dom0 on top of Ubuntu Lucid Server











————————————————————————————-
As of 06/13/2010 Libvirt is 0.8.1 & virt-manager is 0.8.4
————————————————————————————-

root@ServerLDX:~# apt-get install libvirt-bin virt-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libaio1 seabios qemu-kvm vgabios libvdeplug2 qemu-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libvirt0
The following packages will be upgraded:
libvirt-bin libvirt0 virt-manager
3 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
Need to get 3,107kB of archives.
After this operation, 106kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt-bin 0.8.1-2ubuntu0~dnjl2~lucid0 [714kB]
Get:2 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt0 0.8.1-2ubuntu0~dnjl2~lucid0 [859kB]
Get:3 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virt-manager 0.8.4-3ubuntu2~lucid0 [1,535kB]
Fetched 3,107kB in 13s (228kB/s)
(Reading database ... 186488 files and directories currently installed.)
Preparing to replace libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 (using .../libvirt-bin_0.8.1-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
libvirt-bin stop/waiting
Unpacking replacement libvirt-bin ...
Preparing to replace libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 (using .../libvirt0_0.8.1-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Unpacking replacement libvirt0 ...
Preparing to replace virt-manager 0.8.4-2ubuntu0~dnjl0~lucid0 (using .../virt-manager_0.8.4-3ubuntu2~lucid0_all.deb) ...
Unpacking replacement virt-manager ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
Setting up libvirt0 (0.8.1-2ubuntu0~dnjl2~lucid0) ...
Setting up libvirt-bin (0.8.1-2ubuntu0~dnjl2~lucid0) ...
Installing new version of config file /etc/libvirt/nwfilter/no-arp-spoofing.xml ...
Installing new version of config file /etc/libvirt/nwfilter/clean-traffic.xml ...
Installing new version of config file /etc/apparmor.d/abstractions/libvirt-qemu ...
libvirt-bin start/running, process 5009
Setting up virt-manager (0.8.4-3ubuntu2~lucid0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-central ...

root@ServerLDX:~# virsh version
Compiled against library: libvir 0.8.1
Using library: libvir 0.8.1
Using API: Xen 3.0.1
Running hypervisor: Xen 4.0.0

References
1.https://launchpad.net/~dnjl/+archive/virtualization
2.http://wiki.xensource.com/xenwiki/Xen4.0


Follow

Get every new post delivered to your Inbox.