Skip to content

Instantly share code, notes, and snippets.

@ecabuk
Created April 22, 2016 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecabuk/e9705e69a4c2082a1aacdceab0420b59 to your computer and use it in GitHub Desktop.
Save ecabuk/e9705e69a4c2082a1aacdceab0420b59 to your computer and use it in GitHub Desktop.
Ubuntu PXE Server Setup

Ubuntu PXE Server Setup

dnsmasq is the only required package to create a dhcp & tftp server.

sudo apt-get install dnsmasq

  • In /etc/dnsmasq.conf, add the lines:
dhcp-boot=pxelinux.0
# dhcp ip pool
dhcp-range=192.168.1.60,192.168.1.70,12h
# Router
dhcp-option=3,192.168.1.1
# Enable dnsmasq's built-in TFTP server
enable-tftp
# Set the root directory for files available via FTP.
tftp-root=/var/lib/tftpboot
tar -xvzf netboot.tar.gz -C /var/lib/tftpboot/
chown -R nobody:nogroup /var/lib/tftpboot
  • Restart the dnsmasq
sudo systemctl restart dnsmasq
@Olegka99
Copy link

Hello. Thank you for the detailed publication. Relatively recently interested in a similar topic. Actual information on this topic was found here https://veadug.com/apps/ I recommend reading. I think you will be interested. Thank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment