question

blaz-9321 avatar image
0 Votes"
blaz-9321 asked kobulloc-MSFT answered

How to enable Virtualization

Hi, i create VM on Azure because I need better PC for programming. I use Android Studio. Now I have a problem. When I try start android emulator I got an error. Is there any way to enable CPU virtualization. Because I cannot work withount emulator.

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yagmoth555 avatar image
2 Votes"
yagmoth555 answered blaz-9321 commented

Hi

Nested virtualization need a Dv3 and Ev3 VM sizes.

Nested virtualization lets you run virtual machine (VM) instances inside of other VMs so you can create your own virtualization environments. To support nested virtualization, Compute Engine adds Intel VT-x instructions to VMs, so when you create a VM, the hypervisor that is already on that VM can run additional VMs.

Such support in necessary if the tool you use run a VM via the Android Emulator.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is there any other way. Because I'm on student plan and I can't create DV3 or Ev3 VMs. I only can E2s_V3,E4-2s_v3, E4s_V3 Can I for exaample connect it with some online emulator like browserStack

0 Votes 0 ·

II think you can, in a dev machine I have the emulator don't run with virtualization on, but it's slow. You can see an answer there that state mostly the same experience than me; https://stackoverflow.com/questions/28246093/android-app-development-without-virtualization-technology

0 Votes 0 ·

I try, but i does not work. But tnx for trying to help.

0 Votes 0 ·
kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered

Hello, @blaz-9321!

What Azure VMs can you run nested virtualization on? There's a useful page somewhat deep in the Azure Virtual Machine documentation that lists all VMs by SKU family that are hyper-threaded and capable of running nested virtualization:

https://docs.microsoft.com/en-us/azure/virtual-machines/acu

In addition to what @yagmoth555 has mentioned, there are a couple options:

  • D_v3

  • Ds_v3

  • Dv4

  • Dsv4

  • Ddv4

  • Ddsv4

  • E_v3

  • Es_v3

  • Ev4

  • Esv4

  • Edv4

  • Edsv4

  • F2s_v2 - F72s_v2

  • FX4 - FX48

  • M

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.