-
-
Save moutons/3812057 to your computer and use it in GitHub Desktop.
Kickstart file for a minimal CentOS VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
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