Opensuse 12.2 and VM xen hypervisor

**Summary
Opensuse 12.2 and VM xen hypervisor
On default installation, had issues with

  • Grub 2 (not showing any additional “sections”)
  • Yast - Virtualization menu missing
  • xen.gz missing…**

Details
12.2 Yast does not include a “Virtualization” menu by default.
Attempted to add it (yast-vm).
New menu appeared but, launching “Virtual Machine Manager” resulted in an error.

Error talking to PackageKit: org.freedesktop.DBus.Error.UnknownMethod: No such method ‘InstallPackageNames’ in interface ‘org.freedesktop.PackageKit.Modify’ at object path ‘/org/freedesktop/PackageKit’ (signature ‘iass’)

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/packageutils.py”, line 103, in check_packagekit
packagekit_install(do_install)
File “/usr/share/virt-manager/virtManager/packageutils.py”, line 135, in packagekit_install
timeout=timeout)
File “/usr/lib/python2.7/site-packages/dbus/proxies.py”, line 70, in call
return self._proxy_method(*args, **keywords)
File “/usr/lib/python2.7/site-packages/dbus/proxies.py”, line 145, in call
**keywords)
File “/usr/lib/python2.7/site-packages/dbus/connection.py”, line 651, in call_blocking
message, timeout)
DBusException: org.freedesktop.DBus.Error.UnknownMethod: No such method ‘InstallPackageNames’ in interface ‘org.freedesktop.PackageKit.Modify’ at object path ‘/org/freedesktop/PackageKit’ (signature ‘iass’)

Re-installed everything, using Grub (versus Grub 2).
Now xen appears on the menu, but received file not found error 15 (/boot/xen.gz missing)

Tried to install xen from Build Service - Package Search - 1-Click Install
It “failed” without providing any clue as to what happened.

Installing xen hypervisor from sources now…

Installed xen-4.3.1, rebooted (using Grub versus Grub2) successfully into xen kernel.

linux-wf1q:/home/chufarj # uname -a
Linux linux-wf1q 3.4.6-2.10-xen #1 SMP Thu Jul 26 09:36:26 UTC 2012 (641c197) i686 i686 i386 GNU/Linux

Received a warning…

Sep 16 10:14:45 linux-wf1q kernel: 1.336332] ***************************************************************
Sep 16 10:14:45 linux-wf1q kernel: 1.336558] ***************************************************************
Sep 16 10:14:45 linux-wf1q kernel: 1.336783] ** WARNING: Currently emulating unsupported memory accesses **
Sep 16 10:14:45 linux-wf1q kernel: 1.337007] ** in /lib/tls glibc libraries. The emulation is **
Sep 16 10:14:45 linux-wf1q kernel: 1.337232] ** slow. To ensure full performance you should **
Sep 16 10:14:45 linux-wf1q kernel: 1.337456] ** install a ‘xen-friendly’ (nosegneg) version of **
Sep 16 10:14:45 linux-wf1q kernel: 1.337680] ** the library, or disable tls support by executing **
Sep 16 10:14:45 linux-wf1q kernel: 1.337904] ** the following as root: **
Sep 16 10:14:45 linux-wf1q kernel: 1.338129] ** mv /lib/tls /lib/tls.disabled **
Sep 16 10:14:45 linux-wf1q kernel: 1.338354] ** Offending process: mount (pid=37) **
Sep 16 10:14:45 linux-wf1q kernel: 1.338578] ***************************************************************
Sep 16 10:14:45 linux-wf1q kernel: 1.338802] ***************************************************************

tried
mv /lib/tls /lib/tls.disabled
but result was
mv: cannot stat ‘/lib/tls’: No such file or directory

not sure which lib would be a
“install a ‘xen-friendly’ (nosegneg) version of the library”

currently zypper shows:
linux-wf1q:/var/log # zypper se tls
Loading repository data…
Warning: Repository ‘openSUSE-12.2-Update-Non-Oss’ appears to outdated. Consider using a different mirror or server.
Reading installed packages…

