Initial commit
This commit is contained in:
commit
16e8ebf59f
12
README.md
Normal file
12
README.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# PXE Server
|
||||||
|
|
||||||
|
**NOTE: This an archive repository**
|
||||||
|
|
||||||
|
This repository contains the required files and arborescence to host a PXE server via TFTP. Worked well with
|
||||||
|
Debian/Ubuntu (`tftpd-hpa`) and OpenBSD's native `tftpd`.
|
||||||
|
|
||||||
|
### Files
|
||||||
|
`bios` and `efi64` directories are to be placed at TFTP server's root. `images` directories should be filled according
|
||||||
|
to Wiki (INSERT LINK).
|
||||||
|
|
||||||
|
`dhcpd.conf` contains the specific directives you should add to your ISC DHCP server.
|
BIN
bios/ldlinux.c32
Executable file
BIN
bios/ldlinux.c32
Executable file
Binary file not shown.
BIN
bios/libcom32.c32
Executable file
BIN
bios/libcom32.c32
Executable file
Binary file not shown.
BIN
bios/libutil.c32
Executable file
BIN
bios/libutil.c32
Executable file
Binary file not shown.
BIN
bios/memdisk
Normal file
BIN
bios/memdisk
Normal file
Binary file not shown.
BIN
bios/poweroff.c32
Executable file
BIN
bios/poweroff.c32
Executable file
Binary file not shown.
BIN
bios/pxechn.c32
Executable file
BIN
bios/pxechn.c32
Executable file
Binary file not shown.
BIN
bios/pxelinux.0
Normal file
BIN
bios/pxelinux.0
Normal file
Binary file not shown.
24
bios/pxelinux.cfg/arch.conf
Normal file
24
bios/pxelinux.cfg/arch.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
MENU TITLE **** KTO Network - BIOS PXE Arch Linux Menu ****
|
||||||
|
|
||||||
|
LABEL local
|
||||||
|
MENU LABEL Arch Linux 2021-10-01
|
||||||
|
LINUX images/archlinux/arch/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD images/archlinux/arch/boot/intel-ucode.img,images/archlinux/arch/boot/amd-ucode.img,images/archlinux/arch/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=arch archiso_nfs_srv=192.168.0.54:/srv/tftp/bios/images/archlinux
|
||||||
|
SYSAPPEND 3
|
||||||
|
|
||||||
|
LABEL net
|
||||||
|
MENU LABEL Arch Linux Netboot
|
||||||
|
COM32 pxechn.c32
|
||||||
|
APPEND images/archlinux/ipxe.pxe
|
||||||
|
TEXT HELP
|
||||||
|
This will download latest Arch release from the Internet.
|
||||||
|
THIS DOES NOT CURRENTLY WORK!
|
||||||
|
ENDTEXT
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
BIN
bios/pxelinux.cfg/background.jpg
Normal file
BIN
bios/pxelinux.cfg/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
28
bios/pxelinux.cfg/debian.conf
Normal file
28
bios/pxelinux.cfg/debian.conf
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
MENU TITLE **** KTO Network - BIOS PXE Debian Menu ****
|
||||||
|
|
||||||
|
LABEL standard
|
||||||
|
MENU LABEL Debian Standard Install
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND vga=788 initrd=images/debian-installer/amd64/initrd.gz
|
||||||
|
|
||||||
|
LABEL expert
|
||||||
|
MENU LABEL Debian Expert Install
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND priority=low vga=788 initrd=images/debian-installer/amd64/initrd.gz ---
|
||||||
|
|
||||||
|
LABEL rescue
|
||||||
|
MENU LABEL Debian Rescue Mode
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND vga=788 initrd=images/debian-installer/amd64/initrd.gz rescue/enable=true ---
|
||||||
|
|
||||||
|
LABEL live-bullseye
|
||||||
|
MENU LABEL Debian 11 Live
|
||||||
|
KERNEL images/debian-bullseye-live/live/vmlinuz-5.10.0-8-amd64
|
||||||
|
APPEND rootfstype=nfs netboot=nfs root=/dev/nfs ip=dhcp nfsroot=192.168.0.54:/srv/tftp/bios/images/debian-bullseye-live console-setup/layoutcode=fr initrd=images/debian-bullseye-live/live/initrd.img-5.10.0-8-amd64
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
46
bios/pxelinux.cfg/default
Normal file
46
bios/pxelinux.cfg/default
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
DEFAULT vesamenu.c32 pxelinux.cfg/graphics.conf ~
|
||||||
|
PROMPT 0
|
||||||
|
TIMEOUT 100
|
||||||
|
|
||||||
|
MENU TITLE **** KTO Network - BIOS PXE Menu ****
|
||||||
|
|
||||||
|
MENU LABEL All below images are x86_64 only
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL arch
|
||||||
|
MENU LABEL Arch Linux
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/arch.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL debian
|
||||||
|
MENU LABEL Debian
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/debian.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL ubuntu
|
||||||
|
MENU LABEL Ubuntu
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/ubuntu.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL localboot
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Local Boot
|
||||||
|
MENU default
|
||||||
|
localboot 0
|
||||||
|
|
||||||
|
LABEL reboot
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Reboot
|
||||||
|
kernel reboot.c32
|
||||||
|
|
||||||
|
LABEL shutdown
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Shutdown
|
||||||
|
kernel poweroff.c32
|
31
bios/pxelinux.cfg/graphics.conf
Normal file
31
bios/pxelinux.cfg/graphics.conf
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
menu color screen * #90ffffff #00000000 *
|
||||||
|
menu color border * #ffff0000 #006F7072 *
|
||||||
|
|
||||||
|
menu color title * #ffff0000 #006F7072 *
|
||||||
|
|
||||||
|
menu color unsel * #ff818181 #00000000 *
|
||||||
|
menu color hotkey * #00000000 #00000000 *
|
||||||
|
|
||||||
|
menu color sel * #ffff0000 #00ff0000 *
|
||||||
|
menu color hotsel * #e0ff0000 #200cd22d *
|
||||||
|
|
||||||
|
menu color tabmsg * #ff727272 #00000000 *
|
||||||
|
|
||||||
|
menu color cmdmark * #c0000000 #00000000 *
|
||||||
|
menu color cmdline * #c06F7072 #00000000 *
|
||||||
|
|
||||||
|
menu color timeout_msg * #ff727272 #00000000 *
|
||||||
|
menu color timeout * #ffff0000 #00000000 *
|
||||||
|
|
||||||
|
menu background pxelinux.cfg/background.jpg
|
||||||
|
|
||||||
|
menu width 80
|
||||||
|
menu margin 10
|
||||||
|
menu passwordmargin 3
|
||||||
|
menu rows 24
|
||||||
|
menu tabmsgrow 20
|
||||||
|
menu cmdlinerow 22
|
||||||
|
# The following line sets at wich row will "Loading..." lines start (should thus be superior to rows)
|
||||||
|
menu endrow 24
|
||||||
|
menu passwordrow 11
|
||||||
|
menu timeoutrow 22
|
18
bios/pxelinux.cfg/ubuntu.conf
Normal file
18
bios/pxelinux.cfg/ubuntu.conf
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
MENU TITLE **** KTO Network - BIOS PXE Ubuntu Menu ****
|
||||||
|
|
||||||
|
LABEL live
|
||||||
|
MENU LABEL Lubuntu 18.04.1 LTS Live
|
||||||
|
KERNEL images/ubuntu-bionic-live/amd64/casper/vmlinuz
|
||||||
|
APPEND boot=casper rootfstype=nfs netboot=nfs nfsroot=192.168.0.54:/srv/tftp/bios/images/ubuntu-bionic-live/amd64 console-setup/layoutcode=fr splash systemd.mask=tmp.mount initrd=images/ubuntu-bionic-live/amd64/casper/initrd.lz --
|
||||||
|
|
||||||
|
LABEL live-hirsute
|
||||||
|
MENU LABEL Ubuntu 21.04 Live
|
||||||
|
KERNEL images/ubuntu-hirsute-live/amd64/casper/vmlinuz
|
||||||
|
APPEND boot=casper rootfstype=nfs netboot=nfs ip=dhcp nfsroot=192.168.0.54:/srv/tftp/bios/images/ubuntu-hirsute-live/amd64 console-setup/layoutcode=fr systemd.mask=tmp.mount initrd=images/ubuntu-hirsute-live/amd64/casper/initrd --
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
BIN
bios/reboot.c32
Executable file
BIN
bios/reboot.c32
Executable file
Binary file not shown.
BIN
bios/vesamenu.c32
Executable file
BIN
bios/vesamenu.c32
Executable file
Binary file not shown.
23
dhcpd.conf
Normal file
23
dhcpd.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# directives needed in ISC's dhcpd.conf
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
option arch code 93 = unsigned integer 16;
|
||||||
|
|
||||||
|
allow booting;
|
||||||
|
allow bootp;
|
||||||
|
|
||||||
|
subnet <your subnet> {
|
||||||
|
...
|
||||||
|
# following line: 00:06 = efi32 ; 00:07 = efi64
|
||||||
|
if option arch = 00:07 {
|
||||||
|
filename "efi64/syslinux.efi";
|
||||||
|
} else {
|
||||||
|
filename "bios/pxelinux.0";
|
||||||
|
#filename "bios/images/archlinux/ipxe.pxe";
|
||||||
|
}
|
||||||
|
next-server <IP of PXE server>;
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
...
|
BIN
efi64/bootnetx64.efi
Normal file
BIN
efi64/bootnetx64.efi
Normal file
Binary file not shown.
BIN
efi64/bootx64.efi
Normal file
BIN
efi64/bootx64.efi
Normal file
Binary file not shown.
BIN
efi64/grubnetx64.efi.signed
Normal file
BIN
efi64/grubnetx64.efi.signed
Normal file
Binary file not shown.
BIN
efi64/ldlinux.e64
Executable file
BIN
efi64/ldlinux.e64
Executable file
Binary file not shown.
BIN
efi64/libcom32.c32
Executable file
BIN
efi64/libcom32.c32
Executable file
Binary file not shown.
BIN
efi64/libutil.c32
Executable file
BIN
efi64/libutil.c32
Executable file
Binary file not shown.
BIN
efi64/memdisk
Normal file
BIN
efi64/memdisk
Normal file
Binary file not shown.
BIN
efi64/poweroff.c32
Executable file
BIN
efi64/poweroff.c32
Executable file
Binary file not shown.
BIN
efi64/pxechn.c32
Executable file
BIN
efi64/pxechn.c32
Executable file
Binary file not shown.
24
efi64/pxelinux.cfg/arch.conf
Normal file
24
efi64/pxelinux.cfg/arch.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
MENU TITLE **** KTO Network - UEFI PXE Arch Linux Menu ****
|
||||||
|
|
||||||
|
LABEL local
|
||||||
|
MENU LABEL Arch Linux 2021-10-01
|
||||||
|
LINUX images/archlinux/arch/boot/x86_64/vmlinuz-linux
|
||||||
|
INITRD images/archlinux/arch/boot/intel-ucode.img,images/archlinux/arch/boot/amd-ucode.img,images/archlinux/arch/boot/x86_64/initramfs-linux.img
|
||||||
|
APPEND archisobasedir=arch archiso_nfs_srv=192.168.0.54:/srv/tftp/efi64/images/archlinux
|
||||||
|
SYSAPPEND 3
|
||||||
|
|
||||||
|
LABEL net
|
||||||
|
MENU LABEL Arch Linux Netboot
|
||||||
|
COM32 pxechn.c32
|
||||||
|
APPEND images/archlinux/ipxe.efi
|
||||||
|
TEXT HELP
|
||||||
|
This will download latest Arch release from the Internet.
|
||||||
|
THIS DOES NOT CURRENTLY WORK!
|
||||||
|
ENDTEXT
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
23
efi64/pxelinux.cfg/debian.conf
Normal file
23
efi64/pxelinux.cfg/debian.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
MENU TITLE **** KTO Network - UEFI PXE Debian Menu ****
|
||||||
|
|
||||||
|
LABEL standard
|
||||||
|
MENU LABEL Debian Standard Install
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND vga=788 initrd=images/debian-installer/amd64/initrd.gz
|
||||||
|
|
||||||
|
LABEL expert
|
||||||
|
MENU LABEL Debian Expert Install
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND priority=low vga=788 initrd=images/debian-installer/amd64/initrd.gz ---
|
||||||
|
|
||||||
|
LABEL rescue
|
||||||
|
MENU LABEL Debian Rescue Mode
|
||||||
|
KERNEL images/debian-installer/amd64/linux
|
||||||
|
APPEND vga=788 initrd=images/debian-installer/amd64/initrd.gz rescue/enable=true ---
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
46
efi64/pxelinux.cfg/default
Normal file
46
efi64/pxelinux.cfg/default
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
DEFAULT vesamenu.c32 pxelinux.cfg/graphics.conf ~
|
||||||
|
PROMPT 0
|
||||||
|
#TIMEOUT 100
|
||||||
|
|
||||||
|
MENU TITLE **** KTO Network - UEFI PXE Menu ****
|
||||||
|
|
||||||
|
MENU LABEL All below images are x86_64 only
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL arch
|
||||||
|
MENU LABEL Arch Linux
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/arch.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL debian
|
||||||
|
MENU LABEL Debian
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/debian.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL ubuntu
|
||||||
|
MENU LABEL Ubuntu
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/ubuntu.conf
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL localboot
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Local Boot
|
||||||
|
MENU default
|
||||||
|
localboot 0
|
||||||
|
|
||||||
|
LABEL reboot
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Reboot
|
||||||
|
kernel reboot.c32
|
||||||
|
|
||||||
|
LABEL shutdown
|
||||||
|
MENU INDENT 2
|
||||||
|
MENU LABEL Shutdown
|
||||||
|
kernel poweroff.c32
|
31
efi64/pxelinux.cfg/graphics.conf
Normal file
31
efi64/pxelinux.cfg/graphics.conf
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
menu color screen * #90ffffff #00000000 *
|
||||||
|
menu color border * #ffff0000 #006F7072 *
|
||||||
|
|
||||||
|
menu color title * #ffff0000 #006F7072 *
|
||||||
|
|
||||||
|
menu color unsel * #ff818181 #00000000 *
|
||||||
|
menu color hotkey * #00000000 #00000000 *
|
||||||
|
|
||||||
|
menu color sel * #ffff0000 #00ff0000 *
|
||||||
|
menu color hotsel * #e0ff0000 #200cd22d *
|
||||||
|
|
||||||
|
menu color tabmsg * #ff727272 #00000000 *
|
||||||
|
|
||||||
|
menu color cmdmark * #c0000000 #00000000 *
|
||||||
|
menu color cmdline * #c06F7072 #00000000 *
|
||||||
|
|
||||||
|
menu color timeout_msg * #ff727272 #00000000 *
|
||||||
|
menu color timeout * #ffff0000 #00000000 *
|
||||||
|
|
||||||
|
menu background pxelinux.cfg/background.jpg
|
||||||
|
|
||||||
|
menu width 80
|
||||||
|
menu margin 10
|
||||||
|
menu passwordmargin 3
|
||||||
|
menu rows 24
|
||||||
|
menu tabmsgrow 20
|
||||||
|
menu cmdlinerow 22
|
||||||
|
# The following line sets at wich row will "Loading..." lines start (should thus be superior to rows)
|
||||||
|
menu endrow 24
|
||||||
|
menu passwordrow 11
|
||||||
|
menu timeoutrow 22
|
13
efi64/pxelinux.cfg/ubuntu.conf
Normal file
13
efi64/pxelinux.cfg/ubuntu.conf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
MENU TITLE **** KTO Network - UEFI PXE Ubuntu Menu ****
|
||||||
|
|
||||||
|
LABEL live
|
||||||
|
MENU LABEL Lubuntu 18.04.1 LTS Live
|
||||||
|
KERNEL images/ubuntu-bionic-live/amd64/casper/vmlinuz
|
||||||
|
APPEND boot=casper rootfstype=nfs netboot=nfs nfsroot=192.168.0.54:/srv/tftp/bios/images/ubuntu-bionic-live/amd64 console-setup/layoutcode=fr splash systemd.mask=tmp.mount initrd=images/ubuntu-bionic-live/amd64/casper/initrd.lz --
|
||||||
|
|
||||||
|
MENU SEPARATOR
|
||||||
|
|
||||||
|
LABEL back
|
||||||
|
MENU LABEL Back to main menu...
|
||||||
|
KERNEL vesamenu.c32 pxelinux.cfg/graphics.conf
|
||||||
|
APPEND pxelinux.cfg/default
|
BIN
efi64/reboot.c32
Executable file
BIN
efi64/reboot.c32
Executable file
Binary file not shown.
BIN
efi64/syslinux.efi
Normal file
BIN
efi64/syslinux.efi
Normal file
Binary file not shown.
BIN
efi64/vesamenu.c32
Executable file
BIN
efi64/vesamenu.c32
Executable file
Binary file not shown.
Reference in New Issue
Block a user