yum -y install tftp-server
yum -y install xinetd
yum -y install syslinux
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
mkdir -p /var/pxe/centos7
mkdir /var/lib/tftpboot/centos7
mount -t iso9660 -o loop /home/iso/CentOS-7-x86_64-DVD-1503-01.iso /var/pxe/centos7
cp /var/pxe/centos7/images/pxeboot/vmlinuz /var/lib/tftpboot/centos7/
cp /var/pxe/centos7/images/pxeboot/initrd.img /var/lib/tftpboot/centos7/
cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
vi /var/lib/tftpboot/pxelinux.cfg/default
# create new
timeout 100
default menu.c32
menu title ########## PXE Boot Menu ##########
label 1
menu label ^1) Install CentOS 7
kernel centos7/vmlinuz
append initrd=centos7/initrd.img method=http://10.0.0.30/centos7 devfs=nomount
label 2
menu label ^2) Boot from local drive
localboot
vi /etc/httpd/conf.d/pxeboot.conf
# create new
Alias /centos7 /var/pxe/centos7
<Directory /var/pxe/centos7>
Options Indexes FollowSymLinks
# IP address you allow to access
Require ip 127.0.0.1 10.0.0.0/24
</Directory>