Vmware虚拟机  操作系统版本:  

        CentOS release 6.5 (Final)

Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) )

1、DHCP 启动失败

    配置文件 /etc/dhcp/

    排查:

  • 先检查语法 :/etc/init.d/dhcpd configtest 

                    有错误会报错,根据报错信息 作相应更正

  • 语法正确,则查看日志 : cat /var/log/messages

    报错信息:

    Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
    Can't chown new lease file: Operation not permitted

        权限问题   vi /etc/init.d/dhcpd (此处 暂不考虑修改属组 可能带来的后续问题)

                        将用户和组改为root ,位于 30 和 31 行处

                        重启服务,成功

2、所有配置完成后,开启客户端

        PXE报错 E32

        PXE-E32:TFTP open timeout TFTP"Open"请求没有应答,验证TFTP服务是否正在运行。(其他报错可自行搜索)

        客户机发送请求,未收到应答。 

        检查防火墙并关闭(生产环境 开启相应端口即可,此处以关闭为例)

            chkconfig iptables off

            chkconfig --list iptables(检验)

            service iptables stop

            service iptables status(检验)

        关闭selinux 

            setenforce 0

            vi /etc/selinux/config

                    SELINUX=disabled (永久关闭)

            getenforce (检验)

3、客户端启动 PXE 报错 T01

    PXE-T01: file not found
    PXE-E3B-TFTP Error file not found
    PXE-M0F exiting Intel boot agent

    报错 存在dhcp 客户端,关闭dhcp服务

    wKioL1i2Uu2xChpzAACzgp6HWhU345.jpg-wh_50

    关闭即可,重启客户端,开始安装

4、安装过程中,报错无权下载

    wKiom1i2U2KC6KagAACcdLKHQIU496.png-wh_50

    修改ks.cfg权限即可,具体权限自己定义

5、pxe报错 找不到pxelinux.0 启动文件

        pxelinux.0文件 是在dhcp配置文件中声明的

        filename “pxelinux.0”        //不能写绝对路径,只写文件名就好