pxe_server_-_uefi

PXE Server - UEFI

#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp-server/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#

#option domain-name            "local.domain";
#option domain-name-servers    dns.local.domain;
default-lease-time 600;
max-lease-time 7200;
authoritative;
# add follows
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.configfile code 209 = text;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;
option architecture-type code 93 = unsigned integer 16;

subnet 10.0.0.0 netmask 255.255.255.0 {
    range dynamic-bootp 10.0.0.200 10.0.0.254;
    option broadcast-address 10.0.0.255;
    option routers 10.0.0.1;
    
    # add follows
    class "pxeclients" {
        match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";

        # PXE servers hostname or IP address
        next-server 10.0.0.9;

        if option architecture-type = 00:07 {
            filename "BOOTX64.EFI";
        }
        else {
            filename "pxelinux.0";
        }
    }
}
set default="1"

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod all_video
}

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2

#insmod gfxterm
#terminal_output gfxterm
#loadfont /EFI/BOOT/fonts/unicode.pf2
#insmod gfxterm_background
#insmod png
#background_image -m stretch /EFI/BOOT/splash.png

set timeout=60

### CentOS ###
submenu 'CentOS' {
	configfile CentOS/CentOS.menu.efi
}

#submenu 'CentOS' {
#	menuentry 'Install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
#		linuxefi /CentOS/7/isolinux/vmlinuz inst.repo=http://10.0.0.9/media/CentOS7
#		initrdefi /CentOS/7/isolinux/initrd.img
#	}
#}

### RHEL ###
submenu 'RHEL' {
	configfile RHEL/RHEL.menu.efi
}


menuentry 'Install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
	linuxefi /CentOS/7/isolinux/vmlinuz inst.repo=http://10.0.0.9/media/CentOS7
	initrdefi /CentOS/7/isolinux/initrd.img
}
로그인하면 댓글을 남길 수 있습니다.
  • pxe_server_-_uefi.txt
  • 마지막으로 수정됨: 2022/04/08 11:48
  • 저자 koov