免费注册 查看新帖 |

Chinaunix

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

原创:网络安装centos和centos无盘工作站的建立 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-25 17:41 |只看该作者 |倒序浏览
一。 网络安装CENTOS

1. Config DHCP , DNS , NFS AND TFTP.
    # vi /etc/xinetd.d/tftp
        disable = no
    # service xinetd restart

2. Config DHCP
    # vi /etc/dhcpd.conf
        allow booting;
        allow bootp;
        class "pxeclients" {
        match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
        next-server 192.168.1.2;
        filename "linux-install/pxelinux.0";

3. Create netinstall directory
    # mkdir /netinsall/centos/
    # rsync -av /media/cdroom/  /netinsall/centos/

4. Config NFS
    # vi /etc/exports
        /netinsall/centos  *(rw,no_root_squash,sync)
    # exportfs -r     ###If you had been installed NIS,you need modify /etc/netgroup file.
   
5. Open system-config-netboot
    #system-config-netboot &
        go to the Main Menu Button (on the Panel) => System Settings =>  Server Settings => Network Booting Service
   


  6. Config Client pc BIOS and boot from NETWORK.
        ### Note ### your pc network card must support boot from network.

二。 无盘工作站的配置。

  1. Create diskless Directory
    # mkdir   /diskless/i386/centos/root/   -p
    # mkdir   /diskless/i386/centos/snapshot
   
  2. Copy  Centos Linux from the client system to the server using rsync
    # rsync -auv -e ssh --delete --exclude='/group/*' --exclude='/proc/*' --exclude='/sys/*'  --exclude='/tmp/*' --exclude='/var/log/*' root@bristol:/  /diskless/i386/centos/root/

  3. Config NFS
    # vi /etc/exports
         /diskless/i386/centos/root/ *(ro,no_root_squash,sync)
         /diskless/i386/centos/snapshot/ *(rw,sync,no_root_squash)
    # exportfs -r

  4. Open system-config-netboot
    # system-config-netboot &   ###If you don't install busybox RPM,you need install it first.
       go to the Main Menu Button (on the Panel) => System SettingsServer Settings => Network Booting Service

  5. Add host
    Click the New button to add hosts.

论坛徽章:
0
2 [报告]
发表于 2006-05-28 16:16 |只看该作者
支持原创
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP