my kickstart file ia as below:
Basic Configuration
lang en_US
keyboard fr
cmdline
eula --agreed
timezone Europe/Paris --isUtc
network --onboot yes --device ens192 --bootproto static --ip=10.0.68.221 --netmask=255.255.255.0 --gateway= 10.0.68.1 --nameserver=172.30.0.150 --hostname=centos.local --noipv6
services --enabled=iptables,rsyslog,sshd,NetworkManager
user --groups=wheel --homedir=/home/itops --name=itops --iscrypted --password=$1$c2dnIt5L$UsKvFG/u0Mzh7VBHfOR3c0
rootpw --iscrypted $1$c2dnIt5L$UsKvFG/u0Mzh7VBHfOR3c0
#platform x86, AMD64, or Intel EM64T
reboot
Installation
text
cdrom
BootLoader
bootloader --location=mbr --timeout=10 --append=“rhgb quiet crashkernel=auto”
zerombr
sshpw --username root $1$c2dnIt5L$UsKvFG/u0Mzh7VBHfOR3c0 --iscrypted
Partition
clearpart --all --initlabel --drives=sda
autopart --type=lvm
Auth
auth --passalgo=sha512 --useshadow
Disable selinux & Fw
selinux --disabled
firewall --disabled
No GUI
skipx
firstboot --disable
Post installation
%post --nochroot --interpreter=/bin/bash
yum install -y vim
mv /etc/ssh/sshd_config.anaconda /etc/ssh/sshd_config
systemctl start sshd
%end
Packages
%packages
@^minimal
@core
-usbutils
%end
reboot --eject