kickstart制作
rhel7中:
1、yum install system-config-kickstart -y #安装图形化kickstart制作工具
2、system-config-kickstart #图形工具
3、vim ks.cfg
%packages
@base #@base表示组名称
lftp #单独软件包名称
%end
4、ksvalidator ks.cfg #检测ks.cfg语法
5、发布kickstart
yum install vsftpd -y
mkdir /var/ftp/ksfile
mv /mnt/ks.cfg /var/ftp/ksfile/
systemctl start vsftpd
systemctl enable vsftpd
systemctl stop firewalld
systemctl disable firewalld
6、检测发布
firefox ftp://192.168.1.10/ksfile/ks.cfg
7、使用
在安装级别按<Tab>
在安装选项最后写ks=ftp://192.168.1.10/ksfile/ks.cfg
回车
此时系统进入自动安装模式
注意:使用kickstart安装系统时环境中必须有dhcp服务器,否则网络资源访问不到
8、使用网络资源安装系统
通过ftp服务发布镜像资源到网络
访问网络镜像资源ftp://192.168.1.12/rhel8.0
更改ks.cfg
vim /var/ftp/ksfile/ks.cfg
#cdrom #注释使用光盘资源
url --url="ftp://192.168.1.12/rhel8.0" #使用网络资源
tab键
使用网络资源安装