Kickstart - Error with checking software selection

Hello,

i have some issue with my kickstart file to automate the deployment on vcenter this errors on the software selection part with no clear error.

Bellow you can consult the ks.cfg file that is used the xyz values are the locations of the passwords and keys.

The minimal install is selected the standard packages are selected but then i am stuck , please advice me.

# Use CD-ROM installation media
repo --name="AppStream" --baseurl="http://download.rockylinux.org/pub/rocky/9.4/AppStream/x86_64/os/"
cdrom
text

firstboot --disabled
eula --agreed
ignoredisk --only-use=sda

# Keyboard layouts
keyboard --vckeymap=fr
# System language
lang nl_BE.UTF-8

# Network information
network  --bootproto=dhcp --ipv6=auto --activate
network  --hostname=localhost.localdomain

# Root password
rootpw --iscrypted $xyz
# add ansible user
user --name=ansible --groups=wheel --iscrypted --password=$xyz

#System Services
selinux --permissive
firewall --enabled
services --enabled="NetworkManager,sshd,chronyd"

# System TimeZone
timezone Europe/Brussels --isUtc

# Bootloader
bootloader --location=mbr --boot-drive=sda

#Partition
clearpart --all --initlabel --drives=sda

# Disk
part / --fstype="xfs" --grow --size=6144
part swap --fstype="swap" --size=512
skipx
reboot

%packages --ignoremissing --excludedocs
@core
@^minimal-environment
@standard
openssh-clients
open-vm-tools
python3
perl
perl-File-Temp
curl
dnf-utils
drpm
net-tools
sudo
vim
wget
python3

# unnecessary firmware
-aic94xx-firmware
-atmel-firmware
-b43-openfwwf
-bfa-firmware
-ipw2100-firmware
-ipw2200-firmware
-ivtv-firmware
-iwl*-firmware
-libertas-usb8388-firmware
-ql*-firmware
-rt61pci-firmware
-rt73usb-firmware
-xorg-x11-drv-ati-firmware
-zd1211-firmware
-cockpit
-quota
-alsa-*
-fprintd-pam
-intltool
-microcode_ctl
%end
%addon com_redhat_kdump --disable
%end
%post

# Manage ansible access
groupadd -g 1001 ansible
mkdir /home/ansible/.ssh
echo -e "xyz" > /home/ansible/.ssh/authorized_keys
chown -R ansible:ansible /home/ansible/.ssh
chmod 700 /home/ansible/.ssh
chmod 600 /home/ansible/.ssh/authorized_keys
echo "ansible ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/ansible
chmod 440 /etc/sudoers.d/ansible

systemctl enable vmtoolsd
systemctl start vmtoolsd
%end


Add also [1] as repo

[1] https://download.rockylinux.org/pub/rocky/9.4/BaseOS/

Hy @Ritov ,

Should i add this als appsstream again ?

Add both URI with there own repo statements into your ks file.

Did not change much, it accepts the inputs but stil gives the same error (on the software selection part)

image

Check the logs of your installer and start with a minimal package selection in your kickstart to approach your problem (e.g. exclude python3 statement).

1 Like

i have simplefied the ks.cfg file and removed the repo links , now it is working.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.