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
Created attachment 487283 [details] Implement xz decompression for domU kernels Hi, this is the patch to implement xz decompression for domU kernels. Michal
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" ---------------------------------------------------------------------------
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.
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