Skip to content

maikthulhu/PyPXE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PXE server in pure python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.0%
  • Shell 20.0%