准备pxe+kickstart环境需要安装dhcp、tftpserver、ftp/nfs/http

1、dhcp

yuminstalldhcpd

cp/etc/share/doc/dhcp-3.0.1/dhcpd.conf.sample/etc/dhcpd.conf

Linux 自动安装 pxe+kickstart_第1张图片

2、tftp

yuminstalltftp-server

Linux 自动安装 pxe+kickstart_第2张图片

mkdir/tftpboot

mkdir-p/tftpboot/pxelinux.cfg

cp/usr/lib/syslinux/pxelinux.0/tftpboot

cp/var/ftp/pub/rhel5.6/p_w_picpaths/pxeboot/vmlinuz/tftpboot/

cp/var/ftp/pub/rhel5.6/isolinux/initrd.img/tftpboot/

cp/var/ftp/pub/rhel5.6/isolinux/*.msg/tftpboot/

cp/var/ftp/pub/rhel5.6/isolinux/isolinux.cfg/tftpboot/pxelinux.cfg/default

3、ftp

yuminstallvsftp

4、ks.cfg

yuminstallsystem-config-kickstart

system-config-kickstart生成ks.cfg存在:ftp://192.168.1.120/var/ftp/pub

vi/tftpboot/pxelinux.cfg/default

Linux 自动安装 pxe+kickstart_第3张图片