Installation of Xen on Mandriva 2007.0
I refer to http://qa.mandriva.com/twiki/bin/view/Main/HowToXen check http://wiki.mandriva.com/en/Development/Howto/Xen nowMy objective is to have
- Dom0 : Mandriva 2007.0 usual desktop
- DomU : Mandriva Cooker for testing purpose (openoffice.org64...) or building rpm...
Unfortunately my processor is not in http://wiki.xensource.com/xenwiki/HVM_Compatible_Processors hence I will not be able to use VT (to run unmodified OS), though I'm not sure it would be necessary or useful as I intend to run GNU/Linux (which can be modified to adapt).
Steps followed
- creation of a dedicated partition + swap (format them)
- /dev/sda9 12G 351M 11G 4% /mnt/vmdata
- /dev/sda10 2,2 GB swap
- installation of a Mandriva 2007.0 x86_64 using urpmi --root /mnt/vmdata basesystem urpmi and declared media for urpmi
- add Xen capabilities
- install Xen & kernels urpmi kernel-xen0-2.6.17.6mdv kernel-xenU-2.6.17.6mdv xen
- make initrd mkinitrd -v -f /boot/initrd-2.6.17-6mdvxen0.img 2.6.17-6mdvxen0
- edit /boot/grub/menu.lst
title linux Xen0 3 Mdv 2007 kernel (hd0,7)/boot/xen.gz dom0_mem=1024000 module (hd0,7)/boot/vmlinuz-2.6.17-6mdvxen0 root=/dev/sda8 ro module (hd0,7)/boot/initrd-2.6.17-6mdvxen0.img
First reboot
- no bootsplash, console in 80x25
- problem with nvidia driver (acs problem, consider relinking...) though nvidia driver is available in /lib/modules/2.6.17-6mdvxen0/kernel/drivers/video/nvidia/nvidiafb.ko.gz hum ah ok, nvidiafb :/ try to change it for nv in /etc/X11/xorg.conf
Backporting nvidia driver
- version 9631-1plf2007.0 includes patch for xen : dkms-nvidia-9631-1plf2007.0 nvidia-9631-1plf2007.0 (I needed to backport this driver from cooker/plf-nonfree)
- dkms build -m nvidia -v 9631-1plf2007.0 --kernelsourcedir=/usr/src/linux # build nvidia driver for mdvxen0 (dkms did not do it at reboot)
- dkms install -m nvidia -v 9631-1plf2007.0 # install the nvidia driver
- either reboot or modprobe nvidia && startx (as a user)
- Gnome should then works (well some problems remain with pmsuspend ram & cpufreq)
- remaining issue to be treated (after trying pmsuspend ram, only xscreensaver is launched and the system does not suspend) :
Dec 7 15:36:57 benLapix gnome-power-manager: (baud) Reprise de l'ordinateur Dec 7 16:01:01 benLapix crond[7311]: (root) CMD (nice -n 19 run-parts --report /etc/cron.hourly) Dec 7 16:12:28 benLapix kernel: Warning: Processor Platform Limit event detected, but not handled. Dec 7 16:12:28 benLapix kernel: Consider compiling CPUfreq support into your kernel.
maybe check whether cpufreq is xen-ready (google a bit)
Dec 7 15:02:21 benLapix kernel: nvidia: version magic '2.6.17-6mdv SMP mod_unload gcc-4.1' should be '2.6.17-6mdvxen0 SMP mod_unload gcc-4.1'
- still problems with Xen with nvidia 9746 latest drivers
Interesting links
http://en.wikipedia.org/wiki/Virtualization_Technologyhttp://www.debian-administration.org/articles/396
http://free-electrons.com/community/howtos/raid-xen-ubuntu/
http://fr.gentoo-wiki.com/HOWTO_XEN [fr]
logs
- content of /boot/ after installation of xen & mkinitrd
-rw-r--r-- 1 root root 70586 sep 13 18:28 config-2.6.17-5mdv
-rw-r--r-- 1 root root 69959 sep 13 18:32 config-2.6.17-5mdvxen0
-rw-r--r-- 1 root root 68951 sep 13 18:36 config-2.6.17-5mdvxenU
-rw-r--r-- 1 root root 70586 oct 25 18:21 config-2.6.17-6mdv
-rw-r--r-- 1 root root 69959 oct 25 18:53 config-2.6.17-6mdvxen0
-rw-r--r-- 1 root root 68951 oct 25 19:23 config-2.6.17-6mdvxenU
drwxr-xr-x 2 root root 1024 déc 3 23:38 grub/
-rw-r--r-- 1 root root 301971 nov 3 09:58 initrd-2.6.17-5mdv.img
-rw-r--r-- 1 root root 301495 nov 6 00:34 initrd-2.6.17-6mdv.img
-rw-r--r-- 1 root root 242484 déc 3 23:38 initrd-2.6.17-6mdvxen0.img
lrwxrwxrwx 1 root root 22 nov 6 00:34 initrd.img -> initrd-2.6.17-6mdv.img
lrwxrwxrwx 1 root root 26 nov 6 00:44 kernel.h -> /boot/kernel.h-2.6.17-5mdv
-rw-r--r-- 1 root root 909 nov 15 23:20 kernel.h-2.6.17-5mdv
-rw-r--r-- 1 root root 264808 nov 3 09:58 message-graphic
lrwxrwxrwx 1 root root 22 nov 6 00:53 System.map -> System.map-2.6.17-6mdv
-rw-r--r-- 1 root root 873681 sep 13 18:28 System.map-2.6.17-5mdv
-rw-r--r-- 1 root root 853469 sep 13 18:32 System.map-2.6.17-5mdvxen0
-rw-r--r-- 1 root root 789321 sep 13 18:36 System.map-2.6.17-5mdvxenU
-rw-r--r-- 1 root root 873777 oct 25 18:21 System.map-2.6.17-6mdv
-rw-r--r-- 1 root root 853490 oct 25 18:53 System.map-2.6.17-6mdvxen0
-rw-r--r-- 1 root root 789342 oct 25 19:23 System.map-2.6.17-6mdvxenU
lrwxrwxrwx 1 root root 19 nov 6 00:34 vmlinuz -> vmlinuz-2.6.17-6mdv
-rw-r--r-- 1 root root 1804502 sep 13 18:28 vmlinuz-2.6.17-5mdv
-rw-r--r-- 1 root root 1756314 sep 13 18:32 vmlinuz-2.6.17-5mdvxen0
-rw-r--r-- 1 root root 1654686 sep 13 18:36 vmlinuz-2.6.17-5mdvxenU
-rw-r--r-- 1 root root 1804604 oct 25 18:21 vmlinuz-2.6.17-6mdv
-rw-r--r-- 1 root root 1756018 oct 25 18:53 vmlinuz-2.6.17-6mdvxen0
-rw-r--r-- 1 root root 1654570 oct 25 19:23 vmlinuz-2.6.17-6mdvxenU
lrwxrwxrwx 1 root root 19 nov 1 23:15 xen-3.0.gz -> xen-3.0-unstable.gz
-rw-r--r-- 1 root root 308117 sep 20 13:44 xen-3.0-unstable.gz
lrwxrwxrwx 1 root root 19 nov 1 23:15 xen-3.gz -> xen-3.0-unstable.gz
lrwxrwxrwx 1 root root 19 nov 1 23:15 xen.gz -> xen-3.0-unstable.gz
-rw-r--r-- 1 root root 3348065 sep 20 13:44 xen-syms-3.0-unstable
CategoryCookerInfo