zdxerr

PXE Boot

Published on

This is a basic setup to boot Arch Linux over PXE.

  1. Mount the Arch Linux image.

     mkdir -p /mnt/archiso
     mount -o loop,ro archlinux-2013.02.01-dual.iso /mnt/archiso
    
  2. Connect your server with your client and setup the server interface for that connection with a static ip address in the /etc/network/interfaces file.

     auto eth0
     iface eth0 inet static
     address 192.168.1.100
     netmask 255.255.255.0
     gateway 192.168.1.1
    

    Restart the network interface.

     ifdown eth0
     ifup eth0
    
  3. Configure dnsmasq as dhcp- and tftp-server in /etc/dnsmasq.conf.

     dhcp-boot=/mnt/archiso/arch/boot/syslinux/pxelinux.0
     dhcp-option-force=209,boot/syslinux/archiso.cfg
     dhcp-option-force=210,/mnt/archiso/arch/
     enable-tftp
     tftp-root=/mnt/archiso
    

    Restart the service.

     service dnsmasq restart
    
  4. Start an http-server inside the Arch Linux mount folder.

     python -m SimpleHTTPServer 80