1.在主机中安装system-config-kickstart httpd软件
yum install system-config-kickstart httpd -y
2.打开kickstart 图形编辑器
system-config-kickstart
分驱
设置网络
安装后执行脚本
5.vim ks.cfg编辑因bug无法显示的Packages Selectiom文件
vim ks.cfg
%packages
@base
lftp
%end
6.将文件ks.cfg上传的共享网络
systemctl stop firewalld
systemctl disable firewalld
systemctl start httpd
systemctl enable httpd
cp ks.cfg /var/www/html/ks.cfg
7.编辑脚本
vim vm_create.sh
8.测试
sh vm_create.sh