📜 ⬆️ ⬇️

How to deploy Windows Nano Server (TP5) on vSphere

Closer release of Windows Server 2016 Microsoft, with which the new operating system will be introduced: Windows Nano Server, a super-lightweight version of Windows Server created specifically for the cloud. When we first heard about it, we immediately became terribly curious, because it resembles in many ways VMware ESXi: it is the same embedded system that takes up little space and is controlled solely by remote control. It is limited to use, but can act as a full-featured Hyper-V virtualization host and as a container host.


We found several instructions for deploying Nano Server on vSphere, but they belonged to older versions of Server 2016 Tech Preview (TP) (after all, much could change in the current 5 preview), so we decided to present another version of the instructions. Nano Server cannot be installed from a bootable CD like other versions of Windows Server, but it comes with its own Powershell-based deployment options.


A Windows WIM file or Hyper-V virtual disk will be output in the old vhd format or in the newer vhdx format. The image must be converted to a VMware vmdk file, which must then be uploaded to the ESXi host and connected to the newly created virtual machine.


All subsequent steps were tested on a Windows 10 workstation and on an ESXi 6.0 U2 host. Everything should work similarly with Windows 8.1 and ESXi 5.5.



Image building


1. Download Windows Server 2016 TP5 ISO


if you have not done so already, download the Windows Server 2016 Technical Preview 5 ISO file from the Microsoft Technet Evaluation Center. This will require a Microsoft account and quick and free registration.


2. Make sure you have the latest VMware vmxnet3 and pvscsi drivers


Download the latest version of VMware Tools for Windows (x64) in exe format (currently version 10.0.9). Perform an administrative installation of the package using / a, for example:

image

This will not install Tools on your local system yet, but will unpack all the files into the directory that you specify in the dialog box that appears:

image

In this example, we use the directory C: \ TEMP \ VMTools. Make sure that the folder C: \ TEMP exists, or use another parent directory.


Tper create a new directory C: \ TEMP \ Drivers and copy into it all the extracted drivers pvscsi and vmxnet3. In the command line we execute:

image

Now you can delete C: \ TEMP \ VMTools, this directory is no longer needed.


3. Run the script


Install Windows Server 2016 TP5 ISO to use it as a Windows disk (in Windows 8 and 10, double-click on it in Explorer). The example below assumes that it is installed on the E: drive.


Now open the Powershell window as Administrator and run the following commands:

image

The first command imports the NanoServerImageGenerator Powershell module from TP5 ISO. The second team creates an image. Here is the meaning of the most important commands:



... this is how it will look like:
image

As you have already noticed, we are creating a vhdx file, not a vhd file, because we need a more modern version: it uses GPT and EFI formats. Using vhd would also work fine.


4. Convert the vhdx file to vmdk format


There is only one way to convert vhdx file to VMware format: use the free Starwind V2V Converter Tool. When using it, select VMware ESX server image as the Destination image format:

image

As a result, two files will be created, a small * .vmdk file metafile and, in fact, a * -flat.vmdk file (4 GB in size).


Virtual Machine Deployment


Create a new VM on an ESXi host with the following parameters:



Once created, the virtual machine edits its Advanced Options / Boot Options and selects EFI for. as the boot firmware.
image

Now we load two vmdk files created using the Starwind Converter tool into the ESXi directory created for your virtual machine. We edit the VM and add the loaded disk as an Existing virtual disk and Virtual Device Node "SCSI (0: 0)".


Finally, we change the type of SCSI controller automatically added to VMware Paravirtual (pvscsi):

image

So, we have created our first virtual machine Nano Server on vSphere, and you can already start it! It takes only a couple of seconds to boot, and now we see a minimalist greeting:

image

Helpful advice


If you want to try using Nano Server as a Hyper-V host, then you need to enable nested virtualization with:



On individual ESXi hosts, this can be done using the new HTML5 Host Client (already included in ESXi 6.0 Update 2 and later):

imageimage

We anticipate the question: is it possible to install VMware Tools on the Nano Server? No, it is impossible, because the MSI format is not valid for the Nano Server. For the rest ... .forward!


')

Source: https://habr.com/ru/post/306490/


All Articles