Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-03-2005, 02:08 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Invoke kickstart installation from Linux shell

I've setup plumbing for doing Kickstart deployments with RH9, RH-ES3 and RH-ES4 from an HTTP server using a bootable CD. For each machine I insert the CD, press reset, remove the CD and 10 minutes later I'm looking at a freshly installed RedHat platform. Everything works great.

However each new round of testing must be done on a freshly installed OS so I would like to fully automate the (re)deployment process rather than having to manually visit every machine in the lab with each new build. Once a machine has been initially deployed with Linux, I would like to be able to invoke a fresh redeployment via a telnet/ssh session.

FYI, I've been told that pxeboot and/or etherboot are not options which I can pursue. Even if allowed, these solutions seem very hardware-sensitive and may potentially pose significant maintenance challenges.

I can imagine several other ways to do this, but wanted to troll for better suggestions.

1. Enable the CD as the first bootable device, reboot and at the end of the deployment disable the CD as the first bootable device. I've found no generic way to enable/disable the CD as the boot device. All of the mechanisms I've found so far only work in DOS, are vendor/model specific and usually don't work off-the-shelf with brand new hardware. Is there a generic mechanism for doing this which works well from Linux?

2. Setup a hidden DOS partition so I can invoke the Kickstart installer via Loadlin from a batch file. Then I can unhide or hide this partition as needed. I am certain that I can do this, but currently consider this tactic to be a last resort. I would rather not have to involve DOS and a FAT partition if possible.

3. Invoke the kickstart installer directly from a Linux shell. I've not found a way to do this, but this is what I hope to be able to accomplish.

It seems reasonable to believe that if I can accomplish #2 using Loadlin from DOS, then I should be able to accomplish #3 from a Linux shell. But I've been searching and experimenting for some time with no success...Is this possible? Are there other mechanisms available which I should consider for accomplishing this goal?

Old 10-25-2005, 07:47 AM   #2
LQ Newbie
Registered: Sep 2005
Posts: 7

Rep: Reputation: 0
Even today, many machines still boot from floppy before checking HDDs. Have you tried creating a kickstart server and booting your systems from floppy? Not only does this solve your problem, but it also assists your re-deployment by centralizing the distribution.
Downsides include high network usage and the requiremnt of having a server set up specifically for the install files, but, you're not wasting near as many man hours, and a deployment can usually be accomplished much faster.
Old 10-26-2005, 11:14 AM   #3
LQ Newbie
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
The main problem with this approach is that somebody still has to remove the floppy after the deployment or the system will simply redeploy itself over and over and over.

Along the lines you suggested, the first tactic that I mentioned was to be able to programatically diddle the boot order bits. I've already crafted a bootable CD (which is much faster than a floppy and can hold lots of extra tools for speeding and simplifying post-install logic) which does the full-blown RedHat deployment--simply insert CD, press the reset button, wait 8 minutes while nearly everything is installed via kickstart, then remove the CD and hit the reset button again. But this still requires QA folks to drive to the lab everytime that a PM hits the build button. If we can close the loop on this process, then QA staff would not need to arrive until test results are available for triage and debugging.

Using your suggestion, if I could programmatically diddle the boot order then custom logic could determine when to enable the CD and thus close the automation loop. BTW, I've looked at the extensible firmware interface (EFI) module for Linux and it holds great promise along these lines. However it needs the efivars module to be compiled into the kernel and that module is not included in shipping RedHat distros. Unfortunately, I'm required to only test on 'shipping' kernels, not custom built kernels, so until the efivars module is shipping in RedHat distros I'm unable to utilize it.

Thanks for the suggestion,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kickstart Installation hansi umayangan Red Hat 0 04-08-2005 12:20 AM
Mirroring via Kickstart installation scilec Linux - General 1 12-16-2004 06:02 PM
Redhat Kickstart Installation Colossalboom Linux - Software 0 08-21-2003 07:56 AM
kickstart installation new2linux Linux - Software 2 04-15-2003 06:08 PM
How to invoke FTP from Korn shell WindozBytes Programming 6 09-07-2002 08:53 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:42 PM.

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