Hyper-V and Haxm

Here’s a quick tip to make working with Hyper-V and Haxm in Windows a little easier. It’s not possible to run both at the same time which is a pain if, for example, you want to run Android emulators and Docker at the same time.

What you can do is set up a boot entry with Hyper-V turned off, then at start up you can choose to run with Hyper-V for Docker, or without to run your emulators.

To do this fire up an administrator command prompt and type

bcdedit /copy {current} /d "Hypervisor Off - Android Emulators On"

Next find and copy the identifier for the new boot entry by running

bcdedit

Then turn Hypervisor off with

bcdedit /set {newidentifier} hypervisorlaunchtype off

Restart the machine and you’ll be able to choose which one to boot 🙂

Advertisements
Hyper-V and Haxm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s