免费注册 查看新帖 |

Chinaunix

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

PXE远程安装linux系统-----汪工-使用效果很快 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-24 12:39 |只看该作者 |倒序浏览
使用PXE协议远程安装LINUX【实作】
--------------------------------------------------------------------------------

http://www.chinaunix.net
作者:llzqq  发表于:2006-02-17 17:24:54
【发表评论】【查看原文】【Linux讨论区】【关闭】  
OS: REDHAT AS 3.X
1 安装tftp和dhcp服务器
# rpm -ivh tftp-server-0.39-0.EL3.1.c0.i386.rpm
# rpm -ivh dhcp-3.0.1-10_EL3.i386.rpm
2 配置tftp和dhcp服务器
# vi /etc/xinetd.d/tftp
=============+==========+===========+============+============
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -u nobody -s /tftpboot
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
=============+==========+===========+============+============
# cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf
# vi /etc/dhcpd.conf
=============+==========+===========+============+============
option domain-name "systeng.net";
default-lease-time 6000;
max-lease-time 11400;
authourtative;
ddns-update-style ad-hoc;
log-facility local7;
subnet 192.168.10.0 netmask 255.255.255.0{
range 192.168.10.150 192.168.10.155;
option domain-name-servers 202.99.160.68;
option domain-name "systeng.net";
option netbios-name-servers 192.168.10.1;
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
default-lease-time 6000;
max-lease-time 11400;
filename "/pxelinux.0";
}
=============+==========+===========+============+============
3 配置支持PXE  
# mkdir /tftpboot
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot
把LINUX第一张安装光盘上/image/pxeboot/initrd.img和vmlinuz 以及isolinux/*.msg考到/tftpboot目录下
# cd /tftpboot
# mkdir pxelinux.cfg
# vi default
=============+==========+===========+============+============
default  
prompt 1  
timeout 30  
display boot.msg  
F1 boot.msg  
F2 options.msg  
F3 general.msg  
F4 param.msg  
F5 rescue.msg  
F7 snake.msg  
label local  
  localboot 0  
label linux  
  kernel vmlinuz  
  append initrd=initrd.img devfs=nomount ramdisk_size=9216  
label text  
  kernel vmlinuz  
  append initrd=initrd.img text devfs=nomount ramdisk_size=9216  
label expert  
  kernel vmlinuz  
  append expert initrd=initrd.img devfs=nomount ramdisk_size=9216  
label ks  
  kernel vmlinuz  
  append ks initrd=initrd.img devfs=nomount ramdisk_size=9216  
label nofb  
  kernel vmlinuz  
  append initrd=initrd.img devfs=nomount nofb ramdisk_size=9216  
label lowres  
  kernel vmlinuz  
  append initrd=initrd.img lowres devfs=nomount ramdisk_size=9216
kernel vmlinuz  
=============+==========+===========+============+============
4 配置NFS服务
# vi /etc/exports
/home/iso/      192.168.10.0/24(ro,sync)
# mkdir /home/iso
拷贝安装LINUX的ISO文件到这个目录
5 需要开启的系统服务
/dhcpd/network/nfs/portmap/syslog/tftp/xinetd/
6 硬件需求
网卡上需要添加PXE远程启动芯片




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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP