Posted on 08-01-2014 05:28 PM
Update: AutoCaspeNBI has been released, for more information see: https://macmule.com/autocaspernbi/
Hi All,
Over the past couple of months I've been working on an app that with streamline NetBoot creation for use with Casper Imaging (as well as creation of Read-Only DMGs to restore to USB sticks.. if that's your thing).
The basic idea is that you start with an clean never booted OS.dmg either from AutoDMG https://github.com/MagerValp/AutoDMG, Casper Admin http://macmule.com/2014/03/06/how-to-create-an-never-booted-os-dmg-using-casper-admin/ or a Composer captured OS.dmg from a never booted Mac (as in with forked builds).
Then add a copy of Casper Imaging, from there you can click build or amend the options on the first window or click the options button for more.
All the options should have popovers that explain their functions in a bit more detail. Most of the options set will be written to a plist (~/Library/Preferences/com.macmule.AutoCasperNBI.plist) will allows for AutoCasperNBI to be re-run when needed with the settings you haves used before.
You should see some blanks in the GUI & parts i've not added yet (due to the fact that I'm not sure how yet). These should be added at some point.
Then there will be a full 1.0 release & include:
Solved! Go to Solution.
Posted on 10-25-2014 08:04 AM
Hi All,
Thanks for the testing & thanks again to those whom attended my talk @ JNUC.
Slides & Links can be found at the following: https://macmule.com/2014/10/25/jnuc-2014-autocaspernbi-and-the-casper-netinstall-creator-session-sli...
Posted on 08-01-2014 07:34 PM
Thanks for the awesome work @bentoms I'll definitely give AutoCasperNBI a whirl!
Posted on 08-01-2014 07:45 PM
mega
Posted on 08-01-2014 07:59 PM
A 6000+ line Applescript... wow. That's a lot of work!
Posted on 08-01-2014 09:08 PM
I gave the build process a try in a 10.7.5 VM. The build process completed successfully, but the resulting NetBoot set was not able to successfully NetBoot my 10.7.5 test VM.
I've uploaded the requested log and plist file via the MacMule contact page.
Posted on 08-02-2014 01:09 AM
Thanks @rtrouton,
I'm going to try & create a 10.7 NBI via SIU on a 10.7 mac & will check what's different.
One thing, could be that the kernelcache file needs to be copied to a second location as shown: http://bennettp123.com/2013/05/31/netbooting-macs-without-bsdp
So, i386/kernelcache & i386/x86_64/kernelcache.
Posted on 08-02-2014 01:30 AM
We ended up using the 0.9 version output in production. Yes, it was good enough for that.
Posted on 08-04-2014 08:16 AM
Great idea for an app. This shows a lot of potential. Thank you!
Posted on 08-04-2014 08:19 AM
Great idea @bentoms. Casper NetInstall Image Creator is no go for us, due to lack of compatibility with SMB DPs, so this looks like the next best thing. Appreciate the effort put in here. So many great tools coming out the community of late. Exciting times!
Posted on 08-04-2014 09:58 AM
This looks very cool, I'll give it a whirl shortly. :)
Two things I would like to see: disable sleeping of machine, disks, display and enabling ARD access.
Posted on 08-04-2014 10:16 AM
@chris.kemp.. There are options to set ARD & VNC on the NBI already (under the options window).
I've used Apple's Energy Saver settings (these are the same that overwrite would you'd when creating an NBI via System Image Utility).
Give it a whirl.. There will be another version in a few days will "full" 10.7 support too.
Posted on 08-04-2014 11:21 AM
Good to know, thanks @bentoms
Posted on 08-06-2014 02:18 PM
0.11 has been posted, with creating of 10.7 NBI's & works on 10.7.x.
So with AutoCasperNBI you can create 10.7+ NBI's on 10.7+.. (yep, 10.7 can create 10.9.x nbi's for example).
I'd love some more feedback on this as i've received little, so please give it a go!
Posted on 08-07-2014 05:23 AM
I tried AutoCasperNBI out and it worked great. I made a very basic build with an AutoDMG 10.9.4 dmg and Casper Suite 8.73. I successfully booted a Macbook Air from a NetSUS on Ubuntu 12 Server running in VMware Fusion. I'll definitely be trying more of the options in the future, but it worked like a champ on the first try. Thanks @bentoms!
Posted on 08-07-2014 07:44 AM
@Josh.Smith, awesome! glad to hear it!
Posted on 08-07-2014 02:42 PM
@bentoms: You, sir, are my hero! Thank you so much for putting this together! Works great! And now for the obligatory feature request. Can we run it with Simple Finder? That's what I do with my NetBoot images. I would also like to make the inclusion of a Safari icon optional if possible.
THANK YOU!!!!
Posted on 08-07-2014 02:44 PM
Simple finder eh?
Got a command to set that?
Glad you've found it useful so far!
Posted on 08-07-2014 02:47 PM
Ah, http://www.defaults-write.com/activate-os-x-finder-in-simple-mode/#.U-Pzpom9LCQ
Will test & add as an option for next release.
Posted on 08-08-2014 02:23 PM
@bentoms: Yes, I do believe that's how I did it. I'm sure some folks will find it beneficial. Thanks again!
Posted on 08-08-2014 03:16 PM
Cool.
That should be easy enough.
I've also been asked to add an option to set the language, so will look @ that too.
Posted on 08-11-2014 11:38 PM
Excellent work @bentoms.
Is NTP configuration included?
Posted on 08-11-2014 11:39 PM
@Kumarasinghe. Yep!
Posted on 08-12-2014 11:50 AM
Awesome work!
Posted on 08-15-2014 05:51 AM
Hey @bentoms - I gave this a try yesterday, but ran into two snags: First, trying to enable ARD did not work. When I ticked the box & entered the credentials, the Close button did nothing & the Options window stayed open. I had to un-check it to proceed.
Second, for some reason the JSS URL didn't take. The netboot worked fine, but I had to enter the URL and credentials for imaging. (Is it trying to use the credentials I first ran the app with? If so, I'd like to be able to add those separately.)
Sent the files to you as requested above. :)
Posted on 08-15-2014 06:39 AM
@chris.kemp.. Thank you for testing & coming sending the files.
If you relaunch the app & create another NBI.
Is the URL then set?
I'm looking at the ARD issue now.
Posted on 08-15-2014 08:24 AM
Testing again, I'll let you know if that works.
Posted on 08-15-2014 10:10 AM
hmm - just tested again, same base image & Casper Imaging as yesterday, but it's not launching at all now & I'm getting the spinning beach ball...
Posted on 08-15-2014 10:16 AM
OK, it launched this time - but still no JSS address. :(
Also, how does it get the login credentials in place, or account for an untrusted cert?
Posted on 08-15-2014 11:36 AM
OK - - 3rd time's the charm, it may be my fault here...
I didn't notice, but it's possible that I had not set the JSS URL correctly in the window. After reading the log, not seeing anything about the URL, and then checking out the .scpt I saw the logic about setting the icon, and I noticed that there was a red !. I put the full, correct URL & saw the checkmark - rebuilt a new .nbi, and this one worked as expected. :)
So if that was my bad...you have my apologies.
Posted on 08-15-2014 01:05 PM
@chris.kemp.. No worries. I did see something & I think I've fixed it. So thanks.
Still looking at the ARD issue.
Oh & it won't cache your login details.. If you wanted that.. You could use autorun data on the JSS.
Posted on 08-17-2014 06:09 AM
Finally coming up for air, got a chance to look at this and, well...WOW!!!! Kudos to you sir, this is friggin' awesome!!! Thanks for making a tool that makes it easier to get work done and hides the complexity, um, like the iPhone. :)
Posted on 08-19-2014 08:56 AM
Running this in a lab. Having an issue with the system not rebooting at the end of the imagine process. Either hangs on "Can't Quit Casper Imaging" or quits and hangs on grey screen.
Building a new version without ARD enabled to see if that helps (read it somewhere!)
Posted on 08-19-2014 11:16 AM
@Zvordauk, what version of Casper Imaging?
9.32 had some issues quitting.
Also, is this NetBoot being hosted on OSX server? If so, maybe try stopping the service & emptying the /NetBootClients/ folder then restarting.
Lastly, did you try with or without the modified rc.netboot?
I did see this issue with Imaging 9.32, but no longer do.. It's an odd one to track down tbh.
Posted on 08-20-2014 07:35 PM
I also saw the issue that @Zvordauk with it hanging at the gray screen after imaging (JSS and Casper Imaging 9.4). I waited a while and restarted manually and the rest of the imaging process seemed to go fine after that.
I also imaged a couple other machines with it, and all three got a message along the lines of connection timed out or was lost to the JSS. Weird part was that they all seemed to have gotten through downloading the packages for first boot and setting up the firstboot script. I OK'd the error and rebooted them, and they all seemed to reboot and finish imaging fine.
Really nice to have a tool that doesn't give me that nilobjectexception! Many thanks!
Kyle
Posted on 08-20-2014 11:30 PM
@smith.kyle & @Zvordauk, can you send me the logs & plists as mentioned in the 1st post?
I'm trying to see an commonality for this issue.
@smith.kyle.. Is this an OSX Server hosing NetBoot?
Posted on 08-21-2014 03:57 PM
@bentoms Sent you the logs. And yes, it's an OSX server hosting the netboot images.
Posted on 08-22-2014 12:55 AM
Hi Ben,
I have a request ... and don't worry, it's not an extra feature or anything. Any chance in the future we can get an autopkg recipe for this? (Haven't checked if there's one already. Not in my current repo list).
Posted on 08-22-2014 12:30 PM
Outstanding!
Posted on 08-26-2014 02:50 PM
Updated to 0.12.. notes below.. same link for DMG as top post.
0.12
— Added OS & Input Language selection (@mintzd01)
— Added simple Finder selection (@jescala & @franton)
— Added pre-checks to correctly write to plist when needed. (@chris.kemp)
— Corrected behaviour when progress window showing so it doesn’t disappear. (@nick.anderson)
— Added 10.10 NBI creation support (Full 10.10 support to come)
— Changed root users dock, adding Casper Imaging to it.
— Changed AutoCasperNBI LaunchDaemon to launch once, to try & resolve issues with hanging on restart (@smith.kyle & @Zvordauk).
Posted on 08-26-2014 02:54 PM
Thanks. Will test when I get back to base next week. Keep up the great work!!!