Skip to content

Instantly share code, notes, and snippets.

@zjfroot
Created July 8, 2013 11:00
Show Gist options
  • Save zjfroot/5947900 to your computer and use it in GitHub Desktop.
Save zjfroot/5947900 to your computer and use it in GitHub Desktop.
netboot and install ubuntu precise 12.04 LTS
On server:
Install bootp, tftpd-hpa and tftp
edit /etc/bootptab to
client:\
ha="00:1C:23:3C:9E:32":\
ip=192.168.12.144:\
gw=192.168.12.1:\
sm=255.255.255.0:\
td=/: hd=/: bf=pxelinux.0
Edit /etc/default/tftpd-hpa to
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
Download netboot installer tarfile (netboot.tar.gz) from http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/netboot.tar.gz
Extract it to /var/lib/tftpboot
Run tftpd:
sudo service tftpd-hpa start
Run bootp:
sudo /usr/sbin/bootpd -d 4 -c /var/lib/tftpboot/
On Client:
Boot from NIC with PXE
Follow the installation guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment