Skip to content

Instantly share code, notes, and snippets.

@abrahamrhoffman
Last active March 11, 2022 22:39
Show Gist options
  • Select an option

  • Save abrahamrhoffman/6dae37d7bb533ae50ccb to your computer and use it in GitHub Desktop.

Select an option

Save abrahamrhoffman/6dae37d7bb533ae50ccb to your computer and use it in GitHub Desktop.
CentOS 7 Kickstart File & How to build an (auto install) ISO

CentOS 7 Kickstart File - HOWTO Build ISO

There is so much documentation online from RedHat and CentOS about this topic - it's sad that I am writing this. But the real state of documentation on this topic (CentOS 7 + KS + ISO = Bootable DVD) is almost non-existent.

I found this: http://smorgasbork.com/component/content/article/35-linux/151-building-a-custom-centos-7-kickstart-disc-part-1

Which I greatly appreciate and +1, but the documentation is half-baked and there are numerous errors.

Finally... FINALLY! After four days of banging my head, I got this to work. Hopefully someone else will be able to do this in a few hours, instead of blowing their weekend like me. :(

GOAL

  • CentOS 7 Minimal Installation + Kickstart + ISO = DVD or USB for easy installs.

What you need

  • 2 Hours (If you're a Ninja)
  • CentOS 7 VM installed and updated with the version that you want to clone (Minimal install for Minimal ISO, Everything for Everything ISO, etc.)
  • Deep Breaths / Fine Malted Beverage


**BEGIN**
  1. Download your ISO
  2. Install the ISO to a VM with the options you want
  3. Reboot and re-mount the ISO
  4. Make the following directories:
 ~/kickstart_build
    +-- isolinux
    | +-- images
    | +-- ks
    | +-- LiveOS
    | +-- Packages
    +-- utils
@rohmdk
Copy link

rohmdk commented Apr 8, 2015

not yet completed??

Copy link

ghost commented May 14, 2015

This guide doesn't look finished.

@darrynza
Copy link

darrynza commented Feb 8, 2016

ahhh the irony... Funny enough I was able to do this in roughly 3 hours +- (for tweaking etc) with the link you supplied and said that " the documentation is half-baked and there are numerous errors. " the documentation is actually pretty spot-on with the exception of the perl script which I left out of my implementation and it worked 100%, unless the Doc has been updated since you attempted to use it in which case I apologize :)

@westwin
Copy link

westwin commented Mar 3, 2016

I'm new to iso. I'm wondering is there a way that:

  1. install a Minimal CentOS 7
  2. install my own rpms and do whatever customization
  3. based on the contents of this server, create a ISO

@citrocity
Copy link

Looks like you need to blow another weekend.. this isn't complete

@naveenmh
Copy link

naveenmh commented Dec 6, 2016

@HHawk
Copy link

HHawk commented May 17, 2019

You advertise yourself as "NINJA", however you look more like someone who didn't have som #### for weeks, because this is clearly not finished. Better to remove it to make you look more "GANGSTER"...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment