Skip to main content

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
-2 votes
0 answers
25 views

Having A Kickstart File prompt for Network Information in RHEL 9

How do I go about having RHEL ask you for the network and hostname information now that bootproto=query and asknetwork have been sunset?
Kaibien's user avatar
-1 votes
1 answer
48 views

Kickstart File Not Used During RHEL 6.9 Installation on UEFI System

Question: I followed the Red Hat documentation to create a Kickstart (ks) file located in the root directory of the installation image. The documentation I referred to is: Red Hat Installation Guide. ...
Tony's user avatar
  • 3
0 votes
0 answers
21 views

Where does the "cdrom" kickstart option search for packages?

I'm trying to create a custom ISO for various RH based distros, Oracle Linux and possibly others. I'd like my ISO to be usable offline, so I want to include all my packages in the ISO. My kickstart ...
Avatar33's user avatar
  • 101
0 votes
0 answers
35 views

Automate Rocky Linux 9 installation through iLo

We have an HP iLo server and we want to automate the installation process of Rocky Linux 9 OS on it. Originally, we started using Ansible ran from a host machine, however we ran into issues when ...
eur's user avatar
  • 1
0 votes
0 answers
19 views

Redhat 8 enabling screen sharing during kickstart

During the kickstart install I would like to enable screen sharing so that there is no manual action required. That includes setting the following options: Enabling screen sharing Allow connections ...
Bryan Abrams's user avatar
3 votes
2 answers
274 views

Setup RAID-1 in Kickstart file with 1 Disk

Is it possible to setup RAID-1 on a system with only 1 disk and later add the second one? I read the instructions from Red Hat and there is an option to add --spare= I tried this with the code below ...
giorgionasis's user avatar
0 votes
1 answer
94 views

How do I create a kickstart image file from a running server

We have two identical production servers that are both running RHEL 7.6, with custom applications, on two isolated networks. We are wanting to add eight more of these servers to eight more isolated ...
PCnetMD's user avatar
  • 19
0 votes
0 answers
11 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
1 vote
1 answer
601 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
  • 113
-1 votes
1 answer
1k 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
141 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
1 vote
1 answer
454 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
204 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
1k 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
  • 398
0 votes
1 answer
225 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
  • 398
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
376 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
1k 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
  • 398
0 votes
1 answer
656 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
3k 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
  • 349
0 votes
2 answers
5k 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
691 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
991 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
880 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,468
0 votes
1 answer
257 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
367 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,235
0 votes
1 answer
775 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,235
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
3k 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
191 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
5k 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,652
0 votes
1 answer
711 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
5k 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 ...
XxAemaethxX's user avatar
0 votes
1 answer
885 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 ...
XxAemaethxX's user avatar
0 votes
1 answer
909 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
  • 613
0 votes
1 answer
2k 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
  • 655
1 vote
0 answers
235 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
244 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
662 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
739 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
4k 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
962 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
  • 57.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,259
0 votes
0 answers
7k 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,259
0 votes
2 answers
198 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,259