免费注册 查看新帖 |

Chinaunix

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

PXE网络安装linux [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-11 19:10 |只看该作者 |倒序浏览
1、配置PEXlinux:
   将/usr/lib/syslinux/pxelinux.0拷到/tftpgoot/linux-install目录下,把redhat第一张安装光盘里的文件images/pxeboot目录下的initr.img和vmlinux复制到/tftpboot/linux-install/pxelinuc.cfg目录下用于放syslinux的配置文件,Sysconfig的配置文件可以将第一张光盘下的isolinux/下的一个isolinux.cfg文件把它复制成/tftpboot/linux-install/pxelinux.cfg/default文件,把isolinux/*.msg复制到/tftpboot/linux-install下。以下是default文件
  default linux
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label linux
   kernel vmlinx
   append initrd=initrd.img
label text
   kernel vmlinux
   append initrd=initrd.imd test
label expert
   kernel vmlinux
   append expert initrd=initrd.imd
2、配置DHCP服务器(配置文件:/etc/dhcpd.conf)
   ddns-update-style interim;
   ignore client-updates;
   allow booting;       //这两行说明允许exp启动[加入]
   allow bootp;           subnet 192.168.1.0 netmask 255.255.255.0 {                       # --- default gateway
           option routers               192.168.1.100;                                option subnet-mask              255.255.255.0;              
          filename "/linux-install/pxelinux.0";             //指明tftp所在的位置[加入]                   option time-offset              -18000; # Eastern Standard Time
          #       option ntp-servers              192.168.1.1;
          #       option netbios-name-servers     192.168.1.1;
          # --- Selects point-to-point node (default is hybrid). Don't change this unless
          # -- you understand Netbios very well
          #       option netbios-node-type 2;
                  range dynamic-bootp 192.168.1.128 192.168.1.250;  //你想分配的地址段[修改]
                  default-lease-time 21600;
                  max-lease-time 43200;
                  # we want the nameserver to appear at a fixed address
          #       host ns {
          #               next-server marvin.redhat.com;
          #               hardware ethernet 12:34:56:78:AB:CD;
          #               fixed-address 207.175.42.254;
          #       }           //这些都注释掉
          }3、配置NFS(配置文件:/etc/exports)      /rhel5        *(rw)   其中/rhel5是你所需要的安装系统的软件。4、配置TFTP服务器,启动TFTP服务,用chkconfig tftp on 打开xinetd代理tftp服务。

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP