*Create an answer file and pre-define various installation settings
*Remove the interactive setting process to achieve fully automated installation
*By adding %post scripts, complete various configuration operations after installation
The required environment is
pxe(dhcp,tftp,yum)
Linux: PXE network installation_Bao Haichao-GNUBHCkalitarro's Blog-CSDN Blog
GUI
If not installed using yum
yum -y groupinstall "GNOME Desktop" "Graphical administration Tools"
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
reboot
Install the system-config-kickstart package
yum -y install system-config-kickstart
system-config-kickstart
If you need to execute the script after booting, you can write it here
vim /root/ks.cfg
Add a minimal installation at the end
%packages
@^minimal
%end
cp /root/ks.cfg /var/ftp/ks.cfg
vi /var/lib/tftpboot/pxelinux.cfg/default
default auto
prompt 0
label auto
kernel vmlinuz
append initrd=initrd.img method=ftp://192.168.254.11/centos ks=ftp://192.168.254.11/ks.cfg
that's it
It's automatic here
Do not move the whole time
Successful installation