[Dnsmasq-discuss] Help Translating DNSMasq options for NetBoot Mac

Simon Kelley simon at thekelleys.org.uk
Sun Jan 31 16:02:11 GMT 2010


Max Turkewitz wrote:
> Thanks for your quick response Simon.  I had to move to a different system
> to get some diagnostic output (DD-WRT doesn't seem to support some options
> or just isn't giving me output at the terminal).
> 
> using the --test option I found that DNSMasq didn't like the line:
> dhcp-vendor=apple-boot,AAPLBSDPC/i386
> 
> Without that line it accepts the configuration file but my Mac will still
> not NetBoot. 

Humble apologies, should be

dhcp-vendorclass=apple-boot,AAPLBSDPC/i386

(This sets the tag "apple-boot" which the client sends the AA.... string
as its vendorclass, that's used in the other lines to only send the
apple-specific options to apple clients.

You can omit that line completely, but you have to remove the
"apple-boot" tags from the option lines so that are sent always, rather
than being sent never, because there's nothing to set the tag.

If you can see log output, it's very useful to set --log-dhcp which logs
lots of stuff about what's going on with DHCP options.

Cheers,

Simon



 I now am testing this in my virtual machine environment with
> DNSMasq to rule out any differences in the two environments (except for the
> DHCP server) causing the problem.
> I have to step away for a couple hours, but next I will try adding:
> dhcp-option-force=apple-boot,60,AAPLBSDPCi/i386
> 
> which DNSMasq doesn't find any problems with when I run the configuration
> through DNSMasq with the --test argument.
> 
> Helmut -
>> Your "root-path" option looks strange (for me): must be a directory,
> no file.
>> Is "NetBoot.dmg" a directory?
>> Is "tftpboot:Diag106NetBoot.nbi" a subdirectory?
> This is part of how Apple does its network booting.  Diag106NetBoot.nbi is a
> folder in the root directory accessible via tftp, and NetBoot.dmg is the
> root filesystem for the machine.  Maybe it means the path to the root
> filesystem.
> 
> Thanks guys!  I'll do some more testing later and let you know how it goes.
> -Max
> 
> 
> 
> On Sun, Jan 31, 2010 at 7:30 AM, Simon Kelley <simon at thekelleys.org.uk>wrote:
> 
>> Max Turkewitz wrote:
>>
>>> Hi guys,
>>>   For sometime now I've been using DNSMasq off a DD-WRT router to PXE boot
>>> machines on my network to run diagnostics and OS installers.  Recently I got
>>> the drive to set this up for my Intel Mac, I got it working with the ISC
>>> dhcp server in my virtual machine environment, but can't seem to understand
>>> how to translate the options to DNSMasq in order to run it on my local
>>> network.  Below is the pertinent section:
>>> class "AppleNBI-i386"{
>>> match if substring (option vendor-class-identifier, 0, 14) =
>>> "AAPLBSDPC/i386";
>>> option dhcp-parameter-request-list 1,3,17,43,60;
>>> if (option dhcp-message-type = 1) { option vendor-class-identifier
>>> "AAPLBSDPC/i386"; }
>>> if (option dhcp-message-type = 1) { option vendor-encapsulated-options
>>> 08:04:81:00:00:67; }
>>> # The Apple Boot Loader binary image. This file will in turn TFTP the
>>> kernel image and extension cache.
>>> filename "Diag106NetBoot.nbi/i386/booter";
>>> ## NOTE: Try to keep the root path as short as possible. I copy the DMG
>>> files to /nbi and export that folder.
>>> option root-path "nfs:192.168.33.1:
>>> /var/lib/tftpboot:Diag106NetBoot.nbi/NetBoot.dmg";
>>> }
>>>
>>>
>> Even better:
>>
>> dhcp-vendor=apple-boot,AAPLBSDPC/i386
>> dhcp-option-force=apple-boot,vendor:AAPLBSDPC/i386,8,81:00:00:67
>> dhcp-option-force=apple-boot,option:root-path,"nfs:192.168.33.1:
>> /var/lib/tftpboot:Diag106NetBoot.nbi/NetBoot.dmg"
>> dhcp-boot=net:apple-boot,"Diag106NetBoot.nbi/i386/booter"
>>
>>
>> HTH
>>
>> Simon.
>>
>>  This came from http://www.afp548.com/article.php?story=20061220102102611
>>> I was wondering if you guys could help me.  So far I have:
>>> dhcp-vendorclass=AppleNBI-i386,"AAPLBSDPC/i386"
>>> dhcp-option=net:AppleNBI-i386,option-vendor,"AAPLBSDPC/i386"
>>>
>>> dhcp-option=net:AppleNBI-i386,option:filename,"Diag106NetBoot.nbi/i386/booter"
>>> dhcp-option=net:AppleNBI-i386,option:root-path,"nfs:192.168.33.1:
>>> /var/lib/tftpboot:Diag106NetBoot.nbi/NetBoot.dmg"
>>>
>>> But this actually seems to have broken DNSMasq.  Do you guys think you can
>>> help me translate this ISC configuration to a DNSMasq configuration?
>>> If the Developers are out there on the list I really enjoy the product,
>>> thanks for the great work!
>>>
>>> -Max
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>>
>>
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list