LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-10-2021, 07:28 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Question Frustrations with RHEL Kickstart, how to really get a good grasp on this


At times, it seems like a black box. Shouldn't be this hard. I often feel the official Red Hat documentation is very lacking with solid examples on how to implement correctly (See my post on .discinfo and .treeinfo question, at this point, I'm copying over the files that came with a RHEL 7.4 iso to use with my custom iso).

https://www.linuxquestions.org/quest...so-4175690127/


Can anyone offer pointers or advise on how to learn the syntax for Kickstart.

My end goal is to have a Kickstart file on an SSD drive and have it boot the RHEL installation.
 
Old 02-14-2021, 09:38 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
From what I understand, Kickstart doesn't actually "boot" anything, it just automates an installation of RHEL, Fedora, and other distributions in the Red Hat family. From this, it seems you can perform a normal install of RHEL, etc and the installer automatically creates a kickstart file. Therefore theoretically you could just install RHEL, Fedora, or whatever other RHEL family OS and grab the kickstart file generated from the installer. If you configure it how you would like your kickstart file configured when you install it normally, you'll already have the configuration you want and therefore can just copy the kickstart file straight over to wherever you need it without having to edit it later on.

If I were going to learn how to do a kickstart file, I'd look at the syntax in the kickstart file generated by the installer. From the examples I've seen, it looks fairly straightforward. There is an example at the Wikipedia page for Kickstart here.

There are also some tools you can use to help configure a kickstart file too.
 
Old 02-14-2021, 08:17 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Currently I have two sled drives, /dev/sda and /dev/sdb. I'm creating the Kickstart file on /dev/sdb and the end goal is to take the drive sled which holds /dev/sdb and take it to either a workstation or server and install RHEL from there.

I'm going to leave the /dev/sdb only in the workstation and boot from a live disk and look at how the live disk views the drives from say lsblk and try to modify the Kickstart file from there, but so far, I haven't had any success.

I'm currently using a smaller drive, 512 GB, but eventually want to get this working on a drive that is close to 2 TB in size, so this will probably impact the mkisofs commands that I'm using to create the iso.
 
Old 02-15-2021, 08:24 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I'm not sure a kickstart file would work with YaST, since openSUSE/SUSE Linux use YaST as both it's installer and it's configuration center - I'd think you'd need to look into "autoyast" for SUSE's equivalent to RHEL's Kickstart.
 
Old 02-16-2021, 07:51 AM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jsbjsb001 View Post
I'd think you'd need to look into "autoyast" for SUSE's equivalent to RHEL's Kickstart.
Not sure why to look at SuSE's autoyast. I'm already looking at documentation from RHEL, CentOS and Fedora to piece all of the pieces of the puzzle together. Don't need to go down another rabbit hole.
 
Old 02-16-2021, 08:07 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by JockVSJock View Post
Not sure why to look at SuSE's autoyast. I'm already looking at documentation from RHEL, CentOS and Fedora to piece all of the pieces of the puzzle together. Don't need to go down another rabbit hole.
My point was that as far as I know, a RHEL kickstart file will not work with YaST. Therefore if you're only interested in RHEL (and/or other members of the Red Hat family of OS's), then you obviously don't need to worry about autoyast, or indeed YaST at all.

Like I said before, the easiest way to find out what syntax you need is to have a look at an existing kickstart file. Again, that's how I would approach it, but please yourself, whatever, do what you want.
 
  


Reply

Tags
kickstart, rhel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Technology's Reach and Security's Grasp LXer Syndicated Linux News 0 08-28-2009 12:42 PM
LXer: Microsoft tries evading new GPL grasp LXer Syndicated Linux News 0 07-07-2007 06:01 AM
Slackware 10.1 - Still trying to grasp networking fell Linux - Newbie 10 05-11-2005 03:55 PM
Windows frustrations and Linux praise (venting my frustrations) Shaun32 General 6 03-04-2005 12:07 PM
What is a really good way to Learn Linux? What about a Really Good Linux magazine? Howerton Linux - Newbie 9 09-02-2004 04:59 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration