Nano Server Overview
Nano Server is a version of Windows Server that has made its appearance with Windows Server 2016, which is a “light” version of a Windows Core (without GUI) that installs the following roles:
- File Server (SOFS).
Complete presentation : https://docs.microsoft.com/fr-fr/windows-server/get-started/getting-started-with-nano-server
Unlike the “normal” versions of WIndows, the Nano Server installation is done by directly generating the VHD (X) or by generating a USB key.
Two tools are available:
- From the command line using PowerShell.
- With graphical interface: Nano Server Image Builder.
The keyboard under Nano Server is in QWERTY.
Generate a Nano Server Virtual Disk
In order to generate a Nano Server image, it is necessary to have the installation DVD.
In powershell when creating a virtual disk, this one has a size of 4GB. The basic installation of Windows Nano is less than 600MB.
Open a PowerShell prompt in Administrator, go to the NanoServer folder of the ISO and enter the following command to load the build module.
Import-Module .\NanoServerImageGeneratir -Verbose
Syntax of the command to generate an image:
New-NanoServerImage -Edition <Standard|DataCenter> -DeploymentType <Host|Guest> -MediaPath <Source ISO> -TargetPath <Folder store image\name-file.extension > -ComputerName "Computer Name" -Package Microsoft-NanoServer-<package-name>
We will now generate the Nano Server image in VDHX with the IIS package installed.
New-NanoServerImage -Edition DataCenter -DeploymentType Guest -MediaPath E: -TargetPath C:\sources\NanoServer.vhdx -ComputerName "NanoServer-Lab" -Package Microsoft-NanoServer-IIS-Package
With Nano Server Image Builder
Before downloading Nano Server Image Build (NSIB), the computer where NSIB will be installed must have ADK.
As with PowerShell generation, it is necessary to have the Windows Server ISO mounted or uncompressed.
Download, install and run Nano Server Image Builder.
Use the virtual disk
Move the virtual disk file to the desired location on a hyper-v server and then create a new virtual machine, in the wizard when configuring the virtual hard disk, select the disk of the generated image 1 .