MacOS – Unable to create a NetBoot image on Sierra

macosnetbootserver.app

I've been trying for a couple of ways in every way imaginable to create a Netboot image for sierra.
Up until now I've tried doing the following:
– Mounting the disk from a vm and using that as source
– Using the Install Sierra.app as source
– Using a tool like autoNBI
– Doing the whole workflow through the automator

But when using the disk image utility it always gives error 2 after the "Creating cache" step.
Any clues?

Creating a netrestore image is no problem by the way..

I tried running the commandline tool imagetool instead. It gave me a very similar error. Here is the complete output:

imagetool --netboot --index 2000 --source /Volumes/Macintosh\ HD\ 2 --destination '/Users/Styleshoots/Desktop/netboot\ images/' --name 'sierra netboot'

2016-11-01 14:20:46.182 imagetool[788:13710] Imaging failed. Error: Error Domain=System Image Utility Code=2 "(null)"
2016-11-01 14:20:46.596 imagetool[788:9044] imaging tool has completed '/Users/Styleshoots/Desktop/netboot\ images.nbi'
2016-11-01 14:20:46.596 imagetool[788:9044] image creation took 536.859359 seconds.

Best Answer

I have the same problem using the imagetool command or the System Image Utility app on macOS Sierra.

As a semi-solution (workaround?), you could follow the steps on this web page that shows how to create a NetBoot image (.nbi) using the Install Sierra.app as source. I was able to create a "plain" NetBoot image with these steps. I assume you could also customize stuff using additional Installer packages and post-install scripts.

I'm still looking for a (free-style, good-old) way to create a NetBoot image from a custom bootable macOS Sierra partition though.