Hướng dẫn hyper-v server 2023 as a standalone hypervisor năm 2024
This document will guide you through installing the Intel Hardware Accelerated Execution Manager (Intel HAXM), a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel VT) to speed up Android development. Show PrerequisitesIntel HAXM requires the Android SDK to be installed (version 17 or higher). For more information, refer to the Android developer website (https://developer.android.com/studio/index.html). System RequirementsHardware Requirements:
Supported Operating Systems:
Important: Intel HAXM cannot be used on systems without an Intel processor, or with an Intel processor that lacks the hardware features described in the "Hardware Requirements" section above. To determine the capabilities of your Intel processor, visit http://ark.intel.com. Additionally, Intel HAXM can be used only with Android x86 and x86_64 emulator images provided by Intel. Intel HAXM cannot be used with ARM Android emulator images or non-Intel x86 or x86_64 Android emulator images. [*] For Windows 7 Service Pack 1, Microsoft security update KB3033929 is required when upgrading HAXM to the latest version (see Known Issues for details). Otherwise, keep using HAXM v7.3.2 instead. Downloading Intel HAXMOverview Intel HAXM can be installed either through the Android SDK Manager (recommended), or manually, by downloading the installer from Intel’s website. Note: Intel HAXM does not currently check for updates automatically. To get the latest version, download the Intel HAXM package using the Android SDK Manager (recommended) or from the Intel Developer Zone Android developer site. Downloading Manually
Downloading through Android SDK Manager
Installing Standalone Intel HAXM on WindowsWarning: Intel HAXM installation will fail if your system does not meet the system requirements, including support for Intel processor features, such as Intel Virtualization Technology (Intel VT).
To verify that Intel HAXM is running, open a Command Prompt window with administrator privileges (Run as Administrator) and execute the following command:
If Intel HAXM is working, the command will show a status message indicating that the state is: "4 RUNNING". To stop or start Intel HAXM, use these commands: Stop:
Start:
Installing HAXM silently on Windows
The installer will check the system environment first. If the installation is successful, it will output as below.
The installer executable itself also supports to run in silent mode by passing
Please note that the parameter Installing Intel HAXM on Windows via Android Studio
To verify that Intel HAXM is running, open a Command Prompt window with administrator privileges (Run as Administrator) and execute the following command:
If Intel HAXM is working, the command will show a status message indicating that the state is: "4 RUNNING". To stop or start Intel HAXM, use these commands: Stop:
Start:
Removing Intel HAXMWarning: Close all instances of the Android x86 emulator before removing Intel HAXM. Intel HAXM cannot be removed while in use. To uninstall Intel HAXM, use Uninstall a program in the Control Panel or uninstall in silent mode as below.
`sc stop intelhaxm`1 Important: Removing Intel HAXM will disable acceleration of all Intel x86 Android emulators. Existing x86 Android Virtual Devices will not boot. Installing Intel HAXM again will re-enable Android emulator acceleration. Using Intel HAXMIntel HAXM requires an Android x86 system image provided by Intel. These images can be downloaded through the Android SDK manager or manually from the Intel Developer Zone website. Intel x86 Android emulator images will automatically be executed using the "emulator-x86" binary, provided with the Android SDK. If Intel HAXM is installed and working, emulation will be accelerated by Intel HAXM (using Intel Virtualization Technology). TroubleshootingExecute Disable Bit capability error When installing Intel HAXM, you may encounter an error regarding Execute Disable Bit support. This error message can be triggered by the following conditions:
Execute Disable Bit is not supported Intel HAXM requires an Intel processor with Execute Disable Bit functionality and cannot be used on systems lacking this hardware feature. To determine the capabilities of your Intel processor, visit http://ark.intel.com. Execute Disable Bit is not enabled In some cases, Execute Disable Bit may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a setup key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Execute Disable Bit may be identified by the terms "XD", "Execute Disable", "No Execute", or "Hardware DEP", depending on the BIOS used. Windows hosts may need to enable DEP (Data Execution Prevention) in addition to Execute Disable Bit, as described in this Microsoft KB article: http://support.microsoft.com/kb/875352. For specific information on entering BIOS setup and enabling Execute Disable Bit, please contact your hardware manufacturer. Intel Virtualization Technology (Intel VT-x) capability When installing Intel HAXM, you may encounter an error regarding Intel VT-x support. This error message can be triggered by the following conditions:
Intel VT-x is not supported Intel HAXM requires an Intel processor with Intel VT-x functionality and cannot be used on systems lacking this hardware feature. To determine the capabilities of your Intel processor, visit? http://ark.intel.com. Intel VT-x not enabled In some cases, Intel VT-x may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Intel VT may be identified by the terms "VT", "Virtualization Technology", or "VT-d." Make sure to enable all of the Virtualization features. For specific information on entering BIOS setup and enabling Intel VT, please contact your hardware manufacturer. Tips and TricksBelow are some recommendations to get the best experience out of the Android emulator using the Intel HAXM driver. |