forked from Mirrors/dhcp-netboot.xyz
Compare commits
3 commits
main
...
feat/dnsma
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7298f64996 | ||
|
|
f6b4999952 | ||
|
|
6b73052094 |
4 changed files with 37 additions and 3 deletions
|
|
@ -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
2
Vagrantfile
vendored
|
|
@ -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
24
docker-compose.yml
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue