peibaishi 发表于 2019-2-18 12:48:55

ubuntu 16.04 pxe install system

  https://www.aliyun.com/jiaocheng/122583.html
  根据上面的内容搭建,
  遇到个问题
  pxe安装的时候报错,network autoconfiguration failed
  your network is probably not using the DHCP protocol.Alternatively,the DHCPserver may be slow or some network hardware is not working properly
  网上找了一大圈没看到具体的解决办法!
  后来发现是dhcpd.conf文件中的问题。
http://i2.运维网.com/images/blog/201809/16/061ea9daa1585c2ec394a55d12203400.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
  下面为正确的dhcpd.conf文件配置
  root@ubuntu:~# vi /root/dhcpd.conf
  ddns-update-style interim;
  ignore client-updates;
  option domain-name "example.org";
  option domain-name-servers 127.0.0.1;
  default-lease-time 600;
  max-lease-time 7200;
  log-facility local7;
  subnet 192.168.2.0 netmask 255.255.255.0 { #地址根据实际环境来
  range 192.168.2.100 192.168.2.200;
  option routers 192.168.2.1; #网关地址不可少
  filename "pxelinux.0";
  next-server 192.168.2.10; #服务器地址
  allow booting;
  allow bootp;
  }
  将dhcpd.conf配置文件改为上面的内容,问题就解决了,不是像网上其他帖子写的报了上图错误就手动输入ip地址,这个是全自动安装的

roxettewu 发表于 2019-2-18 13:48:27

感谢楼主分享!
页: [1]
查看完整版本: ubuntu 16.04 pxe install system