Ranjith Krishnan
2012-Mar-07 19:34 UTC
Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ranjith Krishnan
2012-Mar-08 18:08 UTC
Re: Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
Bumping this thread up. Please can someone have a look at this and help. I think there is something wrong with my grub.cfg so if someone has a working grub2 config, they can help me. On Wed, Mar 7, 2012 at 1:34 PM, Ranjith Krishnan <pkranjithpk@gmail.com>wrote:> 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 > >-- Ranjith _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2012-Mar-16 16:00 UTC
Re: Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
On Wed, 2012-03-07 at 19:34 +0000, Ranjith Krishnan wrote: [...]> 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[...]> 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:I think it would be worth double checking the assumption that this kernel supports Xen. It is also worth figuring out what the compresison algorithm used is. You could use the attached bzexplode.c to extract the cmpressed elf from /boot/vmlinuz: $ bzexplode /boot/vmlinuz-3.2.7-1.fc16.i686 > vmlinux.compressed Once you have that decompress it. e.g. $ file vmlinux.compressed e.g. ...gziped data... $ zcat vmlinux.compressed > vmlinux $ file vmlinux (should be an ELF file) Then run "/usr/lib/xen/bin/readnotes vmlinux". If the kernel is Xen capable then you should get some stuff output. Please post the output of all the above commands. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Konrad Rzeszutek Wilk
2012-Mar-16 22:39 UTC
Re: Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
On Wed, Mar 7, 2012 at 2:34 PM, Ranjith Krishnan <pkranjithpk@gmail.com> wrote:> 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.OK, but does the version that come with Fedora work for you? Have you tried ''yum install xen'' and seen how it installs and configured the grub2.cfg?> > 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.Ewww. That is not good. Please don''t use that.> > 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'') >So that looks like you are trying to load the initrd image instead of the kernel. Sounds to me that you have missed a "module" line or perhaps are using the "kernel"/ "initrd" stanza. I would strongly recommend you first install from the yum repos so that you can get a working baseline first.> PANIC on CPU0: > > > Could not setup DOM0 guest OS > > I am attaching my grub configuration file. Please have a look and advice. > > > -- > Ranjith > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >
Ranjith Krishnan
2012-Mar-21 06:09 UTC
Re: Panic on CPU0 : Unable to boot with Xen 4.1 on Fedora 16, manual grub2 config after compiling Xen from source
On Fri, Mar 16, 2012 at 11:00 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:> On Wed, 2012-03-07 at 19:34 +0000, Ranjith Krishnan wrote: > [...] > > 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 > [...] > > 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: > > I think it would be worth double checking the assumption that this > kernel supports Xen. It is also worth figuring out what the compresison > algorithm used is. > > You could use the attached bzexplode.c to extract the cmpressed elf > from /boot/vmlinuz: > $ bzexplode /boot/vmlinuz-3.2.7-1.fc16.i686 > vmlinux.compressed > > Once you have that decompress it. e.g. > $ file vmlinux.compressed > e.g. ...gziped data... > $ zcat vmlinux.compressed > vmlinux > $ file vmlinux > (should be an ELF file) > > Then run "/usr/lib/xen/bin/readnotes vmlinux". If the kernel is Xen > capable then you should get some stuff output. Please post the output of > all the above commands. > > Ian. >Hello Ian, Thanks for responding. Meanwhile I already got help of my university system administrators who figured out the problem. I was trying to install it on a 32 bit machine, and the fedora 16 dom0 page explicitly mention that I need to use PAE-kernel for the i686 version. (This bit of info was missing in the xen wiki though.) http://fedoraproject.org/wiki/Features/XenPvopsDom0 When we tried yum install on the xen-pae, this particular error went away. -- Ranjith -- Ranjith _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel