CentOS 7 kickstart file

Here is CentOS kickstart file I use to install CentOS 7 via network in my kvm environment.

To use it,download CentOS 7 network install image boot it in kvm, and point to get below kickstart file from location you configure. It can be either nfs, or http, or something else.
I would attach it here, but wordpress does not allow .cfg extension ( neither .txt ), so copy / paste it and name it for example centos7.cfg

Happy hacking!

#kickstart file for basic CentOS network installation
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp --device=eth0 --gateway= --hostname=centos7 --nameserver=
# packages location
url --url=http://isoredirect.centos.org/centos/7/os/x86_64/
rootpw --iscrypted sh7.LUOelWgXU
# where password above is created with "python -c 'import crypt; print(crypt.crypt("mypassword", "sha256sum"))'"
# one can alter "mypassword" and sha256sum ( valid are md5sum sha1sum sha224sum sha256sum sha384sum sha512sum shasum )
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --enforcing
timezone --utc Europe/Prague
bootloader --location=mbr
#disk part
clearpart --all --initlabel
part / --fstype=xfs --asprimary --size=4500
part /one --fstype=ext4 --size=400
part /two --fstype=ext4 --size=400
part /xfs --fstype=ext4 --size=400
part swap --size=300 --asprimary
# packages we want to install, in my case I do minimal installation due to speed

#disk, #kickstart