1. DHCP
rpm -ivh dhcp-3.0.5-7.el5.rpm
vim /etc/dhcp.conf
allow booting;
next-server 192.168.0.1;
filename "pxelinux.0";
nfs-utils-lib.i386.rpm
mkdir /media/cdrom /rhel5
mount /dev/cdrom /media/cdrom
cp -r /media/cdrom/* /rhel5 && umount /media/cdrom
showmount -e localhost # 检查NFS共享是否正常
system-config-kickstart &
远程安装服务器指定nfs 192.168.0.1 目录rhel5
生成ks.cfg文件 为方便直接保存在/rhel5目录下
TFTP
第一步还是安包,yum还是rpm 怎么方便怎么安
包名为tftp-server
tftp依赖xinetd服务 没安xinetd的别忘了安上
disable = no # 把yes改成no
#cp /rhel5/isolinux/* /tftpboot
mkdir /tftpboot/pxelinux.cfg/
mv /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default
vim /tftpboot/pxelinux.cfg/default
在label linux的initrd=initrd.img 追加一行
ks=nfs:192.168.0.1:/rhel5u1/ks.cfg
PXE客户机配置: