Ibrahim Amon
2009-Jul-22 15:23 UTC
[Xen-users] I am at wits end, building xen-3.4.0 and always getting Not Xen-Elf On Boot
Hi All, I am trying to build xen using a custom kernel and a custom config. It builds successfully but whenever I add it to my grub.conf and reboot, I always get a kernel panic when xen tries to start dom0 with a message Not Xen-Elf. I have searched this mailing list and google extensively and have not found anything applicable. Others have reported similar messages but none of the results seem to apply. These are the steps that I have taken: 1) Copied my custom kernel source named linux-2.6.26.5XCDM01 to my xen build directory. 2) Cleaned my custom kernel by removing the .config file and deleting the include/config directory 3) Ran the following make command: make dist LINUX_VER="2.6.26.5XCDM01" KERNELS="linux-2.6-xen linux-2.6-xenU" CONFIGMODE=oldconfig IMAGE_TARGET=vmlinux XEN_LINUX_SOURCE=tarball I tried make world, but that deleted my kernel source directory and attempted to download a new kernel (understandably since it does a make clean first, so I stopped using that target). I also tried building with IMAGE_TARGET=vmlinuz but build failed stating ~ No such target I also tried building with IMAGE_TARGET=bzImage but that also failed when booting (can''t remember the failure message now, but I believe it was the same Not Xen-Elf failure) So I have been using vmlinux as IMAGE_TARGET. 4) Everything builds correctly. I copied the generated vmlinuz-2.6.26.5-xen and its System.map file along with the xen-3.gz symbolic links and xen-3.4.0.gz files to boot. 5) Modified my grub.conf and added the following: title CentOS (2.6.26.5-xenXCDM) root (hd0,0) kernel /xen-3.4.0.gz module /vmlinuz-2.6.26.5-xenXCDM ro root=/dev/VolGroup00/LogVol00 rhgb quiet module /initrd-2.6.26.5-xenXCDM I initially tried it w/o building the initrd just to see if it would atleast boot the dom0 but that failed with the Not Xen-Elf message. So I added the initrd and failed with the exact same message. I have googled and searched this mailing-list till I am blue in the face and still can''t get pass this. I have tried the exact same installation on both my laptop at home and my desktop at work and in addition tried xen-3.3.1 with the exact same result. Please, anyone, what is going on? What am I doing wrong? I am excited about Xen and would really like to get this working. Thanks if advance, Nicholas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fabian Zimmermann
2009-Jul-22 18:13 UTC
Re: [Xen-users] I am at wits end, building xen-3.4.0 and always getting Not Xen-Elf On Boot
Hi Ibrahim Amon,> 1) Copied my custom kernel source named linux-2.6.26.5XCDM01 to my xen > build directory.Is your "custom"-kernel a Xen-kernel? You have to patch kernel.org (Google: "gentoo xen patch") or get the sources of your distos-xen-kernel. Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ibrahim Amon
2009-Jul-22 18:22 UTC
Re: [Xen-users] I am at wits end, building xen-3.4.0 and always getting Not Xen-Elf On Boot
Thanks for the reply!!! I thought that was the purpose of running the make command provided when I downloaded the xen source. I assumed it would first patch the kernel sources and then build it. Is this assumption incorrect? Thanks again for your response, Nicholas ________________________________ From: Fabian Zimmermann <xen-users@z-technologies.de> To: Ibrahim Amon <ibrahimamon@yahoo.com> Cc: xen-users@lists.xensource.com Sent: Wednesday, July 22, 2009 2:13:31 PM Subject: Re: [Xen-users] I am at wits end, building xen-3.4.0 and always getting Not Xen-Elf On Boot Hi Ibrahim Amon,> 1) Copied my custom kernel source named linux-2.6.26.5XCDM01 to my xen build directory.Is your "custom"-kernel a Xen-kernel? You have to patch kernel.org (Google: "gentoo xen patch") or get the sources of your distos-xen-kernel. Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fabian Zimmermann
2009-Jul-22 18:49 UTC
Re: [Xen-users] I am at wits end, building xen-3.4.0 and always getting Not Xen-Elf On Boot
Hi Ibrahim Amon schrieb:> I thought that was the purpose of running the make command provided when > I downloaded the xen source. I assumed it would first patch the kernel > sources and then build it. Is this assumption incorrect?No, you have to patch the kernel yourself. You don''t need to do this within the xen-build-system, just like every other kernel-patch. http://wiki.xensource.com/xenwiki/XenDom0Kernels Bye, Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users