wiki:PXE_Boot_HowTo

Version 14 (modified by stresslinux, 12 years ago) (diff)

--

Requirements:

  • System with DHCP & TFTP setup
  • Stresslinux x86_64 (for now the development build 0.7.177) (32bit version is not supported and you can expect problems with it!)
  • A host to run stresslinux on (x86_64 architecture and enough memory - 1.5GB required, image is loaded completly to RAM).

HowTo:

If you are a first time user and have a clean /tftpboot directory (or directory you setup in your tftp configuration), you can copy all files and directory to /tftpboot.

cd /tftpboot
wget http://www.stresslinux.org/testing/stresslinux-pxe-sample-config.tar.bz2 
tar xfj stresslinux-pxe-sample-config.tar.bz2

Your dhcp configuration needs to call pxelinux.0 (filename "/pxelinux.0";). See dhcpd.conf for a sample configuration.

Check the default KIWI configuration (-> KIWI/config.default) and change the IP 10.10.10.1 to the IP of your tftp server.

You may also change image filename and version in this file, when later releases will change their filename or version.

Download stresslinux pxe edition (currently from testing directory)

-> http://www.stresslinux.org/testing/images/stresslinux_11.4.x86_64-0.7.177-Build5.17-pxe.tar.bz2

and extract it in image/ directory.

 wget http://www.stresslinux.org/testing/images/stresslinux_11.4.x86_64-0.7.177-Build5.17-pxe.tar.bz2 -O /tftpboot/image/stresslinux_11.4.x86_64-0.7.177-Build5.17-pxe.tar.bz2
 cd /tftpboot/image
 tar xfj stresslinux_11.4.x86_64-0.7.177-Build5.17-pxe.tar.bz2

Get the expected ramdisk size from image with the following command:

gunzip -l stresslinux_11.4.x86_64-0.7.177.gz |tail -n1|awk '{print $2 / 1024 + 1024}'

You will get a value similar to: 1111040

Edit pxelinux.cfg/default file an replace current ramdisk_size with this value.

In general this should be all.

Initiate a PXE boot on a PXE capable system with enough memory (1.5GB for now).

After initial dhcp request of your network card, there should popup a menu system with stresslinux and localboot option. Select stresslinux and it should start up, like it's booting from USB or CD.