Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Service Network restart
Umount/dev/CDROM
Mount/dev/Drom/mnt
CD/mnt/Server/
Rpm-IVH dhcp-3.0.5-23.el5.i386.rpm
Rpm-IVH dhcp-devel-3.0.5-23.el5.i386.rpm
Rpm-IVH xinetd-2.3.14-10.el5.i386.rpm
Rpm-IVH tftp-server-0.49-2.i386.rpm
Rpm-IVH pykickstart-0.43.8-1.el5.noarch.rpm
Rpm-IVH system-config-kickstart-2.6.19.8-2.el5.noarch.rpm
Chkconfig NFS on
Chkconfig TFTP on
Chkconfig DHCPD on
Chkconfig xinetd on
Chkconfig Portmap on
Mkdir/kickstart
Mkdir/install
CP/usr/share/doc/dhcp-3.0.5/DHCPD. conf. Sample/etc/DHCPD. conf
Vim/etc/DHCPD. conf
Vim/etc/xinetd. d/TFTP
Vim/etc/exports
/Kickstart * (RO, sync)
/Install * (RO, sync)
/Tftpboot * (RO, sync)
System-config-kickstart
NFS 192.168.1.10
/Install
Vim ks. cfg
Clearpart -- all
{Zerombr Yes
# Skip the key number
Key -- Skip}
CP/usr/lib/syslinux/pxelinux.0/tftpboot
CP/mnt/images/pxeboot/initrd. img/tftpboot
CP/mnt/images/pxeboot/vmlinuz/tftpboot
Mkdir/tftpboot/pxelinux. cfg
CP/mnt/isolinux. cfg/tftpboot/pxelinux. cfg/Default
Vim/tftpboot/pxelinux. cfg/Default
{Timeout 5
Label Linux
Kernel vmlinuz
Append ksdevice = eth0 load_ramdisk = 1 initrd = initrd. IMG network KS noipv6
}
Mount/dev/CDROM/install/
Service NFS restart
Service DHCPD restart
Service Portmap restart
Service xinetd restart
CP-P ks. cfg/kickstart/
CD/kickstart
Chmod 777 ks. cfg
Vim ks. cfg
{Text
# Skip the key number
Key -- Skip}
The last step is to disable the firewall.~!!!!!
Ks = NFS: 192.168.1.10:/kickstart/KS. cfgTutorial path
This article is from the "disconnected man in Tianya" blog and will not be reproduced!
Kickstart Unattended Installation