1. Install DHCP server
yum install dhcp
vi /etc/dhcpd.conf
We can use /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample as an example or check my last post.
2. Install TFTP server
yum install tftp-server
vi /etc/xinetd.d/tftp
change the line to be: disable = no
3.Create Network installation source
yum install vsftpd
mkdir –p /var/ftp/install/centos/x86_64/5.3/
mount –t iso9660 -o loop CentOS-5.3-x86_64-bin-DVD.iso /media/cdrom/cp –avr /media/cdrom/* /var/ftp/install/centos/x86_64/5.3/
4.start the DHCP,TFTP, VSFTP servers
/etc/init.d/dhcpd restart
/etc/init.d/xinetd restart
/etc/init.d/vsftpd restart5. Setup tftp boot files
cp /usr/lib/syslinux/pxelinux.0 /tftpboot
mkdir –p /tftpboot/images/centos/x86_64/5.3/
cp /var/ftp/install/centos/x86_64/5.3/images/pxeboot/vmlinuz images/centos/x86_64/5.3/ cp /var/ftp/install/centos/x86_64/5.3/images/pxeboot/initrd images/centos/x86_64/5.3/
6.Create PXE menu
cp /usr/lib/syslinux/menu.c32 /tftpboot
mkdir /tftpboot/pxelinux.cfg
touch /tftpboot/pxelinux.cfg/default
vi /tftpboot/pxelinux.cfg/default
This is a concise version. More details can be found through here.
没有评论:
发表评论