LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-26-2020, 01:56 PM   #1
witchkinkofangmar
Member
 
Registered: May 2019
Posts: 83

Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot (10).png
Views:	256
Size:	252.5 KB
ID:	33508  

Last edited by witchkinkofangmar; 06-26-2020 at 02:04 PM. Reason: add details
 
Old 06-26-2020, 02:14 PM   #2
witchkinkofangmar
Member
 
Registered: May 2019
Posts: 83

Original Poster
Rep: Reputation: Disabled
If I comment out the services configuration partit seems to work. But what if I don't want to do that?

Last edited by witchkinkofangmar; 06-26-2020 at 02:20 PM.
 
Old 06-26-2020, 02:34 PM   #3
witchkinkofangmar
Member
 
Registered: May 2019
Posts: 83

Original Poster
Rep: Reputation: Disabled
So specifically, its something in the services --enabled=...... section
 
Old 06-26-2020, 03:16 PM   #4
witchkinkofangmar
Member
 
Registered: May 2019
Posts: 83

Original Poster
Rep: Reputation: Disabled
More specifically, I broke up services enabled/disabled and its something in services enabled=...
 
Old 06-26-2020, 03:52 PM   #5
witchkinkofangmar
Member
 
Registered: May 2019
Posts: 83

Original Poster
Rep: Reputation: Disabled
It was rsyslog. Removed and it worked.
 
  


Reply

Tags
anaconda, centos8, kickstart, vsphere



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache says Error : 404 Requested URL Not Found when anaconda requests kickstart file g.navink Linux - Server 2 03-17-2015 11:23 PM
rpmbuild error bad exit status from /var/tmp/rpm-tmp.86594 error anis123 Linux - Software 1 08-20-2014 04:06 PM
"No space left on device" error on /tmp. How to increase space on /tmp? anilp Linux - Newbie 12 01-24-2011 01:40 PM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 11:20 AM
"/tmp/sv001.tmp/setup.bin" error while installing OO1.1.0 Choey Linux - Software 0 09-16-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration