Skip to content

Instantly share code, notes, and snippets.

@kgadek
Last active May 28, 2016 16:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kgadek/abb96f613b60e14b9ffe7765e2b7daa5 to your computer and use it in GitHub Desktop.
Simple kickstart for VMs (insecure as hell)
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
url --url="http://mirror.onet.pl/pub/mirrors/centos/7/os/x86_64"
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=pl --xlayouts='pl'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=eno16777736 --ipv6=auto --activate
network --hostname=tre.centos.vmware.haswellpro.kgadek.flowbox.io
# Root password
rootpw --iscrypted $6$ep8pAFzxHc2gw8cK$YsKcWCjwBEIRkhIsdkVgy.L7VC6RJAWOZyZEB4EbqnQW8bU81YcyTYxTCXQ6rJXN9vMOu2ngaJkUmhvjixtNM1
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Warsaw --isUtc --ntpservers=0.pl.pool.ntp.org,1.pl.pool.ntp.org,2.pl.pool.ntp.org,3.pl.pool.ntp.org
user --groups=wheel --name=konrad --password=$6$9DwDrxLlMSMohBh2$Mydc9uMykhilg/hnF992/1BXHtaIUg5nU6ABA0x.mBB/vajDrqHFUBcMg6IJLczFCMmzJ7RdrnJ5UPJuSz7zJ/ --iscrypted --gecos="konrad"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@^minimal
@core
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment