Re: Booting uncompressed kernel images
Hi Ian,
On 2 February 2016 at 09:24, Ian Campbell <ijc@debian.org> wrote:
> Did you see my other replies on debian-kernel yesterday? There are some
> questions there which it would be useful to know the answers to.
It turned out that I though that I was subscribed to
"debian-kernel@l.d.o", but I wasn't. This is solved now.
> What does file(1) say about them? For me I see:
>
> _vmlinuz-3.16.0-4-amd64.extracted/2F6EF8.xz: XZ compressed data
> _vmlinuz-3.16.0-4-amd64.extracted/47B4: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=2883400c6927fe339cdd2c321d3d154c472ef418, stripped
> _vmlinuz-3.16.0-4-amd64.extracted/47B4.xz: XZ compressed data
Are you able to extract three files from it? Here's what I got:
$ file _vmlinuz-3.16.0-4-amd64.extracted/*
_vmlinuz-3.16.0-4-amd64.extracted/2F6EF8.tar: XZ compressed data
_vmlinuz-3.16.0-4-amd64.extracted/47B4.tar: XZ compressed data
Only two that I can't extract again.
> Do any of them match what you get out of extract-linux?
$ ./extract-vmlinux /boot/vmlinuz-3.16.0-4-amd64 > vmlinux
$ file vmlinux
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
statically linked,
BuildID[sha1]=2883400c6927fe339cdd2c321d3d154c472ef418, stripped
The SHA1 is the same.
> _vmlinuz-3.16.0-4-amd64.extracted/47B4 looks to me to be an ELF file which
> I would expect to be bootable as a Xen PV guest, it has the required ELF
> notes etc.
>From your previous e-mails, looks like Grub2 can't boot it, opposite
to a Xen PV guest, right?
On 1 February 2016 at 08:06, Ian Campbell <ijc@debian.org> wrote:
> Is this booting via pvgrub[1], if not then do you know how? What does the
> grub.cfg stanza look like?
This is hard to answer properly. The image has "grub2" (the last
2.02~beta2-22+deb8u1 available on Jessie) installed and I can boot it
on a local Xen installation as well on Oracle Cloud (using the custom
kernel compressed with gzip). What I tried is the same process
(extract-linux, generate initrd, update-grub) both on VirtualBox and
Xen on Oracle Cloud. In VirtualBox, I got the error pasted on my first
message. In Oracle Cloud I have no access to the boot logs to confirm
if it happens to be exactly the same.
--
Tiago "Myhro" Ilieve
Blog: https://blog.myhro.info/
GitHub: https://github.com/myhro
LinkedIn: https://br.linkedin.com/in/myhro
Montes Claros - MG, Brasil
Reply to: