Reply
Highlighted
Emerging Member
Posts: 54
Registered: ‎09-18-2018
Kudos: 43
Solutions: 1

iPXE - network booting of MacBooks and PCs (kpxe and efi)

So far, I've managed to set network booting with use of undionly.kpxe (iPXE chainloading) - GUI advanced DHCP settings of network on Unifi switch side and NAS acting as TFTP, NFS and HTTP server. Of course this works only for PCs using PXE.

 

I would like to do more flexible setup; remove all GUI settings and set everything in json file, as is close enough shown on: http://forum.ipxe.org/showthread.php?tid=7874

 

set service dhcp-server global-parameters "deny bootp;"
set service dhcp-server global-parameters "include "/config/scripts/ipxe-option-space.conf";"
set service dhcp-server shared-network-name dhcp-lan subnet 10.8.8.0/24 subnet-parameters "include "/config/scripts/ipxe-green.conf";"
set service dhcp-server shared-network-name dhcp-lan authoritative enable

plus adding possibility to boot Macbooks, shown here: https://wiki.fogproject.org/wiki/index.php/FOG_on_a_MAC for ISC DHCP server

class "Apple-Intel-Netboot" {
    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 = 8) {
        option vendor-class-identifier "AAPLBSDPC";
        if (substring(option vendor-encapsulated-options, 0, 3) = 01:01:01) {
            # BSDP List
            option vendor-encapsulated-options 01:01:01:04:02:80:00:07:04:81:00:05:2a:09:0D:81:00:05:2a:08:69:50:58:45:2d:46:4f:47;
        }
        elsif (substring(option vendor-encapsulated-options, 0, 3) = 01:01:02) {
            # BSDP Select
            option vendor-encapsulated-options 01:01:02:08:04:81:00:05:2a:82:0a:4e:65:74:42:6f:6f:74:30:30:31;
            filename "ipxe.efi";
            next-server x.x.x.x;
        }
    }
}

Is there any way to merge both tutorials?

 

 

Emerging Member
Posts: 54
Registered: ‎09-18-2018
Kudos: 43
Solutions: 1

Re: iPXE - network booting of MacBooks and PCs (kpxe and efi)

Up, anybody, anything? :-)

 

Reply