URL for iPXE boot, for ISC DHCPd

I'm finding myself confused about how Foreman serves an iPXE script for a
booting system. What I'm looking for is the URL you would serve to a host
booting iPXE so it gets the initial iPXE script (e.g., the "filename"
parameter in an ISC DHCPd configuration).

From searching around, I've tried http://myserver/unattended/iPXE, and some
variations on that… but all I get are 404's.
Is there a document reference that indicates the URL you would use for this?
Thanks in advance.

Further looking, I see the URL does work, but not matching up the host (I
assume by IP address?):
2016-04-27T21:13:33 [app] [I] Started GET "/unattended/iPXE" for
10.243.187.220 at 2016-04-27 21:13:33 +0000
2016-04-27T21:13:33 [app] [I] Processing by UnattendedController#iPXE as
HTML
2016-04-27T21:13:33 [app] [I] unattended: unable to find a host that
matches the request from 10.243.187.220
2016-04-27T21:13:33 [app] [I] Filter chain halted as :get_host_details
rendered or redirected
2016-04-27T21:13:33 [app] [I] Completed 404 Not Found in 13.3ms
(ActiveRecord: 1.8ms)

Still reading the code, but is there a URL pattern that will match hosts by
MAC address, UUID, or something other than the IP address?

The foreman_bootdisk plugin extends the search to include the MAC
address specified in the 'mac' parameter, as it uses iPXE in a similar
way. You could perhaps install the plugin to use this.

··· On 27/04/16 22:21, Alan Sparks wrote: > Further looking, I see the URL does work, but not matching up the host > (I assume by IP address?): > 2016-04-27T21:13:33 [app] [I] Started GET "/unattended/iPXE" for > 10.243.187.220 at 2016-04-27 21:13:33 +0000 > 2016-04-27T21:13:33 [app] [I] Processing by UnattendedController#iPXE as > HTML > 2016-04-27T21:13:33 [app] [I] unattended: unable to find a host that > matches the request from 10.243.187.220 > 2016-04-27T21:13:33 [app] [I] Filter chain halted as :get_host_details > rendered or redirected > 2016-04-27T21:13:33 [app] [I] Completed 404 Not Found in 13.3ms > (ActiveRecord: 1.8ms) > > Still reading the code, but is there a URL pattern that will match hosts > by MAC address, UUID, or something other than the IP address?


Dominic Cleal
dominic@cleal.org

This was helpful, at least in seeing that adding this does allow a URL form
""/unattended/iPXE?&mac=xxxxxx"
which does work for provisioning.

I do not, possible a separate matter, that this does not trigger any sort
of host discovery, however, just refuses to boot the system (no matching
host).
Is host discovery incompatible with the iPXE?

··· On Thursday, April 28, 2016 at 1:38:05 AM UTC-6, Dominic Cleal wrote: > > > The foreman_bootdisk plugin extends the search to include the MAC > address specified in the 'mac' parameter, as it uses iPXE in a similar > way. You could perhaps install the plugin to use this. > > -- > Dominic Cleal > dom...@cleal.org >