Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 683437

Summary: backport xz compression for domU kernel images
Product: Red Hat Enterprise Linux 5 Reporter: Paolo Bonzini <pbonzini>
Component: xenAssignee: Michal Novotny <minovotn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6CC: areis, clalance, eteo, leiwang, lersek, minovotn, mrezanin, pmatouse, qwan, xen-maint, yuzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xen-3.0.3-129.el5 Doc Type: Bug Fix
Doc Text:
Previously, version 2.6.38 or newer kernels, which are compressed using the xz compression utility, could not be properly booted with the xen package. With this update, xz decompression support has been added, thus fixing this bug.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 09:13:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 514500    
Attachments:
Description Flags
Implement xz decompression for domU kernels none

Description Paolo Bonzini 2011-03-09 12:20:12 UTC
xz kernel compression is being added to Linux for 2.6.38.  I'm not sure whether Fedora will adopt it, but since it is easy to add it to libxc, we should do that sooner rather than later.

Upstream patch at http://permalink.gmane.org/gmane.comp.emulators.xen.devel/100351

Comment 28 Michal Novotny 2011-03-24 11:19:18 UTC
Created attachment 487283 [details]
Implement xz decompression for domU kernels

Hi,
this is the patch to implement xz decompression for domU kernels.

Michal

Comment 34 Qixiang Wan 2011-05-24 03:18:23 UTC
VERIFIED with xen-3.0.3-131.el5.

[1] boot up LZMA kernel successfully (compile RHEL6.1 kernel with LZMA compress option)
[2] boot up XZ kernel successfully (compile Fedora 15 kernel with XZ compress option), log as following:
---------------------------------------------------------------------------
xc_dom_allocate: cmdline=" ro root=UUID=856d91bb-55c1-400e-9df0-8460718a415b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us console=tty0 console=hvc0", features=""
xc_dom_kernel_file: filename="/var/lib/xen/boot_kernel.14p_rH"
xc_dom_malloc_filemap    : 2995 kB
xc_dom_ramdisk_file: filename="/var/lib/xen/boot_ramdisk.v2jY4Z"
xc_dom_malloc_filemap    : 13290 kB
xc_dom_boot_xen_init: ver 3.1, caps xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 
xc_dom_parse_image: called
xc_dom_find_loader: trying ELF-generic loader ... failed
xc_dom_find_loader: trying Linux bzImage loader ... XZ: Saw data stream end
_xc_try_lzma_decode: XZ decompress OK, 0x2e489c -> 0x7e29d0
OK
elf_parse_binary: phdr: paddr=0x400000 memsz=0x5d3000
elf_parse_binary: phdr: paddr=0x9d3000 memsz=0x4a0000
elf_parse_binary: memory: 0x400000 -> 0xe73000
elf_xen_parse_note: GUEST_OS = "linux"
elf_xen_parse_note: GUEST_VERSION = "2.6"
elf_xen_parse_note: XEN_VERSION = "xen-3.0"
---------------------------------------------------------------------------

Comment 35 Tomas Capek 2011-07-13 13:31:51 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, version 2.6.38 or newer kernels, which are compressed using the xz compression utility, could not be properly booted with the xen package. With this update, xz decompression  support has been added, thus fixing this bug.

Comment 36 errata-xmlrpc 2011-07-21 09:13:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html

Comment 37 errata-xmlrpc 2011-07-21 12:08:05 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1070.html