Installing ubuntu/debian with PXE using a Windows machine

There is an official tutorial on Ubuntu’s website to install Ubuntu over the network via PXE, using a Windows machine as a DHCP/TFTP server.

I managed to make it work after a few hours of struggle because one crucial piece of information was unclear/missing. The same procedure is applicable for Debian.


You need to:

  • delete pxelinux.0 and pxelinux.cfg from the root of the created netboot/ folder
  • copy netboot/ubuntu-installer/amd64/pxelinux.0 to netboot/ (path will vary depending on what you are installing)
  • create a pxelinux.cfg folder in the netboot/ folder
  • copy the proper version of default to the netboot/pxelinux.cfg/ folder you just created (once again, the location will vary depending on what distribution you are installing)

The details above are not required, provided you are an admin when extracting the netboot.tar.gz archive (otherwise the symlinks get lost in translation and you need to manually recreate them).

I used the following options in tftp32:

  • Current directory: C:\tftp\netboot
  • Settings
    • GLOBAL: TFTP Server + DHCP Server
    • TFTP: Base Directory: C:\tftp\netboot | PXE Compatibility | Bind to this adress
    • DHCP: Pool starting address: beginning of an unused IP range | Size: 10 | Boot file: pxelinux.0 | WINS/DNS: DNS IP | Router: Router IP | Mask: network mask | Select 3 options: Ping, Bind, Persistent

And don’t forget to turn off other DHCP servers on your network!

Tagged , ,

2 thoughts on “Installing ubuntu/debian with PXE using a Windows machine

  1. tois95 says:

    this is perfect

  2. mars says:

    try Serva and save a lot of time…
    http://vercot.com/~serva/an/NonWindowsPXE3.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: