Posted on 08-19-2015 10:08 AM
Hi Folks,
I know a number of people here have done interesting things creating small NBI files. I would like to create something that will boot the target Mac (from USB) and issue this NetBoot command and force an immediate reboot from the NetBoot server:
bless --netboot --booter tftp://10.101.118.10/NetBoot/NetBootSP0/CasperYosemite.nbi/i386/booter --kernel tftp://10.101.118.10/NetBoot/NetBootSP0/CasperYosemite.nbi/i386/mach.macosx --kernelcache tftp://10.101.118.10/NetBoot/NetBootSP0/CasperYosemite.nbi/i386/x86_64/kernelcache --options "rp=nfs:10.101.118.10:/private/tftpboot/NetBoot/NetBootSP0:CasperYosemite.nbi/NetBoot.dmg"
Due to imaging problems yesterday I have a number of iMac units that have no operating system on them. Rather than trying to boot from Internet Recovery Mode and type all this into Terminal, I was thinking it should be easy to create a minimal recovery style OS X on a USB stick whose only job is to issue the above command and reboot. I've been preparing for Casper Imaging since April and I'm now at the point where I have an image to deploy and everything is working.
I can envision a launchd plist to make this happen but the mechanics of creating a minimal OS on a USB stick to do this are a little beyond my abilities at this time.
Solved! Go to Solution.
Posted on 08-19-2015 11:43 AM
@endor-moon or.. Use AutoCasperNBI to create a restorable DMG.
Restore that to a USB stick & boot the clients off of that & image.
Posted on 08-19-2015 10:18 AM
maybe I'm missing something, why not just startup to NetBoot directly from Startup Manager?
Posted on 08-19-2015 10:27 AM
Because the Startup Manager isn't going to see the NetBoot server which is in another VLAN/Subnet. Hence the wordy bless command. ;)
The alternative is to bring another computer to the lab whose only job is to let the clients NetBoot to start Casper Imaging... rather time-consuming and it means moving a computer around.
Posted on 08-19-2015 11:43 AM
@endor-moon or.. Use AutoCasperNBI to create a restorable DMG.
Restore that to a USB stick & boot the clients off of that & image.
Posted on 08-19-2015 12:14 PM
Restorable DMG? Cool, I will try it. I should have known a solution was already out there. ;) Thanks.
Posted on 08-19-2015 04:47 PM
I believe Pepijn has been working on a raspberry pi version of BSDPy. With the API version you can have your actual NBI hosted on a webserver somewhere, yet the tftp booter lives on the pi, so the clients 'see' the NBI on the pi, but they get directected to the webserver with the NBI for actual booting
Simply plug the pi into vlan/subnet and option boot your heart away.
have you tried that bless command on 10.11 betas?
Posted on 08-20-2015 06:05 AM
I haven't done much with the 10.11 betas just yet, no. "see the NBI on the pi" has a nice ring to it, though. ;)
Posted on 08-20-2015 06:17 AM
I would recommend you try out the betas and submit bug reports if required...
this might be relevant to your interested http://www.openradar.me/21310286t
Posted on 08-23-2015 06:51 AM
Thanks for the link, calumhunter, I will consider it.
Posted on 08-23-2015 09:07 AM
Thanks @bentoms, your suggestion works like a charm.