Search code examples
androidvisual-studioandroid-emulatorhyper-vvisual-studio-emulator

Visual Studio Emulator for Android doesn't connect to VM


I start an x86 Android VM via the Visual Studio Emulator for Android.

If I look at the Hyper-V Manager, I see that the VM is started. I can actually connect to it via Hyper-V, and it loads and works perfectly.

But the emulator (the thing that looks like a phone) is still stuck at "OS is starting..." It doesn't get farther than that, even though the VM is fully loaded!

How do I fix this?

(It's not one of the typical virtual switch problems, as like I say, the VM loads in Hyper-V Manager.)


Solution

  • I used the nuclear option: delete switches, delete VMs, uninstall emulator, uninstall Hyper-V, reboot, reinstall HV, reinstall emulator, ensure firewall rules are not blocking it, reboot. Then run emulator again to recreate switches.

    Now I have other problems, but this problem is gone. This is a very brittle product.