question

akshay95-4928 avatar image
0 Votes"
akshay95-4928 asked akshay95-4928 commented

Nested virtulization for linux containers

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://docs.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-machineswindows-server-hyper-v
image.png (77.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TravisCragg-MSFT avatar image
0 Votes"
TravisCragg-MSFT answered akshay95-4928 commented

@akshay95-4928 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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @TravisCragg-MSFT Can you please share the link of such blogs. It will be really helpful. Thanks in advance

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered akshay95-4928 commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much for the clarification.@LimitlessTechnology-2700

0 Votes 0 ·