Last active
July 7, 2024 17:27
-
-
Save jescholl/4de5c59174f30c236f603e65b24c8619 to your computer and use it in GitHub Desktop.
Dockerized PXE boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This one-liner will allow devices on the local network to from netboot.xyz | |
# without making any changes to existing dhcp server(s). | |
docker run --rm --cap-add=NET_ADMIN --net=host --init quay.io/coreos/dnsmasq \ | |
-d -q --dhcp-range=192.168.200.1,proxy,255.255.255.0 \ | |
--enable-tftp --tftp-root=/var/lib/tftpboot \ | |
--dhcp-userclass=set:ipxe,iPXE \ | |
--pxe-service='tag:!ipxe,x86PC,"PXE chainload to iPXE",undionly.kpxe' \ | |
--pxe-service=tag:ipxe,x86PC,"iPXE",http://boot.netboot.xyz \ | |
-p 0 --log-queries --log-dhcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment