In order for your machines to PXE boot into the KIWI Build System you need to create a specially made initrd and Linux kernel. To create these files we will utilize Kiwi in similar fashion to the way we build Kiwi images.

Make sure that you have kiwi-desc-netboot-1.20-21.1.i586.rpm installed. This package can be downloaded from here:

http://software.opensuse.org/download/openSUSE:/Tools/SUSE_Linux_10.1/i586/

Enter:

kiwi -p /usr/share/kiwi/image/netboot-suse-SLE10

 

(‘-p’ tells kiwi to prepare a directory. By default all prepared directories will put in /tmp. Prepared directories will be named kiwi.<random> where <random> is some random string. This is the physical extend.)

 

Now we need to create a binary from the directory we just prepared. We will also use KIWI to do this. Enter:

kiwi -c /tmp/kiwi.<random> -d /tmp

 

(where kiwi.<random> is the name of the directory you just prepared. The -c option tells kiwi to create the logical extend. -d tells kiwi where to put the binary(s) you’re about to create.)

 

This will create 3 files in /tmp that look something like this:

initrd-netboot.i686.gz

initrd-netboot.i686.kernel.2.6-default

initrd-netboot.i686.md5

 

The one ending in .gz is your initrd. move it to /tftboot and rename it to initrd.

The one with kernel in the name is your kernel. Move it to /tftboot and rename it to linux.

 

Get pxelinux.0 from /usr/share/syslinux/pxelinux.0 on a running system and put it in /tftboot.

 

Advertisements