Setting up Network Installer

I might be going about this the wrong way, but I'm trying to do is set up Network Installer to use for provisioning company laptops.


We have a fleet of macs we need to wipe and reinstall the OS every time we deploy to a new user. We currently want all our assets to be on Catalina (soon, to be Big Sur) but some are on Mojave still and some are on Big Sur. For those that don't know, if you don't have a USB with OS installer setup, you pretty much have to set up the mac, download the OS you want, install and set the device up again. Which is roughly and added 30-40mins per device provisioning.


I read that with MacOS Server, we can setup a Mac Mini connected to a LAN, with Mac Server running on it and have the intend OS loaded to it, we could just connect the device that needs to be wiped and reinstalled to the same network via a ethernet, Hold N while restarting and the Laptop should find the Mini on the network and pull down the pre-loaded build.


This would be amazing, but I can't find an easy to follow guide or a guide that isn't archived or out of date.


Am I going about this wrong? or would someone know how to set this up? This is all I need it to do and can ever set this up on a closed local network.


Thanks

Posted on Sep 30, 2021 4:34 PM

Reply

Similar questions

1 reply

Oct 16, 2021 3:35 PM in response to OptionR

Hello. You are nearly a half decade too late. Any Mac with a T2 chip does not support network booting. https://support.apple.com/en-us/HT202770


While this was possible (and amazing), it is not a viable goal today unless you are using older hardware on older operating systems and you deploy and older version of server. With Mojave about to be dropped from support, this is not a wise path.


Your best option today is to enroll in Apple Business (or School if you are an EDU) Manager and deploy an MDM. Please note that additional features for T2 and ARM Macs have been announced for Monterey https://www.apple.com/macos/monterey-preview/features/, I will focus on what you can do now with existing Macs.


On Big Sur, you still need to get the OS installer delivered and then you can use the startosinstall command to initiate an --eraseinstall. Delivery and command syntax varies a bit between the supported operating systems but with an MDM you can script the fetch of the OS installer and then trigger the erase and install.


For example, on Big Sur, this will fetch the latest full Big Sur installer:


softwareupdate --fetch-full-installer


However, Catalina machines need to explicitly define the OS version required:


softwareupdate --fetch-full-installer --full-installer-version 11.6


And on Mojave, the softwareupdate command does not support fetching the OS installer so you need to fetch the InstallAssistant.pkg from the Apple CDN using something like curl and then the installer command to install the pkg.


Please note, the example below is for the 11.6 installer. If Apple releases additional full installers, then this URL will change.


curl -O http://swcdn.apple.com/content/downloads/57/38/071-97382-A_OEKYSXCO6D/97vrhncortwd3i38zfogcscagmpwksdzce/InstallAssistant.pkg


Once you have the Big Sur installer downloaded to the /Applications folder, use the startosinstall command to trigger an erase and install. WARNING - This will delete all data on the machine - WARNING. A Recovery partition and APFS is required for this to work so if you have machines that were cloned, you are out of luck.


This command will work on Intel machines:


/Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/startosinstall --agreetolicense --eraseinstall 


With an MDM like Jamf, you can set this as a Self Service policy allowing a "one click" reset of the machine. Obviously, it is not instant as the OS needs to download first. However, this is effective in remote reset conditions or if you don't have technical staff.


Hope this helps find a solution.





This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Setting up Network Installer

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.