< Browse > Home / Linux / Blog article: [Centos] Kickstart (Unattended) Linux OS installation

| RSS

[Centos] Kickstart (Unattended) Linux OS installation

July 28th, 2010 | 2 Comments | Posted in Linux

Kickstart means automated OS installation. Most Linux OS installation can be done via Kickstart and it can be performed using local boot media or over network(FTP, HTTP, NFS and etc).

Here, we’re going to talk about using HTTP method to perform Kickstart.

Prerequisite:

  1. Boot media (for creating a USB bootdisk, you can refer to my earlier article)
  2. You should have the Centos installation CD/image to crate the installation tree
  3. Running Webserver for Kick Start OS installation
  4. Running DHCP server (Optional)

Setting Up Kickstart server:

  1. Create a directory name “Centos5.5″ in your webserver DocumentRoot.
    • eg: mount -o ro /dev/sdc /media/cdrom
  2. Insert the Centos CD-ROMs and copy all the binaries into that directory (copy the binaries from all the installation CD-ROMs)
    • eg: cp iVaf /media/cdrom/Centos /var/www/html/Centos5.5
  3. Create an answer file for automate the installation process.
    • You can use any kick start configurator tool or refer to the file /root/anaconda-ks.cfg in any of your Linux machine.
    • Or you may download my sample ks.cfg (512) as reference
  4. Copy the ks.cfg file to your Centos5.5 directory.
  5. You will have 1 new directory and 1 ks.cfg created like below:
    • For example /var/www/html is your DocumentRoot
    • You will have /var/www/html/Centos5.5 and /var/www/html/Centos5.5/ks.cfg
  6. Attached boot media and then boot up the machine that you want to perform Kickstart OS installation.
  7. Configure the BIOS setting to make your boot media as “First Boot Device”
    • For my case cause I’m using USB hard disk, so my “First Boot Device” should be Removable.
    • Save the BIOS setting then continue
  8. You will see OS installation menu screen, fro there type in below BOLD command
    • boot: linux ks=http://192.168.1.1/~chenhow/Centos5.5/ks.cfg
    • 192.168.1.1 is my Web server IP
    • ~/chenhow is my subdirectories (I’m using userdir module for lighttpd)


  9. Then, the installation process will start and everything should be automated.
Related Posts
  • No Related Posts
Leave a Reply 2692 views, 2 so far today |
Related Posts
  • No Related Posts
  • http://ddouthitt.myopenid.com/ David Douthitt

    This is not quite unattended installation – but close. You manually started the process at the server. True unattended installation would allow you to turn on the machine and walk away – and if it is powered and supports remote power on through a web interface or through Wake-on-LAN – you could have true unattended operation.

  • linux aix

    Well this is good info for me about Linux Operating System. Thanks for sharing this!