From 1e0cc5bc5c534aafbda6a0490c86cdf9bc1ff257 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Sep 2024 10:58:13 +0700 Subject: [PATCH] Add file structures --- .txt | 10 ---------- Readme.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 12 deletions(-) delete mode 100644 .txt diff --git a/.txt b/.txt deleted file mode 100644 index 20a1d76..0000000 --- a/.txt +++ /dev/null @@ -1,10 +0,0 @@ - -timeout 600 -default bootstrap -prompt 0 - -label bootstrap - menu Direct BOOTSTRAP!!! - KERNEL fcos-live-kernel.x86_64 - APPEND initrd=fcos-initramfs.x86_64.img,fcos-live-rootfs.x86_64.img coreos.inst.install_dev=sda coreos.inst.image_url=http://192.168.22.1:8080/images/fcos-37 coreos.inst.insecure=yes coreos.inst.ignition_url=http://192.168.22.1:8080/okd-inf/master.ign - diff --git a/Readme.md b/Readme.md index 023508c..99b3b50 100644 --- a/Readme.md +++ b/Readme.md @@ -2,9 +2,63 @@ Use `pxelinux-generator.sh` script to generate configs and populate the target path with pxe profiles according to mac-address from `mac-lists.csv` file. +**DHCP Setup** + +```dhcp +authoritative; +ddns-update-style interim; +allow booting; +allow bootp; +allow unknown-clients; +ignore client-updates; +default-lease-time 14400; +max-lease-time 14400; + +subnet 192.168.22.0 netmask 255.255.255.0 { + option routers 192.168.22.1; # lan + option subnet-mask 255.255.255.0; + option domain-name "ocp.lan"; + option domain-name-servers 192.168.22.1; + # range 192.168.22.80 192.168.22.99; + next-server 192.168.22.1; + filename "pxelinux/pxelinux.0"; +} +``` + +**Host File Structure** +``` +/var/lib/tftpboot/ +└── pxelinux + ├── bg.png + ├── boot.msg + ├── fcos-37-pxe + │   ├── fcos-initramfs.x86_64.img + │   ├── fcos-live-kernel.x86_64 + │   └── fcos-live-rootfs.x86_64.img + ├── ldlinux.c32 + ├── libcom32.c32 + ├── libutil.c32 + ├── menu.c32 + ├── pxelinux.0 + ├── pxelinux.cfg + │   ├── 01-00-50-56-bb-f8-6d + │   ├── 01-52-54-00-1b-15-29 + │   ├── 01-52-54-00-47-1a-1b + │   ├── 01-52-54-00-5e-7c-d6 + │   ├── 01-52-54-00-70-f5-db + │   ├── 01-52-54-00-84-b1-11 + │   ├── 01-52-54-00-a1-55-1a + │   ├── 01-52-54-00-c0-d0-de + │   ├── 01-52-54-00-f1-d1-63 + │   ├── 01-ac-1f-6b-ef-83-74 + │   └── default + ├── rhcos-4.9-pxe + └── vesamenu.c32 +``` ### Dependencies - initramfs and kernel file (Will make the handler later) -- pxe setup -- DHCP +- PXE setup +- DHCP Config +- tftpboot