PDA

View Full Version : Trouble booting Xen hypervisor on Fedora 15?



BSalita
24th May 2011, 04:51 PM
I just installed Fedora 15 x86-64 gold today so I could try out the Xen hypervisor. I installed xen by typing in xen command line and following the installation prompts. Everything seemed to go fine on the install. The following appeared in /boot:

[root@fedora-15-64gb boot]# ls -ltr
total 53852
-rwxr-xr-x. 1 root root 3867920 May 9 23:00 vmlinuz-2.6.38.6-26.rc1.fc15.x86_64
-rw-------. 1 root root 2371473 May 9 23:00 System.map-2.6.38.6-26.rc1.fc15.x86_64
-rw-r--r--. 1 root root 114122 May 9 23:00 config-2.6.38.6-26.rc1.fc15.x86_64
-rw-r--r--. 1 root root 12128990 May 10 00:50 xen-syms-4.1.0
-rwxr-xr-x. 1 root root 730168 May 10 00:50 xen-4.1.0.gz
-rwxr-xr-x. 1 root root 3867984 May 15 19:38 vmlinuz-2.6.38.6-27.fc15.x86_64
-rw-------. 1 root root 2371473 May 15 19:38 System.map-2.6.38.6-27.fc15.x86_64
-rw-r--r--. 1 root root 114118 May 15 19:38 config-2.6.38.6-27.fc15.x86_64
-rw-r--r--. 1 root root 14651937 May 24 15:45 initramfs-2.6.38.6-27.fc15.x86_64.img
lrwxrwxrwx. 1 root root 12 May 24 15:53 xen-4.1.gz -> xen-4.1.0.gz
lrwxrwxrwx. 1 root root 12 May 24 15:53 xen.gz -> xen-4.1.0.gz
drwx------. 2 root root 12288 May 24 15:57 lost+found
-rw-r--r--. 1 root root 239077 May 24 16:13 initrd-plymouth.img
drwxr-xr-x. 3 root root 1024 May 24 16:20 efi
-rw-r--r--. 1 root root 14651155 May 24 16:23 initramfs-2.6.38.6-26.rc1.fc15.x86_64.img
drwxr-xr-x. 2 root root 1024 May 24 17:26 grub
[root@fedora-15-64gb boot]#

However, when I rebooted there were no boot options. I saw than /boot/grub/grub.conf had no entries for a xen kernel so I modified grub.conf to show a boot menu and added a thrid kernel boot option (xen 4.1.0). I'm unsure if the lines I added are proper. Now when I reboot choosing third option (xen 4.1.0) I get a boot error message that "Error 19: Linux kernel must be loaded before initrd". I'm guessing that the issue is that xen-4.1.0.gz isn't becoming the kernel. At this point I'm stuck. I'm not sure if this is a xen on 15 issue or I'm just making some newbie mistake in grub.conf. Anyone see an issue or can confirm/not -confirm that xen works on 15 x86-64 gold?

[root@fedora-15-64gb grub]# cat grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_fedora1564gb-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-27.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.38.6-27.fc15.x86_64 ro root=/dev/mapper/vg_fedora1564gb-lv_root rd_LVM_LV=vg_fedora1564gb/lv_root rd_LVM_LV=vg_fedora1564gb/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-27.fc15.x86_64.img
title Fedora (2.6.38.6-26.rc1.fc15.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.38.6-26.rc1.fc15.x86_64 ro root=/dev/mapper/vg_fedora1564gb-lv_root rd_LVM_LV=vg_fedora1564gb/lv_root rd_LVM_LV=vg_fedora1564gb/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-26.rc1.fc15.x86_64.img
title xen 4.1.0
root (hd0,0)
kernel /xen-4.1.0.gz dom0_mem=1024M loglvl=all guest_loglvl=all
module /vmlinuz-2.6.38.6-27.fc15.x86_64 ro root=/dev/mapper/vg_fedora1564gb-lv_root rd_LVM_LV=vg_fedora1564gb/lv_root rd_LVM_LV=vg_fedora1564gb/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-27.fc15.x86_64.img
[root@fedora-15-64gb grub]#

ENetARch
2nd August 2011, 05:26 AM
I'm getting the same problem. rebuilding Xen 4.0 from scratch and running into different issues. So definitely looking forward to a resolution.

IHeart SymLinks
17th November 2011, 10:14 PM
http://fedoraproject.org/wiki/Features/XenPvopsDom0


Currently Fedora releases greater than 8 contain the Xen hypervisor and tools, but not a Xen Dom0-capable kernel.What's the difference between kernel-xen and xen-hypervisor?

marko
31st January 2012, 01:54 AM
RE: post#3

does the "90%" on the Fedora 16 "Percentage of completion"
in that URL mean that Fedora 16 doesn't support dom0 guests ? Or did they flub up and not update the percentage to 100%?


UPDATE - to answer my own question, I went ahead and installed the xen packages on my Fedora 16, booted to the xen grub2 entry and my dom0
guest worked just fine. So Fedora 16 bootstraps itself to be the dom0 management guest.

However, the grub2 menu gets all flubbed up with bogus xen entries, currently I can boot ok if I'm at the terminal and manually
pick the right grub entry.