How to chainload ipxe using dnsmasq?
|
2012-10-12, 20:43
(This post was last modified: 2013-07-02 23:14 by stefanlasiewski.)
Post: #1
|
|||
|
|||
How to chainload ipxe using dnsmasq?
I am trying to use dnsmasq on my quest for a small, simple bootserver.
I want dnsmasq to tell the clients to load bootstrap.ipxe [1]. With ISC BIND, we use this syntax: Code: if exists user-class and ( option user-class = "iPXE" ) { But how can we do this with dnsmasq? I have managed to load undionly.kpxe via dnsmasq. Here is my dnsmasq.conf: Code: ### Tftp But I cannot figure out how to tell the client to request bootstrap.ipxe . Can anyone here help me out? [1] https://gist.github.com/2234639 |
|||
2012-10-13, 17:13
Post: #2
|
|||
|
|||
RE: How to serve serve bootstrap.ipxe via dnsmasq.conf?
I'm not familiar with dnsmasq, but if you can get it to detect the user-class set to "iPXE" and make it tailor the feedback in that way, you should be set. From what I can see at http://linux.die.net/man/8/dnsmasq it does seem to support some user-class customization.
|
|||
2013-02-05, 21:51
(This post was last modified: 2013-08-20 21:42 by stefanlasiewski.)
Post: #3
|
|||
|
|||
RE: How to serve serve bootstrap.ipxe via dnsmasq.conf?
I figured out how to do this, and thought I would share. It's actually pretty simple once you understand how the Dnsmasq configuration.
The solution was actually hiding in Simon Kelley's http://www.thekelleys.org.uk/dnsmasq/doc...nf.example , but requires minor changes to work with iPXE. In addition, Simon's example file uses newer Dnsmasq syntax which doesn't work with the default version of Dnsmasq provided with Red Hat Enterprise Linux 6. The other solutions that I found on the internet didn't work for me due to syntax issues. This test system runs Scientific Linux 6.x (Similar to RHEL6) on a Parallels VM. You'll see the standard Parallels networks down below. 1. Install dnsmasq 2.53 or newer. 2. (optional) Make a quick edit to /etc/dnsmasq.conf to 'include' files under /etc/dnsmasq.d/ . Old: Code: # Include a another lot of configuration options. New: Code: # Include a another lot of configuration options. 3. Modify the following settings in /etc/dnsmasq.conf as needed (Or `/etc/dnsmasq.d/local-settings.conf`, if you prefer the `dnsmasq.d` approach), as needed. Some of these options assist in debugging. Code: # If you want dnsmasq to listen for DHCP and DNS requests only on 4. Here is the magic. Drop the following into /etc/dnsmasq.d/ipxe.conf or the main Dnsmasq configuration file: Code: # dnsmasq configuration for iPXE 4. A this point, follow Robin Smidsrød's bootstrap method provided at https://gist.github.com/2234639 |
|||
2013-02-06, 11:29
Post: #4
|
|||
|
|||
RE: How to serve serve ipxe over dnsmasq?
Great writeup, Stefan! Now I have somewhere to point people when they're having problems getting chainloading to work with dnsmasq.
|
|||
2014-05-19, 14:36
Post: #5
|
|||
|
|||
RE: How to chainload ipxe using dnsmasq?
Hi All,
My setup. Vbox, Dnsmasq, ProxyDHCP I have an IPXE loop. Looking in the DHCP config utility gives me errno uint32 which I cannot find under http:// ipxe.org/cfg/uint32 the internet url under proxy is filled correctly. but it does not load. Any ideas ? |
|||
2016-01-22, 08:36
Post: #6
|
|||
|
|||
RE: How to chainload ipxe using dnsmasq?
TheUltimateUnltd: uint32 is a variable type, not an error. You need to give us the error URL that is shown with the error. A screenshot (or photo) of the screen when you see the error is usually the best.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)