LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   pxelinux configuration file not loading (https://www.linuxquestions.org/questions/linux-server-73/pxelinux-configuration-file-not-loading-555403/)

fastTalker 05-20-2007 04:01 PM

pxelinux configuration file not loading
 
i am trying to boot via pxe. the pxelinux configuration file is not getting loaded.

it tries to load all the different variation of configuration file names but never loads one.

I've copied the default config file to 01-00-13-20-b0-d0-c5. Neither the default nor the mac address-specific configuration files get loaded. And I am left with a "boot:" prompt.

Code:

TFTP prefix: /lts/2.6.17.8-ltsp-1/
Trying to load pxelinux.cfg/01-00-13-20-b0-d0-c5
Trying to load pxelinux.cfg/C0A801C7
Trying to load pxelinux.cfg/C0A801C
...
Trying to load pxelinux.cfg/C
Trying to load pxelinux.cfg/default
Could not find kernel image: linux
boot:

my dhcp server is at 192.168.1.100
my network is behind a router at 192.168.1.1

my dhcpd.conf file:
Code:

#dhcpd.conf
authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.20 192.168.1.250;
  option domain-name-servers 192.168.1.1;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
  option subnet-mask 255.255.255.0;
  if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
    filename "/lts/2.6.17.8-ltsp-1/pxelinux.0";
  }
  else{
    filename "/lts/2.6.17.8-ltsp-1/nbi.img";
  }
  option root-path "/opt/ltsp-4.2/i386";
}


stormpunk 05-21-2007 09:39 AM

Actually, your pxelinux file is getting loaded. It can't find the kernel specified.
You should check pxelinux.cfg/default
It is specifying to load the label "linux" but the label isn't defined in the rest of the file.

Code:

default linux
prompt 1
timeout 100

label linux
kernel /trinity/kernel.trk
append initrd=/trinity/initrd.trk ramdisk_size=32768 root=/dev/ram0 vga=788 ip=::::::dhcp splash=verbose trknfs=192.168.0.1:/trk

This is kinda what my pxe file looks like for some kind of reference. In it, the default label to load is "linux" if nothing else gets specified in a few seconds. Either change your default line or a label and it should work.

fastTalker 05-21-2007 07:56 PM

here is my pxelinux.cfg/default:
Code:

prompt 0
label linux
  kernel bzImage-2.6.17.8-ltsp-1
  append rw root=/dev/ram0 initrd=initramfs.gz

the kernel is in the same directory as the pxelinux.cfg directory.

fastTalker 05-23-2007 06:08 PM

issue solved
 
After stormpunk pointed out that i should capture the packets on the interface. I noticed that the destination address for the pxelinux.cfg/default was 0.0.0.0. after some googling i found this:

http://wiki.koeln.ccc.de/index.php/U...ur_dhcp-server

the next-server parameter tells the client where to get the configuration file specified in the filename statement.

So i added the following line to dhcpd.conf:
Code:

next-server 192.168.1.100
thanks stormpunk!


All times are GMT -5. The time now is 07:34 PM.