Questions tagged [kickstart]

The kickstart file is a file that is read during the installation of RHEL/CentOS software that automates the installation process.

Filter by
Sorted by
Tagged with
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?
Ronald Robinson - NOAA Federal's user avatar
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 ...
Dassy Areg's user avatar
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 ...
Dave's user avatar
  • 103
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 ...
Arikael's user avatar
  • 175
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.
Udit Tiwari's user avatar
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 ...
Matthaeus Gaius Caesar's user avatar
-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://...
user658182's user avatar
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 ...
nepher ki3den's user avatar
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 ...
nepher ki3den's user avatar
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,...
rajeev's user avatar
  • 245
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-...
Garnet's user avatar
  • 388
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 ...
Garnet's user avatar
  • 388
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 ...
afosbenner's user avatar
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 ...
kartzs96's user avatar
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....
Garnet's user avatar
  • 388
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? ...
new guy's user avatar
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/...
Bryon's user avatar
  • 299
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 ...
Danilo Patrucco's user avatar
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....
Nico's user avatar
  • 123
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 ...
giorgionasis's user avatar
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 ...
Easyrider's user avatar
  • 121
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 ...
GoinOff's user avatar
  • 589
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 ...
dafydd's user avatar
  • 1,458
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 ...
Aris Koutsoukis's user avatar
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 ...
ng.newbie's user avatar
  • 1,155
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 %...
ng.newbie's user avatar
  • 1,155
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 ...
khayweee's user avatar
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 ...
linuxfan's user avatar
  • 305
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 ...
shrewmouse's user avatar
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 ...
Satish's user avatar
  • 1,632
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 ...
daytooner's user avatar
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 ...
ennth's user avatar
  • 133
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 ...
ennth's user avatar
  • 133
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 ...
Danny's user avatar
  • 553
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 ...
244boy's user avatar
  • 635
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:\...
Ashish Raghuvanshi's user avatar
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" ] && ...
holeInAce's user avatar
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-...
ImranRazaKhan's user avatar
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 ...
ImranRazaKhan's user avatar
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?
Raman Tiwari's user avatar
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 --...
ImranRazaKhan's user avatar
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 ...
8charz's user avatar
  • 53
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 ...
maxschlepzig's user avatar
  • 56.9k
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 ($...
Neal Eastwood's user avatar
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 ...
sorin's user avatar
  • 1,239
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 ...
sorin's user avatar
  • 1,239
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 ...
sorin's user avatar
  • 1,239
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 ...
PowerBoss Nautilus's user avatar
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 ...
e73kiel's user avatar
  • 33
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....
scooterx3's user avatar