How to enable Intel Virtualization technology - android

I'm beginning to develop android apps, I recently heard about HAXM so I downloaded it unpacked it and started installing, however I got the fallowing error "This computer meets requirements for HAXM, but VT-x is not turned on. HAXM cannot be installed until VT-x is enabled".
I looked at a number of threads connected with this problem and the majority say to enable Intel Virtualization technology. I'm having trouble navigating to the CPU configuration in the BIOS to do this using windows 10.

Related

Android Studio Emulator isn't opening. Showing "enable VT-x in your BIOS settings"

I just instaled android studio and when I run the app, the emulator doesn't open and shows the error. I have attached the screenshot of the error. I am using MacBook Pro 2012. Recently I have installed 8GB RAM to the Mac. Now the total RAM is 2GB+8GB. Is it due to the new RAM installed? or it's a different thing?
When you use third-party products that incude Intel VT-x virtualization technology, an alert message might tell you that VT-x support is locked by the firmware on your Mac.
You might also notice that VT-x support is disabled when you use third-party virtualization applications on your Mac like VMWare Fusion or Parallels Desktop.
You can fix this issue by making sure that your Mac has the latest software updates available:
For Mac Pro (Original), install Mac Pro EFI Firmware Update 1.2 or later.
For reference, kindly go through below link.
https://support.apple.com/en-us/HT203296

Trouble with trying to use Intel HAXM for Android Studio on an HP Envy 15" TouchSmart Laptop

