30.05.2020
75
Active4 years, 4 months ago

How would you create a CentOS 7 USB installer with a data partition to store kickstart files?

We will be getting some new servers shortly and overall I’m expecting to do over 30 servers installs. What I’d really like to do is have a usb stick that I boot off of and then use kickstart to do the install.

With CentOS 7, the CentOS wiki says to use dd to copy the ISO to the usb drive e.g.

Kickstart installation from USB — Kickstart location. First with the CentOS, second with kickstart. After save a kickstart on second pendrive I check its UUID.

Travel And Tourism Sample Html Project Codes and Scripts Downloads Free. A small project that iterates through rspec files and dumps their html output into a browseable rdoc like format. HTML Tidy Library helps you to make corrections on your html project syntax. Project

  • ISO2USB utility creates bootable USB drive from CentOS/RedHat 5.x/6.x installation disk or corresponding ISO image. Created USB drive may be used to perform installation on machines that lack optical drive. Custom installation disks (with kickstart configuration files) are fully supported.
  • Static IP configs in the kickstart file Nothing (pertinent to Centos) on the drive except the kickstart file. Linux ks=hd:sdb1:/build.cfg loads usb storage driver, initially does NOT find the file and prompts for the location of the kickstart file. I hit [OK] and the install proceeds normally.

That works great, but the ISO is just over 6.5GB, I should have left over space.

Looking at fdisk, I would have guessed I could just add a partition starting at 13793280, but I’ve tried it three times and every time creating the extra partition causes the installer to error out when before creating a third partition it worked on the same system.

If I have to setup a web server to serve the kickstart files, I could probably do that but I’m not eager to go through the process that would require. I’m not sure if I could do that in our secondary site or what resistance there may be for that.

I also need to develop a disaster recovery strategy, so if I could say buy new servers, follow procedure X to create a USB stick, do the install by booting off the USB stick, then I could kill two birds with one stone.

Centos Kickstart Installation From Usb

I’m semi-resigned to have to edit the boot parameters manually for now to add the ks= parameter at least initially. Since you can use UUID, it should be possible to have a single command per type of server and I can easily provide that to the people who will rack the servers. What I’d really like to avoid though is having two USB thumb drives (one for installation media and the other for kickstart file).

Edit: I should have said that the validation the installer does originally passes, but after adding and formatting the partition it fails. I don't think that's significant as I my assumption is the partition table affects that checksum, but its possible that the partitions overlap and creating the file system is corrupting data.

Edit 2: Just in case I'm doing something wrong when creating the third partition, I thought I'd add the output of fdisk after adding the partition.

W3t Tr3y

Centos Kickstart Installation From Usb Cable

W3t Tr3yW3t Tr3y

1 Answer

I found a great guide on how to install CentOS 7 using a USB drive and kickstart here:

I suspect that modifying the partition table of a ISO image is not easily feasible.

Centos Kickstart Installation From Usb Driver

Carlo.

Centos Kickstart Installation

karlaciokarlacio

Boot Centos From Usb

Not the answer you're looking for? Browse other questions tagged usbcentoskickstart or ask your own question.

sipoc.netlify.app – 2018