Hyper-V and HAXM - android

I am brand new to the Android development scene, but I am eager to learn. I was working on installing Android Studio when I saw that HAXM could not install because VT-X was not enabled. Some quick googling saw that I had to first disable Hyper-V and then I would be able to install HAXM? I am wondering if it is OK to disable Hyper-V in order to install HAXM and whether I can or should re-enable it after installation of HAXM. Is this the right way to install this? Do I need Hyper-V enabled?

Only one virtualization can be active at a time. I would try disabling Hyper-V then try installing and using HAXM.

Both, Hyper-V and HAXM are hypervisors used to run virtual machines. You must decide which must be enabled depending on what you want to run on your laptop.
You need Hyper-V if you want to use the Android Emulators provided by Microsofr, run Virtual Machines on Hyper-V, use Windows Containers, use Docker for Windows, use Vagrant with Hyper-V or Docker, or use any other application that requires it.
You cannot enable Hyper-V if you want to run VirtualBox or use Vagrant with VirtualBox
You need HAXM if you want to accelerate the execution of the Android emulator (and you do not have Hyper-V and you do not use Virtualbox at the same time).

Right, I figured I had to enable Intel virtualization from the BIOS. I've got the emulator working now! Thanks for the help!

I had the same problem with a similar processor, core i3, in my VAIO laptop. VT was also enabled on the BIOS and the problem was fixed when I uninstalled the avast anti-virus(no disabling the protection) and so I could finish the HAMX installation. After that, I installed the Avast software again.
I hope this issue can help more people.

Related

HAXM Virtualisation Install

I'm a new Android developer and learner, and I am actually facing some strange issue. (config : Intel Core i7 3630QM # 2.40GHz , 6go ram , windows 8.1)
Just like many, I encountered the HAXM issue when I tried the emulator on the AVD manager.
What I have done :
1. Download the package for intel accelerated HAXM virtualisation via my SDK manager
Figure out the sdk location on my pc, and click on install (manually on the app)
C:\Users\didier\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager)
2.1 I get this error,
My PC meets the requirements but...
This means that my HAXM virtulisation may not be enabled on my pc.
2.2 I checked that on my BIOS, enabled it , saved and exit.
3. I retry the install from the exe file in my sdk location.
- I get the same error message.
So I tried install from intel website : Software from intel Website link , ==> I get the same
error message
I download Speccy, a program that tells you what is on your PC, I found that on BIOS, the Virtualisation option that I enabled , was actually DISABLED.
So I rebooted, and check that, it was ENABLED.
So now, I don't know what to do, I have found some other solution to emulate, but it's quite slow, it uses ARM technology.
Here is a possible solution to your problem, what I've found from your information given is that:
Your processor supports HAXM, see this spec sheet.
The hardware requirements are:
Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality
At least 1 GB of available RAM
Referring to that list of possible solutions, you should try:
Double check if Execute Disable Bit, VT-x, VT-d are turned on in BIOS
Disable Hyper-V in Windows 8.1
There have been issues with Hyper-V tech conflicting with HAXM, refer to this SO question.
Create a separate boot entry that disables hyper-V completely, or just disable all of it by:
Press Start.
Type CMD.
Right-Click, select Run As Administrator (must do this even if on Admin account)
type this in bcdedit /set hypervisorlaunchtype off
Reboot. Hyper-V should be off now.
I had the same problem with a similar processor, core i3, in my VAIO laptop. VT was also enabled on the BIOS and the problem was fixed when I uninstalled the avast anti-virus(no disabling the protection) and so I could finish the HAMX installation. After that, I installed the Avast software again.
I hope this issue can help more people.
I had terrible trouble getting an Android Virtual Device to work on Android Studio. I thought I had done everything right but then I checked the Hewlett Packhard BIOS again and realised that the word Enable beside Virtualisation really meant Enable and not Enabled, which is VERY confusing. Switch to Disable (which seems to mean Enabled) and all should be good. Talk about double negatives!

Can not install HAXM on my computer

