LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2010, 06:41 AM   #1
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 985

Rep: Reputation: 118Reputation: 118
bzImage OK but vmlinuz not booting


Hello

This is a question that was asked already a lot of times, but I don't seem to find the right answer.

I use Linux (Gentoo) since many years.
I always used gentoo-kernels which I configured and compiled. Once it was done I usually got a "vmlinux"-file and a "bzImage"-file. I always used to copy the "bzImage"-file to my boot partition and I configured Grub accordingly and everything was fine.

Last week I compiled in my VM not only gentoo-kernels, but as well a xen-kernel (for my domU).
Once it was done compiling the Xen-kernel (used the usual command "make -j2 && make modules_install") it didn't generate a "bzImage"-file, but a "vmlinuz" file. I therefore took the vmlinuz-file, copied it as usual to the boot partition and configured Grub to use that one, but with this time Grub doesn't want to boot and returns each time the error
Code:
Error 13: Invalid or unsupported executable format
Press any key to continue...
I tried with both "vmlinuz" and "vmlinux" but neither worked.
I have no clue what I should to - should I try to somehow generate a "bzImage" (tried "make bzImage" after a "make clean", but it tells me that it doesn't find any bzImage to create), convert vmlinux/z to bzImage or make Grub somehow boot using vmlinuz?

Are there any "tricks" to make Grub boot using a vmlinux/z?

I can say that it's not a problem of the partitioning or setup config in Grub, as in the same grub.conf I have other 2 kernels (bzImage) which boot without problems only the config section that has to do with the vmlinuz/x doesn't want to boot.

Desperation...

Thank you
 
Old 08-31-2010, 10:03 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
It seems you are mixing normal kernel and kernel with Xen support. If you compile the normal kernel, there is only bzImage was created in arch/i386/boot/. And if you compile the kernel with Xen support, the kernel image called vmlinuz:
http://www.gentoo.org/doc/en/handboo...?part=1&chap=7
http://www.gentoo.org/doc/en/xen-guide.xml
 
0 members found this post helpful.
Old 08-31-2010, 10:31 AM   #3
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 985

Original Poster
Rep: Reputation: 118Reputation: 118
Apparently my description was a bit confusing, as what you just wrote is exactly what I meant.
And the question is: how do I boot using "vmlinuz" instead of "bzImage"?
 
Old 08-31-2010, 10:43 AM   #4
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Read the second link which I given above, pay attention at GRUB config paragraph:
Code:
title Xen 3.0 / Gentoo Linux 2.6.x.y
root (hd0,0)
kernel /boot/xen.gz
module /boot/kernel-2.6.x.y-xen0 root=/dev/hda3
 
0 members found this post helpful.
Old 08-31-2010, 10:48 AM   #5
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 985

Original Poster
Rep: Reputation: 118Reputation: 118
That's the Grub config for a dom0.
But what I am compiling is the kernel for a domU. It's the kernel of the domU that doesn't boot.
(I don't even have access to the dom0 as it belongs to the hosting company which provides me my VM)
 
Old 08-31-2010, 11:36 AM   #6
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
I'm not familiar with Xen, but I think this is what you want.
 
0 members found this post helpful.
Old 08-31-2010, 01:43 PM   #7
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 985

Original Poster
Rep: Reputation: 118Reputation: 118
No, that's not what I want, but thanks anyway.
I can configure Xen perfectly - the only problem is that I don't know how to make Grub boot not using a bzImage but a vmlinux/z.
When I try using a vmlinux/z I get:
Code:
  Booting 'Gentoo XEN'
root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
kernel  /boot/kernel-2.6.34-xen root=/dev/sda3

Error 13: Invalid or unsupported executable format

Press any key to continue...
My "grub.conf" looks like this:

Code:
default 1
timeout  10
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo XEN
root (hd0,0)
kernel /boot/kernel-2.6.34-xen root=/dev/sda3

title Gentoo
root (hd0,0)
kernel /boot/kernel-2.6.35-gentoo-r5 root=/dev/sda3

title Gentoo OLD
root (hd0,0)
kernel /boot/kernel-2.6.32-gentoo-r3.old root=/dev/sda3 noapic

title Gentoo ORIGINAL
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.25-gentoo-r7.old root=/dev/hda3
Everything works apart the XEN-entry, which uses a vmlinux/z-file instead of the usual bzImage.
 
Old 09-01-2010, 02:21 AM   #8
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Pearlseattle View Post
That's the Grub config for a dom0.
But what I am compiling is the kernel for a domU. It's the kernel of the domU that doesn't boot.
(I don't even have access to the dom0 as it belongs to the hosting company which provides me my VM)
You make me confused. I don't care about dom0 or domU. As my understand: if you compile the normal kernel, it only creates bzImage file, and you config GRUB like this:
Code:
title Gentoo works fine
root (hd0,4)
kernel /boot/kernel-2.6.31-gentoo-r10_alsa_fuse_iwl3945_disabledIPv6_device_filesystem_acpi_hibernate_HighMemory_synaptics_pentium4_tuntap root=/dev/sda5
and if you compile kernel with Xen support, it creates vmlinuz (instead of bzImage), and you must config GRUB like that:
Code:
title Xen 3.0 / Gentoo Linux 2.6.x.y
root (hd0,0)
kernel /boot/xen.gz
module /boot/kernel-2.6.x.y-xen0 root=/dev/hda3
Hope this helps,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between make bzImage and make vmlinuz? veritas Linux - Newbie 3 11-23-2011 04:45 AM
[SOLVED] How to user vmlinuz-generic instead of vmlinuz-huge-smp? cola Slackware 12 09-15-2009 01:54 PM
bzImage or vmlinuz? Some doubts related to kernel saivin Linux - Kernel 2 06-13-2009 08:00 AM
Explain me bzImage, /vmlinuz to build kernel letdoit Slackware 3 05-23-2004 09:38 PM
booting vmlinuz/initrd from a bootloader bob_man_uk Linux - General 4 04-07-2004 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration