Entries Tagged as ''

Network Installation Linux (5) – KickStart

KickStart configuration is actually instruction to guide kernel to complete the process of the installation. Normally, we will put ks.cfg to somewhere located on NFS server. The exact path is indicated by PXE default configuration,  /tftpboot/linux-install/pxelinux.cfg/defaul, or special configuration you came up with. The whole process of network installation will be:

  1. The client asks IP address from DHCP server.
  2. The DHCP server distribute one IP to the client, at the same time, indicate PXE parameters to the client, especially pxelinux.0.
  3. The client get pxelinux.0 via TFTP.
  4. After user interact with boot.msg, the client will get vmlinuz and initrd.img followed the instruction of pxelinux.cfg/default.
  5. After kernel and driver installation, the client will follow the instruction of ks.cfg to complete the whole process.

The following is my ks.cfg, just for your reference.

# Kickstart file automatically generated by anaconda.

install
nfs –server=10.2.0.78 –dir=/mnt/fc7
### Choose the most popular language in the world.
lang en_US.UTF-8
langsupport –default=en_US.UTF-8 en_US.UTF-8 en_US en en_US.UTF-8 en_US en
keyboard us
xconfig –card “VESA driver (generic)” –videoram 16384 –hsync 30-83 –vsync 56-75 –resolution 800×600 –depth 16
### Tell it what the ethernet cards settings should be
network –device eth0 –bootproto dhcp –hostname localhost
network –device eth1 –bootproto dhcp
rootpw –iscrypted $1$bvL7zhTO$EtXKneiWhfvXJ3DSUq3tb0
firewall –disabled
selinux –disabled
authconfig –enableshadow –enablemd5
timezone America
###used to be lilo, but now is bootloader
bootloader –location=mbr –driveorder=sda
# 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 –linux –drives=sda
part /boot –fstype ext3 –size=100 –ondisk=sda
part pv.4 –size=0 –grow –ondisk=sda
volgroup VolGroup00 –pesize=32768 pv.4
logvol swap –fstype swap –name=LogVol01 –vgname=VolGroup00 –size=1000 –grow
#logvol swap –fstype swap –name=LogVol01 –vgname=VolGroup00 –size=1000 –grow –maxsize=6656
logvol / –fstype ext3 –name=LogVol00 –vgname=VolGroup00 –size=1024 –grow

%packages
@ dialup
@ java
kernel-smp-devel
kernel-smp
grub
e2fsprogs
lvm2

%post