have anyone an idea about how can I install HAXM on my computer? Cause when I tried to install it I've obtain an error and I don't know why.
http://i.imgur.com/MeFAn1X.png
Try these steps:
Go to Control Panel → Programs and Features.
Click on Turn Windows features on and off.
Uncheck Hyper-V option and restart your computer.
Now you should be able to install HAXM
Try to enable your Intel Virtualisation in your BIOS.
HAXM virtualization works only for Intel CPUs that have hardware-virtualization support. If you are running on an Intel CPU that does not have this, or even an AMD CPU you cannot install HAXM.

Can't install vt-x haxm for Android studio 1.0.1 on Windows 8.1 (after trying google solutions)

I can't install haxm that is required for vt-x to run Android emulator in Android studio.
I enabled Virtualization Technology on BIOS, after it I enabled Hyper-V in windows features. When trying to install the Intel HAXM I got message that my laptop doesn't support vt-x technology. But it suppose to according to this:
Intel ARK
After disabling Hyper-V in windows features I got message that my computer is supporting the vt-x but it is not enabled.
My laptop is:
HP pavilion g6
Windows 8.1 x64
Processor: i3 2310m
P.S. I saw that HP laptops has problem with this issue but I hope someone can help me.
Follow these steps
Disable Hyper-V as it is not necessary.
Go to BIOS setup and enable Virtualization.
Disable Avast if you have.
Install HAXM. It should be installed sucessfully.
P.S. I am using HP laptop and have no problem with this issue.
If you still have the problem and have avast:
after the steps given by mohit Singh, be aware that you need to restart your computer after desactivating avast or disable the "hardware virtualization" under settings for the changes to take effect. Sounds stupid but it can help people.

VT-x not working, even tho it's enabled in bios and my CPU supports it