S | Name | Summary | Type
–±------------------------±------------------------------------------±-------
| gnutls | The GNU Transport Layer Security Library | package
| libgnutls-devel | Development package for gnutls | package
| libgnutls-openssl-devel | Development package for gnutls | package
| libgnutls-openssl27 | The GNU Transport Layer Security Library | package
i | libgnutls28 | The GNU Transport Layer Security Library | package
| libgnutlsxx-devel | Development package for gnutls | package
| libgnutlsxx28 | The GNU Transport Layer Security Library | package
| rsyslog-module-gtls | TLS encryption support module for rsyslog | package
| tls | Tcl Binding for the OpenSSL Library | package

Do the additional sections appear with grub2 under the advanced boot options ?

Run this after you install xen and the entry will appear in you grub2

sudo /usr/sbin/grub2-mkconfig --output=/boot/grub2/grub.cfg

Did that and received:

linux-7pgn:~ # /usr/sbin/grub2-mkconfig --output=/boot/grub2/grub.cfg
Generating grub.cfg …
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found background: /boot/grub2/themes/openSUSE/background.png
Found linux image: /boot/vmlinuz-3.4.6-2.10-desktop
Found initrd image: /boot/initrd-3.4.6-2.10-desktop
Found linux image: /boot/vmlinuz-3.4.6-2.10-xen
Found initrd image: /boot/initrd-3.4.6-2.10-xen
/dev/sdb: open failed: No medium found
No volume groups found
Found Dell Utility Partition on /dev/sda1
done

The Xen Hypervisor does show on the boot menu now.

However, when attempting to boot that option, I received:
(from my memory)

init ramdisk
error you need to load the kernel first

Before the reboot, I had installed xen-kernel

linux-7pgn:/boot # ls -lh
total 56M
-rw------- 1 root root 512 Sep 17 15:34 backup_mbr
lrwxrwxrwx 1 root root 1 Sep 17 15:22 boot → .
-rw-r–r-- 1 root root 1.3K Jul 15 01:11 boot.readme
-rw-r–r-- 1 root root 131K Aug 4 03:12 config-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 126K Aug 4 03:15 config-3.4.6-2.10-xen
-rw-r–r-- 1 root root 0 Oct 6 12:41 do_purge_kernels
drwxr-xr-x 2 root root 4.0K Sep 17 15:22 grub
drwxr-xr-x 6 root root 4.0K Oct 6 16:54 grub2
lrwxrwxrwx 1 root root 25 Oct 6 12:01 initrd → initrd-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 16M Oct 6 12:01 initrd-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 16M Oct 6 12:41 initrd-3.4.6-2.10-xen
lrwxrwxrwx 1 root root 21 Oct 6 12:41 initrd-xen → initrd-3.4.6-2.10-xen
-rw-r–r-- 1 root root 568K Sep 17 16:00 message
-rw-r–r-- 1 root root 215K Aug 4 04:27 symvers-3.4.6-2.10-desktop.gz
-rw-r–r-- 1 root root 213K Aug 4 04:34 symvers-3.4.6-2.10-xen.gz
-rw-r–r-- 1 root root 504 Aug 4 04:27 sysctl.conf-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 393 Aug 4 04:34 sysctl.conf-3.4.6-2.10-xen
-rw-r–r-- 1 root root 1.9M Aug 4 04:15 System.map-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 1.8M Aug 4 04:12 System.map-3.4.6-2.10-xen
-rw-r–r-- 1 root root 6.0M Aug 4 04:27 vmlinux-3.4.6-2.10-desktop.gz
-rw-r–r-- 1 root root 4.6M Aug 4 04:33 vmlinux-3.4.6-2.10-xen.gz
lrwxrwxrwx 1 root root 26 Sep 17 15:27 vmlinuz → vmlinuz-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 4.7M Aug 4 04:15 vmlinuz-3.4.6-2.10-desktop
-rw-r–r-- 1 root root 3.9M Aug 4 04:12 vmlinuz-3.4.6-2.10-xen
lrwxrwxrwx 1 root root 22 Oct 6 12:41 vmlinuz-xen → vmlinuz-3.4.6-2.10-xen

had to boot the desktop kernel

Of course when trying to run Yast-Virtualization-Create Virtual Machines, received:

**Error: A hypervisor is not running. For kvm, load the kvm kernel modules. If you want to run xen, reboot and load the xen kernel
**


Kernel installation search from zypper shows:

linux-7pgn:/boot # zypper se kernel
Loading repository data…
Reading installed packages…

