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 Nano Server image for Hyper-V containers

To run Hyper-V containers, the Hyper-V role is required to be enabled on a Nano Server container host. If the container Nano host is itself a Hyper-V virtual machine as described in the following example, then nested virtualization should be enabled before adding the Hyper-V role.

Follow the steps to create a VHD(X) image for Nano Server to be used as a container host, so we can run Hyper-V containers alongside Windows Server containers:

  1. Mount the Windows Server 2016 ISO medium on your machine. In this example, it's mounted on the H drive.
  2. Start Windows PowerShell as an administrator, and run the following script to create a VHD(X) for virtual machine deployment that includes the Container ...

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