Esta es la segunda máquina en la que intento hacer que Hyper-V funcione en combinación con los emuladores de Android y todavía no he encontrado la respuesta. ¿Qué me estoy perdiendo?
Configuración:
AMD Ryzen 9 9300x Processor, 32 Gb Ram, 1Tb SSD.
BIOS Version/Date American Megatrends Inc. P4.20, 6-11-2020
En PowerShell se utilizan estos comandos:
PS C:\Windows\system32> Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
FeatureName : Microsoft-Hyper-V
DisplayName : Hyper-V Platform
Description : Provides the services that you can use to create and manage virtual machines and their resources.
RestartRequired : Possible
State : Enabled
CustomProperties :
PS C:\Windows\system32> get-service | findstr vmcompute
Running vmcompute Hyper-V Host Compute Service
PS C:\Windows\system32> wmic OS Get DataExecutionPrevention_Available
DataExecutionPrevention_Available
TRUE
PS C:\Windows\system32> wmic OS Get DataExecutionPrevention_SupportPolicy
DataExecutionPrevention_SupportPolicy
2
Incluso establezca el valor anterior en 1 con wbemtest como se describe aquí:
EDIT
Value is back to 2 after reboot
Todos los emuladores usan x86 pero aún dicen que debo activar Hyper-V:
Valor = VERDADERO, lo que significa que Hyper-V está activo y encendido.
Respuesta1
Para todos los que tienen este problema. Aquí está la solución.
Después de leer esta página:https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/troubleshooting?pivots=windows#accel-issues-win
Ejecuté los siguientes comandos:
PS C:\Windows\system32> Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online
FeatureName : Microsoft-Hyper-V-All
DisplayName : Hyper-V
Description : Provides services and management tools for creating and running virtual machines and their resources
.
RestartRequired : Possible
State : Enabled
CustomProperties :
PS C:\Windows\system32> Get-WindowsOptionalFeature -FeatureName HypervisorPlatform -Online
FeatureName : HypervisorPlatform
DisplayName : Windows Hypervisor Platform
Description : Enables virtualization software to run on the Windows hypervisor
RestartRequired : Possible
State : Disabled
CustomProperties :
Por defecto, parece que el hipervisor está deshabilitado (¿por qué llorar en voz alta?). Los siguientes comandos lo habilitaron. Esto debería estar en la Documentación y no oculto en algún lugar de una página de solución de problemas.
PS C:\Windows\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Path :
Online : True
RestartNeeded : False
PS C:\Windows\system32> Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -All
Path :
Online : True
RestartNeeded : False