条件 :已有配置好的共享yum源,安装httpd且开启,搭建好的dhcp服务器且开启.
2.1
(1)安装kickstart:yum install system-config-kickstart
(2)system-config-kickstart 开启这个工具,会出现一个图形界面(自动安装脚本的图形配置界面)
(3)vim /var/www/html/ks.cfg(已有apache服务)
(3)ksvalidator ks.cfg 检验原有的程序参数是否正确。
(4)yum install httpd -y
(5)systemctl start httpd
(6)systemctl enable httpd
(7)systemctl stop firewalld
(8)cp ks.cfg /var/www/html
(9)在浏览器里面输入172.25.254. 25/ks.cfg 看有没有共享的ks.cfg文件(指导安装系统过程中的参数)
步骤:
(10)vim vm_install.sh