Skip to contentSkip to conversation

Update item on FAQ

DOC Anthony Liguori 5 participants 6 messages Nov 17, 2005 – Nov 19, 2005

lore
Share & tools
lore
#0 lore raw

It's not quite clear how to go about this so hopefully whoever maintains the FAQ is on this list.

As part of closing bug #156, it would be nice to add a sentence on item 4.8 (The initrd that came with my distro does not...) to include the following sentences:

"Some distros (notably SLES9) have a mkinitrd that adds garbage to the end of the initrd. These initrds will not work with Xen. To correct this problem, you should gunzip the initrd, and then gzip it again."

Thanks,

Anthony Liguori

#1 lore raw
Quoted 3 lines

As part of closing bug #156, it would be nice to add a sentence on item 4.8 (The initrd that came with my distro does not...) to include the following sentences:

"Some distros (notably SLES9) have a mkinitrd that adds garbage to the end of the initrd. These initrds will not work with Xen. To correct this problem, you should gunzip the initrd, and then gzip it again."

!?!?!

What's in the garbage? Presumably it's there for some reason? *intrigued*

Cheers,
Mark

Quoted 10 lines

Thanks,

Anthony Liguori

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 5 lines
Quoted 1 line

"Some distros (notably SLES9) have a mkinitrd that adds garbage to the end of the initrd. These initrds will not work with Xen. To correct this problem, you should gunzip the initrd, and then gzip it again."

!?!?!

What's in the garbage? Presumably it's there for some reason?

Sure it is, it is the image for the fancy console screen. Doesn't hurt when it isn't present. And as vesafb doesn't work with xenified linux kernels it isn't used anyway. Easiest way to permanently get rid of it is "rpm -e bootsplash" (i.e. mkinitrd will stop appending the image to the initrd then). Nevertheless I don't see why it causes trouble, the domain builder should simply take the ramdisk blob and pass it as-is to the kernel, no?

Gerd

#3 lore raw
Quoted 9 lines · Gerd Knorr
Quoted 6 lines
Quoted 1 line

"Some distros (notably SLES9) have a mkinitrd that adds garbage to the end of the initrd. These initrds will not work with Xen. To correct this problem, you should gunzip the initrd, and then gzip it again."

!?!?!

What's in the garbage? Presumably it's there for some reason?

Sure it is, it is the image for the fancy console screen. Doesn't hurt when it isn't present. And as vesafb doesn't work with xenified linux kernels it isn't used anyway.

Ah, that makes sense. Perhaps it's common enough then that we should work around it.

Quoted 1 line

Easiest way to permanently get rid of it is "rpm -e bootsplash" (i.e. mkinitrd will stop appending the image to the initrd then). Nevertheless I don't see why it causes trouble, the domain builder should simply take the ramdisk blob and pass it as-is to the kernel, no?

Unfortunately it doesn't. It actually decompresses the initrd before passing it to the kernel. I'm not sure why we decompress it, anyone know why?

Regards,

Anthony Liguori

Quoted 2 lines

Gerd

#4 lore raw
Quoted 2 lines · Gerd Knorr

Nevertheless I don't see why it causes trouble, the domain builder should simply take the ramdisk blob and pass it as-is to the kernel, no?

Another thing that's broken is initramfs (cpio) images. Results in "RAMDISK: Couldn't find valid RAM disk image starting at 0", every time.

Quoted 1 line · Anthony Liguori

It actually decompresses the initrd before passing it to the kernel.

Presumably that's also why initramfs images doesn't work. Extremely unhelpful of Xen to not at least bark out an error message if un-gzipping fails.

(I've spent 4-5 hours today just looking at the darn thing, trying to figure out why there's no RAM disk image at 0. I live, I learn, although that is a couple of hours spent in frustration that I'd like to have back ;-). Perhaps you guys could help some other poor lusers out by changing this behaviour.)

#5 lore raw
Quoted 9 lines · Molle Bestefich
Quoted 2 lines · Gerd Knorr

Nevertheless I don't see why it causes trouble, the domain builder should simply take the ramdisk blob and pass it as-is to the kernel, no?

Another thing that's broken is initramfs (cpio) images. Results in "RAMDISK: Couldn't find valid RAM disk image starting at 0", every time.

No -- I've been using those with xen.unstable for quite some time, and they work fine. Linux copes nicely with these whether or not they're gzipped.

Well, sort of fine; they're very twitchy about the cpio format, but that's the case upstream as well. For instance, the cpio image *absolutely must* include . (as opposed to just containing the files under its root directory), and there are only two cpio format variants that are supported (I use newc).