分类: LINUX
2008-12-09 22:48:52
Lab1: Configuring hands-free installation using Kickstart
1. Preparing the installation server (HTTP, NFS, FTP)
Please refer to RHCT Lab1
#mkdir -p /ks
#cp /root/anaconda-ks.cfg /ks/ks.cfg
#chmod 644 /ks/ks.cfg
A. HTTP
#vi /etc/httpd/conf.d/install.conf
Alias /ks "/ks"
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
#service httpd restart
B. FTP
#cp /ks/ks.cfg /var/ftp/pub/ks.cfg
C. NFS
#vi /etc/exports
/ks *(ro,no_root_squash)
#service nfs restart
2. Preparing the ks.cfg file
#vi ks.cfg
install
url --url # HTTP
ftp --url # FTP
nfs --server=192.168.75.11 --dir=/install # NFS
# Note: choose one of the three methods
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$6sZN40io$cwGN9pScqhCBn8AeRX4910
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
clearpart --all --drives=sda
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.2 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
%packages
@development-libs
@editors
@core
@base
@legacy-software-development
@development-tools
device-mapper-multipath
imake
-sysreport
3. Installing the CentOS5 client with kickstart
Set BIOS to boot from CD-ROM
Boot from boot.iso or the CentOS5 DVD
boot:linux ks= # HTTP
boot:linux ks=ftp://192.168.75.11/pub/ks.cfg # FTP
boot:linux ks=nfs:192.168.75.11:/ks/ks.cfg # NFS
Note: you can choose one of the three methods to start the installation.