PXE Boot
Published on
This is a basic setup to boot Arch Linux over PXE.
-
Mount the Arch Linux image.
mkdir -p /mnt/archiso mount -o loop,ro archlinux-2013.02.01-dual.iso /mnt/archiso -
Connect your server with your client and setup the server interface for that connection with a static ip address in the
/etc/network/interfacesfile.auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1Restart the network interface.
ifdown eth0 ifup eth0 -
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/archisoRestart the service.
service dnsmasq restart -
Start an http-server inside the Arch Linux mount folder.
python -m SimpleHTTPServer 80