封面

dnsmasq.conf

#--dhcp-boot=[tag:<tag>,]<filename>,[<servername>[,<server address>|<tftp_servername>]]
dhcp-boot=pxelinux.0,pxeserver,192.168.31.115
#--pxe-prompt=[tag:<tag>,]<prompt>[,<timeout>]
pxe-prompt="          Welecome to PandoraBox PXE Server!\n\r\n\rPress F8 for bootmenu.",10
#--pxe-service=[tag:<tag>,]<CSA>,<menu text>[,<basename>|<bootservicetype>][,<server address>|<server_name>]
pxe-service=x86PC, "Boot from TFTP Server", pxelinux, 192.168.31.115
#--enable-tftp[=<interface>[,<interface>]]
#enable-tftp

#--tftp-root=<directory>[,<interface>]
#tftp-root=/var/lib/tftpboot

pxelinux.cfg/default

default menu.c32
prompt 0
timeout 300
ONTIMEOUT local

menu title ########## PXE Boot Menu ##########

label 1
menu label ^1) Install CentOS 7 x64 with Local Repo
kernel centos7/vmlinuz
append initrd=centos7/initrd.img method=http://192.168.31.115/pub devfs=nomount

label 2
menu label ^2) Install CentOS 7 x64 with http://mirror.aliyun.com Repo
kernel centos7/vmlinuz
append initrd=centos7/initrd.img method=http://mirrors.aliyun.com/centos/7.3.1611/os/x86_64/ devfs=nomount ip=dhcp

label 3
menu label ^3) Install CentOS 7 x64 with Local Repo using VNC
kernel centos7/vmlinuz
append  initrd=centos7/initrd.img method=http://mirrors.aliyun.com/centos/7.3.1611/os/x86_64/ devfs=nomount inst.vnc inst.vncpassword=password

label 4
menu label ^4) Boot from local drive

参考:

  1. https://linux.cn/article-4902-1.html
  2. http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
  3. http://tftpd32.jounin.net/tftpd32_download.html