免费注册 查看新帖 |

Chinaunix

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

RHCE Lab1.1: Auto Installation [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-09 22:51 |只看该作者 |倒序浏览
RHCE Lab1.1: Auto installation with PXE+DHCP+TFTP+NFS/HTTP/FTP+Kickstart
1. Preparing the boot server (dhcp, tftp)
A. Installing DHCP server
#yum install dhcp
#vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
class "pxeclients"{
match if substring(option vendor-class-identifier,0,9) = "PXEClient";
filename "centos5u2/pxelinux.0";
next-server 192.168.75.11;
}
subnet 192.168.75.0 netmask 255.255.255.0 {
option routers 192.168.75.2;
option subnet-mask 255.255.255.0;
option domain-name "
test.org
";
option domain-name-servers 192.168.75.2;
option time-offset -18000;
range dynamic-bootp 192.168.75.1 192.168.75.254;
default-lease-time 21600;
max-lease-time 43200;
}
#service dhcpd restart
B. Installing TFTP server
#yum install xinetd
#yum install tftp-server
#vi /etc/xinetd.d/tftp
service tftp
{
    socket_type     = dgram
    protocol        = udp
    wait            = yes
    user            = root
    server          = /usr/sbin/in.tftpd
    server_args     = -s /tftpboot
    disable         = no
}#mkdir /mnt/iso#mount -o loop centos.5.2.iso  /mnt/iso#mkdir -p /tftpboot/centos5u2
#mkdir -p /tftpboot/centos5u2/pxelinux.cfg
#cp /usr/lib/syslinux/pxelinux.0 /tftpboot/centos5u2/
#cp /mnt/iso/isolinux/*.msg /tftpboot/centos5u2/
#cp /mnt/iso/images/pxeboot/initrd.img /tftpboot/centos5u2/
#cp /mnt/iso/images/pxeboot/vmlinuz /tftpboot/centos5u2/
#cp /mnt/iso/isolinux/isolinux.cfg /tftpboot/centos5u2/pxelinux.cfg/default
#vi /tftpboot/centos5u2/pxelinux.cfg/default
default autoinstall
prompt 1
timeout 100
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
  kernel vmlinuz
  append initrd=initrd.img
label text
  kernel vmlinuz
  append initrd=initrd.img text
label ks
  kernel vmlinuz
  append ks initrd=initrd.img
label local
  localboot 1
label memtest86
  kernel memtest
  append -
label autoinstall
  kernel vmlinuz
  append ks=http://192.168.75.11/ks/ks.cfg initrd=initrd.img

#service xinetd restart
2. Preparing the installation server (HTTP, NFS, FTP)
Please refer to
RHCT Lab1
3. Preparing the ks.cfg file
Please refer to
RHCE Lab1
4. Installing the CentOS5 client with PXE
Set BIOS to boot from Network PXE
boot:autoinstall


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP