Thursday, March 31, 2011

Sample kickstart config

/var/www/html/ks/ks-rhel03.cfg

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use CDROM installation media
#cdrom
nfs --server=192.168.1.200 --dir=/var/www/html/yum/rhel6
# Root password
rootpw --iscrypted $1$b8YmSnFu$9UNdmymONjDtGci89bT770
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.1.254 --ip=192.168.1.202 --nameserver=8.8.8.8 --netmask=255.255.255.0 --hostname=rhel03 --onboot=on
# System authorization information
auth --useshadow --passalgo=md5
# Use text mode install
text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Asia/Manila
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
#part /boot --fstype="ext4" --size=500
#part / --fstype="ext4" --size=3092
#part /opt --fstype="ext4" --size=3092
#part /usr --fstype="ext4" --size=3092
part /boot --fstype="ext4" --size=500
part pv.01 --size=9716
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol
logvol /opt --vgname=myvg --size=3044 --name=optvol
logvol /usr --vgname=myvg --size=3044 --name=usrvol
%packages
@basic-desktop
@general-desktop
@x11

3 comments:

  1. Great posts around here. I tried NFS install and it keeps failing. It cannot read installation off NFS server. I have the same line in my kickstart:

    nfs --server=192.168.1.200 --dir=/var/www/html/yum/rhel6

    This is more theoretical example for me, have you actually tested? I heard the is NFS installation bug thus I am not sure ...

    ReplyDelete
  2. In addition, to clarify that my NFS is working, I placed ks.cfg on NFS and when install from local media, ks.cfg is accessible from NFS thus NFS is working fine =) . I hope it helps..

    ReplyDelete
  3. Implementing Cisco Collaboration Core Technologies ( 350-801 350-801 exam dumps
    ) This exam tests your knowledge of implementing core collaboration technologies,

    ReplyDelete