1. installation

yum -y install tftp-server xinetd
mkdir -p /tftpboot/
cube /etc/xinetd.d/tftp "-s /var/lib/tftpboot" with "-sv /tftpboot/"
cube /etc/xinetd.d/tftp "disable<TAB><TAB><TAB>= yes" with "disable<TAB><TAB><TAB>= no"
systemctl restart xinetd.service

2. configuration

mkdir -p /tftpboot/pxelinux.cfg
wget -nv https://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.gz -O /tmp/syslinux.tgz
tar xzf /tmp/syslinux.tgz -C /tmp/
cp -pv /tmp/syslinux-6.04-pre1/bios/core/pxelinux.0 /tftpboot/
cp -pv /tmp/syslinux-6.04-pre1/bios/com32/elflink/ldlinux/ldlinux.c32 /tftpboot/
rm -fr /tmp/syslinux-6.04-pre1/ /tmp/syslinux.tgz
vi /tftpboot/pxelinux.cfg/default
#
  prompt 1
  timeout 100
  display /msg/boot.msg
  default local

  label local
        localboot 0x80

  label rip
        kernel /rip/kernel64
        append initrd=/rip/rootfs.cgz vga=5 root=/dev/ram0 rw autologin keymap=us

  label lui
        kernel /centos7/vmlinuz
        append initrd=/centos7/initrd.img inst.ks=http://d01cid.ddns.net/sharel/rsp/ks/ks7-u5.cfg noipv6 vga=791 ksdevice=bootif biosdevname=0 net.ifnames=0 part1=530 part2=2600
        ipappend 2

  label gui
        kernel /centos7/vmlinuz
        append initrd=/centos7/initrd.img inst.repo=http://centos.cu.be/7/os/x86_64/ vga=791 ksdevice=bootif biosdevname=0 net.ifnames=0
        ipappend 2
mkdir -p /tftpboot/rip
wget -N -nv http://d01cid.ddns.net/sharel/pxe/rip/kernel64 -P /tftpboot/rip/
wget -N -nv http://d01cid.ddns.net/sharel/pxe/rip/rootfs.cgz -P /tftpboot/rip/
mkdir -p /tftpboot/centos7
wget -N -nv http://centos.cu.be/7.5.1804/os/x86_64/images/pxeboot/initrd.img -P /tftpboot/centos7/
wget -N -nv http://centos.cu.be/7.5.1804/os/x86_64/images/pxeboot/vmlinuz -P /tftpboot/centos7/