LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-03-2016, 11:56 AM   #1
galron010
LQ Newbie
 
Registered: Sep 2015
Posts: 7

Rep: Reputation: Disabled
Red Hat Boot ISO: Interactive Menu to pass kernel parameters


Hello Linux World,

I have a situation in which I need to be able to boot blank servers from a Linux ISO (I will be making RedHat6 and RedHat7 versions of this ISO), and pass different kernel parameters (IP, Subnet, KS boot source, nameserver, that kind of stuff) to the system. The issue is that these kernel parameters will change on every machine (this is to accommodate a semi-automated deployment of RedHat servers using kickstart (I realize there are FAR better ways of doing this, but with the restrictions placed on me by the business users and overall policy of the company, I cannot use easier methods, nor can I purchase the software I would like to use - I'm sure many of you have been there).

Basically, I want a way to customize the boot menu of an ISO (again, I will make RHEL6 and RHEL7 versions of this ISO) so that I can assign the following parameters to the machine, allowing it to boot a kickstart file on a remote server:
  • IP Address
  • Subnet Mask
  • Default Gateway
  • Boot Interface (i.e. eth0)
  • DNS server (nameserver)
  • Kickstart Profile (this would preferably be a drop-down list?)

Ideally, you would be prompted with a single screen that contained all these fields, set all your parameters, and then the system would continue to boot off the ISO and pass these variables into the kernel parameter string. I realize this may not at all be do-able through just the boot menu, but if anyone has any hints/tips/tricks/guides/ideas as to how I can pass these parameters interactively using a RHEL6 or RHEL7 boot iso, please feel free to offer your suggestions. Anything will help.

Thanks.
 
Old 05-03-2016, 12:15 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by galron010 View Post
Hello Linux World,

I have a situation in which I need to be able to boot blank servers from a Linux ISO (I will be making RedHat6 and RedHat7 versions of this ISO), and pass different kernel parameters (IP, Subnet, KS boot source, nameserver, that kind of stuff) to the system. The issue is that these kernel parameters will change on every machine (this is to accommodate a semi-automated deployment of RedHat servers using kickstart (I realize there are FAR better ways of doing this, but with the restrictions placed on me by the business users and overall policy of the company, I cannot use easier methods, nor can I purchase the software I would like to use - I'm sure many of you have been there).

Basically, I want a way to customize the boot menu of an ISO (again, I will make RHEL6 and RHEL7 versions of this ISO) so that I can assign the following parameters to the machine, allowing it to boot a kickstart file on a remote server:
  • IP Address
  • Subnet Mask
  • Default Gateway
  • Boot Interface (i.e. eth0)
  • DNS server (nameserver)
  • Kickstart Profile (this would preferably be a drop-down list?)

Ideally, you would be prompted with a single screen that contained all these fields, set all your parameters, and then the system would continue to boot off the ISO and pass these variables into the kernel parameter string. I realize this may not at all be do-able through just the boot menu, but if anyone has any hints/tips/tricks/guides/ideas as to how I can pass these parameters interactively using a RHEL6 or RHEL7 boot iso, please feel free to offer your suggestions. Anything will help.
Similar to an earlier question:
http://www.linuxquestions.org/questi...le-4175573673/

And have you checked the Red Hat knowledegbase???
https://access.redhat.com/documentat...-the-boot-menu

Since you're using RHEL 6 and 7, Red Hat support can help you with such things...these are supported features, and (since you're PAYING FOR RHEL, right???), you can get assistance with. Either the isolinux or grub2 bootloaders (depending on BIOS or UEFI) can have customized menus, but I doubt seriously you're going to be able to shove things like addresses and interfaces down the pipe with them. That's what kickstart is for...setting the DNS server, default gateway, etc., are outside the scope of things.

A *FAR* easier way would be to have such things un-configured, and have a custom script inserted into your ISO image, which you could run AFTER the server is up. That will let you configure things there, while letting you just use DHCP and kickstart to build out your servers.
 
1 members found this post helpful.
Old 05-03-2016, 12:20 PM   #3
galron010
LQ Newbie
 
Registered: Sep 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you for the links. Yes we are paying for RHEL, but I (as a preference) tend to turn to the community first.

Also, the DHCP solution would be wonderful if we were able to place DHCP into our datacenters. That is not currently permitted.
 
Old 05-03-2016, 01:26 PM   #4
galron010
LQ Newbie
 
Registered: Sep 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
To clarify, I guess I was looking for a simplified overlay. I already know how to pass IP information to the kernal to get it to boot from kickstart, but I was hoping to be able to create a custom menu interface/script that allowed other admins an easier way to change those parameters.
 
Old 05-03-2016, 01:51 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by galron010 View Post
Thank you for the links. Yes we are paying for RHEL, but I (as a preference) tend to turn to the community first.

Also, the DHCP solution would be wonderful if we were able to place DHCP into our datacenters. That is not currently permitted.
And it doesn't HAVE to be....a helper address on the VLAN where the server is, will direct it to a DHCP server. But even THAT is not needed. As stated, the server can be configured 'blank'...no network, no hostname, NOTHING....and the custom script you put in the ISO will take the parameters you enter, configure the server as needed, and reboot it. It will then come up how you like it.
 
Old 05-06-2016, 09:30 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Moved: This thread is more suitable in <RedHat> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
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
How to pass kernel parameters. balakasaiah Linux - Kernel 8 01-13-2015 04:54 AM
[SOLVED] disabling interactive boot in Linux/Red Hat/ CentOS unix1adm Linux - General 4 02-12-2010 01:00 PM
Adding Red Hat to Boot Menu After Installation deesto Red Hat 19 05-30-2005 09:36 AM
How to pass on boot parameters Slack 10.1 tdking19 Slackware 3 03-21-2005 10:41 AM
Can not boot from red hat cd w/ iso image severino42 Linux - Newbie 3 02-27-2005 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:26 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