Home > Linux > RedHat 6 Final – kickstart for minimal install

RedHat 6 Final – kickstart for minimal install

November 15th, 2010 Leave a comment Go to comments

As new RHEL 6 arrived, trying to do installation as minimal. Once done via anaconda standard click-next , I realized that no option for minimal installation left in cf file.

After small searching , regarding this bug RHEL6 docs: Add information on minimal platform installation via kickstart – all fixed, and kickstart is installing 222 packages and not 378 Winking smile

Memory used: 47 MB !!

NOTE: as yum is working ok, just wget is missing, and also my favorite midnight commander, Im including this in kickstart file also. Here it is

Kickstart for minimal installation of RHEL6 final:

  1. at boot screen , press TAB and write additional parameter to command line for boot as on screenshot. –-eject parameter make automatic reboot after installation (not waiting for user input) – aaaah, not yet , need to find out ;(


  • Here is file content:
    #!/bin/bash Kickstart for RHEL 6.0 FiNAL WORKER
    # minimal config -  HDD must be 40GB
    lang en_US.UTF-8
    keyboard us
    rootpw  --iscrypted $6$0MEasoiiEWdg7KcGa8RYYGd3tYjnJ8wWJhIH2LMczQjRt91iHmjCV0gDn8OO7.eQKUju8.
    network --device eth0 --bootproto static --ip --netmask --gateway --nameserver --hostname miki.homelinux.com
    firewall --service=ssh --service=smtp --port=143:tcp,80:tcp,443:tcp
    authconfig --enableshadow --passalgo=sha512 --enablefingerprint
    selinux --disabled
    timezone --utc Europe/Bratislava
    bootloader --location=mbr --driveorder=sda --append=crashkernel=auto rhgb quiet
    # The following is the partition information you requested
    # Note that any partitions you deleted are not expressed
    # here so unless you clear all partitions first, this is
    # not guaranteed to work
    clearpart --all --initlabel --drives=sda
    ignoredisk --only-use=sda
    part /boot --fstype=ext4 --size=200
    part /home --fstype=ext4 --size=9000
    part / --fstype=ext4 --size=8000
    part /var --fstype=ext4 --size=8000
    part /pandora --fstype=ext4 --size=7000
    part /var/log --fstype=ext4 --size=6000
    part swap --grow --size=200
    repo --name=Red Hat Enterprise Linux  --baseurl=file:///mnt/source --cost=100
    # followig is MINIMAL https://partner-bugzilla.redhat.com/show_bug.cgi?id=593309
    %packages --nobase
    %post --log=/root/WORKER-post.log
    cd /root
    wget http:<span class="rem">//x.x.x.x/ks/postks.sh</span>
    sh postks.sh
  • so, clean, minimal installation of RHEL 6 after reboot looks like this
    • HTOP – Memoty 47 MB – TASKS 25 (still can disable auditd and postfix)
    •  TOP –  MEMORY 123MB – TASKS 88

Screenshot from htop


done !

Post install script is another story Winking smile

Categories: Linux Tags: , , ,
  1. December 6th, 2010 at 14:37 | #1

    nice post. thanks.

  1. No trackbacks yet.

%d bloggers like this: