wiki:PXE_Boot_HowTo
Last modified 7 years ago Last modified on 04/24/18 13:40:00

Requirements:

  • System with DHCP & TFTP setup
  • Stresslinux x86_64 (for now the development build 1.0.3)
  • A host to run stresslinux on (x86_64 architecture and enough memory - 4GB 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://download.obs.j0ke.net/stresslinux:/42.3/images/stresslinux.x86_64-1.0.3-Build18.49.tgz

and extract it in image/ directory.

 wget http://download.obs.j0ke.net/stresslinux:/42.3/images/stresslinux.x86_64-1.0.3-Build18.49.tgz -O /tftpboot/image/stresslinux.x86_64-1.0.3-Build18.49.tgz
 cd /tftpboot/image
 tar xfz stresslinux.x86_64-1.0.3-Build18.49.tgz

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

gunzip -l stresslinux.x86_64-1.0.3.gz |tail -n1|awk '{print $2 / 1024 + 1024}'

You will get a value similar to: 1951744

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.