10/03/2016
https://www.maketecheasier.com/configure-pxe-server-ubuntu/
This tutorial is good. If you use a newer version of the OS read my notes below:
Dear Hitesh Jethva,
Thank you for your article. It works great. I ran into some things because I downloaded 14.04.5 instead of 14.04.3.
Only because I remember how frustrating it was not to get something like this working when I first started with linux,
I thought it might help someone else to see how I flailed about before getting your excellent PXE server idea right.
Thank You Again,
Rusty
14.04.5 Differences:
sudo /etc/init.d/networking restart not work, no error given
sudo ifdown eth0 && sudo ifup eth0 worked, ifup did not
sudo service network-manager restart not work, no error given
sudo ifup eth0
Also working was the GUI off and on for the connection.
sudo wget http://releases.ubuntu.com/14.04/ubuntu-14.04.3-desktop-amd64.iso not work, error given
sudo wget http://releases.ubuntu.com/14.04/ubuntu-14.04.5-desktop-amd64.iso
sudo cp -r /media/casper/initrd.lz /media/casper/vmlinuz /var/lib/tftpboot/Ubuntu/ not work, error about not finding something
The problem was that the vmlinuz has been changed to vmlinuz.efi.
It also occurs and needs to be edited in the file:
/var/lib/tftpboot/pxelinux.cfg/default
change the kernel line so it looks the one below:
kernel Ubuntu/vmlinuz.efi
Not fixing that line in the default results in a getting the Try Ubuntu and Install Ubuntu submnenu.
It has the symptom of not doing anything except counting down the 10 seconds and then waiting for you to select again.
If you edit the boot line for Try Ubuntu and put in the vmlinuz.efi, but do not fix the /var/lib/tftpboot/pxelinux.cfg/default
file, it will attempt to boot and result in a locked (at least in my case) computer due to a kernel panic.
Note: I intentionally left the entry for Install Ubuntu as vmlinuz
and only changed the entry for Try Ubuntu to vmlinuz.efi.
I don't want anyone installing off of this server,
it is for diagnostics only. Kind of handy.
For best results copy these notes out and paste them in a full size document.
A PXE Server allows you to boot a Linux distro from a network and install it on hundreds of PCs at a time. Here's how you can configure a PXE server in Ubuntu