Skip to content

thinking-clock/pxeserver

Repository files navigation

pihole config

Create /etc/dnsmasq.d/10-pxeserver.conf with:

# inspect the vendor class string and match the text to set the tag dhcp-vendorclass=UEFI,PXEClient:Arch:00007 dhcp-vendorclass=UEFI64,PXEClient:Arch:00009 # Set the boot file name based on the matching tag from the vendor class (above) dhcp-boot=net:UEFI,efi64/syslinux.efi,,192.168.1.10 dhcp-boot=net:UEFI64,efi64/syslinux.efi,,192.168.1.10 

and pihole restartdns

Service (outside docker)

cat /etc/systemd/system/pxeserver.service [Unit] Description=PXE Server After=network.target StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=1 User=root ExecStart=/usr/bin/pxeserver [Install] WantedBy=multi-user.target 

(See Dockerfile.pxeserver for exact commands) Create /static/ directory and

  • download ubuntu iso
  • extract vmlinuz and initrd
  • install and copy bootloader
  • copy config.yaml to /etc/pxeserver/config.yaml and edit hostname and password
  • GOOS=linux go build && scp pxeserver pi@pihole:., sudo cp ~pi/pxeserver/ /usr/bin/pxeserver`
  • sudo systemctl restart pxeserver

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors