Apple NetBoot: iPXE Could not open net0



  • And you changed the nbi id? Using an nbi with id 3913 is the only way to get to ipxe.



  • Yes I've changed it to 1.



  • In the proxydhcp server, set the apple-vendor-specific-information to blank



  • Changed it to blank and restarted proxydhcp, same result.



  • Analyzed tcpdump on proxydhcp with Wireshark.
    For some reason it refers the Macbook Pro to ipxe:
    [attachment:5a5f704eab842]



  • Can you expand option 43



  • [attachment:5a5f72d12cb31]



  • [attachment:5a5f75c99d763]



  • Are you booting with the option key or n?



  • I used the option key to set the default boot to netboot.



  • I just entered this menu again and saw "macbookpro", which wasn't there earlier.
    I must've set it to the linux boot originally and it stuck since then... didn't know it worked like that.
    Thanks! I'll let you know how it goes.



  • It seems that transferring the 6GB mac image is taking forever because it's downloaded from the C/D server rather than the SMB.

    Is there a way to move the Mac imaging environment to the SMB, and refer clients there as well?



  • My C/D is configured according to [url=http://clonedeploy.org/docs/image-storage-linux/]section II.B[/url] .
    Where exactly in /mnt/my_smb/resources/ should I place the 0001 image files?



  • How long is forever?
    What exact OS version did you make an NBI from? There is a bug with High Sierra that causes the transfer to take too long, sometimes.

    You can move the NBI anywhere you want, it just needs to be served from a web server, can't use smb.



  • At least 30 minutes, and the C/D server's network upload seemed to average on 10KB/s.
    Sierra 10.12.6

    Why can't SMB be used like with the images?



  • It should only take about 5 minutes. Guessing that something still is not setup correct. If the Mac can't find the nbi it won't error out. It will just look like it's copying when it really isnt



  • You should be able to check the apache access logs to see what's happening



  • The apache access log keeps repeating this:

    [code]127.0.0.1 - - [17/Jan/2018:19:54:42 +0200] "GET /clonedeploy/api/Authorization/IsAuthorized/?requiredRight=AdminRead HTTP/1.1" 200 254 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:43 +0200] "GET /clonedeploy/api/Setting/GetSetting/?name=Operation%20Mode HTTP/1.1" 200 308 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:43 +0200] "GET /clonedeploy/api/Setting/GetSetting/?name=Server%20Identifier HTTP/1.1" 200 314 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:43 +0200] "GET /clonedeploy/api/Setting/GetSetting/?name=Operation%20Mode HTTP/1.1" 200 308 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:43 +0200] "GET /clonedeploy/api/ActiveImagingTask/GetActiveTasks/ HTTP/1.1" 200 241 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:43 +0200] "GET /clonedeploy/api/User/GetCurrentUserAuditLogs/?limit=1000 HTTP/1.1" 200 609572 "-" "RestSharp/105.2.3.0"
    10.0.0.101 - - [17/Jan/2018:19:54:44 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 139008 "-" "-"
    127.0.0.1 - - [17/Jan/2018:19:54:44 +0200] "GET /clonedeploy/api/ActiveImagingTask/GetAllActiveCount/ HTTP/1.1" 200 253 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:44 +0200] "GET /clonedeploy/api/ActiveImagingTask/GetActiveTasks/ HTTP/1.1" 200 241 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:44 +0200] "GET /clonedeploy/api/User/GetCurrentUserAuditLogs/?limit=1000 HTTP/1.1" 200 609572 "-" "RestSharp/105.2.3.0"
    127.0.0.1 - - [17/Jan/2018:19:54:45 +0200] "GET /clonedeploy/api/ActiveImagingTask/GetAllActiveCount/ HTTP/1.1" 200 253 "-" "RestSharp/105.2.3.0"
    192.168.20.100 - - [17/Jan/2018:19:54:42 +0200] "POST /clonedeploy/views/admin/dp/edit.aspx?level=2&dpid=1 HTTP/1.1" 200 38196 "http://censored/clonedeploy/views/admin/dp/edit.aspx?level=2&dpid=1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
    10.0.0.101 - - [17/Jan/2018:19:54:46 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:48 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:50 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:52 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:54 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:56 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:54:58 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:00 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:02 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:04 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:06 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:08 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:10 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:12 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:14 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    10.0.0.101 - - [17/Jan/2018:19:55:16 +0200] "GET /clonedeploy/api/public/macos_nbis/0001/NetBoot.dmg HTTP/1.1" 200 144800 "-" "-"
    [/code]

    So it looks like it finds the image but... transfers it very slowly? I dunno.



  • In your apache config for clonedepoy, clonedeploy.conf, do you have this block?
    [code]<Location "/clonedeploy/public/macos_nbis">
    Allow from all
    Order allow,deny
    SetHandler default-handler
    </Location>[/code]

    If so try changing the location to /clonedeploy/api/public/macos_nbis



  • You sir are a genius!
    I ended up just putting a soft link clonedeploy/public -> clonedeploy/api/public, it works now!