Auto installation of centos 8 in using kickstart file.

Issues related to applications and software problems and general support
Post Reply
krishnav
Posts: 1
Joined: 2020/06/08 06:00:43

Auto installation of centos 8 in using kickstart file.

Post by krishnav » 2020/06/08 06:15:03

Hi all ,

I am trying to install the centos using kickstart file,but during the installation time it is asking for installation source to be selected , how to pass the installation source to kickstart file ?
I have made the dvd iso and kickstart on anothe usb drive labelled as OEMDRV and another bootatle use contiaing the binary iso of centos.

Here is the kickstart file
#version=RHEL8
ignoredisk --only-use=sdb
# X Window System configuration information
xconfig --startxonboot
# License agreement
eula --agreed
# Use graphical install
graphical
# Network information
network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --no-activate
network --bootproto=dhcp --hostname=localhost.localdomain
ignoredisk --only-use=sda,sdb,sdc
# Run the Setup Agent on first boot
firstboot --enable
# Use hard drive installation media
harddrive --dir=//CentOS-8.1.1911-x86_64-dvd1.iso --partition=/dev/sdb

# System services
services --disabled="chronyd"
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Root password
rootpw --iscrypted $6$r2b/K236rdiEThQQ$5peIei/EEPFj7h6WOUbfubbvx4xDDR2e.zn40jajMn2xCzYZs5xQTxKnEQ4z5jwLw2dw2l.8H2Uar0XO/DsVD.
# System timezone
timezone Asia/Kolkata --nontp
user --name=venkat --password=$6$BwjCh4DFGPZMGUOP$ax.46UKRnVcJn/ihD683snKl4a9nYrspr7BSUQZFRC8nzrTbCwLwgx5WSsmQjrrWvBQKfMt0eXJYCLHqZIbUk0 --iscrypted --gecos="venkat"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=/dev/sda
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel --drives=/dev/sda
eula --agreed
shutdown

%packages
@^graphical-server-environment
kexec-tools

%end

%addon com_redhat_subscription_manager
%end
%addon ADDON_placeholder --enable --reserve-mb=auto
%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end

I need to reference the iso present in drive OEMDRV in the kickstart file to make it as a installation source for the below screen during the installation.
Attachments
i need to select iso file automatically or can any auto selection can be done here ..please help as it is only stopping me from kickstart auto installation
i need to select iso file automatically or can any auto selection can be done here ..please help as it is only stopping me from kickstart auto installation
issue (wecompress.com).png (168.68 KiB) Viewed 277 times

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Auto installation of centos 8 in using kickstart file.

Post by TrevorH » 2020/06/08 10:27:01

The CentOS DVD itself has to have the correct label on it.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”