Unable to run virtual machine in Android Studio - android

When I try to run a virtual device in Android Studio, I get the error:
Enable VT-x in your BIOS settings, ensure that your linux distro has a
working KVM module.
I'm using an HP Probook 440 dual booted with Ubuntu and Windows 10. I can't seem to find an option to enable VT-x on my system. I was able to run a virtual device on Eclipse in Windows 10, but I get this error when I try to create a virtual device in my Android Studio in Ubuntu.
Any help is greatly appreciated. Thanks.

I had a similar issue on my HP Probook 450, so I guess with 440 the solution should be similar.
Restart the Notebook and keep tapping F10 key during the startup to access the BIOS. Once you get to the BIOS please select System Configuration and then go to Device Configuration. Now here you need to look for either BIOS Virtualisation or VT-X and enable the same.

While your system is starting up
press esc to bring up boot options
press F10 to go to the BIOS menu
Go to 'System Configuration' tab
Select 'Virtualization Technology`
Select 'Enabled'
Exit saving changes

I had problems using Oracle's Virtual Box and Ubuntu. Managed to get Android Studio's emulator to work fine with Fedora 27 running on VMWare Workstation 14 player on a Windows 7 machine with an i7 CPU.

Related

Failed to Run AVD on AndroidStudio 2.1.2 Win7

I'm new to Android, i have downloaded Android studio 2.1.2 and SDK. After reading references from google i wrote HelloWorld application, which can run on my phone.
But due to certain reasons i have to run AVD in AndroidStudio to execute my application. but is shows following error
Intel HAXM is required to run this AVD. /dev/kvm is not found.
Enable VT-x in your BIOS security settings, ensure that your Linux
distro has working KVM module.
Following things i have done so far.
Installation of HAXM manually.
Enabled Virtualization from BIOS.
Some of the references on stackoverflow suggested to uncheck Hyper-V
option in Turn on off windows feature. (i have found nothing like
hyper-V there)
I'm running Windows 7
I'm just stuck here. any help would be highly appreciated.
EDIT:
I have read that Dell Optiplex760 does not support virtualization.
but i can run VirtualBox on my machine. moreover i have seen Virtualization option in BIOS. Also Secureable shows that my system supports Virtualization.
First, reboot you system, press the hot key to enter the BIOS.
enter BIOS
Second, enable the Inter(R) Virtualization Technology and save.
enable VT
Third, start up your computer, enter CMD, input "sc query intelhaxm" to check the state.
CMD command
Forth, start up your AVD, if error happens like that. Go next step.
error tips
Finally, go into your SDK directory, reintall the intellhaxm-android.exe again, then launch the AVD Monitor.
reinstall haxm
I hope it works.

Android Studio - cannot create Android Virtual Device

I just installed Android Studio and I'm trying to create virtual device.
When I try to launch the AVD in the emulator, one dialogue box pops up stating that
Intel HAXM is required to run this AVD. VT-x is diables in BIOS.
Enable VT-x in your BIOS security settings (refer to documentation for your computer).
What should I do?
First Try This step 1 :
Enable Intel Virtualization Technology First From BIOS
Then Try this Step 2:
HAXM installation for Android Studio
I think Problem will be solved.

Cannot find Hyper-V option in Windows (10 Home) feature turn on/off for enabling VT-x to install emulator accelerator (HAXM)

I am trying to run a simple hello world application in Android studio. While running it gave this error "cannot launch AVD in emulator... requires hardware acceleration. Please ensure intel HAXM is properly installed and usable".
So, I downloaded Intel x86 emulator accelerator (HAXM installer), then went to Android->sdk->extras->intel->hardware_Accelerated_Execution_Manager and executed intelHAXM_android.exe. During its execution I encountered the error " VT-x in not turned on".
1. While doing a bit research on this, I encountered this solution:
Control panel -> Programs -> Programs and Features -> Turn windows features on or off,
it displayed a list of features but I couldn't find Hyper-V option. How can I enable it, in order to run my application ?
2. I have also tried running the bcdedit command, then also it gave the same error "cannot launch AVD in emulator... requires hardware acceleration. Please ensure intel HAXM is properly installed and usable".
I am using Windows 10 Home. How should I enable it? Also I read somewhere that Windows 10 Home does not have Hyper-V feature then what is the alternative to run my application?
Thank you.
Hyper-V is not supported on Windows 10 Home edition (Microsoft docs).
The Hyper-V role can be enabled on these versions of Windows 10:
Windows 10 Enterprise
Windows 10 Professional
Windows 10 Education
The Hyper-V role cannot be installed on:
Windows 10 Home
Windows 10 Mobile
Windows 10 Mobile Enterprise
Hyper-V or Virtualization Technology is something that your processor supports. I had similar problem when i was trying to set up Android Studio. It is rather easy to solve the problem, you have to open your bios menu(when starting up your PC pressing F11 or something different according to your BIOS) then you will navigate and find Intel® Virtualization Technology (Intel® VT) and enable it. By default it is disabled.
After this install Intel HAXM and you are good to go.

Android Virtual Device & Intel HAXM

