kickstart自动化安装linux
| 参考了51cto博客各路大神的文章,结合自己实践过程,虽中间经历了些困难挫折,最终还是成功完成配置,实现了自动化安装linux。 (重点参考灰度的BLOG, http://rrliang.blog.51cto.com/4214966/1040863) 安装环境,虚拟机VirtualBox虚拟2台机器,一台做kickstart服务器,一台做客户端 服务器系统为CentOS 6.3 X86_64, 安装光盘为CentOS 6.3 X86_64 DVD 网卡全部配置为“内部网络” 首先,需要用到的服务有,dhcpd, httpd, xinetd, tftp, 用yum 依次安装。 vim /etc/xinetd.d/tftp 修改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  
}vim /etc/dhcp/dhcpd.conf 修改dhcp配置文件 
ddns-update-style interim; 
     
allow booting; 
allow bootp; 
ignore client-updates; 
set vendorclass = option vendor-class-identifier; 
subnet 192.168.0.0 netmask 255.255.255.0 { 
     option routers          192.168.0.1; 
     option subnet-mask         255.255.255.0; 
     range dynamic-bootp        192.168.0.10 192.168.0.50; 
     filename                "/pxelinux.0"; 
     default-lease-time         21600; 
     max-lease-time             43200; 
     next-server           192.168.0.1; 
}   简单介绍:   服务器的网卡ifcfg-eth0配置为静态IP:192.168.0.1, 子网掩码255.255.255.0, 网关192.168.0.1 (编辑:南平站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! | 

