Tuesday, July 21, 2009

Setting up PXE boot

This was done on a Ubuntu install.
  1. Create /tftpboot directory
  2. Copy pxelinux.0 from /usr/lib/syslinux to /tftpboot
  3. Statically assign an IP address to the MAC of the ethernet adapter (192.168.1.200) (I use tomato on my router so it is pretty easy).
  4. Create a pxelinux.cfg directory in tftpboot.
  5. 192.168.1.200 is C0-A8-01-C8 in hex notation so add the following 0 length files(use touch) to the above directory:
    C
    C0
    C0A
    C0A8
    ...
    C0A801C8
  6. Also "touch" a file with the MAC address of the client adapter. Prepend 01-... For example: 01-23-55-03-34-09-11 (use you MAC address)
  7. Add dchp-boot=pxelinux.0,,ip of tftp server - to the custom dnsmasq configuration (again in tomato advanced->DNS).
  8. Enable the TFTP server.
If you start your client computer you should get to a boot screen. If you try to boot, there won't be an image there yet. Will get to that in the next post.

Reference websites:

No comments: