Skip to content

Instantly share code, notes, and snippets.

@startergo
Last active November 27, 2024 02:19
Show Gist options
  • Save startergo/474f7073e8645494e4506cf26a207070 to your computer and use it in GitHub Desktop.
Save startergo/474f7073e8645494e4506cf26a207070 to your computer and use it in GitHub Desktop.
QEMU with enabled HAXM acceleration on Windows
$bcdedit /set hypervisorlaunchtype off
@powershell -ExecutionPolicy RemoteSigned -Command "C:\<dgreadiness_location>\dgreadiness_v3.6\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
  • Check Installation:
sc query intelhaxm

SERVICE_NAME: intelhaxm
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
  • Test the operation by opening the folder containing EndeavourOS_Endeavour_neo-2024.09.22.iso (or any live Linux ISO) in Power Shell 7 :
qemu-system-x86_64.exe -smp 2 -m 4096 -cdrom EndeavourOS_Endeavour_neo-2024.09.22.iso -display sdl -machine q35 -accel hax -net nic -net user,hostfwd=tcp::10022-:22
  • Result:
HAX is working and emulator runs in fast virt mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment