Linux 自动安装 pxe+kickstart

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

1、dhcp

yuminstalldhcpd

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

183741541.jpg

2、tftp

yuminstalltftp-server

181656998.jpg

mkdir/tftpboot

mkdir-p/tftpboot/pxelinux.cfg

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

cp/var/ftp/pub/rhel5.6/images/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

203909548.jpg

你可能感兴趣的:(linux,pxe,kickstart,大规模系统自动部署)