CentOS 7
Ads

PXE Boot : Configure PXE Server
2015/06/26
 
Configure PXE (Preboot eXecution Environment) Server. Your computer needs to have a NIC with PXE surpport.
[1] Install required packages.
[root@dlp ~]#
yum -y install syslinux xinetd tftp-server
[root@dlp ~]#
mkdir /var/lib/tftpboot/pxelinux.cfg

[root@dlp ~]#
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/

[2] Start TFTP.
[root@dlp ~]#
vi /etc/xinetd.d/tftp
# line 14: change

disable =
no
[root@dlp ~]#
systemctl start xinetd

[root@dlp ~]#
systemctl enable xinetd

[3] Start DHCP server.
Refer to here for DHCP basic settings. Furthermore, Add following settings.
[root@dlp ~]#
vi /etc/dhcp/dhcpd.conf
option domain-name-servers   10.0.0.30;
# add follows near line 8 (specify PXE server's hostname or IP for "next-server")

filename        "pxelinux.0";
next-server     10.0.0.30;

[root@dlp ~]#
systemctl restart dhcpd

[4]
It's OK to configure basic PXE settings.

 
Tweet