The first unit Kickstart script production
1.kickstart Script
Kickstart script is a script file that automatically answers all problems during the installation of the system
This file enables automatic installation of the system
After the system is installed, it will be generated in the root home directory of the system.
Anaconda-ks.cfg This file is the kickstart script generated with this system template
Production of 2.kickstart scripts
It's hard to write kickstart manually.
The System-config-kickstart tool in the system can be made graphically kickstart
Yum Install System-config-kickstart-y # #安装图形制作工具
System-config-kickstart # #打开图形ks制作工具
KSVALIDATORKS.CFG # #检测ks语法
3.kickstart file Sharing
Yum Install Httpd-y
Systemctl Stop Firewalld.service
Systemctl Disable Firewalld.service
Systemctl Start httpd
Systemctl Enable httpd
CP ks.cfg/var/www/html
4. Test the KS file
5. Additional PXE network installation Services
1. Corresponding Software Installation
Yum Install DHCP Tftp-server syslinux httpd-y
Systemctl Stop Firewalld.service
Ststemctl Disable Firewalld.service
Vim/etc/xinetd/tftp
systemctl restart xinetd
Systemctl Start httpd
Systemctl Enabel httpd
2. Must download and copy files
cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
Copy all isolinux/* from the installation image to/var/lib/tftpboot/
Mkdir/var/lib/tftpboot/pxelinux.cfg
Cp/var/lib/tftpboot/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default
Configuration of the 3.DHCPD service
Subnet 172.25.254.0 netmask 255.255.255.0 {
Range 172.25.254.200 172.25.254.220;
Option routers 172.25.254.254;
FileName "pxelinux.0";
Next-server 172.25.254.100;
}
This article from the "12147236" blog, reproduced please contact the author!
"Linux rookie 2" Kickstart script