Getting Started with Nano Server

What is Nano Server ?

Nano Server is a new installation option that became available with the arrival of Windows Server 2016 Technical Preview. It is a purpose-built, stripped down operating system designed to run services and to be managed remotely.

Windows Server 2016 will offer the following installation options:

NanoServer01

Nano Server has been designed according to Zero-Footprint model and its size on disk is around 500MB. It has no GUI, binaries or metadata in the OS image, it sets up significantly faster and requires far fewer updates and restarts than Windows Server.

As an installation option cannot be selected during Windows Server Setup and in order to prepare and customize a VHD image with Nano Server, PowerShell should be used. Nano Server can run either as a Virtual or Physical Machine supporting the following Roles and Features:

Role / FeaturePhysical / VirtualDescription
ComputePhysicalHyper-V Role
StorageBothStorage role
ClusteringBothFailover Clustering role
Reverse ForwardersBothHelps in testing legacy tools
DefenderBothAnti-Malware Defender package
OEM driversPhysicalSelection of drivers that ship in-box with Server Core
Guest driversVirtualDrivers needed to run Nano Server as a VM

In order to deploy Nano Server as a Virtual Machine into a Hyper-V host running Windows Server 2016, the following procedure could be used:

Step 1 – Mount the ISO

Mount the Windows Server 2016 Technical Preview ISO and copy the contents of \NanoServer folder. If the drive letter for the mounted image is G:\ run the following commands:

Step 2 – Dot-Source the Scripts

The PowerShell Scripts that are included into the Installation folder need to be dot-sourced, in order to be used for the Nano Server VHD creation. Alternatively, it is possible to use another PowerShell Script that you will find at TechNet Library or GitHub, for that matter.

Step 3 – Create a VHD

Run the following command to prepare a Nano Server VHD:

New-NanoServerImage CmdLet allows us to specify Media and Target Path, set the Computer Name, add right set of drivers for Physical or Virtual Machine, select if the Nano Server will join an Active Directory Domain etc. Most important, it allows us to select which Roles or Features are going to be installed.

Please note that if you are running New-NanoServerImage.ps1 on a non-English installation of Windows you should include –language en-us. If you don’t include this, the script will default to your local language–because there are currently no localized builds of Windows Server 2016 it will fail to find the appropriate packages.

Step 4 – Create a Virtual Machine

As soon as the New-NanoServerImage.ps1 has been successfully completed, a new VHD with Nano Server will be available and can be attached as a boot device to a Generation 1 Virtual Machine.

VM creation can be done with the following script:

A couple of seconds after hitting the Start-VM Command, Nano Server will boot and the following screen will appear:

NanoServer02

Next, Login using Domain credentials and the Emergency Management Console will appear:

NanoServer03Navigate using TAB, choose Networking and get Network Adapter’s Settings as shown below:

NanoServer04How-to Manage the Nano Server

Nano Server has no GUI or any other console, except of Emergency Management Console that right now is very restricted and can be used only to display Network Adapter’s Properties. So, how can we manage Nano Server?

Can be managed Remotely using the following tools:

  • Remote Graphical Tools (Server Manager, Hyper-V Manager, Disk Manager etc.)
  • PowerShell Remoting
  • PowerShell Direct
  • Third Party Tools & Frameworks (Chef, ASP.NET 5 etc.)

Enter a PowerShell remote Session, using the following command:

Then run Get-Process Cmdlet and get the processes that are running to the Nano Server

NanoServer05

Resources

More information about Nano Server and its deployment Scripts you can find at the following URLs:

One thought on “Getting Started with Nano Server

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)