.NET MAUI Android hypervisor drivers installed but not running or found

MSCollege3000 190 Reputation points
2023-11-28T09:28:04.1566667+00:00

Hypervisor Platform, AEHD and HAXM drivers in question.

The project can run in Windows mode and show the app content.

In Android mode the emulated device barely loads.

To improve performance I followed the article https://learn.microsoft.com/en-us/dotnet/maui/android/emulator/hardware-acceleration?view=net-maui-8.0

  • There is no Hyper-V in Windows features, but the Hypervisor Platform is there, I enabled it, rebooted.

hyper

  • HAXM Intel driver replaces Hyper-V but not supported in emulators starting with version 33.x. I installed it anyway from Intel's GitHub. The command "sc query intelhaxm" detected it, although it said HAXM wasn't running. How to make it run? Does it require Hypervisor enabled? haxmcmd

After installation it showed these warnings:

haxm1

haxm2

Why are all those warnings? Hyper-V is not even in the system and what are the further configurations it is talking about?

  • Additionally I installed AEHD driver using Android SDK manager. The SKD manager now says it's installed. But the command prompt "sc query aehd" says it's not installed. Why? aehd
  • Also, a confusing thing. HAXM was downloaded from Intel GitHub and installed. But the Android SDK Manager has its own mentioning of HAXM Installer (see screenshot) which can be installed separately. I installed it too, but what is that for and how to use that installer? Do I have two HAXM installations now?

asmhaxm

The command "systeminfo" says the PC fully supports virtualization and Hyper-V, all parameters are "yes".

How to properly setup Android emulator hardware acceleration?

Windows 10 64 Home, Visual Studio, .NET MAUI project, .Net 6.0 LTS.

Developer technologies | .NET | .NET MAUI
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-11-29T02:39:51.6466667+00:00

    Hello,

    The Home Edition of Windows explicitly does not support Hyper-V features, please refer to Windows 10 Hyper-V System Requirements.

    The Hyper-V role cannot be installed on: Windows 10 Home Windows 10 Mobile Windows 10 Mobile Enterprise

    For hardware acceleration, you need to use HAXM. After testing, the Android API 33 emulator works properly with HAXM installed.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. MSCollege3000 190 Reputation points
    2023-12-01T05:40:40.1066667+00:00

    My own answer to my question, after trying all articles and solutions.

    Firstly, both HAXM and AEHD drivers can be downloaded from GitHub and installed manually. And looks like it's a better way.

    After manual installation all the drivers are installed and running.

    Secondly, the article https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows explains the installation of HAXM. And HAXM actually turns out to be the best option for Intel based systems. Important note is to install the 7.6.5 version.

    Third. 3rd party drivers do not run when Hypervisor Platform is enabled. If it's Windows Home, there is no Hyper-V but it runs implicitly and interferes with your drivers. So you have to disable it by turning off the Hypervisor Platform itself in Windows Features and then by executing the bcdedit /set hypervisorlaunchtype off command in addition.

    0 comments No comments

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.