Questions tagged [kickstart]
The kickstart file is a file that is read during the installation of RHEL/CentOS software that automates the installation process.
159
questions
0
votes
0
answers
10
views
anaconda.cfg has no partition info
Attempting to duplicate the install of RHEL 7 but the anaconda.cfg/kickstart.conf does not include the directory structure of the system being used to create it?
0
votes
0
answers
43
views
PXE-E77 Bad or Missing Discovery Server list
I am trying to use kickstart file to automate the installation of the CentOS7 server in my home lab. I have configured HTTP, Xinetd, and dnsmasq but I am still get the PXE-E77 error. I am using ...
0
votes
1
answer
256
views
Can a kickstart file have multiple %pre or %post sections?
I am new to using ks.cfg files and came across one with 2 %post sections and thought it may be a mistake. The first %post section is empty and is just
%post --nochroot
%end
The second %post does ...
0
votes
0
answers
160
views
anaconda/kickstart mixes up network device names for OracleLinux 9.1
I have a compputer with 4 network devices (2x rj45 1Gbit and 2x fiber 10Gbit)
enp4s0f0 (1gbit)
enp4s0f1 (1gbit)
enp7s0 (1gbit)
enp10s0 (1gbit)
Now I try to automatically install Oracle 9.1 and want ...
0
votes
0
answers
55
views
Redhat linux kickstart installtion
I am installing a new Linux using kickstart 7.9 iso file on hardware gen10 but the installation get stuck at hardware RNG please have a look and support.
0
votes
0
answers
71
views
How to use a for-loop in a kickstart script?
I'd like to reimage the OS of a certain device 100 times.
How can I modify a kickstart script to reimage the same device 100 times?
Essentially wrap my entire kickstart script in a for-loop. Another ...
-1
votes
1
answer
823
views
What configuration must be included in a Kickstart file so packages are pulled from epel, remi, and other remote repositories?
I'm creating kickstart files for various unattended Redhat installs, but for sake of focus, let's say CentOS 7.
I'm using the minimal boot iso, and as part of the boot options, I have inst.ks=https://...
0
votes
1
answer
114
views
Post-Useradd Script + Gnome Initial Login
I have a script at /etc/shadow-maint/useradd-post.d/ that takes a created username, gets their UID, adds one and prints :##=username to the end of /etc/tigervnc/vncserver.users, as well as writes a ...
0
votes
1
answer
329
views
(Fedora) Anaconda Kickstart - Post Script - Display to GUI
I am looking for a way to display messages to the user within the graphical installer during a kickstart post script.
Nearly all the documentation/questions I have found have successfully explained ...
1
vote
0
answers
174
views
RHEL7 kickstart fails to contact nfs server
I have a situation where the target host is RHEL 5.x and I have to kickstart it to fresh RHEL7.9. no other option, but only ks. and KS is not working. :-(
target host: (this range is allowed to ping,...
1
vote
1
answer
902
views
How to make changes to firewall during a kickstart installation
I am trying to change some of the firewall settings during an automatic kickstart installation in the %post section on a RHEL 8 server. For example: firewall-cmd --permanent --zone=public --set-...
0
votes
1
answer
144
views
When are host keys for the server generated
I am writing a hardening script to be run by kickstart during the post-installation phase. One of the requirements is to change the permissions on /etc/ssh/ssh_host*key files. My problem is that ...
1
vote
2
answers
3k
views
Rocky 8.5 - Alternate repo for sshpass, removed from EPEL
BACKGROUND:
I am developing a Kickstart file to install Rocky (8.5), and I have included EPEL as a repo in order to install Ansible. Yesterday, when trying to install from my Kickstart file, I ...
0
votes
1
answer
308
views
Can I change system files from custom kickstart .iso?
I have set up a Kickstart .iso installation of CentOS 7 and it installs nicely (.iso is compiled with ks.cfg file inside).
What I haven't figured out yet is if I could edit system files from within ...
0
votes
1
answer
769
views
How Do You Debug a Script in the %pre section of a kickstart file
Background: I am trying to run this script in the %pre section of a kickstart file on a VM during a 'text' install:
import os,sys,gi
gi.require_version("Gtk", "3.0")
from gi....
0
votes
1
answer
475
views
Configuring dhcp for multiple subnets
I'm fairly new to configuring dhcp. This would be for a kickstart server. My question is, can I configure the dhcpd.conf file to be able to take in servers to be kicked over two different subnets? ...
0
votes
1
answer
2k
views
PXE Boot Kickstart - how to include installation tree
I am trying to PXE boot a Rocky Linux (same as RHEL 8) installation. Unlike Fedora, there are no mirrors so url and repo options like this don't work:
url --mirrorlist=http://mirrors.fedoraproject.org/...
0
votes
2
answers
3k
views
Installation Destination (Kickstart insufficient)
I am installing RHEL using a KS file.
The installation stalls because of the Installation destination not being properly set, the message I'm getting is the following:
You have not defined a root ...
0
votes
1
answer
2k
views
How to configure anaconda kickstart EFI boot
Im trying to install my host via anaconda kickstart and im unable to get efi boot working. This is my kickstart file (Disk partitioning part):
zerombr
bootloader --location=mbr --append="net....
0
votes
1
answer
527
views
Kickstart from USB and Exclude the USB drive for Installation
During the installation my script is searching all the disks of the system.
Usually the USB is assigned with sda.
What would be the most appropriate way to prevent the USB disk as a candidate disk for ...
2
votes
1
answer
703
views
Kickstart: get sw installation list of minimal-centos8
I am trying to create a custom kickstart-file for our installation media, which will be based on a minimal centos8 installation. But to have a bit better knowledge about what is actually being ...
0
votes
1
answer
685
views
CentOS 8.3 kickstart text only install timezone problem
I have a custom text install using kickstart (ks.cfg) for CentOS 8.3. The problem I'm having is with timezone setting in ks.cfg. timezone is required in ks.cfg, so in previous version of CentOS, the ...
2
votes
1
answer
4k
views
CentOS 8 Custom ISO - Adding `ks=cdrom:/ks.cfg` Hangs the Installer
In trying to build a custom kickstart ISO for CentOS 8, I'm tripping on getting
the installer to run. The ISO is bootable now, but the boot process
hangs at where I think the installer should be ...
0
votes
1
answer
221
views
Cannot pass variable from kickstart to rpm
I have a common package that need's to be installed into different servers. The installation is done through the same kickstart template file. So the kickstart template is used to produce the ...
2
votes
1
answer
321
views
Why is liveuser home directory not present in rootfs.img?
If you unsquash the squashfs.img in a Fedora Live ISO, and then mount the rootfs.img, which contains the root file system for the live image, you will see that the /home directory is empty.
Yet when ...
0
votes
1
answer
688
views
What is the ordering of $post sections in a kickstart file
I am exploring Fedora/RHEL Kickstart files. I would like to know what is the ordering for the %post sections in a kickstart file.
If there are two %post sections like the following:
%post --nochroot
%...
0
votes
1
answer
1k
views
Kickstart not installing with @^Graphical-server-
I am trying to use kickstart script to automate RHEL installation with GUI and developer environment, however anaconda would complain group package "graphical-server-environment" is missing ...
0
votes
1
answer
2k
views
Package group names used in kickstart config on CentOS 7 cannot be found in CentOS 8
I am converting a CentOS 7 kickstart file to work with CentOS 8. In CentOS 7, the %packages section had these entries:
%packages
@^minimal
@core
kexec-tools
EDIT: I'm using cdrom as source for ...
1
vote
0
answers
165
views
Can you update a fedora/centos/redhat system via a kickstart file?
I have an existing CentOS installation. I want to know if I can update the system by booting with a kickstart file.
Even better, I would like to create some install media that would boot a system and ...
1
vote
2
answers
4k
views
CentOS8 pxeboot Error setting up software source
I have install PXE server last month using CentOS8-1-1911 release and it works great, i am able to PXE all my workstation but today when i update CentOS8-2-2004 with latest version and keep all ...
0
votes
1
answer
603
views
Is there a "partition uuid" for a logical volume?
I'm doing a kickstart installation. On the kernel boot line, the kickstart file is specified by inst.ks=hd:LABEL=<lv label>:/ks.cfg. The kernel/anaconda finds and loads this. In the kickstart ...
1
vote
1
answer
4k
views
Kickstart install, RHEL "storage configuration failed:...... not enough space in file systems for the current software selection" [closed]
I'm building a RHEL (Red Hat Enterprise Linux) OVF from ISO on VMware ESXi using packer. To summarize very quickly, basically the packer mounts the .iso to VMware, and we are able to power the newly ...
0
votes
1
answer
742
views
RHEL 7.6 maipo Kickstart installation
Update : Managed to bypass 1. docker error, currently working on the #2 "Storage Configuration failed: Unable to allocate requested partition scheme" message
Junior engineer here and at my ...
0
votes
1
answer
853
views
How to create a *minimal* install USB for Centos 8
We're migrating our product line to Centos 8 and part of that is we need a "rescue" USB for our customers to use which re-installs the OS and applications.
Previously, we'd create a USB image with ...
0
votes
1
answer
1k
views
How to set the interface name in `kickstart.cfg` file?
How to set the interface name in kickstart.cfg file?
We know if we install CentOS system in a Server, there maybe eth0, ens0, ensxxx, eno1 and so on.
I have questions,
Why there will generate ...
1
vote
0
answers
206
views
CentOS problem with mkisofs tool
I am trying to automate CentOS VM on ESXI using a kickstart file. After injecting the KS file I build the Custom iso using mkisofs tool. below is the command I used
.\mkisofs.exe -J -R -v -T -o 'D:\...
0
votes
1
answer
226
views
Can someone explain: strstr "\`cat /proc/cmdline\`" rd.live.image does?
Full line of code context:
if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then
exit 0
fi
strstr is defined as:
strstr() {
[ "${1#*$2*}" = "$1" ] && ...
1
vote
2
answers
571
views
mkisofs is not including tar.gz file in custom iso
I am customizing centos iso, i took standard CentOS-7-x86_64-DVD-1810.iso and extract it and custom folder and add my files.
Now i am recreating custom iso with below command
mkisofs -o centos-7-...
0
votes
2
answers
712
views
firewall not working as expected in kickstart
I have following line in kickstart for firewall
firewall --enabled --service=ssh,glusterfs,tftp,ntp
I am expecting tftp server should be accessible from other system, but it was only accessible from ...
1
vote
1
answer
2k
views
Can we use ftp in place of tftp in pxe boot
Tftp is used to get OS image from pxe server to client as it uses UDP for file transfer. But can we use ftp for the same. If yes then how and if no then why?
0
votes
1
answer
3k
views
Copying files from Bootable USB to local Drive in %post script of kickstart
I have created bootable USB with custom folder in it, After installation i want to copy files from USB to local directory, Following is kickstart file %post section
%post --nochroot --erroronfail --...
0
votes
1
answer
833
views
Kickstart Post Issue
I remain fuzzy on what appear to be limitations to Kickstart's execution of a post-install script.
My initial understanding was that the %post area of the kickstart file was to execute commands on ...
2
votes
1
answer
4k
views
Exclude packages in kickstart file
The Redhat kickstart documentation describes how to deselect/exclude packages in the packages section - i.e. one may put - in front of a package name to exclude it.
But it doesn't fully work in this ...
0
votes
1
answer
4k
views
How to force GPT partitions in kickstart for Oracle Linux 6
I want to configure OL6 kickstart to install a system that boots from BIOS but uses GPT partitioning instead of MBR, even for disks <2TB.
The relevant part of my kickstart file looks like this ($...
2
votes
1
answer
1k
views
How can I manage anaconda post install output visible on install console?
While running anaconda installer in unattended mode the post install steps are run in the background and nothing is displayed on screen.
If things go wrong you are likely to not be able to see what ...
0
votes
0
answers
6k
views
How to avoid modprobe error could not insert floppy with dracut-pre-udev?
I do have machines or VMs that do not have a floppy drive and I want to avoid getting the below error message while loading the the anaconda kickstart installer on CentOS/Fedora.
Currently the first ...
0
votes
2
answers
190
views
How to prevent boot logo for systems deployed using anaconda kickstart?
I am looking for a way to prevent the Linux logo from appearing at boot time for a system deployed using Anaconda kickstart.
Based on centos - Remove penguin logo at startup it seems that I need to ...
3
votes
1
answer
689
views
Kickstart netinstall ignores kickstart file hosted in LAN and proceeds with manual installation
Virtual machines are hypervised by vmware workstation.
I start my web server on vm1 - 192.168.0.31 running centos 7. I create and upload the kickstart file ks.cfg to 192.168.0.31/ks.cfg. You can look ...
2
votes
1
answer
4k
views
Centos7 How to identify Network Device name for a kickstart file
When the Rhel/Centos 7 operating systems moved forward to systemd, network device name configuration changed to predictable network device names
There is an explanation for systemd's predictable ...
1
vote
1
answer
836
views
How to get Fedora 28 text console install under KVM to not prompt about text mode vs VNC
I've been trying to get unattended linux installs (fedora 28 in this case) working under KVM for some time. I've got it mostly worked out but it still asks me if I want to use text mode or fire up VNC....