[Bug 224271] New: GRUB Error when booting to Xen dom0 kernel: "Error 13: Invalid or unsupported executable format"
https://bugzilla.novell.com/show_bug.cgi?id=224271 Summary: GRUB Error when booting to Xen dom0 kernel: "Error 13: Invalid or unsupported executable format" Product: openSUSE 10.2 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: cgriffin@novell.com ReportedBy: aleksander.adamowski.novell@altkom.pl QAContact: qa@suse.de I've installed OpenSuSe 10.2 RC1 for x86_64 on a HP DL-145 dual core Opteron server. In the final installation stage, I've installed all the patches, including kernel ones. This has erased the old kernel versions (2.6.18.2-23) and only the new ones were left (2.6.18.2-33), both default variant and xen variant. The Xen variant is the default in GRUB. However, when trying to boot into the Xen kernel, GRUB gives the following error: Error 13: Invalid or unsupported executable format The relevant kernel image and initrd files do exist (/boot/vmlinuz-2.6.18.2-33-xen and /boot/initrd-2.6.18.2-33-xen). Booting into Kernel-2.6.18.2-33-default works fine. Here's the relevant fragment from /boot/grub/menu.lst: title Kernel-2.6.18.2-33-default root (hd0,0) kernel /vmlinuz-2.6.18.2-33-default root=/dev/md0 vga=0x317 resume=/dev/sdb1 splash=silent showopts initrd /initrd-2.6.18.2-33-default title Kernel-2.6.18.2-33-xen root (hd0,0) kernel /xen.gz kernel /vmlinuz-2.6.18.2-33-xen root=/dev/md0 vga=0x317 resume=/dev/sdb1 splash=silent showopts initrd /initrd-2.6.18.2-33-xen -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224271 Wojciech.Szenajch@bull.com.pl changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Wojciech.Szenajch@bull.com.pl ------- Comment #1 from Wojciech.Szenajch@bull.com.pl 2006-11-29 02:42 MST ------- Definition of xen kernel is incorrect. It should look like: title Kernel-2.6.18.2-33-xen root (hd0,0) kernel /boot/xen.gz module /boot/vmlinuz-2.6.18.2-33-xen root=/dev/sda6 vga=0x317 resume=/dev/sdb1 splash=silent showopts module /boot/initrd-2.6.18.2-33-xen (Adjust different hd and /dev/* definitions if you have different disks and partitions) Patch 2.6.18.2-33 XEN kernel installation in Grub should be corrected. I tested it on x86_64 platform and it worked after described modification. Also entries concerning previous kernel versions should be removed from menu.lst because those kernels are removed by kernels 2.6.18.2-33 patches installation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224271 jplack@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|cgriffin@novell.com |jplack@novell.com Severity|Normal |Critical Status|NEW |ASSIGNED ------- Comment #2 from jplack@novell.com 2006-11-29 02:50 MST ------- clearly a perl-Bootloader issue -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224271 ------- Comment #3 from aleksander.adamowski.novell@altkom.pl 2006-11-29 03:27 MST ------- It seems that there are significant differences between vmlinuz-2.6.18.2-33-default and vmlinuz-2.6.18.2-33-xen: * the -default image is a kernel bzImage as identified by the "file" utility. * the -xen image is identified as gzip copmpressed data: hostname:/boot # file vmlinuz-2.6.18.2-33-default vmlinuz-2.6.18.2-33-default: Linux/x86 Kernel, Setup Version 0x204, bzImage, Version 2.6.18.2, Version 2.6.18.2-33, RO-rootFS, root_dev 0x808, swap_dev 0x1, Normal VGA hostname:/boot # file vmlinuz-2.6.18.2-33-xen vmlinuz-2.6.18.2-33-xen: gzip compressed data, from Unix, last modified: Mon Nov 27 13:57:07 2006, max compression Moreover, if I decompress the -xen image, I get ordinary ELF executable: hostname:/boot # gunzip < vmlinuz-2.6.18.2-33-xen | file - /dev/stdin: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), statically linked, stripped If I put the decompressed -xen image in place of the compressed one, I get the same error 13 when trying to boot it from GRUB. Here's what readelf says about the header of the uncompressed -xen image: hostname:/boot # readelf -h vmlinuz-2.6.18.2-33-xen.uncompressed ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0xffffffff80200000 Start of program headers: 64 (bytes into file) Start of section headers: 6522760 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 4 Size of section headers: 64 (bytes) Number of section headers: 8010 Section header string table index: 8009 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224271 ------- Comment #5 from aleksander.adamowski.novell@altkom.pl 2006-11-29 04:02 MST ------- BTW, I've noticed Wojciech Szenajch's comment only after posting my own comments, sorry for that. I've modified my grub entry as Wojciech suggested, and -xen kernel boots fine. Xend also starts up successfully. My GRUB entry currently looks like this: title Kernel-2.6.18.2-33-xen root (hd0,0) kernel /boot/xen.gz module /boot/vmlinuz-2.6.18.2-33-xen root=/dev/md0 vga=0x317 resume=/dev/sdb1 splash=silent showopts module /boot/initrd-2.6.18.2-33-xen -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224271 jplack@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE ------- Comment #6 from jplack@novell.com 2006-11-29 06:44 MST ------- ok, so thatś only a duplicate, fixed for RC4 *** This bug has been marked as a duplicate of bug 224330 *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com