Kickstart file for a minimal CentOS VM
# | |
# Kickstart file for minimal CentOS VM | |
# http://fedoraproject.org/wiki/Anaconda/Kickstart | |
# | |
# to use, pass ks=http://server/ks.cfg to kernel | |
# | |
#version=RHEL6 | |
install | |
text | |
cdrom | |
lang en_US.UTF-8 | |
keyboard us | |
rootpw --plaintext password | |
firewall --service=ssh | |
authconfig --enableshadow --passalgo=sha512 --enablefingerprint | |
selinux --enforcing | |
network --device eth0 --onboot yes --bootproto dhcp | |
timezone Asia/Singapore | |
bootloader --location=mbr --driveorder=sda --append="vga=773" | |
reboot | |
# assumes an 4GB or larger drive | |
clearpart --all --drives=sda | |
part swap --asprimary --size=1024 | |
part / --fstype=ext4 --asprimary --size=2048 --grow | |
repo --name="CentOS" --baseurl=file:///mnt/source --cost=100 | |
%packages --nobase | |
@core | |
@server-policy | |
# exclude these | |
-*-firmware | |
# vim | |
vim-enhanced | |
vim-minimal | |
# for convenient ACPI shutdown | |
acpid | |
# network utils | |
wget | |
curl | |
openssh-clients | |
# utils | |
zip | |
unzip | |
screen | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment