Running Android emulator Hyper-V based on a Azure VM Windows Server 2016 - azure

Our goal is to run UI tests with Appium on our CI build. But it seems that running the Android emulator (Hyper-V based) within virtual build machine (Windows Server 2016) on Azure might not be supported.
So my question is, does Hyper-V based nested virtualization is supported from a Windows Server 2016 virtual machine on Azure ?
note: using a CPU Android emulation is not an option

Yes, it is possible, you need to be on Dv3 or Ev3 SKU.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization

Related

Can I run AVD on a Virtual Windows 10 Desktop

I am currently working form home for an organisation.
Is it possible to run Android Emulator via Android Studio on a Virtual Desktop which has Windows 10 installed.
Also, should I keep my specs low for the Emulator, as I have enough RAM in my VDI.
And do I need to ask the organisation to enable Virtualization in the Virtual Machine, As it may not be possible for me to do so. Or, there is no such things in Virtual Machines?
Currently, When I try to run Emulator, it just gets stuck on black screen forever and timeouts.
I have tried multiple options. But none of them works.
No, after digging in a lot.
It was Azure VDI, windows 10.
And it's not possible to run a virtual machine (Android Emulator) inside another virtual machine.
It may be possible to run in another OS.
But not on Windows which asks to enable Hyper-V.
Which won't allow installation of Intel HAXM.

Is it possible to run Docker CE in an azure VM?

If so, what vm image can I use?
This is purely for development purposes, and to simply run dev workloads on an azure VM that I can spin up and down as needed.
Docker CE for Windows says "Docker for Windows requires Windows 10 Pro or Enterprise version 10586, or Windows server 2016 RTM to run"
I just need a reasonable substitute than running locally since I am running windows 10 HOME on my laptop and would like to run Docker CE somewhere that actually works 100% of the time.
I tried the [Windows Server 2016 Datacenter with Containers] image that #win mentioned below, but it has enterrpise edition already installed out of the box, not CE
You need to use Windows Server 2016 Datacenter with Containers.

Android Studio in Google Cloud VM

I have installed Android Studio in Windows 2012 Server machine on Google Cloud. But, I cannot run Emulator on it. It shows the below error.
"HAXM doesn't support nested virtual machines"
Consider that nested virtualisation is not enabled out of the box for Compute Engine instances.
Therefore you need to enable it manually, however it is not available yet for Windows instances as you can check in the documentation page:
Nested virtualization does not currently support Windows instances.

"One of Hyper-V components is not running", Linux in Windows Server 2012?

I am trying to get Debian working in the host Windows Server 2012 R2. The Windows Server is running on other host, macOS with Parallels. I am getting the following error One of Hyper-V components is not running. Debian 9.1.0 is not listed in the supported VMs here and only older Debians are mentioned, could this cause the error?
How to resolve this error One of Hyper-V components is not running?
You are attempting to run Hyper-V as a nested hypervisor. It must have recognized that Parallels doesn't expose required features to Windows Server VM and hence, Hyper-V hypervisor itself is not running.
Have a look at Server manager and\or event log on Windows Server, it will most probably have an error, explaining that required hardware features are not present on the host to start Hyper-V.
Parallels describes how to enable Nested virtualisation support in this Knowledge Base article on their official site.

The emulator is unable to verify that the virtual machine is running

I have a vm created in Azure, Windows Server 2012, x64 with Visual Studio 2015.
I'm trying the Weather application example from the site https://taco.visualstudio.com/en-us/docs/get-started-first-mobile-app/
When I try to start the application running the emulator VS Emulator 5 KitKat (4.4) I have errors with internet connection but I actually can connect to the internet.
Just after launch the application I get this message:
I hit Accept and then, after display the screen, I get next messages (Although the message is talking about Hyper-V, i´m using my MSDN account and Azure)
When I try to start the application running the emulator VS Emulator 5 KitKat (4.4) I have errors with internet connection but I actually can connect to the internet.
VS Emulators run as Hyper-V Virtual Machines. And if you are already in a Windows Server 2012 VM environment, it is not possible to to start another VM inside of it.
In Windows Server 2016 or Windows 10 VM it is possible to start an VM inside. For details, please refer to Enable Nested Virtualization.

Resources