Kickstart installation from GitHub.

First of all, we have to create the necessary kickstart installation file or configuration file. I have mentioned the configuration file on GitHub as well, so you can download it there, and amend as you need. For the initial boot process, you download the minimal version (easy to download) of CentOS 8 or RHEL 8 iso image. Then, follow the steps that I have provided.

Step 1

Mount the iso file to the virtual machine as follows. If you don’t want to mount the file, you must have a bootable cd/DVD or USB, ..etc.

Step 2

Press the tab key at the boot screen and give the path as I mentioned below. (NB:-Pointing to the raw file)

NB:-https://raw.githubusercontent.com/ade9alwis/repo7/master/ks8.cfg

The Kickstart Configuration file is as follows. It is import to direct the http server to the Linux base repositories, not the iso files.

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade

install

# Keyboard layouts

keyboard 'uk'

# Root password

rootpw --iscrypted $1$/V27Qc/N$xi6PcrfmvghGOI9/Yo70t0

# Use network installation

url --url="http://mirror.ox.ac.uk/sites/mirror.centos.org/8-stream/BaseOS/x86_64/os/"

# System language

lang en_US

# Firewall configuration

firewall --enabled

# System authorization information

authselect  --useshadow  --passalgo=sha512

# Use graphical install

graphical

firstboot --disable

# SELinux configuration

selinux --enforcing

# Reboot after installation

reboot

# System timezone

timezone Europe/London

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all

# Automatic partitioning

autopart --type=plain --fstype=ext4

%packages

@^minimal-environment

@core

chrony

kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb=auto

%end

%anaconda

pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty

pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty

pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty

%end

%post

#!/bin/bash

dnf update -y

dnf install epel-release -y

%end

Step 3

You can see the following screen during the installation process. At the end, you will have to unmount the iso image and let it to boot normally. When you’re at the login, the login screen will appear. Then, enter the username as root and password as 123456 to complete the process.

Leave a comment