Windows Server 2016

Install Windows Server 2016 Hyper-V Nano Server in VMware ESXi

Nano Server is an exciting feature in Windows Server 2016. Let's take a look at how to Install Windows Server 2016 Hyper-V Nano Server in VMware ESXi

One of the exciting features of Windows Server 2016 is Nano Server which is basically a headless operating system that really does strip out just about everything but the necessary components to run a server operating system. ย There is of course no GUI, no Remote Desktop, or other built in management tools on the server itself. ย The process to install Windows Serverย 2016 Hyper-V Nano Server is quite different than installing from either optical or USB media. ย However, to add an interesting wrinkle, let’s take a look at how to install Windows Serverย 2016 Hyper-V Nano Server in VMware ESXi and the steps involved.

Install Windows Server 2016 Hyper-V Nano Server in VMware ESXi

To begin with, one tool that makes Nano Server deployment a breeze comparatively speaking is the Nano Server Image Builder. ย This utility provides a graphical interface overlay to all the powershell commandlets that you would need to run otherwise. ย It really makes getting your Nano server image prepared much easier. ย In the how to that follows, I will be using the Nano Server Image Builder to create the initial Nano Server image.

Prerequisites for Nano Server Image Builder

The main requirement once you download and install the Nano Server Image Builder is that you have the Windows Assessment and Deployment Kit installed. ย You won’t be prompted to install this first, but rather when you launch the Nano Server Image Builder and start stepping through to create an image, you will be notified you need to download the kit.

Also, to get started created the Nano Server image, you will need to have the Windows Server 2016 ISO handy to mount for source files.

Creating a new Nano Server image

We begin the Nano Server Image Builder by selecting toย Create a new Nano Server image.

nano01

Next.

nano02

Here we specify the installation media location. ย I have mounted the Windows Server 2016 ISO to my E: drive.

nano03

Accept and Next on the license terms.

nano04

Here we are selecting to create aย Virtual machine image and specify the location for the output files. ย I have created aย c:nano folder on my local hard drive.

nano05

Next.

nano06

Here we can select the optional packages or roles that we want to include in our Nano Server image. ย I have selectedย Hyper-V.

nano07

For the purposes of installing this Nano Server image in VMware ESXi, this is a critical step to have device drivers included and found after we provision the VM. ย As you can see below I have included theย vmxnet3 andย pvscsi drivers for network and storage. ย How do we get these drivers?

nano08

Obtaining our VMware tools drivers

To get the drivers I have included above, you simply need to download a copy of theย windows.iso VMware tools media from your ESXi hosts. ย To do that, simply enable SSH and connect to your host. ย Theย /vmimages folder is found in theย /root directory. ย Once you have your ISO image, you need to simply mount the windows.iso file in windows and run the following to extract the tools install to a folder.

d:setup64.exe /a /p c:nanovmtools

From here using the sample directory structure above, you can find the drivers you need here:

C:nanovmtoolsVMwareVMware ToolsVMwareDrivers

Let’s pick back up on the next screen of the Nano Server Image Builder. ย Here we are specifying the local administrator password. ย Notice how I am leaving theย Computer name empty. ย This is because on the next screen we will specify the domain blob file for offline domain join.

nano09

Here we are checking toย Join domain and selecting theย Domain blob file. ย Where do we get this file? ย Our domain controller.

nano10

Getting the Domain blob file for offline domain join

On our domain controller, or another administrative workstation with RSAT loaded, we run the following command:

djoin /provision /domain testlab.local /machine NANO16 /savefile c:nanojoin.djoin

This prestages the computer account for our Nanoserver so that when we feed in the blob file the Nano Server can join the domain. ย Let’s pick back up on the next configuration screen. ย Here we are able to select the network settings for the Nano server. ย I am selecting to manually set IP address here since I don’t have DHCP running in my lab environment.

nano11

Here I don’t really have any advanced settings to configure, but I wanted to show the options on these screens. ย Most of these are developer oriented.

nano12

Here we canย Add servicing packages.

nano13

We can embed files and run commands on the server after setup completes.

nano14

We can enable remote options.

nano15

Debugging methods.

nano16

Finally, we come to the review settings screen that allows us to take a look and confirm all our configuration parameters.

nano17

We can then begin the creation process to actually create the image. ย One thing I really like about the Nano Server Image Builder is the utility shows us the Powershell code to perform the operation. ย This is really handy for learning purposes and just to see what the utility is doing under the hood.
nano18

The image has been created. ย Success!

nano19

Convert the VHD to VMDK

Using the utility that was mentioned here, WinImage, I was able to quickly and easily convert the VHD over to VMDK format. ย Select toย Convert Virtual Hard Disk image. ย You will choose the sourceย VHD file and then name theย VMDK file and selectย VMDK as the format.

nano20

Chooseย Create Fixed Size Virtual Hard Disk.

nano21

After the conversion:

  • Upload the resultingย *.vmdk andย *-flat.vmdk to your datastore.
  • Create a new VM in ESXi withย vmxnet3 andย vmware paravirtual controller to coincide with the drivers we injected in the Nano Server Image Builder utility.
  • Instead of creating a hard disk, point the VM to the existing converted hard disk from WinImage we uploaded to the datastore.
  • For Hyper-V be sure toย expose hardware assisted virtualization to the guest

This should do it! ย You should now be able to boot your new Nano Server image and login with domain credentials on your Nano Server in VMware ESXi and play around with Hyper-V on Nano Server. ย In the next post on this topic we will take a look at additional configuration and other tips and tricks with Hyper-V on Nano.

nano22

Thoughts

Nano Server shows a lot of promise for a headless operating system that is stripped down and ready to perform cloud ready roles such as Hyper-V, containers, and others. ย With the Nano Server Image Builder we are able toย Install Windows Server 2016 Hyper-V Nano Server in VMware ESXi very easily. ย Stay tuned for more Nano Server posts.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.