SYS: Install Red Hat Enterprise Linux automatically using Kickstart.

Share this link

Kickstart is a method to install automatically (without any manual intervention) a RHEL physical server or a VM guest.
It is based on a configuration file called a KICKSTART file. This file needs to be accessible through HTTP, FTP or NFS.
In this file are defined the various details of the configuration (language, keyboard settings, network configuration, password, selinux status, timezone, and disk organization). See below for an example.

To create a VM called (here with an IP address of, a gateway at, a DNS server at, Pass1234 as a password, and a total disk size of 5GB), create the ks_postfix.cfg file and add the following lines:

# Kickstart file automatically generated by anaconda.
lang en_US
keyboard us
network --onboot yes --device eth0 --bootproto static --ip --netmask --gateway --ipv6 auto --nameserver --hostname
rootpw Pass1234
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc America/Los_Angeles
bootloader --location=mbr --driveorder=vda --append="crashkernel=auto rhgb quiet"
part /boot --fstype=ext4 --size=200
part pv.000001 --grow --size=1
volgroup vg_root --pesize=4096 pv.000001
logvol / --fstype=ext4 --name=lv_root --vgname=vg_root --size=3072
logvol swap --name=lv_swap --vgname=vg_root --size=512

To get some help to create this file, type:

# yum install -y system-config-kickstart
# system-config-kickstart

For a deeper understanding of the subject, you can look at how to set up a lab.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Leave a Reply

Please Login to comment
1 Comment threads
1 Thread replies
Most reacted comment
Hottest comment thread
2 Comment authors
CertDepotfolu Recent comment authors
newest oldest
Notify of

During installation by Kickstart, where is the boot.iso found for rhcsa exams?

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Configure a cron task to write the uptime at 2PM every day.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a caching-only DNS server to forward DNS queries.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...