I am trying to run unit tests on our CI server. When i run the following command it tries to launch emulator but fails with the following message
vstest.cons
I had the same problem. This fixed it.
Shut down the VM, select option “Virtualize Intel VT-x/EPT or ARM-V/RVI” in the vm processor settings.
Then add these two lines to the end of the vmx-file:
hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"
Start the VM, add the Hyper-V components and restart the vm. Next time you start the emulator, Visual Studio will configure Hyper-V and run the emulator