Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588290
  • 博文数量: 187
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2990
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-18 17:40
文章分类

全部博文(187)

文章存档

2010年(1)

2009年(23)

2008年(163)

我的朋友

分类: LINUX

2008-12-10 10:57:29

RHCE Lab1: Kickstart

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.

阅读(1562) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~