Is there any way to run Android virtual device on Android studio, on my D4s v3 VM?

Swayam Bansal 31 Reputation points
2022-11-25T18:20:18.41+00:00

Hi. I am trying to run Android virtual device emulator on my VM, but it is showing Intel haxm is required.

My host pc does not support virtualisation. Is there any way to run Android studio's emulator in d4s v3 virtual machine?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 28,201 Reputation points Moderator
    2022-11-25T19:53:08.653+00:00

    Hello @Swayam Bansal ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    There are specific VMs that support nested virtualization (Dv3 and Ev3 series. Ref: https://azure.microsoft.com/en-us/blog/introducing-the-new-dv3-and-ev3-vm-sizes/

    Android emulator is default based on Intel Hardware Accelerated Execution manager [HAXM]. This is Virtualization technology used behind the scene by Android studio to run the android emulator. HAXM is installed as a part of installation process of Android Studio as well.

    So on Azure VM where we plan to run the Android simulator, Intel HAXM should be installed and present.
    At the same time Intel HAXM and Hyper V are mutually exclusive. Means, if you have Hyper V enabled then HAXM can’t be installed and vice versa.

    Installation of HAXM on Azure VM is not a problem. The VM series is a problem. When you say I want to install the HAXM; Hyper V should be disabled. Most of the VM series today have Hyper V “some way” enabled or not supported

    This article here will come handy for you, please check

    Please check the following links with similar issues
    https://stackoverflow.com/questions/58605791/installed-android-emulator-haxm-on-azure-vm
    https://stackoverflow.com/questions/30191202/is-there-any-way-that-i-can-make-android-emulator-run-on-azure-virtual-machine

    https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/17
    https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/25

    Hope this helps.
    If you need further help on this, tag me in a comment.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics


0 additional answers

Sort by: Most helpful

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.