Xen Hypervisor upgrade up to 4.0.1 on Opensuse 11.3

Procedure bellow fixes one hidden issue in recently developed xen-4.0.1_21326_01-1.1.src.rpm. It removes error “xen be core: xen be core: can’t open gnttab device” in corresponding /var/log/xen log file during attempt to run virt-install for PV Guest in VNC mode or attempt to run python installation profile referencing VFB for domains of same kind.

# wget http://download.opensuse.org/repositories/Virtualization:/openSUSE11.3/openSUSE_11.3/src/xen-4.0.1_21326_01-1.1.src.rpm
# rpm -iv xen-4.0.1_21326_01-1.1.src.rpm

To fix error in mentioned above xen-4.0.1_21326_01-1.1.src.rpm for opensuse 11.3 before rebuild make following changes to /usr/src/packages/SOURCES/udev-rools.patch. Just add one “gntdev” line

Index: xen-4.0.1-testing/tools/hotplug/Linux/xen-backend.rules
===================================================================
--- xen-4.0.1-testing.orig/tools/hotplug/Linux/xen-backend.rules
+++ xen-4.0.1-testing/tools/hotplug/Linux/xen-backend.rules
@@ -9,3 +9,4 @@ SUBSYSTEM=="xen-backend", ACTION=="remove"
KERNEL=="evtchn", NAME="xen/%k"
KERNEL=="blktap[0-9]*", NAME="xen/%k"
KERNEL=="pci_iomul", NAME="xen/%k"
+KERNEL=="gntdev", NAME="xen/%k"
+KERNELS=="xen", KERNEL=="xvd*", SUBSYSTEM=="block", OPTIONS+="last_rule"

Now

# zypper install LibVNCServer-devel SDL-devel acpica automake bin86 curl-devel dev86 \
graphviz latex2html libjpeg-devel libxml2-devel ncurses-devel openssl openssl-devel \
pciutils-devel python-devel texinfo transfig \
texlive texlive-latex \
glibc-32bit glibc-devel-32bit

# rpmbuild -bb ./xen.spec

When done

# cd ../RPMS/x86_64
# zypper install xen-4.0.1_21326_01-1.3.x86_64.rpm \
xen-devel-4.0.1_21326_01-1.3.x86_64.rpm \
xen-doc-html-4.0.1_21326_01-1.3.x86_64.rpm \
xen-doc-pdf-4.0.1_21326_01-1.3.x86_64.rpm \
xen-kmp-default-4.0.1_21326_01_k2.6.34.7_0.2-1.3.x86_64.rpm \
xen-kmp-desktop-4.0.1_21326_01_k2.6.34.7_0.2-1.3.x86_64.rpm \
xen-libs-4.0.1_21326_01-1.3.x86_64.rpm \
xen-tools-4.0.1_21326_01-1.3.x86_64.rpm

Download
# wget http://download.opensuse.org/update/11.3/rpm/x86_64/kernel-xen-2.6.34.7-0.2.2.x86_64.rpm
and install the most recent kernel
# rpm ivh kernel-xen-2.6.34.7-0.2.2.x86_64.rpm

After reboot make sure

linux-6t07:~/Desktop # ls -l /dev/xen
total 0
crw----- 1 root root 250, 0 2010-09-20 20:09 blktap0
crw----- 1 root root 10, 57 2010-09-20 20:09 evtchn
crw----- 1 root root 249, 0 2010-09-20 20:09 gntdev
crw----- 1 root root 10, 59 2010-09-20 20:09 pci_iomul

Check xen environment

host : linux-6t07
release : 2.6.34.7-0.2-xen
version : #1 SMP 2010-09-14 14:21:06 +0200
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 : 1029
free_cpus : 0
max_free_memory : 7582
max_para_memory : 7578
max_hvm_memory : 7552
node_to_cpu : node0:0-1
node_to_memory : node0:1029
node_to_dma32_mem : node0:967
max_node_id : 0
xen_major : 4
xen_minor : 0
xen_extra : .1_21326_01-1.3
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 : 21326
xen_commandline : vgamode=0x31a vgamode=0x31a
cc_compiler : gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SU
cc_compile_by : root
cc_compile_domain : site
cc_compile_date : Mon Sep 20 20:02:51 MSD 2010
xend_config_format : 4


About these ads

4 Responses to Xen Hypervisor upgrade up to 4.0.1 on Opensuse 11.3

  1. Jason X. says:

    Not needed to “Patch” anymore, latest *.src.rpm is already patched :)

  2. Hello there! This post could not be written any better! Reading through this post reminds me of my good old
    room mate! He always kept talking about this. I will forward this post to him.
    Fairly certain he will have a good read. Many thanks for sharing!

  3. Highly descriptive post, I liked that a lot. Will there be a
    part 2?

  4. website says:

    I like this post, enjoyed this one thank you for posting.
    “Abortion is advocated only by persons who have themselves been born.” by Ronald Reagan.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: