Today I wanted to configure my router to support PXE-booting in my homenetwork. Herefore the following components are requeired:
- DHCP-server configured to distribute Bootserver
- TFTP-Server which provides the PXE
The DHCP-Server is running on a Draytek Vigor 2130n router. The configuration of the PXE-option is not available by the webinterface so we have to configure the option in the configfile of the DHCP-server itself. As a DHCP-server the Vigor is running DNSmasq. To configure the DNSmasq we have to log in on the router via ssh and edit /etc/dnsmasq.conf. At the end of the file the follwing line has to be appended:
In my case I’m running the TFTP-server on my NAS which is reacheable by the 192.168.1.10 IP-address. In the appended Option we have to configure the bootfile which is used (in the case of pxelinux it’s pxelinux.0) the hostname of the system which is providing the TFTP-server and the IP-address of the system.
It’s also possible to configure iPXE or gPXE to boot from. Herefor the corresponding bootfile has to be changed.
On my NAS the TFTP-server has been enabled and the content of the example-zip was plaeced in the TFTP-root.
(The background image is not included in the package, but any png, jpg file with a resolution of 800×600 can be used. Otherwise the background image can be altered in the “menuoutline.cfg” configuration file.)
If everything was setup correctly a similar screen should appear:
I have a seperate tools menu in my PXE-menu to boot tools for HW-diagnosys, partitioning, backup and system rescue. An overview about some cool tools can be found in this blog post.
Additional informations and references: