Last active
September 13, 2019 11:15
-
-
Save kevsersrca/013dec9e9aa006f31c2e6de6cfd564fd to your computer and use it in GitHub Desktop.
Kickstart Notes for Virtualization 😍
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
#version=RHEL7 | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=sda | |
# Keyboard layouts | |
keyboard --vckeymap=us --xlayouts='us' | |
# System language | |
lang en_US.UTF-8 | |
# Network information | |
network --device=eno1 --onboot=on --activate | |
network --bootproto=static --ip=x.x.x.x --netmask=255.255.255.0 --gateway=x.x.x.x --nameserver=8.8.8.8 | |
network --hostname=localhost.localdomain | |
# Root password | |
rootpw --iscrypted someLongHashedPassword | |
# System timezone | |
timezone someTimeZone --isUtc --nontp | |
user --name=someUserName --password=someLongHashedPassword --iscrypted --gecos="someUserName" | |
# System bootloader configuration | |
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda | |
# Partition clearing information. Erases all partitions from the sda drive. | |
clearpart --all --initlabel --drives=sda | |
# Disk partitioning information | |
part pv.204 --fstype="lvmpv" --ondisk=sda --size=1902212 | |
part /boot/efi --fstype="efi" --ondisk=sda --size=200 --fsoptions="umask=0077,shortname=winnt" | |
part /boot --fstype="xfs" --ondisk=sda --size=500 | |
volgroup centos --pesize=4096 pv.204 | |
logvol / --fstype="xfs" --grow --maxsize=51200 --size=1024 --name=root --vgname=centos | |
logvol /home --fstype="xfs" --size=230400 --name=home --vgname=centos | |
logvol swap --fstype="swap" --size=7808 --name=swap --vgname=centos | |
%packages | |
@base | |
@compat-libraries | |
@core | |
@debugging | |
@development | |
@network-file-system-client | |
@remote-system-management | |
@security-tools | |
@smart-card | |
@virtualization-hypervisor | |
@virtualization-platform | |
@virtualization-tools | |
@virtualization-client | |
kexec-tools | |
%end | |
%addon com_redhat_kdump --enable --reserve-mb='auto' | |
%end |
Author
kevsersrca
commented
Jan 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment