PXE images

The Preboot Execution Environment (PXE) is a boot protocol available in most BIOS implementations. The protocol sends DHCP requests to get an IP address assigned. After receiving an IP address, it uses TFTP to download kernel and boot instructions.

A PXE image consists of a boot image and a system image, just like all other image types. With a PXE image, the image files are available separately and needs to be copied to specific locations of a network boot server.

General procedure to work with PXE:

  1. Setup an Atftp server.
  2. Use a DHCP server (or configure one like in the example below).
  3. Build the PXE image in SUSE Studio Onsite.
  4. Deploy the PXE image.

Keep in mind, the previous procedure is not supported for SUSE Linux Enterprise 10. For SUSE Linux Enterprise 10 you should use one of the alternative protocols for deployment (see Alternative Protocols section below).

Seting up an Atftp Server

Follow these steps to setup an Atftp server:

  1. Install the package ‘atftp’.
  2. Edit the file ‘/etc/sysconfig/atftpd’ to set or modifiy the following variables:
    ATFTPD_OPTIONS="--daemon --no-multicast"
  3. Run the Atftp daemon:
    rcatftpd start

Afterward, the Atftp server is configured successfully.

Using a DHCP server

In contrast to the Atftp server setup, the following DHCP server setup can only serve as an example. Depending on your network structure, the IP addresses, ranges and domain settings, all these parameters need to be adapted in order to allow the DHCP server to work within your network.

If you already have a DHCP server running in your network, make sure that the filename and server information is provided by your server. The following steps describe how to setup a new DHCP server instance:

  1. Install the package ‘dhcp-server’.

  2. Create the file ‘/etc/dhcpd.conf’ and include the following code:

    option domain-name "example.org";
    option domain-name-servers;
    option broadcast-address;
    option routers;
    option subnet-mask;
    default-lease-time 600;
    max-lease-time 7200;
    ddns-update-style none; ddns-updates off;
    log-facility local7;
    subnet netmask {
    filename "pxelinux.0";
    range dynamic-bootp;

  3. Edit the file ‘/etc/sysconfig/dhcpd’ and set up the network interface the server should listen on:


  4. Run the DHCP server:

    rcdhcpd start

Building the Appliance

Build the appliance as usual, but select as default format ‘PXE/Net boot’ from the ‘Build’ tab.

Deploying the PXE Image

In order to make use of the image, all related parts need to be copied onto the boot server. Proceed with the following steps:

  1. Create a temporary directory and change to it:

    mkdir /tmp/mypxe-result
    cd /tmp/mypxe-result

  2. Copy the boot and kernel image:

    cp initrd-netboot-suse-*.splash.gz \
    cp initrd-netboot-suse-*.kernel \

  3. Copy the system image and MD5 sum:

    cp suse-*-pxe-client.* /srv/tftpboot/image

  4. Copy the image boot configuration. Normally the boot configuration applies to one client, which means it is required to obtain the MAC address of this client. If the boot configuration should be used globally, copy the KIWI generated file as config.default:

    cp suse-*-pxe-client.*.config \

  5. Check the PXE configuration file. The PXE configuration controls which kernel and initrd are loaded and which kernel parameters are set. To make sure the configuration is valid, insert the following information in the file ‘/srv/tftp-boot/pxelinux.cfg/default’:

    kernel boot/linux
    append initrd=boot/initrd vga=0x314
    LABEL Local-Boot
    localboot 0

  6. Connect the client to the network and reboot.

Alternative Protocols

The previous subsections used the TFTP protocol. With PXE, the download protocol is fixed. You cannot change the way how the kernel and boot image (initrd) are downloaded.

However, as soon as Linux takes control, the download protocols http, https, and ftp are supported too. To use these additional protocols, use the following kernel parameters:

Name or IP address of the server that implements the protocol
Specify the download protocol: http, https, or ftp.

Open the file ‘/srv/tftpboot/pxelinux.cfg/default’ on your PXE boot server and change the ‘append’ line accordingly. For more details refer to the KIWI documentation (package kiwi-doc).