Building on the idea of Server Core, Nano Server is a brand new capability in Windows Server 2016 that enables you to create some incredibly small servers. The interface is almost truly headless, meaning that the majority of administration on these servers is going to be done remotely. We will discuss management in just a few minutes with the final recipes in this chapter, but the first thing you need to do in order to start working with Nano Server is to build a Nano Server! Putting together your first Server Core or full Desktop Experience machine is as simple as choosing the correct option from the installation DVD, but the process to build a Nano Server is quite different. Let's walk through the steps together to get you started.
Today we are trying to spin up a virtual machine that is running Nano Server 2016. Since there is no installation option for Nano Server on the Windows Server 2016 installation DVD, we will figure out together how to implement this new version of the operating system.
Rather than run through a traditional installation wizard, in order to spin up our first Nano Server we will be taking a few steps to build out a VHD file. This virtual hard disk will be compiled with all the data that it needs to be a Nano Server, and afterwards we can simply boot our new VHD as a virtual machine on any Hyper-V platform. Follow these steps to do it yourself:
C:NanoServer
folder on your machine that contains all the parts and pieces that Nano needs in order to build a VHD file.Import-Module -Name C:NanoServerNanoServerImageGeneratorNanoServerImageGenerator.psm1 -Verbose
.
New-NanoServerImage -MediaPath D: -DeploymentType Guest -Edition
Standard
-TargetPath C:NanoServerNANO1.vhd -ComputerName NANO1
D
drive, and I need to specify an output location for my new VHD file that is being created. I also have the opportunity right here in the command to give my new Nano Server a hostname, for which I specified NANO1. The last switch I included here was an Edition
, and I chose Standard
. If you needed a Nano Server running the Datacenter SKU, you could specify that information right in the command. The item here that is not as self-explanatory is the DeploymentType
variable. For this you can specify either Guest
or Host
. Your decision here depends upon whether you want this Nano server to be running as a virtual machine, or on a physical host server. Most often we will be specifying Guest
for this option.
C:NanoServer
folder that a brand new NANO1.VHD
file exists. Next, simply create a new VM inside Hyper-V just like you would for any other server, and specify this new VHD as the hard disk for your virtual machine.
In this recipe, we learned how to use PowerShell in order to create a virtual hard disk on our computers, which can then be used to boot into a new instance of Nano Server. This is the first step you will need to take in order to start working with Nano Server and get one up-and-running so that you can start exploring inside the interface. Now that we have a Nano Server running, continue on with this chapter to look further into the administration and management of these servers. You may need to adjust your thinking a little bit as we start figuring out that remote management is a key part in the way that Nano Server works.
If PowerShell isn't your thing, you are not alone, and Microsoft recognizes this. While we should all be striving to become more comfortable with using PowerShell on a daily basis, graphical tools still rule most datacenters. Just released is a new tool that will help you create Nano VHD files, by using your good old color monitor and mouse.
Use the Nano Server Image Builder tool in order to create these Nano servers, or even to create a bootable USB installer for placing Nano Server onto physical hardware! Rather than having to explore and remember all of the switches that accompany the New-NanoServerImage
cmdlet in PowerShell, you can now run this simple graphical tool and walk through a few wizards in order to spin out your new Nano. From what I've seen, the nicest feature of this image builder is the ability to choose which roles will exist on your new Nano server by using check-boxes, just like when you are choosing which roles you want to install on your Server 2016 running full Desktop Experience. For anyone who will be working with Nano Server, this tool is definitely something you are going to want to check out!
Here is a link to some additional information: https://blogs.technet.microsoft.com/nanoserver/2016/10/15/introducing-the-nano-server-image-builder/. Here is a download link so you can try it for yourself: https://www.microsoft.com/en-us/download/details.aspx?id=54065.
3.139.104.23