Nested Virtualization - Install Android Studio on Azure VM

Eduardo Nuñez 0 Reputation points
2023-04-30T02:25:08.3466667+00:00

Hi, I can't do Android Studio works on Azure VM

I setup several Azure VM but I allways get the same results

User's image

Please, could somebdoy help me with this installation.

Which image of Azure VM I have to choice?

Which OS do I have to choice?

Thank you in advance!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,607 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,312 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,456 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
266 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Prrudram-MSFT 23,051 Reputation points
    2023-04-30T19:00:52.54+00:00

    Hello @Eduardo Nuñez

    To install and run Android Studio on an Azure VM, you need to make sure that the VM meets the following requirements:

    • The VM must have nested virtualization enabled.
    • The VM must have a GPU with OpenGL 2.0 support.
    • The VM must have at least 4 cores and 8 GB of RAM.

    Regarding the image and OS, you can use any image and OS that supports nested virtualization. For example, you can use the "Windows Server 2019 Datacenter" image with the "Standard_D4s_v3" VM size, which supports nested virtualization.

    Once you have created the VM, you need to enable nested virtualization by running the following PowerShell command in an elevated PowerShell session:

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

    Replace <VMName> with the name of your VM.

    After enabling nested virtualization, you can install Android Studio and run it on the VM. If you still face issues, please let me know and I'll try my best to help you.

    Please accept answer and upvote if the above information is helpful for the benefit of the community.


  2. Eduardo Nuñez 0 Reputation points
    2023-04-30T22:00:11.9733333+00:00

    User's image

    When I try to execute the command from the console I allways get the error. Please some help! Thank you