I've just set up a new PC with Android Studio, and can't launch any Virtual Devices. When I start a device I get the message-
Starting emulator for AVD 'Nexus_5_API_21_x86'
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
When I run the HAXM installer, it says
This computer meets the requirements for haxm but intel virtualization is not turned on
But in BIOS its definately ticked as being ON.
Any ideas why I can't get it working ?
Thanks.
so some antivirus prevent HAXM running, and make sure you don't have Windows Hypervisor running. (Under programs list, windows, under H).
It could be you need to set your NX (XD) bit to on. As admin run from command line:
bcdedit /set nx AlwaysOn
Otherwise what is your CPU?
Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
Goto setting -> change pc settings-> general->then see on right side
by scrolling the frame down-> you will see under advance start up
restart now button press it->then choose an option window will
open->choose troubleshoot->under troubleshoot choose Advance
option->then under Advance options choose UEFI Firmware option->then
press restart->press f10 for BIOS->see the menubar where you will
find system configuration menu inside it you will see the
virtualization Technology "enable" it ->now go for exit saving
changes in exit on menu bar..
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid user name)
install it and restart your Android Studio.
if you make few changes on above process it is same for win 7 and also same for eclipse
hope it helps have fun!!

Unable to start Genymotion virtual device, incompatible CPU

The first time I ran Genymotion virtual device, it had worked. But when I tried running it today, I got this error message
What may have changed from the last time I used it? Will be grateful for any solutions that I can get. Thanks.
My Device Info:
Dell XPS L502X
Sandy Bridge motherboard
Intel Core i5-2410M #2.30 GHz
Windows 7 Professional 64-bit
You need to turn virtualization on.
Reboot the notebook.
Instantly press F10 to enter BIOS settings (or F2 depending on your PC)
Check the settings and look for Intel Virtualization Technology (Aliases: Intel VT-x).
Turn it on then save and exit. You could use F10 to save and exit.
This will enable you to use virtualization and enable VirtualBox. Therefore your emulator will hopefully work.
I've solved my problem just turning off the Hyper-V on Windows Features.
Another way to receive this message is because you are running another application that use VT-x like the Android Emulator from Android Studio. If you open Virtualbox and try to start the VM you will get this error message. Solution: Close the other emulator and try again.
For me the following worked:
Disable/uncheck "Enable VT-x/AMD-v" in the virtual device's Settings-> System -> Acceleration
Execute the following command in cmd opened as administrator to disable hyper-v and then reboot the machine:
bcdedit /set hypervisorlaunchtype off
I don't know why disabling hyper-v from system preferences doesn't work for me, only the command works for me. Also I had to close Docker first to execute the command.
Solution for windows 10: Control Panel → Programs → Turn Windows components on or off.
Uncheck the Hyper-V option and click OK.
in ubuntu
1-Reboot the notebook.
2-enter BIOS (press F10 or F2 )
3-Check enable Intel Virtualization Technology and save and exit.
I've also seen this exact same error dialog (for the first time ever) today after upgrading to the latest versions of both VirtualBox and GenyMotion. Nothing else on my system has changed. It's not the best answer in the world, but after trying a few other suggestions I came across, I found that simply cancelling the dialog and restarting the virtual Genymotion device (either via Android Studio or via the Genymotion console) resolved the problem.
Fix it in Virtualbox directly
Open VirtualBox
If you find a similarly named device "Inaccessible" or any other state than "switched off", stop it or remove it.
Start the device from Genymotion
Feel Happy :)
i just decreased the amount of base memory used by the machine in virtualbox manager settings > System > Base Memory and it worked.
In VirtualBox settings > System disable I/O, EFI, UTC and AMD-V.
And Settings > Network > Promiscuous Mode modify in all.
I've seen this exact same error dialog on the first install. I changed my BIOS settings and it worked but after a month the same error occurred.
My solution:
Open VirtualBox Manager
Settings > Network > Promiscuous Mode
Change from "deny" to "allow"
I had to deactivate 'Memory Integrity' of Windows 10 (1803) 'Core Isolation' Feature of Windows Defender. It is deactivated by default, and for some odd reason I had forgotten I had switched it on recently.
I also checked that in VirtualBox -> Your virtual machine -> Settings -> System -> Acceleration -> 'Enable VT-x/AMD-v' and 'Enable nested paging' are activated, Hyper-V is not installed and virtualization is turned on in BIOS.
There is an explaining article on HowToGeek explaining that aformentioned Memory integrity feature:
https://www.howtogeek.com/357757/what-are-core-isolation-and-memory-integrity-in-windows-10/
I have solved this issue not just by enabling VT-x but also by enabling VT-d (Virtualization Technology for directed I/O) in BIOS
I fixed it in VirtualBox:
Setting > System > Disable checkbox "Nested Paging"
One more correct answer is that recent versions of Genymotion support only 64bit CPU and that will cause the same error.
For me the solution was to close another emulator which was open.
None of the solution worked for me. This is what solved the issue:
Turn on Hyper-V in Windows Features.
Restart PC.
Turn off Hyper-V in Windows Features.
Restart PC.
Boom!
I Had The Same Problem And I Solve It By Turning Off The Hyper -v In Windows Programs And Features. Now I Can Start Any Virtual Device From Both Android Studio And Genymotion.

Categories

Resources