newbie question: kexec linux-based bootstrap

David N. Lombard dnlombar at ichips.intel.com
Tue Jan 13 09:49:47 EST 2009


On Mon, Jan 12, 2009 at 05:09:59AM -0800, Sven Anders wrote:
> Bizhan Gholikhamseh (bgholikh) schrieb:
> >
> > HI all,
> >
> > =20
> >
> > I have been investigating how to boot Linux as bootstrap to boot
> > another Linux.
> >
> > =20
> >
> > From my understanding, Linux has a kexec system call which provides
> > overlay another Linux image on the current running Linux.
> >
> > =20
> >
> > Is my understanding correct?
> >
> Yes, it correct. We are using a similiar configuration without problems.

I too use kexec & kexec-tools, for a couple of years now.

On IA using kexec-tools 2.0.0, use a command like this to load the kernel:

    kexec -l bzImage --initrd=initrd.img --command-line="kernel-cmd-args"

where
	bzImage is the kernel's bzImage file
	initrd.img is the initrd image file
	kernel-cmd-args are the kernel's command line args

Then, boot the kernel with:

    kexec -e

-- 
David N. Lombard, Intel, Irvine, CA
I do not speak for Intel Corporation; all comments are strictly my own.



More information about the kexec mailing list