I tried to make my android emulator work faster and as the title says, I can't get to install HAXM driver on my laptop. I've looked everywhere and did everything people suggested on other pages. Intel Virtualization Technology in bios is enabled. Updated Eclipse tools etc. Downloaded driver directly, instead of throguh Eclipse manager. I even tried to disable Hyper-V in Windows functions but it's not there.
I still get the following error when trying to install the driver:
(Can't post images so I will just rewrite it)
"This computer meets the requirements for HAXM, but Intel Virtualization Technology (VT-x) is not turned on. HAXM can be installed, but will not work until VT-x is enabled."
As I said before, it is ENABLED in bios so I have no idea what's the problem.
I would appreciate any help. Thanks.
Some antivirus prevent Haxm installation. In my case -- Avast : settings tab -> troubleshooting -> uncheck "enable hardware-assisted virtualization" Solved the problem
A step-by-step tutorial can be found here
Although this is an old question, but I've still encounter it recently.
This is what worked for me on my i7-3770 3.40GHz, Z77 extreme motherboard running Windows 10.
In Windows, disable Hyper-V:
Open up a PowerShell or CMD session as Administrator.
Type the following command:
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
Windows will ask you to restart.
In the bios:
Disable >>> Intel Virtualization Technology, vt-d
Save the bios settings and allow it to restart and boot into Windows.
Shutdown the computer (I've tried just restarting and it didn't work)
Power up the computer, go into the bios and re-enable the above disabled settings.
Save, restart.
Download the Intel Utility to check.
You should now see it been supported:
If it still doesn't work, try re-enabling Hyper-V first then following the steps above.
Hope my answer helps someone who ends up on this page for the question
I had just updated my BIOS and found that emulator on Android Studio was not starting mentioning "VT-x not enabled". When I checked task manager it showed Virtualization is Disabled
On entering BIOS found that Virtualization showed enabled. I exited and googled up in vain.
How I got rid of it:
I entered BIOS setup once again, this time I disabled it and re enabled. Saved and exited.
When I again checked in Task Manager, "Virtualization showed as enabled"
I made sure emulator is also running as I am typing this answer
had the same problem with my elitebook-i7 while running windows 10 pro. just like #Sajkor non of the method worked that's why am advising you try this method out:
Search program and features and open
open "turn windows features on or off"
under hyper-v, expand hyper-v platform an disable Hyper-v hypervisor
Also disable virtual machine platform
save and restart the pc
hope it helps, see the image if you are lost
https://i.stack.imgur.com/ICbEF.png
do you have any other software installed on your PC, that may prevent HAXM to use VT-x ?
Maybe you've got some other SDKs/emulators installed that would come with a virtualization service ?
Also, what's your laptop ? Sometime BIOS may be buggy and to really enable VT-x, you may need to disable it, shutdown and boot your PC again, enable VT-x, shutdown and boot again.

Android SDK's Intel HAXM disabled after installing Hyper V

I'm developing a suite of mobile apps - specifically Windows Store/Mobile 8 and Android.
Having installed VS2012 and then Monodroid, I was then able to start x86 Android images in the emulator and take advantage of the Intel HAXM acceleration (emulator output confirms HAXM working) to make the VM buttery-smooth.
I then installed the Windows Phone 8 SDK - which enables the Hyper V role - and now the emulator says it can't find HAXM. I then uninstalled and tried to reinstall HAXM, but now it won't - saying that my processor doesn't support it.
The VT-x extensions are still enabled in the BIOS - so I'm thinking that Hyper-V has blocked the Intel HAXM from working.
Of course it's not a killer - but a non-accelerated Android image is considerably slower than one with HAXM enabled - anybody else encountered this problem? Googling isn't bringing up anything obvious...
Update (30th Nov 2012)
Per #alexw's suggestion I tried stopping & disabling Hyper-V; with a restart. It still doesn't work.
I realise the next step is probably to the Windows Phone SDK (and remove Hyper-V) and then try again - to confirm that it really is the presence of Hyper-V. At the moment this is less than convenient - but I'll try and do it soon and update.
The best thing you can do to get HAXM detect VT again, is turning the whole Hyper-V "Feature" off. Open "Control Panel -> "Programs" -> "Turn Windows features on or off" (under "Programs and Features") and locate "Hyper-V", uncheck, reboot.
Looks like Hyper-V and HAXM are mutually exclusive, which is kind of a nuisance, because you even need to reboot twice to enable or disable either feature.
I was in your same case that needed to support Hyper-V and Intel HAXM. Disabling and enabling the feature and then restarting was overkill so I found an alternative solution.
You can create 2 boot entries, one for Windows with the regular configuration of Hyper-V enabled and another one with Hyper-V disabled. I logged in with the second one (Hyper-V disabled) and I was able to install Intel HAXM.
To accomplish this you need:
Open a command prompt as Administrator
Enter the command: bcdedit /copy {current} /d "Windows 8 - No Hyper-V"
This will output an id with the format {GUID} that you need to copy it to use it in the next command.
Enter the command: bcdedit /set { copied GUID of step 3 } hypervisorlaunchtype off
More details in this post.
I had a similar problem installing HAXM on Windows 8. I did the following with no effect:
Disabled hypervisor using the instructions here (http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx)
Double checked that processor supported VT-x and was enabled in BIOS (BIOS said "supported", but there was no option to turn it on
Verified that all Hyper-V services in control panel were stopped (and never automatically started)
Performed a complete shutdown and a cold boot up.
However, I tried installing VirtualBox after the above actions (VirtualBox installed fine) and created a new VM. Running the VM caused my machine to blue screen, but after the reboot HAXM installed fine. Perhaps running VirtualBox flips some sort of flag at the OS level to allow HAXM to install.
I was also running AVAST at that time, and according this (Running the new Intel emulator for Android), that may cause a problem. However, I didn't have to disable AVAST to get HAXM installed.
You could try stopping the Hyper-V service when not needed and re-enabling it when you want to work on a WP8 project. It's a pain but the performance improvement offered by HAXM is immense.
Open services.msc, find the hvboot service (Hyper-V) and stop it. If this doesn't help you may need to disable the service and restart your pc.
I had the same problem. After a long search I found the answer. In my case, I had installed Avast Antivirus, first uninstall avast, reboot your PC, install Haxm, reboot. you can install again antivirus.

Categories

Resources