Questions tagged [kickstart]

Kickstart is the method of automated installation of Linux Systems based on Red Hat or their clones (CentOS, Scientific Linux, Unbreakable Linux, ...)

296 questions
2
votes
1 answer

Creating a custom kickstart file for cobbler and fedora installation

I am trying to write a custom kickstart file for use with cobbler in automating installations across the network. I am having some issues understanding the kickstart file and wondered if anyone knows of a resource that clearly explains the options…
aHunter
  • 314
  • 1
  • 6
  • 21
2
votes
2 answers

kickstart ks.cfg: Where should `url --url` point?

I have a kickstart file (ks.cfg) on a floppy (Old style). I am trying to install CentOS 5.4. The top of my ks.cfg says this: install # Install from local cdrom or over the network. #cdrom url --url http://kickstart.example.org/pub/centos/5.4/ On…
Stefan Lasiewski
  • 23,667
  • 41
  • 132
  • 186
2
votes
4 answers

Possible to run system-config-network during %post kickstart?

I'm currently trying to figure out a smart way to set IP, hostname, gateway and DNS settings during a kickstart (with user input during the kickstart). Doing this with firstboot after the install is not acceptable, so this must be done during…
tore-
  • 1,396
  • 2
  • 10
  • 18
2
votes
2 answers

Problems with kickstart script, partition info crashes deployment

Currently testing cobbler, but have problem with the kickstart script when the partition information is loaded. Here is my ks: http://pastebin.ca/1824343 I can't figure out what is the problem with the partsection at all. Without it, it works. I've…
tore-
  • 1,396
  • 2
  • 10
  • 18
2
votes
0 answers

Module RPMs makes kickstart installation of RHEL based distributions unusable

The title of the post has it all. The first steps to migrate from CentOS 7 to Rocky Linux 8 fail (in my eyes) because of module RPMs. If something is installed the traditional way via dnf, dnf notices if a dependency is only available as a modular…
Volker Raschek
  • 347
  • 1
  • 5
  • 17
2
votes
0 answers

completely media-less kexec install of a rhel-based distro?

I'd like to be able to install a small redhat server from kexec without media being present on the system during the installation (no hdd, removable media, or network). This seems feasible because I can generate and kexec boot an initramfs of the…
2
votes
1 answer

SSH public key authentication - can one public key be used for multiple users?

I am wanting to deploy a RHEL5 server using Kickstarts and for security I only want to allow remote clients to ssh to the server as the user 'Developer' (I have already configured the sshd config to disable root access). I have a few questions about…
Luke Bibby
  • 137
  • 3
  • 6
1
vote
1 answer

Centos7 PXE Network Install with Kickstart Script - How to copy across folders / files from network during install?

I have a PXE server for network installations (configured similar to, e.g. https://www.linuxtechi.com/configure-pxe-installation-server-centos-7/) and am using a Kickstart script to automatically implement many settings. The CentOS image is stored…
SLater01
  • 113
  • 3
1
vote
2 answers

PXE kickstart install of CentOS 8 wants files that don't exist on DVD

I'm trying to use the CentOS-8-x86_64-1905-dvd1.iso as the http source for my PXE/kickstart install. I'm struggling to understand why the installer is looking of squashfs.img and a directory named LiveOS, neither of which exist in the above iso…
mr.zog
  • 923
  • 3
  • 20
  • 39
1
vote
1 answer

Where to store configuration files available in kickstart into custom Centos ISO

Context Centos 7 Kickstart Issue According to RH documentation : --nochroot: Allows you to specify commands that you would like to run outside of the chroot environment. The following example copies the file /etc/resolv.conf to the file…
Alrick
  • 143
  • 6
1
vote
3 answers

Kickstart CentOS 7 with pre-defined static IP and hostname (%pre) and used in KS, possible?

I don't know if this is possible, but going to ask anyways. I am trying to Kickstart newer servers of us with CentOS 7. So far I got most working, however for some reason if I use variables in the %pre section of my Kickstart script, then it does…
HudsonHawk
  • 103
  • 2
  • 14
1
vote
1 answer

RHEL 7.6 - Bootable USB created with kickstart only works on the system it was created on

[Edit] I got it to work using this thread: https://access.redhat.com/discussions/1422213 The actual script was simlar to this: mkdir "/var/tmp/RHEL-7.6 Server.x86_64" # cd "/run/media/jradtke/RHEL-7.6 Server.x86_64" # cp -rPf * "/var/tmp/RHEL-7.6…
Jack BeNimble
  • 194
  • 11
1
vote
1 answer

Using a kickstart file with liveinst

I have a kickstart file that I generated while doing a manual, graphical install. I'm trying to use this kickstart file while booted to CentOS-7-x86_64-LiveGNOME-1810.iso and running /usr/bin/liveinst -C --kickstart=/root/mykickstart.ks but I'm…
mr.zog
  • 923
  • 3
  • 20
  • 39
1
vote
2 answers

How do I resize a logical volume to the size of the filesystem within it?

Target system is CentOS 6.x but resizing operations will be done in %pre section of CentOS 7.6 kickstart. I have already run resize2fs -M /dev/mapper/centos-home successfully. If I mount the volume, df says it's 100% full. This is good. Now I need…
mr.zog
  • 923
  • 3
  • 20
  • 39
1
vote
1 answer

Is it possible to check the available space of a Linux logical volume without mounting it?

I have a project that requires me to shrink the root and home volumes on an existing CentOS 6 install to make room for a CentOS 7 install on a customer's bare metal host. Yes, I know what a bad idea this is. We ought to be shipping our customer a…
mr.zog
  • 923
  • 3
  • 20
  • 39