Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PXE server in pure python
branch: master

This branch is 282 commits behind psychomario:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
netboot
README
dhcpd.py
netcfg.sh
tftpd.py

README

This is a pure python(2) PXE server.

Instructions:
1. Edit netboot/pxelinux.cfg/default with your settings.
    The default boots tinycore linux Core-current.iso
2. Run ./netcfg.sh OR manually edit dhcpd.py with your network settings
3. Run both dhcpd.py and tftpd.py
4. PXE boot your clients.

File info:
./dhcpd.py: dhcp server with pxe stuff
./tftpd.py: tftp server for pxe get
./netboot/pxelinux.cfg/default: pxe menu control
./netboot/Core.iso: tinycore iso for testing purposes (http://distro.ibiblio.org/tinycorelinux/welcome.html)
./netboot/pxelinux.0: pxelinux binary
./netboot/memdisk: binary to allow pxelinux to boot isos
./netboot/menu.c32: pxelinux menu
./README: this
./netcfg.sh: automatically edits dhcpd.py with information from provided interface (e.g eth0)

The Why:
I didn't like the normal way of having to install and setup dhcpd and tftp
etc, so I wrote my own. I've not run any performance tests.
In all my tests with hardware available to me It's successfully booted fine.
It was mainly used to learn python as well as PXE, and I wrote it when I
was just starting out with python, hence why the code is awful.

License:
Do whatever the hell you want with this. Credit would be
appreciated but it's not required.
Something went wrong with that request. Please try again.