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
1 vote
0 answers
17 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,...
user avatar
  • 203
0 votes
0 answers
9 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-...
user avatar
  • 309
0 votes
1 answer
29 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 ...
user avatar
  • 309
0 votes
2 answers
740 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 ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
0 votes
0 answers
49 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....
user avatar
  • 309
0 votes
1 answer
103 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? ...
user avatar
0 votes
1 answer
400 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/...
user avatar
  • 239
0 votes
1 answer
434 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 ...
user avatar
0 votes
0 answers
118 views

Where to put kickstarter config for RHEL flash install

I can't figure out where to put a Redhat Enterprise linux (currently using 7.9 but will do 8 next) Kickstarter file on a flash drive install. Flash drive is the full RHEL DVD installed directly to the ...
user avatar
0 votes
1 answer
425 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....
user avatar
  • 23
0 votes
1 answer
121 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 ...
user avatar
1 vote
0 answers
64 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 ...
user avatar
  • 111
0 votes
1 answer
230 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 ...
user avatar
  • 589
2 votes
1 answer
1k 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 ...
user avatar
  • 1,386
0 votes
1 answer
87 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 ...
user avatar
2 votes
1 answer
172 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 ...
user avatar
  • 893
0 votes
1 answer
254 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 %...
user avatar
  • 893
0 votes
1 answer
264 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 295
1 vote
0 answers
84 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 ...
user avatar
0 votes
2 answers
3k 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 ...
user avatar
  • 1,530
0 votes
1 answer
105 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 133
0 votes
1 answer
315 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 ...
user avatar
  • 133
0 votes
1 answer
699 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 ...
user avatar
  • 387
0 votes
1 answer
698 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 ...
user avatar
  • 613
1 vote
0 answers
96 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:\...
user avatar
0 votes
1 answer
165 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" ] && ...
user avatar
1 vote
2 answers
276 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-...
user avatar
0 votes
2 answers
623 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 ...
user avatar
1 vote
1 answer
1k 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?
user avatar
0 votes
1 answer
2k 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 --...
user avatar
0 votes
1 answer
513 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 ...
user avatar
  • 53
1 vote
1 answer
2k 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 ...
user avatar
  • 53.2k
0 votes
1 answer
3k 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 ($...
user avatar
2 votes
1 answer
742 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 ...
user avatar
  • 1,119
0 votes
0 answers
5k 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 ...
user avatar
  • 1,119
0 votes
2 answers
145 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 ...
user avatar
  • 1,119
3 votes
1 answer
626 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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
  • 33
1 vote
1 answer
753 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....
user avatar
2 votes
0 answers
834 views

CentOS Kickstart File

I am trying to install CentOS in VirtualBox via kickstart files. I have downloaded the CentOS Minimal installation (1708) and created a virtual machine with it. I am using the anaconda-ks.cfg file as ...
user avatar
0 votes
0 answers
58 views

Linux kickstart select default image

I have following kickstart /var/lib/tftpboot/pxelinux.cfg file with following content, I am looking for option where my kickstart default boot from centos6-64 image is no human interaction happened, ...
user avatar
  • 1,530
0 votes
0 answers
477 views

Is there an option to log console output from package installation executed by kickstart?

I've built an ISO on top of CentOS 6 minimal that bundles some additional packages. Generally it works great, but some recent change I've made has broken it a little: the SELinux module I'm allegedly ...
user avatar
0 votes
2 answers
8k views

Kickstart does not add repos

I have a kickstart file I am trying to use for CentOS 7.4 installations. It works well, but it does not add the requested repos. I've run through this a few times and I'm sure it basically skips over ...
user avatar
  • 4,459
5 votes
5 answers
7k views

Red Hat 7.4: How to inject kickstart file into USB media for UEFI-only system?

I am trying to build an installation image (to be transferred to USB media) for Red Hat Linux 7.4 with a custom kickstart file, and the corresponding ks= argument added to grub, but and can't figure ...
user avatar
0 votes
2 answers
499 views

Best practices to clone/create an image for the existing linux system [closed]

I recently had a CentOS6.9 system and I installed quite a lot of applications (from yum and also source code like specific python version). Now I need to do the same for multiple devices. Is there any ...
user avatar
  • 31
2 votes
2 answers
5k views

How do I calculate Linux physical volume and volume group metadata overhead?

I am trying to install a CentOS 7.4 system using a kickstart file and have received the following error: 'new lv is too large to fit in free space' There is an additional message that 752.85MiB is ...
user avatar
1 vote
0 answers
492 views

Unable to Login to Custom CentOS created using Kickstart

The following is my kickstart configuration file: #version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # Run the Setup Agent on ...
user avatar