MicrosoftDocs / Virtualization-Documentation

Place to store our documentation, code samples, etc for public consumption.
http://docs.microsoft.com/virtualization/
Creative Commons Attribution 4.0 International
1.79k stars 1.54k forks source link

linked post inlcude instructions that no longer work #1975

Open faustinopalma opened 2 months ago

faustinopalma commented 2 months ago

The documentation links to an old post which, unfortunately, reports commands that no longer work.

The post is: https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-setup-nested-virtualization-for-azure-vm-vhd/ba-p/1115338

The first command reported in the post does no longer work and it gives an error as follows:

PS C:\Users\fausto> Install-WindowsFeature -Name DHCP,Hyper-V  –IncludeManagementTools
>> 
Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   Maybe          Failed         {}
Install-WindowsFeature : A prerequisite check for the Hyper-V feature failed.
1. Hyper-V cannot be installed because virtualization support is not enabled in the BIOS.
At line:1 char:1
+ Install-WindowsFeature -Name DHCP,Hyper-V  –IncludeManagementTools
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Hyper-V:ServerComponentWrapper) [Install-WindowsFeature], Exception
    + FullyQualifiedErrorId : Alteration_PrerequisiteCheck_Failed,Microsoft.Windows.ServerManager.Commands.AddWindowsF
   eatureCommand

The following command instead works: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -Verbose


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

faustinopalma commented 2 months ago

to be precise, before running the commands in the post, it is needed to run the command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -Verbose