In the System Image Utility app on your Mac, click the Source pop-up menu, choose a configured Mac volume, then click Next.The first step to configuring the NetInstall service is to decide what you want the service to do. Create a NetRestore image from a mounted volume or disk image. This type of network image can be based on a Mac that’s already configured with preferences, settings, and apps, and is ready to use, or one that starts up into.
Make Net Image Mac OS X ServerCreate a NetRestore Image: Leverage NetBoot as a boot disk so that you can restore a computer that has been configured over a network. Create a NetInstall Image: Leverage NetBoot as a boot disk so that an image hosted on a server can be used to run a macOS installer.Install images are similar to boot images in that client computers can remotely boot from these image files if theyre made available from a NetBoot server. A NetInstall set contains the disk image that will be used for the deployment and the same boot files contained in a NetBoot set. Apple NetInstall is an offshoot of the NetBoot technology built into Mac OS X Server.In most cases, you should also check the box for “Match to client after install.” Click Next once you’ve selected how this should occur.At the Directory Servers screen, click on the plus sign if you’d like to bind the system to a particular directory server.In this example, we’re binding to ad.krypted.com. Here, you can provide a name as a base for computers to get a computer name or you can use a file to deploy names. Post-install scripts allow you to do pretty much anything you’d like to a system, provided it’s allowed by SIP.At the System Configuration screen, choose how you’d like systems to receive names. Here, you can use a profile to deploy a printer, bind to Active Directory, or use a package to install software.Click Next.At the Supported Computer Models screen, you can choose which models of computer you don’t wish to support for this image. Note that each image should have a unique image index, so unless you’re storing your image on multiple servers, it’s best left at the defaults. Click Add once you’ve provided the appropriate directory server and credentials.At the Image Settings screen, provide a name for the image, as well as how the index number for the image is created. In this case, we’re using the built-in admin account for Active Directory.Then click on the OK button. Once you’ve selected a disk to store your image, we need to copy the disk image into the Library/NetBoot/NetBootSP0 folder of the disk used for images.Once in the appropriate folder, click on the Edit button for Network Interfaces and select the appropriate network interface you wish to serve images over, and click OK. The Image is what you are creating and the Client Data is dynamic data stored in images.If you only have one disk, as in this example, click on “Images & Client Data” for that disk. At the Storage Settings overlay, select the volume that Images will be hosted as well as the volume that Client Data will be hosted. To do so, click on the Edit Storage Settings button. To get started, go back to the Server app.First, define which disk will host NetBoot Images. We’re not going to do that as part of this workflow, so just click Next (unless of course you’d like to do that).Then, when prompted, select a location to store the Disk Image, provide any tags to be applied to the files that comprise the image and click on Save.The computer will then start creating the NetBoot set.Once finished, it’s time to set up the NetInstall service in macOS Server. Sandisk secure access file for macFor example, to allow writing to the NetBoot share:Sudo serveradmin settings netboot:netBootStorageRecordsArray:_array_index:0:readOnlyShare = noSudo serveradmin settings netboot:logging_level = "HIGH"In the beginning of this article, I mentioned that ways to configure NetInstall images. Here, let’s get a status of the service using the serveradmin fullstatus option (along with the service name, which is still netboot from the command line):The output of which shows the various components, logs and states of components:Netboot:netBootConnectionsArray = _empty_arrayNetboot:logPaths:netBootLog = "/var/log/system.log"Netboot:timeOfSnapshot = " 02:07:32 +0000"Netboot:stateImageArray:_array_index:0:_array_index:0 = 1Netboot:stateImageArray:_array_index:0:_array_index:1 = 0Netboot:stateImageArray:_array_index:0:_array_index:2 = 0Netboot:stateImageArray:_array_index:0:_array_index:3 = 1Netboot:stateImageArray:_array_index:0:_array_index:4 = 2Netboot:stateImageArray:_array_index:1:_array_index:0 = 0Netboot:stateImageArray:_array_index:1:_array_index:1 = 0Netboot:stateImageArray:_array_index:1:_array_index:2 = 0Netboot:stateImageArray:_array_index:1:_array_index:3 = 0Netboot:stateImageArray:_array_index:1:_array_index:4 = 2Netboot:stateImageArray:_array_index:2:_array_index:0 = 0Netboot:stateImageArray:_array_index:2:_array_index:1 = 0Netboot:stateImageArray:_array_index:2:_array_index:2 = 0Netboot:stateImageArray:_array_index:2:_array_index:3 = 0Netboot:stateImageArray:_array_index:2:_array_index:4 = 2Netboot:stateImageArray:_array_index:3:_array_index:0 = 0Netboot:stateImageArray:_array_index:3:_array_index:1 = 0Netboot:stateImageArray:_array_index:3:_array_index:2 = 0Netboot:stateImageArray:_array_index:3:_array_index:3 = 0Netboot:stateImageArray:_array_index:3:_array_index:4 = 2Netboot:servicePortsRestrictionInfo = _empty_arrayNetboot:netBootClientsArray = _empty_arrayAnd to start the service when not running:There are also a number of settings available at the command line that are not in the graphical interface. Do so to start the service.Once started, open a Terminal window. Click on “Use as Default Boot Image” to set an image to be the default images computers boot to when booting to NetBoot. Now, it’s as easy as clicking on the ON button. Click on the image and then click on the cog-wheel icon. Double-click on an image.At the image settings screen, you can select NFS over the default HTTP protocol for “Make available over”.Note, you can also restrict access to the image to certain models of Apple computers and/or certain MAC addresses by using the “Image is visible to” and “Restrict access to this images” options respectively. Additionally, use the Make this image available for diskless booting option to allow computers without hard drives to boot to the image.Click on the OK button.
0 Comments
Leave a Reply. |
AuthorWendy ArchivesCategories |