Skip to contentSkip to conversation

lzma and 4.0 and "Internal errror', 'xc_dom_do_gunzip: inflate failed (rc=-5)"

DISCUSSION Dan Magenheimer 3 participants 4 messages May 10, 2010

lore
Share & tools
lore
#0 lore raw

I'm trying to load a PV domain with a kernel for which the initramfs (but not the kernel) is compressed with lzma, running a recent xen-4.0-testing and got:

"'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)'"

I discovered that, although the 4.0 wiki says that xz-devel is required to be installed, the dependency checking tools don't enforce it and the build silently ignores it if it is missing. So I installed the xz rpm's, did a make clean in tools, then make and make install. Still same problem.

I've checked to ensure that /usr/bin/pygrub and /usr/lib/libxenguest.so are getting new bits and, yes, I've shut down and restarted xend.

Any ideas of what else I might be doing wrong?

#1 lore raw
Quoted 12 lines · Dan Magenheimer

I'm trying to load a PV domain with a kernel for which the initramfs (but not the kernel) is compressed with lzma, running a recent xen-4.0-testing and got:

"'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)'"

I discovered that, although the 4.0 wiki says that xz-devel is required to be installed, the dependency checking tools don't enforce it and the build silently ignores it if it is missing. So I installed the xz rpm's, did a make clean in tools, then make and make install. Still same problem.

Quoted 6 lines

I've checked to ensure that /usr/bin/pygrub and /usr/lib/libxenguest.so are getting new bits and, yes, I've shut down and restarted xend.

Any ideas of what else I might be doing wrong?

Hmm.. you could use ldd to check if libxenguest.so is linked against libxz? Also there might be some debug messages in /var/log/xen/*

-- Pasi

#2 lore raw
In reply to Dan Magenheimer
Quoted 11 lines · Dan Magenheimer

I'm trying to load a PV domain with a kernel for which the initramfs (but not the kernel) is compressed with lzma, running a recent xen-4.0-testing and got:

"'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)'"

I discovered that, although the 4.0 wiki says that xz-devel is required to be installed, the dependency checking tools don't enforce it and the build silently ignores it if it is missing. So I installed the xz rpm's, did a make clean in tools, then make and make install. Still same problem.

Did xc_dom_bzimageloader.o really get built with -DHAVE_LZMA in CFLAGS? If so then LZMA support should be built in and it should be possible to inflate the initrd. You'll have to add extra tracing in that case to find out where the error is coming from.

-- Keir

#3 lore raw

Thanks for the quick replies...

Quoted 2 lines

Hmm.. you could use ldd to check if libxenguest.so is linked against libxz?

Assuming you meant "linked against" liblzma, yes it is.

Quoted 1 line

Also there might be some debug messages in /var/log/xen/*

No, nothing unusual. The inflate just seems to fail with -5 (which I think means Z_BUF_ERROR).

Quoted 1 line

Did xc_dom_bzimageloader.o really get built with -DHAVE_LZMA in CFLAGS?

Yep, checked with "strings".

Quoted 5 lines

so then LZMA support should be built in and it should be possible to inflate
the initrd. You'll have to add extra tracing in that case to find out where
the error is coming from.

Looks like debugging time... will followup if/when I find anything out.

Quoted 33 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, May 10, 2010 12:38 PM
To: Dan Magenheimer; Pasi Kärkkäinen; [email protected]
Subject: Re: [Xen-devel] lzma and 4.0 and "Internal errror', 'xc_dom_do_gunzip: inflate failed (rc=-5)"

Quoted 11 lines · Dan Magenheimer

I'm trying to load a PV domain with a kernel for which the initramfs (but not the kernel) is compressed with lzma, running a recent xen-4.0-testing and got:

"'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)'"

I discovered that, although the 4.0 wiki says that xz-devel is required to be installed, the dependency checking tools don't enforce it and the build silently ignores it if it is missing. So I installed the xz rpm's, did a make clean in tools, then make and make install. Still same problem.

Did xc_dom_bzimageloader.o really get built with -DHAVE_LZMA in CFLAGS? If
so then LZMA support should be built in and it should be possible to inflate
the initrd. You'll have to add extra tracing in that case to find out where
the error is coming from.

-- Keir