Ubuntu – Ubuntu 12.04 pxe boot fail with message “IP-Config: no response after *** secs – give up”


I followed the DisklessUbuntuHowto and set up my pxe boot service. When configure the dhcp server in /etc/dhcp/dhcpd.conf, I tried to use static IP address as follows, in which "00:22:15:F8:D9:1A" is the mac address of the first network card in sms04 (it has two).

allow booting;
allow bootp;

subnet netmask {
  option broadcast-address;
  option routers;
  option domain-name-servers;

  filename "/pxelinux.0";

host sms04 {
  hardware ethernet 00:22:15:F8:D9:1A;

When I boot sms04 using the first network card, it can successfully get the IP (static ip) and then load vmlinuz and initrd.

enter image description here

And then it failed with message IP-Config: no response after * secs - give up

enter image description here

Now, I try to pull out the cable in my first network card and plug in the second, after a while, it successfully boot up with dynamic IP address!

However, the dynamic IP address is unwanted. I try every method to boot from static IP, by failed.

I will appreciate any reply.

Best Answer

I have spent a lot of time in this problem. So today I fixed it. Try to edit /etc/initramfs-tools/initramfs.conf and change: DEVICE= to DEVICE=eth0

See ya.

Related Question