Hyper-V cannot be installed on Azure D2s_v5

Raúl Caro 30 Reputation points
2023-10-09T18:00:32.5066667+00:00

When running on Azure D2s_v5 VM

Install-WindowsFeature -Name Hyper-V  -IncludeManagementTools -Restart

I get error

Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The referenced assembly could not be found. Error: 0x80073701

sfc /scannow

dism /online /cleanup-image /restorehealth

does not fix the problem

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

Accepted answer
  1. Olga Os - MSFT 5,946 Reputation points Microsoft Employee
    2023-10-10T00:10:49.05+00:00

    Hello Raúl Caro,

    Welcome to the MS Q&A forum.

    D2s_v5 should support the nested virtualization.

    Besides above what Michael Durkan already suggested, I recommend to review the CBS.log File.

    Whenever a Windows system file is updated, installed, or removed, the Component-Based Servicing process creates an entry in the CBS.log file. These entries contain detailed information about the changes made to the system files, and they can be used to troubleshoot problems related to Windows system files.

    There could be errors which may help you resolve the issue.

    Sincerely,

    Olga Os.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Michael Durkan 12,221 Reputation points MVP
    2023-10-09T20:36:59.76+00:00

    Hi

    you could try running the Set-VMProcessor command with the -VMName parameter set to the name of the virtual machine:

    Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
    

    Error 0x80073701 normally means there are some system files are missing - you may be quicker to stand up a new VM.

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.