Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Sam Mesterton-Gibbons
7298f64996 Add compose file to play wiht 2022-02-14 01:16:17 +00:00
Sam Mesterton-Gibbons
f6b4999952 WIP: Swich off undionly to experiment a bit 2022-02-13 10:06:42 +00:00
Sam Mesterton-Gibbons
6b73052094 Switch to dnsmasq as TFTP server as well 2022-02-13 10:06:12 +00:00
4 changed files with 37 additions and 3 deletions

View file

@ -3,6 +3,9 @@ FROM linuxserver/netbootxyz:latest
# Install dnsmasq to play DHCP server
RUN apk add --update dnsmasq
# Delete the TFTP config from the underlying image: dnsmasq does that here
RUN rm -rf /etc/services.d/tftp
# Copy config files for dnsmasq, and running as a service
COPY etc /etc/

2
Vagrantfile vendored
View file

@ -53,5 +53,5 @@ Vagrant.configure("2") do |config|
end
# Turn off shared folders, we don't need them!
config.vm.synced_folder '.', '/vagrant', disabled: true
# config.vm.synced_folder '.', '/vagrant', disabled: true
end

24
docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
---
version: "2.1"
services:
netbootxyz:
container_name: netbootxyz
build:
context: .
environment:
- DHCP_RANGE_START=192.168.0.1
networks:
netbootxyz_network:
ipv4_address: 192.168.0.250
cap_add:
- NET_ADMIN
networks:
netbootxyz_network:
driver: ipvlan
driver_opts:
parent: wlp2s0
ipam:
config:
- subnet: 192.168.0.1/24
gateway: 192.168.0.254
ip_range: 192.168.0.250/32

View file

@ -8,10 +8,17 @@ log-dhcp
# option space. That's to avoid confusing some old or broken DHCP clients.
dhcp-no-override
# Enable TFTP server for providing PXE images
enable-tftp
tftp-root=/config/menus
dhcp-option=66,0.0.0.0
# Identify the type of PXE client, and set the boot filename accordingly
# Copied from https://github.com/linuxserver/docker-netbootxyz#dd-wrt
dhcp-match=set:bios,60,PXEClient:Arch:00000
dhcp-boot=tag:bios,netboot.xyz-undionly.kpxe
dhcp-boot=tag:bios,netboot.xyz.kpxe
dhcp-match=set:efi32,60,PXEClient:Arch:00002
dhcp-boot=tag:efi32,netboot.xyz.efi
dhcp-match=set:efi32-1,60,PXEClient:Arch:00006
@ -24,6 +31,6 @@ dhcp-match=set:efi64-2,60,PXEClient:Arch:00009
dhcp-boot=tag:efi64-2,netboot.xyz.efi
# Boot the relevant PXE image
pxe-service=x86PC,"Run netboot.xyz, BIOS mode",netboot.xyz-undionly.kpxe
pxe-service=x86PC,"Run netboot.xyz, BIOS mode",netboot.xyz.kpxe
pxe-service=X86-64_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi
pxe-service=BC_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi