Nested virtulization for linux containers

akshay95 21 Reputation points
2021-10-04T22:51:14.56+00:00

I am trying to run Linux container on Azure VM (Windows server 2019). This requires me to set up nested virtualization. Since I am planning to run Linux container should I install Ubuntu as nested VM or windows server 2016/2019 as described in this article? - https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
Step 4 requires me to install Hyper-v again within VM (This can only be done with Windows server 2016/2019)
Can somebody help?137582-image.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,160 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,547 questions
0 comments No comments
{count} votes

Accepted answer
  1. TravisCragg-MSFT 5,676 Reputation points Microsoft Employee
    2021-10-05T00:22:44.34+00:00

    @akshay95 Because you are deploying this in Azure, you are already 1 level deep in nested virtualization. You should not need to re-install Hyper-V. Run the required commands, but go straight with an Ubuntu VM.

    If you like, you can start with a Windows image first as a proof of concept before you try to deploy a Linux nested VM.

    There are a few blogs on others who have done this, if you need help just let me know.


1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,371 Reputation points
    2021-10-05T10:31:51.003+00:00

    Hi there,

    You need not install the Hyper v again. Native Linux Container support is built on Hyper-V Isolation, which is dependent on Hyper-V being enabled. So just follow the steps that are described in the link and it must be Done.


    If the reply is helpful, please Upvote and Accept it as an answer