DellGEOS / AzureStackHOLs

Hands on labs for Azure Stack HCI
90 stars 36 forks source link

The NestedVirt=$true Statement doesn't work #49

Open andregebel opened 9 months ago

andregebel commented 9 months ago

Issues after deploy Azure Stack VMs in nested virtualization.

If the Hyper-V role can not be installed in WIndows Admin Center Wizard , shutdown the Azure Stack VMs an open an Powershell "Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true" for both VMs an ry again. It should work.

https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/01-DeployAzureStackHCICluster-WAC#labconfig Labconfig

Karl-WE commented 8 months ago

had the same weird experience @jaromirk remember our slack discussion recently. Azure Stack 23H2 OS and your deployment config was affected, quite weird as there were no code changes from your side. using WAC to enable nested virt., everything was fine.

I first thought this was because a quirk using the 2311 New Gen WAC deployment wizard but I believe @andregebel hasn't used it, did you?

jaromirk commented 8 months ago

That what's script is doing. ExposeVirtualizationExtensions. WAC will never install it in VMs. you need to use DISM commands to install Hyper-V

jaromirk commented 8 months ago

https://github.com/microsoft/MSLab/blob/master/Scripts/3_Deploy.ps1#L633-L638

You need to do "Step 5" here: https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/01-DeployAzureStackHCICluster-WAC#get-started-tab

Karl-WE commented 8 months ago

agreed about WAC, raised an issue on this at aka.ms/wacfeedback

@andregebel did you WAC or PowerShell? when encountering your issue?

Karl-WE commented 4 months ago

@jaromirk also believe this could be closed as it is a PS code regression in of WAC how they handle nested virtualization. Here's the WAC feedback item: https://feedback.azure.com/d365community/idea/a9268101-e0ac-ee11-92bc-000d3ae54955