LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 02-09-2011, 03:32 AM   #1
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Rep: Reputation: 0
Kickstart redhat installation from a single dvd.


Hi all,

i learnt that there is a way where we can automate the installation of redhat using a kickstart script. But everywhere they talk about doing that from bootable floppy image.

i have a single dvd of redhat (RHEL5). Can any one tell how can i kickstart the installation using the kickstart script i,e. where do i place the ks.cfg file on the disk and what command to be given at boot prompt. (kickstart from dvdrom and not from any network).

pls suggest if there are any changes to be done for the above mentioned job.

thanks.
UDAY.

Last edited by udaypratapyati; 02-09-2011 at 03:34 AM.
 
Old 02-09-2011, 03:34 AM   #2
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
if someone can provide me with a kickstart script (ks.cfg)that will be of great help for me.

thanks.
UDAY
 
Old 02-09-2011, 03:57 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

If you want to include the kickstart file to your DVD, you'll first have to the contents of the DVD (beware of hidden files) to another directory, make your changes, rebuild the image with mkisofs or something like that and then burn that image to DVD. From that point on you'll have a bootable DVD with kickstart. You'll also have to change your isolinux.cfg to point to the kickstart file.

You can find all the information you need at the following site:

Kickstart Installation RedHat

Kind regards,

Eric
 
Old 02-09-2011, 04:02 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
You can use the net install iso image to bootstrap a kickstart installation. The way that works for me is to put the kickstart file on an internal http server accessible by the machine that is being setup.

The official documentation is very good and thorough:

http://www.redhat.com/magazine/024oc...res/kickstart/
http://docs.redhat.com/docs/en-US/Re...ickstart2.html
 
Old 02-09-2011, 04:08 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi Phil,

That does work also but the OP specifically mentioned:
Quote:
(kickstart from dvdrom and not from any network).
Kind regards,

Eric
 
1 members found this post helpful.
Old 02-09-2011, 04:20 AM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Oops, my bad.
 
Old 02-09-2011, 06:16 AM   #7
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by EricTRA View Post
Hi Phil,

That does work also but the OP specifically mentioned:


Kind regards,

Eric
Hi Eric,

this worked for me thanx...

One more question....
How can i link a shell script such that it executes once the installation completes?

Thanks in advance.
Uday.

Last edited by udaypratapyati; 02-09-2011 at 06:17 AM.
 
Old 02-09-2011, 08:38 AM   #8
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Basically you include your script in your DVD (in a directory extra for example) and upon installation you copy the contents of that directory to your harddisk after installation. Then you just call it from your kickstart script. I've sent you one of my kickstart files so you can have a look at it.

Kind regards,

Eric
 
Old 02-11-2011, 03:33 AM   #9
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hello,

Basically you include your script in your DVD (in a directory extra for example) and upon installation you copy the contents of that directory to your harddisk after installation. Then you just call it from your kickstart script. I've sent you one of my kickstart files so you can have a look at it.

Kind regards,

Eric

Sorry i am new to this... couldn't get what i wanted from the script. If you don't mind can u please explain how can copy files from the cdrom to the harddisk and how do i call the script that is included in the "Extra" dir.

this is what i tried in the post section.... (Note: i have not defined any pre section)

Quote:
%post --nochroot
(
cd /media/RHEL\ 5.4\ iso/isolinux
cp *.sh /root/
) >> /root/install-custom.log
but after installation files were not copied...and neither the log file was present. Also pls tell how do i call the script..

Thanks.
Uday.

Last edited by udaypratapyati; 02-11-2011 at 03:37 AM.
 
Old 02-20-2011, 12:59 AM   #10
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Read the script I send you again, you forgot some critical parts, like mounting the cdrom, so it's normal that files aren't copied. You need to mount and then copy. I assure you the ks.cfg I sent you works, but you need to read it carefully, not forgetting or eliminating crucial stuff.

Kind regards,

Eric
 
Old 02-22-2011, 02:44 AM   #11
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hello,

Read the script I send you again, you forgot some critical parts, like mounting the cdrom, so it's normal that files aren't copied. You need to mount and then copy. I assure you the ks.cfg I sent you works, but you need to read it carefully, not forgetting or eliminating crucial stuff.

Kind regards,

Eric
Hi Eric,

Can u pls explain this...
Quote:
# where the root of the new system is mounted
ROOT=/mnt/sysimage

# where we save the source media information (should mathc the "pre" section)
SOURCE_DESC=/tmp/cdrom.ls
i could not get these.... as i don't see anything called cdrom.ls infact in my working system i found /dev/cdrom and /dev/cdrom-hdc present

also pls breif on /mnt/sysimgae stuff....
This will be of great help.

Thanks in advance....
Uday.
 
Old 02-26-2011, 01:26 AM   #12
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks Eric,

Thanks a lot...
The script file worked for my purpose except for a couple of places...

1. i had something like this...
Quote:
cp -r /tmp/sysimage/root/Extras/myfiles/* tmp/sysimage/usr/share/applications/
which worked.... but... the same thing if i try to do it on desktop doesn't...

Quote:
cp -r /tmp/sysimage/root/Extras/myfiles/* /tmp/sysimage/root/Desktop/
****** this doesn't work *****
any information regarding this will be of great help to me....

one more question....

Quote:
the following command
Quote:
ls /home/ >/root/myfile.txt
creates the file "myfile.txt" but does not contain the anything in it though i have some users created...
will the ls command not work during the installation time? or is there any other way to do it?

Thanks again.
Uday.

Last edited by udaypratapyati; 02-26-2011 at 01:36 AM.
 
Old 07-27-2012, 03:46 PM   #13
Rogue45
Member
 
Registered: Jun 2012
Posts: 47

Rep: Reputation: Disabled
Very easy to do this. You will have to make a new install disc though.
1) To Modify kickstart to install from cdrom make sure this is in command section
# Install from a cdrom
cdrom

2) Go into the .iso file(you will have to unzip it) and modify /isolinux/isolinux.cfg to this:
Change this line: append initrd=initrd.img
to this: append initrd=initrd.img ks=cdrom:/ks.cfg

Put your ks.cfg at the top level of the install disc.
Put your modified .iso on the top level of disc and you're good to go.

Now your kickstart is on the same disc and will install using it.

Last edited by Rogue45; 07-27-2012 at 03:47 PM.
 
  


Reply

Tags
kickstart, redhat


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
how to configure redhat linux kickstart installation amin_shaikh32 Linux - Newbie 6 01-28-2012 06:15 AM
Redhat Linux Kickstart Installation procedure suse484 Linux - Server 1 01-21-2010 07:41 AM
How to automate installation of a list of packages in redhat (like kickstart) hgg2002 Linux - General 1 08-17-2009 09:26 AM
Can ks.cfg be added to a linux install boot DVD to perform kickstart installation? Latitude Linux - Software 2 06-05-2009 08:39 AM
Redhat Kickstart Installation Colossalboom Linux - Software 0 08-21-2003 07:56 AM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration