PXE Boot and DHCP Server on 0.4.5

Support section for FREESCO v0.4.x

PXE Boot and DHCP Server on 0.4.5

Postby yayrab » Sun May 11, 2014 4:31 pm

I'm using 2 aging (P2) clients to test the PXE Server out. One has a PXE Boot rom and the other hasn't, so I'm booting a PXE Boot image from a USB stick on that PC. I'm then chainloading a new gPxe (or iPxe) boot image by tftp from the FreeSco server, so that both clients have a standard PXE environment for scripting. The documentation says put the following in dhcp.conf:
if exists user-class and option user-class = "gPXE" {
filename "http://my.web.server/real_boot_script.php";
} else {
filename "undionly.kpxe";

I've tried putting this in a custom rc_dhcpd script in /pkg/etc, but the Freesco ISC dhcp server rejects it, the same as it does with custom 'option' statements.

I then tried inserting a gPXE script in the Romomatic generator so that I could load gpxelinux.0 (v4.04) and show a menu. When the clients load the image with the script, both clients freeze whilst looking for the first pxelinux.cfg/ config file. This happens both with tftp and http transfer. I've tried using custom options 209 and 210 to specify the tftpboot/pxelinux.cfg/default filename and folder to no avail. I can imgfetch gpxelinux.0 by tftp or http, but when I try to execute it, it freezes.

If I hand out the name gpxelinux.0 directly by dhcp, then it loads Ok, although I can only use tftp and not http (except on the client which is using gPXE from the usb stick).

Anyone have any experience with this, and point me in the right direction please?
Posts: 1
Joined: Thu May 08, 2014 10:13 am
Location: Brussels

Re: PXE Boot and DHCP Server on 0.4.5

Postby Lightning » Sun May 11, 2014 6:39 pm

Do you have the PXE package installed on this system?
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Posts: 12081
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Return to FREESCO Support for v0.4.x

Who is online

Users browsing this forum: No registered users and 3 guests