SOLVED

b25110 Enabling nested virtualization will only be visible in PowerShell and WAC but not accepted

%3CLINGO-SUB%20id%3D%22lingo-sub-3403593%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3403593%22%20slang%3D%22en-US%22%3EQuick%20question%3A%20is%20this%20a%20regression%20in%20behavior%3F%20If%20so%2C%20do%20you%20know%20the%20last%20version%20where%20this%20was%20working%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20expected%20that%20Windows%20Admin%20Center%20and%20PowerShell%20would%20expose%20the%20same%20data%20-%20we%20do%20try%20hard%20to%20keep%20them%20in%20sync.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3403652%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3403652%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Karl!%20Thanks%20for%20trying%20Azure%20Stack%20HCI!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20short%20answer%20is%20what%20you're%20seeing%20is%20actually%20expected.%20The%20reason%20is%20that%20officially%2C%20Azure%20Stack%20HCI%20is%20only%20supported%20on%20physical%20hardware.%20And%20in%20some%20nuances%2C%20it's%20not%20the%20same%20as%20nested%20virtualization.%20More%20specifically%2C%20because%20Virtual%20Secure%20Mode%20(VSM)%20is%20enabled%20by%20default%2C%20that%20%22hides%22%20necessary%20virtualization%20extensions%20from%20the%20Hyper-V%20compatibility%20checker.%20That%20said%2C%20if%20you%20use%20%3CSTRONG%3EEnable-WindowsOptionalFeature%3C%2FSTRONG%3E%2C%20it%20will%20bypass%20the%20compatibility%20checker%20and%20should%20successfully%20enable%20Hyper-V.%20So%2C%20try%20this%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3EEnable-WindowsOptionalFeature%20-Online%20-FeatureName%20'Microsoft-Hyper-V'%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3EHere's%20a%20slightly%20longer%20explanation%20for%20those%20curious%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fpronichkin%2Fstatus%2F1294308601276719104%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftwitter.com%2Fpronichkin%2Fstatus%2F1294308601276719104%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3410132%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3410132%22%20slang%3D%22en-US%22%3EGood%20question%20I%20will%20try%20this%20on%20WS%202022%20release%20and%20report%20back.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3410141%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3410141%22%20slang%3D%22en-US%22%3EHi%20Artem%20thanks%20for%20taking%20time%20for%20a%20good%20explanation.%3CBR%20%2F%3EYou're%20welcome%20I%20am%20working%20on%20my%20Hybrid%20Administrator%2C%20so%20AzSHCI%20is%20something%20I%20strive%20for.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20should%20I%20enable%20Hyper-V%20on%20the%20VM%20where%20AzSHCI%20is%20installed%3F%3CBR%20%2F%3EI%20know%20and%20understand%20some%20features%20named%20differently%20on%20Windows%20Client%20and%20Server%20and%20how%20you%20enable%20%2F%20disable%20them%20with%20PS%20differs%20from%20version%20to%20version.%20Wonder%20why%20Install-WindowsFeature%20and%20Enable-WindowsOptionalFeature%20is%20not%20the%20same%20on%20Windows%20Server%20though.%3CBR%20%2F%3EWhen%20using%20dism%2C%20would%20it%20have%20differences%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3410252%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3410252%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EEnable-WindowsOptionalFeature%3C%2FSTRONG%3E%20is%20part%20of%20the%20DISM%20module%20for%20PowerShell.%20It%20uses%20the%20same%20underlying%20mechanisms%20(that%20is%2C%20DISM%20APIs)%20as%20DISM.exe.%20As%20such%2C%20it%20shares%20the%20same%20feature%20names%20(e.g.%20%3CSPAN%3E%3CEM%3EMicrosoft-Hyper-V)%3C%2FEM%3E%20with%20DISM.exe%2C%20and%20the%20same%20behavior.%26nbsp%3BThis%20behavior%20is%20very%20basic%2C%20these%20tools%20merely%20do%20what%20they're%20told.%20I.e.%2C%20put%20features%20into%20enabled%20or%20disabled%20state.%20Also%2C%20this%20cmdlet%20is%20available%20on%20both%20Windows%20client%20operating%20systems%20(such%20as%20Windows%2010%20and%20Windows%2011)%2C%20as%20well%20as%20server%20operating%20systems%20(such%20as%20Windows%20Server%20and%20Azure%20Stack%20HCI.)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20the%20other%20hand%2C%20%3CSTRONG%3EInstall-WindowsFeature%3C%2FSTRONG%3E%20is%20part%20of%20the%20Server%20Manager%20module%20for%20PowerShell.%20(Fun%20fact%3A%20in%20some%20older%20operating%20systems%20it%20was%20called%20%3CSTRONG%3EAdd-WindowsFeature%2C%3C%2FSTRONG%3E%20which%20is%20now%20an%20alias.)%20Just%20like%20Server%20Manager%20itself%2C%20this%20cmdlet%20can%20only%20be%20used%20to%20manage%20server%20operating%20systems.%20(Even%20though%20you%20can%20install%20it%20on%20Windows%2010%2F11%20as%20part%20of%20RSAT.)%20This%20cmdlet%20is%20somewhat%20more%20advanced%20comparing%20to%20%3CSTRONG%3EEnable-WindowsOptionalFeature.%3C%2FSTRONG%3E%20For%20instance%2C%20it%20can%20be%20used%20over%20network%2C%20against%20a%20remote%20machine.%20Or%20offline%2C%20against%20a%20VHD(x)%20file.%20Another%20difference%20is%26nbsp%3Bthat%20it%20uses%20slightly%20different%20feature%20names%2C%20e.g.%20%3CEM%3E%22Hyper-V.%22%3C%2FEM%3E%26nbsp%3B(Also%2C%20not%20all%20features%20are%20available%20here%2C%20but%20only%20those%20which%20are%20visible%20in%20Server%20Manager%20as%20Server%20Roles%2C%20Role%20services%20or%20Server%20features.)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBut%20most%20importantly%2C%20%3CSTRONG%3EInstall-WindowsFeature%3C%2FSTRONG%3E%20cmdlet%20(just%20like%20Server%20Manager%20itself)%20tries%20to%20prevent%20you%20from%20shooting%20yourself%20in%20the%20foot%2C%20by%20running%20prerequisite%20checks%20and%20post-installation%20tasks%2C%20where%20applicable.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20these%20reasons%2C%20in%20general%2C%20we%20recommend%20always%20using%20%3CSTRONG%3EInstall-WindowsFeature%3C%2FSTRONG%3E%20when%20you're%20managing%20server%20operating%20systems%20such%20as%20Windows%20Server%20or%20Azure%20Stack%20HCI.%20However%2C%20because%20this%20cmdlet%20is%20so%20advanced%20and%20trying%20to%20be%20helpful%2C%20it%20might%20not%20always%20work%20for%20niche%20and%20unsupported%20scenarios%2C%20such%20as%20enabling%20Hyper-V%20on%20Azure%20Stack%20HCI%20when%20running%20in%20a%20VM.%20(As%20I%20explained%20earlier%2C%20this%20is%20specific%20to%20this%20exact%20scenario.%20E.g.%20you%20won't%20face%20these%20issues%20when%20managing%20a%20physical%20machine%20running%20Azure%20Stack%20HCI%2C%20or%20a%20virtual%20machine%20running%20Windows%20Server.)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESo%2C%20for%20those%20scenarios%2C%20you%20can%20use%20%3CSTRONG%3EEnable-WindowsOptionalFeature%3C%2FSTRONG%3E%20as%20a%20workaround.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3411314%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3411314%22%20slang%3D%22en-US%22%3EThat%20makes%20sense.%20Thank%20you%20Artem%20I%20will%20try%20the%20command%20and%20report%20back.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3437362%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3437362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5590%22%20target%3D%22_blank%22%3E%40Artem%20Pronichkin%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1127354%22%20target%3D%22_blank%22%3E%40MSBernstein%3C%2FA%3E%26nbsp%3Bcan%20confirm%20this%20is%20the%20issue.%20WAC%20cluster%20creation%20does%20not%20use%20Enable-WindowsOptionalFeature%2C%20doing%20so%20manually%20solves%20this%20blocker.%26nbsp%3B%3C%2FP%3E%3CP%3EMr.%20Bernstein%2C%20I%20believe%20it%20is%20not%20worth%20the%20time%2C%20considering%20the%20guidance%20from%20Artem%2C%20to%20test%20with%20previous%20versions%2C%20as%20the%20behaviour%20is%20not%20OS%20based%20but%20rather%20part%20of%20the%20cluster%20creation%20WAC%20module.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20add%20this%20to%20the%20MS%20ToDo%20list%20shared%20with%20the%20WAC%20team%20and%20see%20if%20they%20want%20to%20change%20this.%20Otherwise%20I%20could%20imagine%20that%20Trung%20is%20not%20responsible%20for%20the%20module%2C%20eventually%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F53017%22%20target%3D%22_blank%22%3E%40Elden%20Christensen%3C%2FA%3E%26nbsp%3B%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375717i4FCB5E4846F21020%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20alt%3D%22K_WesterEbbinghaus_0-1653644559170.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3438842%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3438842%22%20slang%3D%22en-US%22%3EPassing%20the%20suggestion%20to%20the%20WAC%20team%20makes%20sense.%20I%20imagine%20there%20is%20some%20tension%20between%20wanting%20Windows%20Admin%20Center%20to%20support%20all%20possible%20scenarios%2C%20but%20also%20wanting%20to%20keep%20Windows%20Admin%20Center%20in%20sync%20with%20the%20protective%20checks%20that%20Artem%20described.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%22But%20most%20importantly%2C%20Install-WindowsFeature%20cmdlet%20(just%20like%20Server%20Manager%20itself)%20tries%20to%20prevent%20you%20from%20shooting%20yourself%20in%20the%20foot%2C%20by%20running%20prerequisite%20checks%20and%20post-installation%20tasks%2C%20where%20applicable.%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3441258%22%20slang%3D%22en-US%22%3ERe%3A%20b25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3441258%22%20slang%3D%22en-US%22%3EAbsolutely.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3396919%22%20slang%3D%22en-US%22%3Eb25110%20Enabling%20nested%20virtualization%20will%20only%20be%20visible%20in%20PowerShell%20and%20WAC%20but%20not%20accepted%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3396919%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20new%20VMs%20with%20WAC%202110.2%20GA%20and%20enabled%20Nested%20Virtualization%3C%2FP%3E%3CP%3ETrying%20to%20create%20an%20Azure%20Stack%20HCI%20cluster%20with%20AzStack%20HCI%2021H2%20on%20WS%20vNext%20b25110.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProblem%3A%3C%2FP%3E%3CP%3ENested%20virtualization%20is%20enabled%20and%20visible%20in%20PowerShell%20via%20Get-Processor%20but%20installing%20Hyper-V%20on%20the%20nested%20VM%20is%20not%20possible.%20Also%20the%20AzStackHCI%20Cluster%20Creation%20Wizard%20fails%20with%20an%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20Install-WindowsFeature%20and%20the%20wizard%20behave%20as%20if%20Nested%20Virtualization%20is%20not%20enabled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExpected%20behaviour%3A%3C%2FP%3E%3CP%3EAccording%20to%20the%20settings%20the%20requirements%20are%20set%20and%20as%20such%20it%20should%20be%20possible%20to%20install%20Hyper-V%20on%20the%20VMs.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EError%20in%20WAC%20Cluster%20Creation%20wizard%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Etrying%20to%20add%20the%20feature%20manually%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWith%20these%20commands%20I%20cannot%20see%20the%20enablement%20of%20the%20feature%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAccording%20to%20VMProcessor%20the%20feature%20is%20enabled.%20Same%20in%20WAC%2C%20says%20it%20is%20enabled.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3396919%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EClustering%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Contributor

I have created new VMs with WAC 2110.2 GA and enabled Nested Virtualization

Trying to create an Azure Stack HCI cluster with AzStack HCI 21H2 on WS vNext b25110.

 

Problem:

Nested virtualization is enabled and visible in PowerShell via Get-Processor but installing Hyper-V on the nested VM is not possible. Also the AzStackHCI Cluster Creation Wizard fails with an error.

 

Both Install-WindowsFeature and the wizard behave as if Nested Virtualization is not enabled.

 

Expected behaviour:

According to the settings the requirements are set and as such it should be possible to install Hyper-V on the VMs.


Error in WAC Cluster Creation wizard

 

K_WesterEbbinghaus_0-1652920165443.png


trying to add the feature manually

 

K_WesterEbbinghaus_1-1652920271593.png


With these commands I cannot see the enablement of the feature 

K_WesterEbbinghaus_2-1652920311054.png


According to VMProcessor the feature is enabled. Same in WAC, says it is enabled.

K_WesterEbbinghaus_3-1652920478215.png

 

K_WesterEbbinghaus_0-1652920888085.png

 

 

9 Replies
Quick question: is this a regression in behavior? If so, do you know the last version where this was working?

It's expected that Windows Admin Center and PowerShell would expose the same data - we do try hard to keep them in sync.
best response confirmed by K_Wester-Ebbinghaus (Regular Contributor)
Solution

Hi Karl! Thanks for trying Azure Stack HCI!

 

The short answer is what you're seeing is actually expected. The reason is that officially, Azure Stack HCI is only supported on physical hardware. And in some nuances, it's not the same as nested virtualization. More specifically, because Virtual Secure Mode (VSM) is enabled by default, that "hides" necessary virtualization extensions from the Hyper-V compatibility checker. That said, if you use Enable-WindowsOptionalFeature, it will bypass the compatibility checker and should successfully enable Hyper-V. So, try this:

Enable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Hyper-V'

Here's a slightly longer explanation for those curious: https://twitter.com/pronichkin/status/1294308601276719104

 

 

Good question I will try this on WS 2022 release and report back.
Hi Artem thanks for taking time for a good explanation.
You're welcome I am working on my Hybrid Administrator, so AzSHCI is something I strive for.

So, should I enable Hyper-V on the VM where AzSHCI is installed?
I know and understand some features named differently on Windows Client and Server and how you enable / disable them with PS differs from version to version. Wonder why Install-WindowsFeature and Enable-WindowsOptionalFeature is not the same on Windows Server though.
When using dism, would it have differences?

Enable-WindowsOptionalFeature is part of the DISM module for PowerShell. It uses the same underlying mechanisms (that is, DISM APIs) as DISM.exe. As such, it shares the same feature names (e.g. Microsoft-Hyper-V) with DISM.exe, and the same behavior. This behavior is very basic, these tools merely do what they're told. I.e., put features into enabled or disabled state. Also, this cmdlet is available on both Windows client operating systems (such as Windows 10 and Windows 11), as well as server operating systems (such as Windows Server and Azure Stack HCI.)

 

In the other hand, Install-WindowsFeature is part of the Server Manager module for PowerShell. (Fun fact: in some older operating systems it was called Add-WindowsFeature, which is now an alias.) Just like Server Manager itself, this cmdlet can only be used to manage server operating systems. (Even though you can install it on Windows 10/11 as part of RSAT.) This cmdlet is somewhat more advanced comparing to Enable-WindowsOptionalFeature. For instance, it can be used over network, against a remote machine. Or offline, against a VHD(x) file. Another difference is that it uses slightly different feature names, e.g. "Hyper-V." (Also, not all features are available here, but only those which are visible in Server Manager as Server Roles, Role services or Server features.)

 

But most importantly, Install-WindowsFeature cmdlet (just like Server Manager itself) tries to prevent you from shooting yourself in the foot, by running prerequisite checks and post-installation tasks, where applicable.

 

For these reasons, in general, we recommend always using Install-WindowsFeature when you're managing server operating systems such as Windows Server or Azure Stack HCI. However, because this cmdlet is so advanced and trying to be helpful, it might not always work for niche and unsupported scenarios, such as enabling Hyper-V on Azure Stack HCI when running in a VM. (As I explained earlier, this is specific to this exact scenario. E.g. you won't face these issues when managing a physical machine running Azure Stack HCI, or a virtual machine running Windows Server.)

 

So, for those scenarios, you can use Enable-WindowsOptionalFeature as a workaround.

That makes sense. Thank you Artem I will try the command and report back.

@Artem Pronichkin @MSBernstein can confirm this is the issue. WAC cluster creation does not use Enable-WindowsOptionalFeature, doing so manually solves this blocker. 

Mr. Bernstein, I believe it is not worth the time, considering the guidance from Artem, to test with previous versions, as the behaviour is not OS based but rather part of the cluster creation WAC module. 

 

I will add this to the MS ToDo list shared with the WAC team and see if they want to change this. Otherwise I could imagine that Trung is not responsible for the module, eventually @Elden Christensen ? 

K_WesterEbbinghaus_0-1653644559170.png

 

 

Passing the suggestion to the WAC team makes sense. I imagine there is some tension between wanting Windows Admin Center to support all possible scenarios, but also wanting to keep Windows Admin Center in sync with the protective checks that Artem described.

"But most importantly, Install-WindowsFeature cmdlet (just like Server Manager itself) tries to prevent you from shooting yourself in the foot, by running prerequisite checks and post-installation tasks, where applicable."