I know there are questions similar to mine, but since I definitely am a newcomer to Android development, I want to keep my question separate. I'm still also a newcomer to StackOverflow.
I want to learn Android programming as I go through my first co-op term, but there's a problem: I can't install Intel HAXM on my laptop because I get a popup message saying the same thing as the first dialog shown in this StackOverflow question similar to this one: Error trying to install HAXM - Intel VT-x turned off
My laptop, however, does support Intel VT-x, and from what I can see on the Intel Processor Identification Utility (it's older than 6 months at the time of this write up), the Intel Virtualization Technology is active (it says "Yes") and so is Intel VT-x with Extended Page Tables. I think I do have HAXM installed already, but I could be wrong.
The laptop is an HP ENVY TouchSmart 15" Notebook PC running on eight Intel Core i7-4700MQ CPUs with the ability to safely reach 2.4 GHz and the ability to be overclocked at 3.1 GHz from the power settings. I'm using the 64-bit version of Windows 8.1.
Without Intel HAXM, I can only run an Android virtual device (so far on API Level 22) using the armeabi-v7a ABI instead of the x86 ABI.
First, you have a fast laptop. haha
By default, Intel Virtualization is off.
turn off laptop, press F10 then press power button. in the tab two or three, you will find the Virtualization setting. just trun on, save and exit bios. restart laptop.
If you are using windows 8. The task manager will tell you current status of Virtualization Technology is on or off.
By the way, you had better have a try of genymotion. you will love it.

Intel HAXM for Android on Surface Pro3

I am brand new to Android development.
I have installed Android Studio, but the emulator fails to run claiming that intel HAXM is not installed.
The thing is it is installed because when I run the SDK Manager, it tells me it is installed.
I checked online and someone says it only works on machines that support intel virtualization.
I am working on a Surface Pro3 and I have my Windows Phone emulators running in hyper-V and, so I know that virtualization is enabled.
What can I do?
Is there a specific kind of virtualization that is required?
I've seen this before, sometimes your windows machine will tell you it is enabled but it's not or it at least isn't recognized by Android Studio / HAXM / emulator.
There is a post here you can give a look: Intel HAXM installation error - This computer does not support Intel Virtualization Technology (VT-x)
One suggestion is to disable it.
Alternatively you can run the emulator as an ARM instead of intel based.
I have a surface pro 2 and Win 10 64 bit. Had to go to "Turn Windows Features on or Off" in Control panel and disbale/uncheck both Hyper-V as well as Windows Hypervisor (this feature is only in 64 bit).
Restart and then try installing IntelHaxm again. You can find that where you SDK is installed. sdklocation\extras\intel\Hardware_Accelerated_Execution_Manager.
You can check you sdk location in Android Studio System Settings > Android SDK.

Intel's HAXM equivalent for AMD on Windows OS

Is there any equivalent of Intel's HAXM for AMD (Windows OS) or has anybody been able to hack HAXM to make it work on AMD processors (Windows OS)?
Also, would Genymotion (http://www.genymotion.com) be significantly faster compared to the default Google APIs ARM / x86 system images provided by Google?
My exact dev machine specs:
OS: Windows 7 Ultimate
Processor: AMD FX 8120 8 Core 2.81 GHz
Posting a new answer since it is 2019.
TLDR: AMD is now supported on both Windows and Linux via WHPX and yes, Genymotion is faster as it is using x86 architecture virtualization.
From the Android docs (January 2019):
Though we recommend using HAXM on Windows, it is possible to use
Windows Hypervisor Platform (WHPX) with the emulator. You should use
WHPX with the emulator if you are using an AMD CPU or if you need to
use Hyper-V at the same time.
To use WHPX acceleration on Windows, you must enable the Windows
Hypervisor Platform option in the Turn Windows features on or off
dialog box. For changes to this option to take effect, restart your
computer.
Additionally, the following changes must be made in the BIOS settings:
Intel CPU: VT-x must be enabled. AMD CPU: Virtualization or SVM must
be enabled.
Diff from 2016:
Virtualization extension requirements
Before attempting to use acceleration, you should first determine if
your CPU supports one of the following virtualization extensions
technologies:
Intel Virtualization Technology (VT, VT-x, vmx) extensions
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
Most modern computers do. If you use an older computer and you're not
sure, consult the specifications from the manufacturer of your CPU to
determine if it supports virtualization extensions. If your CPU
doesn't support one of these virtualization technologies, then you
can't use VM acceleration.
Virtualization extensions are typically enabled through your computer BIOS and are frequently turned off by default. Check the documentation
for your motherboard to find out how to enable virtualization
extensions.
From the Android docs (March 2016):
Before attempting to use this type of acceleration, you should first
determine if your development system’s CPU supports one of the
following virtualization extensions technologies:
Intel Virtualization Technology (VT, VT-x, vmx) extensions
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
The
specifications from the manufacturer of your CPU should indicate if it
supports virtualization extensions. If your CPU does not support one
of these virtualization technologies, then you cannot use virtual
machine acceleration.
Note: Virtualization extensions are typically enabled through your
computer's BIOS and are frequently turned off by default. Check the
documentation for your system's motherboard to find out how to enable
virtualization extensions.
Most people talk about Genymotion being faster, and I have never heard anyone say it's slower. I definitely think it's faster, and it will be worth the ~20 minutes it will take to set up just to try it.
You will need to create a virtual device that runs on ARM. Virtual devices running on X86 require an Intel processor. AMD support as specified by Android is only available for Linux systems. If you want a better experience when creating your Virtual Device, use "Store a snapshot for faster startup" instead of the default "Use Host GPU".
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
Important
If you have an AMD processor in your computer you need the following setup requirements to be in place:
AMD Processor - Recommended: AMD® Ryzen™ processors
Android Studio 3.2 Beta or higher - download via Android Studio Preview page
Android Emulator v27.3.8+ - download via Android Studio SDK Manager
x86 Android Virtual Device (AVD) - Create AVD
Windows 10 with April 2018 Update
Enable via Windows Features: "Windows Hypervisor Platform"
Buying a new processor is one solution, but for some of us that means buying other components as well. Alternatively you could just buy an Android phone that supports your lowest target API level and run your apps off the phone. You can find some of those phones on Amazon, Ebay, craigslist for pennies (sometimes). Plus this grants you the benefit of actually running on the minimum hardware you intend to support. While this may be a bit slower than installing your app on an emulated system, it will probably save you money.
Android, device testing/debugging link: http://developer.android.com/tools/device.html
hello to run the avd manager on AMD processor you need update your SDK MANAGER in Android Studio:
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
You go to tools->SDK MANAGER->SDK Tools
then look for Android Emulator and Android Emulator Hypervisor Driver for AMD Processors
check the boxes and click apply or OK
This limitation (of Windows) should be publicly announced! The issue for me is the combination of the following: Windows 10 + AMD CPU (with AMD-V/SMV) +/- Hyper Visor
I have no issues running: Intel (with VT-x) + Linux or AMD (with AMD-V) + Linux
Link to Android studio issue here:
https://developer.android.com/studio/run/emulator.html#accel-vm
Xamarin/Visual Studio seems to have a workaround, but I haven't tested it yet:
If you need to use Hyper-V for other emulators then I'd recommend using the Microsoft Android Emulator instead, which uses Hyper-V and can also be used with Xamarin Studio/Visual Studio. You can download it for free from here.
I will update this after I confirm it works. Wish I would have known this before purchasing a new machine.
UPDATE!! It does not work "Requires Intel ..." error message is shown
Final note:
*Must be revision F3 or grater or must be F2 with BIOS support. Presence or absence of SVM Disable or other virtualization options in
the bios does not ensure presence of BIOS support. You should contact
the OEM to ensure support of Hyper-V.
*Some AMD BIOS's have options to enable/disable SVM (virtualization assistance)
*Some BIOS's list this as SVM Disable and it's a double negative, i.e. you want to disable SVM disable to enable SVM.
*Some BIOS's list this as Secure Virtualization, thus enabling Secure Virtualization will enable SVM
*Must have No-Execute enabled in the BIOS, sometime this is referred to as NX or Execute Disable
*If you want to find CPU's that are F3 see AMD's guide http://products.amd.com/en-us/DesktopCPUFilter.aspx or
http://products.amd.com/en-us/OpteronCPUFilter.aspx?f1=Second-Generation+AMD+Opteron%e2%84%a2
Posting a new answer since it is (almost) 2020.
The Android Emulator still only supports HAXM or WHPX on windows. And you may even call it a day already with the latter.
But if you don't like it, there is now work in progress AMD-V support for the former by one of the PS4 emulator developers: https://github.com/jarveson/haxm/tree/svm
On my Mobo (ASRock A320M-HD with Ryzen 3 2200G) I have to:
SR-IOV support: enabled
IOMMU: enabled
SVM: enabled
On the OS enable Hyper V.
Now there is another alternative: Android Emulator Hypervisor Driver for AMD Processors on Windows
Before you can install and use the Android Emulator Hypervisor Driver for AMD Processors, your computer must meet the following requirements:
AMD processor with Secure Virtual Machine (SVM) Technology
64-bit Windows 10, Windows 8, or Windows 7 (32-bit Windows is not supported)
To use Android Emulator Hypervisor Driver for AMD Processors on Windows 10 or 8, you must turn off Hyper-V in the Windows Feaures Dialog.
Note: Installing certain software might turn Hyper-V back on. Refer to Disabling Hyper-V for more details.
I have AMD ryzen processor. This worked for me.
Go to boot menu.
Go to advanced settings.
Enable SVM.
Make UVM to auto.
Save and exit.

Virtualization Technology Not Supported while Installing HAXM

I want to install HAXM on windows 8.1 (HP pavilion 3515) (I've downloaded the hotfix from here). but the below error occurs during installation (HyperV is not installed on my laptop). so I installed the "Intel processor utility to check if my laptop supports VT or not, and as you see in the second picture it says "NO". then I checked my bios and I saw "Virtualization technology" item in "configuration manager" tab! and I enabled it, and tried to install HAXM again, but I got the error again and I saw NO in front of "Virtualization technology again.
Now my question is that "is there any way to do so my cup can support it"? or it's a hardware problem?
It's a hardware problem. If your CPU doesn't support Intel Virtualization Technology then HAXM will not work for you.
According to ark.intel.com, the T5900 series processors do not support VT-x. Not sure why your bios indicates that you have it. Perhaps it supports some VT features but not all the VT features that HAXM requires.
Here are some trouble-shooting tips for installing HAXM.
http://software.intel.com/en-us/blogs/2014/03/14/troubleshooting-intel-haxm

Categories

Resources