[SOLVED] Kickstart error has occurred, look at /tmp/anaconda-tb* for more details
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Kickstart error has occurred, look at /tmp/anaconda-tb* for more details
Trying to install CentOS 8 from a kickstart and getting the error in the attached image. This works for Cent7 (without the authconfig part commented out).
Here is my kickstart:
Code:
# Setup
install
cdrom
lang {{ locale }}
keyboard {{ keyboard }}
# Network information
network --activate --bootproto=dhcp --device=ens192 --hostname={{ hostname }} --onboot=yes
# Root password
rootpw {{ root_password }}
user --name={{ ssh_username }} --homedir=/home/{{ ssh_username }} --password={{ ssh_password }}
# Accept the EULA
eula --agreed
# Reboot after installation
reboot
# Services Configuration
firewall --service=ssh
skipx
#authconfig --updateall
#authconfig --useshadow --passalgo=sha512
services --enabled=iptables,rsyslog,auditd,crond,chronyd,sshd --disabled=netfs,cups,rhnsd,nfslock,portmap,atd,avahi-daemon,firstboot,gpm,ip6tables,mcstrans,sendmail,setroubleshoot,sysstat,xfs,anacron,chargen-dgram,chargen-stream,daytime-dgram,daytime-stream,echo-dgram,echo-stream,tcpmux-server
sshpw --username=root {{ ssh_password }}
selinux --enforcing
timezone --utc {{ timezone }}
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
zerombr
clearpart --all --initlabel
{% if partition_layout_type and partition_layout_type == 'single' %}
autopart
{% else %}
part /boot --fstype=ext4 --size=300
part swap --grow --maxsize=4096 --size=4096
part pv.01 --size=12000 --grow
volgroup vg00 pv.01
# NB: The noexec flag will be set on /tmp after the build. The build stages and executes scripts on /tmp.
logvol /tmp --vgname=vg00 --size=8192 --grow --name=lv_tmp --fsoptions=nodev,nosuid
logvol /home --vgname=vg00 --size=8192 --grow --name=lv_home --fsoptions=nodev
logvol /var/log --vgname=vg00 --size=2048 --grow --name=lv_var_log
logvol /var/log/audit --vgname=vg00 --size=2048 --grow --name=lv_var_log_audit
logvol /var --vgname=vg00 --size=12288 --grow --name=lv_var
logvol / --fstype=ext4 --vgname=vg00 --grow --percent=90 --name=lv_root
{% endif %}
# XXX FIXME TODO Make the open-vm-tools install optional if building non-vmware targets?
%packages --excludedocs --ignoremissing
@Core --nodefaults
chrony
iptables-services
cronie-anacron
net-tools
open-vm-tools
openssh-clients
openssh-server
rsyslog
audit
cronie
sudo
yum
%end
#install VMware tools
%post
yum -y install open-vm-tools
%end
# Things to run in the chroot /mnt/sysimage (where the OS was installed)
%post --interpreter /bin/bash --log /mnt/root/ks-post.log.1
# permit root login for packer ansible-local after restart
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
# allow sudo without a TTY (for Ansible)
sed -i 's/Defaults.*requiretty.*/#Defaults requiretty/g' /etc/sudoers
# ensure the user is a sudoer
echo "{{ ssh_username }} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/99-{{ ssh_username }}
%end
# Things to run in the temporary (in-memory/ installer) system
%post --nochroot --interpreter /bin/bash --log /mnt/sysimage/root/ks-post.log.2
echo 'Anaconda setup has completed.'
echo 'Enabling SSH to restart this machine...'
mv /etc/ssh/sshd_config.anaconda /etc/ssh/sshd_config
service sshd start
Last edited by witchkinkofangmar; 06-26-2020 at 02:04 PM.
Reason: add details
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.