Server up to 3 services dhcpd TFTP httpd ip=192.168.1.1
First, modify the DHCPD configuration file to indicate the IP and boot code files of the TFTP server
Vim/etc/dhcpd.conf
Next-server 192.168.1.1;
FileName "pxelinux.0";
/ETC/INIT.D/DHCPD restart
Start TFTP
Vim/etc/xinetd.d/tftp
Server_args =-s/tftpboot/linux-install/
Disable = no
/etc/init.d/xinetd restart
Copy the boot file, micro-kernel, micro-image to TFTP share
Mount/dev/cdrom/mnt
Cp/mnt/isolinux/isolinux.cfg/tftpboot/linux-install/pxelinux.cfg/default
about why it was renamed default. The client will first look for the 01-mac file, without descending 1 to find the signature file, and finally find the default file.
cp/mnt/isolinux/vmlinuz/tftpboot/linux-install/
cp/mnt/isolinux/initrd.img/tftpboot/linux-install/
Modify the boot file default to indicate that the Ks.cfg file
Vim/tftpboot/linux-install/pxelinux.cfg/default
Default KS
Timeout 6
Label KS
Kernel Vmlinuz
Append ks=http://192.168.1.1/ks.cfg initrd=initrd.img
Generate KS File
Yum-y Install System-config-kickstart
Under the graphical interface
System-config-kickstart Generating ks.cfg files
File is defective and needs to be modified
Vim Ks.cfg
Key--skip
To add a pre-installed package to a file
Vim/root/anaconda-ks.cfg ks.cfg
N Enter the next file n Enter the previous file
The ks.cfg file needs to indicate what Stage2 needs to share as Http://192.168.1.1/rhel
Finally, the KS file and the image are shared in HTTP
CP ks.cfg/var/www/html/
Mount/dev/cdrom/var/www/html/rhel
Kickstart & PXE