xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ranjith Krishnan <pkranjithpk@gmail.com>
To: xen-devel@lists.xen.org
Subject: Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
Date: Wed, 7 Mar 2012 13:34:54 -0600	[thread overview]
Message-ID: <CABMkiKG35mtR5=AVVW1XZOTR+hphudxuG6SisxAx9SAcAsLDRQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1805 bytes --]

Hello all,

I had asked my question on xen-users list, but I did not get any responses
for 5 days despite bumping the mail up once. Hence forwarding the question
here.

Hello,
Newbie here. So please be patient. If you need any extra information please
ask, and I will try to provide.
My intention is to study xen source and hopefully make some contributions
to it. So I tried to compile Xen 4.1 from source and start using it.

My environment details:
2.0 GHz 32 bit CPU, 2GB RAM with XP and Ubuntu Wubi install. ( Ubuntu
installed as an application within XP, can dual boot)
Trying to install Xen on external USB Hard disk (500 GB) : Installed Fedora
16 on this. Can boot and use Fedora 16 just fine from this.

I found these tutorials after searching and used them.

1. http://wiki.xen.org/wiki/Fedora_13_Xen_4_Tutorial
Used a partition scheme very similar to one mentioned in above tutorial.
Also disabled selinux.

2. Found a second tutorial for building xen from source:
http://wiki.xen.org/wiki/Compiling_Xen

3. I only complied and installed Xen, not linux kernel ( because wiki says
Fedora16 kernel is a valid Xen Dom0 Kernel ) according to
http://wiki.xen.org/wiki/Fedora_16_Dom0

After I installed Xen, confirmed that under /boot I have xen.gz, and the
folder /etc/xen exists.

I modified my grub2.cfg file by looking at a sample grub2 configuration
mentioned at
http://old-list-archives.xen.org/archives/html/xen-changelog/2011-10/msg00151.html

Now when I boot with Xen 4.1, it gives me a Kernel panic and fails to load
the dom0 kernel. Exact error message is

'elf_xen_note_check: ERROR: Will only load images built for the
generic loader or Linux images')

PANIC on CPU0:
Could not setup DOM0 guest OS

I am attaching my grub configuration file. Please have a look and advice.


-- 
Ranjith

[-- Attachment #1.2: Type: text/html, Size: 3109 bytes --]

[-- Attachment #2: Fedora_grub1.cfg --]
[-- Type: application/octet-stream, Size: 5029 bytes --]

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.2.7-1.fc16.i686)' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 1c4a75fe-53e2-4320-9500-7111ad74169b
	echo 'Loading Fedora (3.2.7-1.fc16.i686)'
	linux	/vmlinuz-3.2.7-1.fc16.i686 root=/dev/mapper/vg_fedorausb-lvroot ro rd.md=0 rd.dm=0  KEYTABLE=us quiet rd.lvm.lv=vg_fedorausb/lvroot rhgb rd.luks=0 rd.lvm.lv=vg_fedorausb/lvswap SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
	echo 'Loading initial ramdisk ...'
	initrd /initramfs-3.2.7-1.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 1c4a75fe-53e2-4320-9500-7111ad74169b
	echo	'Loading Linux 3.1.0-7.fc16.i686 ...'
	linux	/vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_fedorausb-lvroot ro rd.md=0 rd.dm=0  KEYTABLE=us quiet rd.lvm.lv=vg_fedorausb/lvroot rhgb rd.luks=0 rd.lvm.lv=vg_fedorausb/lvswap SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.0-7.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 1c4a75fe-53e2-4320-9500-7111ad74169b
	echo	'Loading Linux 3.1.0-7.fc16.i686 ...'
	linux	/vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_fedorausb-lvroot ro single rd.md=0 rd.dm=0  KEYTABLE=us quiet rd.lvm.lv=vg_fedorausb/lvroot rhgb rd.luks=0 rd.lvm.lv=vg_fedorausb/lvswap SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.0-7.fc16.i686.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
submenu "Xen 4.1" {
menuentry 'Fedora Linux, with Xen 4.1 and Linux 3.2.7-1.fc16.i686' --class fedora --class gnu-linux --class gnu --class os --class xen {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 1c4a75fe-53e2-4320-9500-7111ad74169b
	echo 'Loading Xen 4.1 ...'
	multiboot       /xen-4.1.gz placeholder
	echo 'Loading Linux 3.2.7-1.fc16.i686 ...'
	module	/vmlinuz-3.2.7-1.fc16.i686 placeholder
	root=/dev/mapper/vg_fedorausb-lvroot ro rd.md=0 rd.dm=0  KEYTABLE=us quiet rd.lvm.lv=vg_fedorausb/lvroot rhgb rd.luks=0 rd.lvm.lv=vg_fedorausb/lvswap SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
	echo 'Loading initial ramdisk ...'
	module /initramfs-3.2.7-1.fc16.i686.img
}
menuentry 'Fedora Linux, with Xen 4.1 and Linux 3.2.7-1.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os --class xen {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 1c4a75fe-53e2-4320-9500-7111ad74169b
	echo 'Loading Xen 4.1 ...'
	multiboot       /xen-4.1.gz placeholder
	echo 'Loading Linux 3.2.7-1.fc16.i686 ...'
	module	/vmlinuz-3.2.7-1.fc16.i686 placeholder
	root=/dev/mapper/vg_fedorausb-lvroot ro single rd.md=0 rd.dm=0  KEYTABLE=us quiet rd.lvm.lv=vg_fedorausb/lvroot rhgb rd.luks=0 rd.lvm.lv=vg_fedorausb/lvswap SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
	echo 'Loading initial ramdisk ...'
	module /initramfs-3.2.7-1.fc16.i686.img
}
}
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root 0650458050457807
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

             reply	other threads:[~2012-03-07 19:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 19:34 Ranjith Krishnan [this message]
2012-03-08 18:08 ` Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source Ranjith Krishnan
2012-03-16 16:00 ` Ian Campbell
2012-03-21  6:09   ` Ranjith Krishnan
2012-03-16 22:39 ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABMkiKG35mtR5=AVVW1XZOTR+hphudxuG6SisxAx9SAcAsLDRQ@mail.gmail.com' \
    --to=pkranjithpk@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).