kickstart
#需要配置好网络源共享仓库
dnf search kickstart
dnf install python3-kickstart.noarch httpd -y
dnf install pykickstart.noarch -y
systemctl enable --now httpd
systemctl disable --now firewalld.service
cp /root/anaconda-ks.cfg /var/www/html/westos.cfg
chmod 644 westos.cfg
vim westos.cfg
#生成密码复制到westos.cfg中
ksvalidator westos.cfg #检测文件的语法错误
在浏览器中打开192.168.0.101/westos.cfg看是否可以浏览
#从光驱启动,没有需要添加,如下图
从光盘启动后,按tab键输入:
自动完成安装
网络源安装
下列步骤与新建虚拟机一样,然后等待自动安装完成