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