免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 615 | 回复: 0
打印 上一主题 下一主题

RHCE Lab1: Kickstart [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-09 22:48 |只看该作者 |倒序浏览

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://192.168.75.11/install
           # HTTP
ftp --url
ftp://192.168.75.11/pub/install
       # 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://192.168.75.11/ks/ks.cfg            # 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.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20003/showart_1711131.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP