LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2010, 04:52 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
Create Boot CD to run Kickstart


I've got a system in place to PXE boot new machines and automatically configuring them via anaconda. It works great.

However, I have a few older machines with no PXE capability that I would like to use a Flash drive or CD-ROM to boot and run the same anaconda config.

I'm running into an issue finding useful documentation on how to create this CD. I've tried mkisofs but it doesn't really give any details on the boot catalog or whatever is needed to make a CD bootable.

Anyone know a nice HOWTO on doing this?
 
Old 04-21-2010, 09:33 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Just grab /images/boot.iso from the media... usually only ~10MB
 
Old 04-22-2010, 08:29 AM   #3
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
How do I put my custom ks.cfg in that iso while maintaining it's ability to boot?
 
Old 04-22-2010, 09:07 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Make your kickstart file available via http then boot with 'linux ks=http://... '

I can give you the commands to generate a cd image but it's a less flexible method IMHO

cheers
 
Old 04-23-2010, 02:37 PM   #5
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
I don't want to have to type anything - I will be giving the CDs to data centre monkies to put in machines and turn them on, so it needs to be as automated as possible.
 
Old 04-23-2010, 02:54 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by fantasygoat View Post
I don't want to have to type anything - I will be giving the CDs to data centre monkies to put in machines and turn them on, so it needs to be as automated as possible.
http://www.redhat.com/docs/manuals/e...s-make-cd.html


Keep in mind before making the file.iso image file, copy the ks.cfg kickstart file to the isolinux/ directory.

Basically something like this...

Code:
root@host# cp -r /media/rhel5/isolinux /tmp/
root@host# cd /tmp
root@host# cp /path/to/ks.cfg isolinux/
root@host# chmod u+w isolinux/*
root@host# mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/
Then burn file.iso on a cd

-C

Last edited by custangro; 04-23-2010 at 02:58 PM.
 
Old 04-23-2010, 03:38 PM   #7
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
That made a boot CD, but it didn't load my ks.cfg file. It just booted to the normal CentOS boot screen.
 
Old 04-23-2010, 04:12 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by fantasygoat View Post
That made a boot CD, but it didn't load my ks.cfg file. It just booted to the normal CentOS boot screen.
I think you need to specify it on the boot screen

Code:
boot: linux ks=cdrom:/ks.cfg
 
Old 04-23-2010, 04:13 PM   #9
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
That requires typing. These guys can barely find a power button.

How do I specify that in a file or something so the CD will boot with that parameter set?
 
Old 04-23-2010, 05:10 PM   #10
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
Aha! Figured it out.

The file isolinux.cfg contains the boot parameters. I replaced those and re-burned the CD and it's working now.

Thanks for the tip!
 
  


Reply



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
create ISO with additional files and kickstart accarlson Fedora 6 02-09-2011 05:53 AM
How to create RHEL 5.3 kickstart installation consolidating 4 DVDs? ranjanm1 Linux - General 1 12-08-2009 02:40 AM
how to create a ks.cfg file for kickstart williamcarey Linux - Enterprise 3 09-24-2009 11:13 PM
kickstart + first run once script.. bbmak Linux - Newbie 1 12-23-2007 05:49 PM
How to create custom install CD (updated rpms, kickstart, etc.)? Arodef Linux - Software 6 12-17-2007 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:14 PM.

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