O'Reilly logo

Getting Started with Nano Server by Charbel Nemnom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a custom Nano Server VHD(X) image

We will create a new VHD image using PowerShell; The computer name will be NANO-HV01, we will have the OEM drivers and custom drivers added to the image using (-DriverPath) parameter for physical machines deployment, we will add the compute role for Hyper-V, as well as clustering, storage feature, and enable remote management port, and finally we will add it to the domain.

You need to run this script from a computer running Windows Server 2016 or Windows 10 that is already a domain joined to the same domain, thus the computer account for Nano Server will be created in Active Directory. This process is known as offline domain join:

 # Import NanoServerImageGenerator.psd1 PowerShell module Import-Module"C:\NanoServer\NanoServerImageGenerator\NanoServerImageGenerator.psd1"-Verbose# ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required