S | Name | Summary | Type
–±-------------------------------±---------------------------------------------------------±----------
| devel_kernel | Linux Kernel Development | pattern
| kernel-coverage | Kernel Coverage Imageing, Galaxy Poster | package
| kernel-debug | A Debug Version of the Kernel | package
| kernel-debug-base | A Debug Version of the Kernel - base modules | package
| kernel-debug-devel | Development files necessary for building kernel modules | package
| kernel-default | The Standard Kernel | package
| kernel-default-base | The Standard Kernel - base modules | package
| kernel-default-devel | Development files necessary for building kernel modules | package
**i | kernel-desktop | Kernel optimized for the desktop | package **
| kernel-desktop-base | Kernel optimized for the desktop - base modules | package
| kernel-desktop-devel | Development files necessary for building kernel modules | package
| kernel-devel | Development files needed for building kernel modules | package
| kernel-docs | Kernel Documentation | package
| kernel-ec2 | The Amazon EC2 Xen Kernel | package
| kernel-ec2-base | The Amazon EC2 Xen Kernel - base modules | package
| kernel-ec2-devel | Development files necessary for building kernel modules | package
| kernel-ec2-extra | The Amazon EC2 Xen Kernel - Unsupported kernel modules | package
| kernel-firmware | Linux kernel firmware files | package
| kernel-firmware | Linux kernel firmware files | srcpackage
| kernel-pae | Kernel with PAE Support | package
| kernel-pae-base | Kernel with PAE Support - base modules | package
| kernel-pae-devel | Development files necessary for building kernel modules | package
| kernel-source | The Linux Kernel Sources | package
| kernel-source-vanilla | Vanilla Linux kernel sources with minor build fixes. | package
| kernel-syms | Kernel Symbol Versions (modversions) | package
| kernel-trace | The Standard Kernel with Tracing Features | package
| kernel-trace-base | The Standard Kernel with Tracing Features - base modules | package
| kernel-trace-devel | Development files necessary for building kernel modules | package
| kernel-vanilla | The Standard Kernel - without any SUSE patches | package
| kernel-vanilla-devel | Development files necessary for building kernel modules | package
**i | kernel-xen | The Xen Kernel | package **
| kernel-xen-base | The Xen Kernel - base modules | package
| kernel-xen-devel | Development files necessary for building kernel modules | package
i | nfs-kernel-server | Support Utilities for Kernel nfsd | package
| patterns-openSUSE-devel_kernel | Meta package for pattern devel_kernel | package

This was all *too *easy in opensusse 11.4…

Appears to be the grub2 menu issue as noted above.

Some other info…

linux-7pgn:/boot # df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 10G 5.7G 3.9G 60% /
devtmpfs 1.5G 44K 1.5G 1% /dev
tmpfs 1.5G 100K 1.5G 1% /dev/shm
tmpfs 1.5G 640K 1.5G 1% /run
/dev/sda2 10G 5.7G 3.9G 60% /
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
tmpfs 1.5G 0 1.5G 0% /media
tmpfs 1.5G 640K 1.5G 1% /var/lock
tmpfs 1.5G 640K 1.5G 1% /var/run
/dev/sda5 35G 11G 24G 32% /home
/dev/sda3 25G 850M 24G 4% /data

linux-7pgn:/ # cat etc/fstab
/dev/disk/by-id/ata-SAMSUNG_HD080HJ_P_S0DEJ10YC58126-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD080HJ_P_S0DEJ10YC58126-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-SAMSUNG_HD080HJ_P_S0DEJ10YC58126-part3 /data ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_HD080HJ_P_S0DEJ10YC58126-part5 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

linux-7pgn:/ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1526432k,nr_inodes=211145,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda2 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda5 on /home type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /data type ext4 (rw,relatime,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfs-fuse-daemon on /run/user/chufarj/gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

Is Virtualizion (XEN) working for anyone in 12.2?

I did what tom mentioned and now see the option to boot XEN, but it still is not working.

I ran in the same problem, I first thought that is was linked to the AMD 6234 because I have installed a few weeks before a 12.2 with xen without big problems on a xeon 3440 (except the grub2 which is a pain) this one works on a vmlinuz-3.4.6-2.10-xen with xen 4.1.

Now, even if I just upgrade xen it does not work, I tried with grub and grub2. For my understanding it’s linked to vmlinux-3.4.11-2.16-xen but I’m not able to determine what to do to make it work.

Sorry not linked to grub, I opened an other thread