LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2007, 06:21 PM   #1
bbmak
Member
 
Registered: May 2004
Posts: 178

Rep: Reputation: 30
looking for kick start tool to create automated installtion


Hi:
I am looking for the kick start tool that can create an unattended installation for Centos.

Using Centos 4.

Where can I download the tool? or i need to do it in a text file and then save it into ks.cfg

Are there a way to create the answer file in windows system?

Last edited by bbmak; 02-11-2007 at 06:28 PM.
 
Old 02-12-2007, 12:30 PM   #2
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Perhaps this will help?

http://www.stanford.edu/~alfw/PXE-Ki...Kickstart.html
 
Old 02-12-2007, 04:12 PM   #3
bbmak
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 30
Isnt you can not use ftp in the default file to link to the ks.cfg?

here is my default file, can anyone help me take a look at it?

Quote:
default linux
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label linux
kernel vmlinuz
append initrd=initrd.img ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label i586
kernel vmlzi586
append initrd=initi586.img ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label text
kernel vmlinuz
append initrd=initrd.img text ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label expert
kernel vmlinuz
append expert initrd=initrd.img ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label ks
kernel vmlinuz
append ks initrd=initrd.img ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label lowres
kernel vmlinuz
append initrd=initrd.img lowres ramdisk_size=8192 ks=ftp://192.168.0.101/centos/ks.cfg
label memtest86
kernel memtest
append -
 
Old 02-12-2007, 05:42 PM   #4
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
I am not sure I understand your reply.

The method used in the url I referenced above will lead to the following sequence.

1. You boot the new machine and use whatever keystroke you need to enter the boot BIOS. This can be done from the keyboard or from a remote terminal server.

2. Set the "Enable PXE boot". (Depends on BIOS.) Do not save setting, just boot.

3. New machine will look for a PXE server.

4. New machine will connect to your PXE server.

5. PXE server will send a boot image which consists of an "Install Linux" CD image (A PXE format install image will be included on a distribution CD.) In addition, it will append the "ks=..." information to the boot image. You can specify how to load the kickstart file (http, ftp, nfs, etc.).

6. When the new server has retrieved the build image, The "ks=..." information will be placed into the line where you would have typed it in (for example, where you would otherwise have typed in "ks=floppy".) The kickstart file can be loaded from the PXE server by any of the supported methods -- http, ftp, nfs, etc. The kickstart file can specify how to load the build rpm's (http, ftp, nfs, etc.) to build the system. You do not need either an install cdrom or a floppy disk to be inserted into the new server.
-----
Now, your job will be to come up with a utility to create a kickstart file and place it into a special directory on the PXE server with the correct name. (The PXE server knows the MAC address it is connected to and will search for a file name which has that MAC address embedded into it. There are several patterns PXE will recognize, see the url above.) There isn't any such thing I am aware of in the nature of a "general purpose already written for you" script to create the rest of the kickstart files. In every case I have worked with, the Corporation has standards of what it considers "Corporate Standard" packages which are installed on all servers, perhaps another group of packages that are installed conditionally, for example, if you are building a webserver you would load Apache, or if building a data base server, would load MySql, etc...

I have seen these utilities in the form of Java scripts, and perl scripts front ended by a webserver html form. Although I have not encountered one yet, it seems to me that this utility could be done quite in PHP5 as well.

Typically, to build a server, the engineer would bring up a web page, enter data like hostname, IP Address, MAC, netmask, default router, etc., then click a couple of radio buttons adding groups of predetermined packages depending on if it is a webserver, Data Base server, ldap server, firewall, or whatever. Then log into the new server via a remote console session, do a PXE boot, and the system builds itself. He/She does not even have to enter the room where the server is located.

The url above explains just about everything except for writing code automating the generation of a kickstart file. Without this code, you could generate a few template kickstart files. Manually edit one of the standard kickstart files changing the hostname, IP address, etc., and manually saving it to a file name with the correct MAC in the name, etc.

Third party software, which is often part of the "Corporate Standard" build can be done by inserting lines into the "post procedure" section. This can be used to download the product file, execute a build script, insert a license key, etc.
--- edit ---
In looking at your sample, your "ks=..." lines seem to indicate you are at least loading a kickstart from a remote server. This is good. Adding all the PXE stuff is add the "unattended" part. And I forgot to mention -- PXE relies on tftp, so your tftp port must be open through your network. Sometimes the old "Network Support" people kick at this...

Last edited by wpn146; 02-12-2007 at 05:58 PM.
 
Old 02-12-2007, 10:56 PM   #5
bbmak
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 30
thx i have successfully using http server to deploy centos unattendedly with windows ris
 
Old 02-12-2007, 11:50 PM   #6
srishri2000
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
hello

I need some help abt RPM,How to create RPM packages,pls give solution with example
 
Old 02-13-2007, 02:26 AM   #7
bbmak
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 30
I think you need to create a <group> tag in comps.xml
 
  


Reply


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
LXer: Kick-Start Your Java Apps with Ajax LXer Syndicated Linux News 0 12-01-2006 09:21 AM
LXer: Kick-Start your Java Apps, Part 2 LXer Syndicated Linux News 0 11-25-2006 08:21 PM
how to create an installtion cd? behmjoe Linux From Scratch 5 01-07-2006 05:15 PM
Kick Start to my Laptop DJOmegaRush Linux - Laptop and Netbook 0 02-10-2005 12:41 AM
NIC Driver Missing after Kick-Start jinyang Red Hat 0 05-20-2004 10:44 PM


All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration