Building / Configuring Nano Server Cluster

We all have seen all the great new announcements about Azure Stack, System Center 2016, Server 2016 and off course Nano Server. In this post i am going ahead of preparing the new Azure Stack in my environment. In Azure Stack you can create Compute and Storage resources. The details about that i will save for a later blog post. Lets first start by creating an nano cluster. I am going to create a 2 node cluster.

So i created the following script to create the nano server. In order to successful run the script i need to have the prereqs listed on in place. So i have the Convert-WindowsImage.ps1 downloaded and copied over the Nano.wim, Nano Packages and DISM files from the TP2 DVD and prepared an unattend.xml.

First i prepared the vhd:

If you get the error when running convert-windowsimage about “Windows version not compatible” you need to hack the script to allow your windows 10 or Server 2016 Tp2 version run the script. Just return $true on line 3047 and comment out all lines in that function.I know its not the right way, but worked for me.  When i unmounted the disk i made a copy of the VHD as reference for other nodes of the cluster. Next i prepared the unattend.xml. The XML i used is here:

Then i run per copied VHDX (for each node in my new cluster) the following script (first edit the content to match the specific node settings by editing the IP address in this script and the server name in the unattend.xml. As this is my lab i set Firewall to allow any. You might want to change that according your environment)

When the image is prepared i created the VM and moved the disk to the VM folder and booted it. I need to repeat the last script with the copied disk i made before. When both VMs are created and up and running we can join it to the domain

First i need to prepare the domain join config by running this on my domain controller:

Next i need to copy that file to my nano server. you can do that simply by using unc path to C$ of the nano server. When the file is copied i need to remote into the nano server or use invoke-command to join it to the domain.

And your node is joined to the domain. I have only 1 Domain controller running TP2 preview so i installed all RSAT features on that box so i can have some management consoles.

Now next step is to prepare the cluster. As i have the FailoverCluster tools installed i ran the following:

And my cluster is running. Now if you want to setup Compute or Storage resources its a matter of using remote tools to configure the nodes.

I hope this gave you a quick overview of how to configure Nano Server Cluster.