intel / haxm

Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
BSD 3-Clause "New" or "Revised" License
3.24k stars 878 forks source link

Intel® HAXM installation failed. To install Intel® HAXM follow the instructions found #365

Open STANDLEYRICHANDE opened 3 years ago

STANDLEYRICHANDE commented 3 years ago

Describe the Bug

Summary:

Host Environment

Guest Environment

To Reproduce

Steps to reproduce the behavior:

Expected Behavior

Expectation:

Reproducibility

Diagnostic Information

Host crash dump:

HAXM log:

Android Emulator or QEMU log:

Screenshots:

Additional context

None

STANDLEYRICHANDE commented 3 years ago

Intel® HAXM installation failed. To install Intel® HAXM follow the instructions found

wayne-ma commented 3 years ago

Hi @STANDLEYRICHANDE ,please provide more details and fulfill the issue template info, so that I can help to narrow down your issue.

demberto commented 3 years ago
  1. Download checktool from Releases tab
  2. Run checktool.exe --verbose and post its output here
  3. Also fill up the details you skipped above
STANDLEYRICHANDE commented 3 years ago

Não preciso mais, mas muito obrigado pelo suporte

Em sex, 23 de abr de 2021 02:54, demberto @.***> escreveu:

  1. Download checktool from Releases tab
  2. Run checktool.exe --verbose and post its output here
  3. Also fill up the details you skipped above

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/intel/haxm/issues/365#issuecomment-825406643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJROLC4F42P3GE3MWXM5OLTKEDR7ANCNFSM42XHLXWA .

demberto commented 3 years ago

I don't understand this language

nevilad commented 3 years ago

Google translate says it's portuguese and means "I don't need it anymore, but thank you so much for the support"

Ahriman commented 3 years ago

PS C:\Users\usuario\Downloads\checktool-windows-1.0.0> .\checktool.exe --verbose CPU vendor GenuineIntel Intel64 supported Yes VMX supported Yes VMX enabled Yes EPT supported - No NX supported Yes NX enabled Yes Hyper-V disabled Yes OS version Windows 10.0.19042 OS architecture x86_64 Guest unoccupied Yes. 0 guest(s)

Is posible to install HAXM on a Virtual Machine of VirtualBox? My CPU is the Intel 3570K and supports EPT.

I want to install HAXM in virtual machine to use Android Emulator inside the virtual machine.

Ahriman commented 3 years ago

Works ok in VMWare... And if I use VirtualBox with a Linux virtual machine, then works too. The problem is using Windows virtual machine...

nevilad commented 3 years ago

You run Linux guest in VirtualBox, installs haxm in this guest and runs another VM with haxm and it works? But Windows guest in VirtualBox fails to install haxm?

wcwang commented 3 years ago

@Ahriman, thanks for your report. You mean you can install HAXM within a virtual machine running on a Linux host, right? But you cannot do the same operation on a Windows host. This may be because KVM supports nested virtualization on Linux hosts while HAXM cannot support nested virtualization on Windows hosts.

Ahriman commented 3 years ago

@nevilad Sorry. I can run Windows guest only with VMware, with VirtualBox, I can't.

And I can run Linux guest with KVM.

In both cases I can run Android Emulator, I saw the problems is VirtualBox. I can't enable EPT support in Windows guest (my CPU supports EPT).

Ahriman commented 3 years ago

@wcwang Thank you, but I can use Android Emulator in a nested virtual Windows with VMware (or in a Linux with KVM).

nevilad commented 3 years ago

Can you precisely describe configuration that does not work? What host OS (Linux\windows\Mac), which host hypervisor (haxm\kvm), what guest OS, which guest hypervisor? If you try to run any guest inside a virtual machine running with haxm, it will not work since haxm does not support nested virtualization.

Ahriman commented 3 years ago

I have Fedora 64 bits as host. Then if I use VMware with a Windows 10 64 bits as guest, all works ok.

You can see the log of Windows 10 guest:

C:\Program Files\Intel\HAXM>checktool.exe --verbose CPU vendor GenuineIntel Intel64 supported Yes VMX supported Yes VMX enabled Yes EPT supported Yes NX supported Yes NX enabled Yes Hyper-V disabled Yes OS version Windows 10.0.19043 OS architecture x86_64 Guest unoccupied * Yes. 0 guest(s)

And a screenshot:

imagen

But I want to do the same with VirtualBox with Windows as guest and don't work. I think is a problem of VirtualBox then... VirtualBox only works with Linux as guest using KVM!

I can't enable EPT support with VirtualBox:

PS C:\Program Files\Intel\HAXM> .\checktool.exe --verbose CPU vendor GenuineIntel Intel64 supported Yes VMX supported Yes VMX enabled Yes EPT supported - No NX supported Yes NX enabled Yes Hyper-V disabled Yes OS version Windows 10.0.19043 OS architecture x86_64 Guest unoccupied Yes. 0 guest(s)

imagen

wcwang commented 3 years ago

Thanks for your reply. Both VMware and KVM support nested virtualization but HAXM itself cannot. That is why you can install HAXM on Windows guests based on these VMs.