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

Max Turkewitz max.turkewitz at gmail.com
Sun Jan 31 15:53:06 GMT 2010


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.  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
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20100131/11dfc00d/attachment.htm 


More information about the Dnsmasq-discuss mailing list