ILD

install qemu on windows
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2026-4-13 站点:Inside Linux Development

官方下载页面

https://www.qemu.org/download/#windows


首先需要安装MSYS2

https://www.msys2.org/

官网的安装exe下载非常慢,去国内高校镜像站下载

https://mirrors.ustc.edu.cn/msys2/distrib/x86_64/msys2-x86_64-20260322.exe


如果是安装x86版本的qemu,就是官方网页说的,使用pacman安装

pacman -S mingw-w64-x86_64-qemu


如果是其它架构的,去base package查看:

https://packages.msys2.org/base/mingw-w64-qemu


aarch64的包可能是下面这个

$ pacman -S mingw-w64-clang-aarch64-qemu
warning: mingw-w64-clang-aarch64-qemu-10.2.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-clang-aarch64-qemu-10.2.2-1

Total Installed Size:  1040.87 MiB
Net Upgrade Size:         0.00 MiB

:: Proceed with installation? [Y/n] y
/usr/share/libalpm/scripts/mingw-w64-clang-aarch64-gtk-update-icon-cache.script: line 5:
 /clangarm64/bin/gtk-update-icon-cache.exe: cannot execute binary file: Exec format error
error: command failed to execute correctly

这个其实是错的,这个安装在aarch64 架构的windows版本上的。


其实还是安装这个,x86_64指的host的版本,里面包含了支持各种架构的qemu

$ pacman -S mingw-w64-x86_64-qemu


注意,这个是mingw版本,要在MINGW64版本的MSYS2运行


yuanjianpeng@DESKTOP-6ORM3SI MINGW64 ~

$ qemu-

qemu-edid.exe                  qemu-system-microblaze.exe     qemu-system-rx.exe

qemu-ga.exe                    qemu-system-microblazeel.exe   qemu-system-rxw.exe

qemu-img.exe                   qemu-system-microblazeelw.exe  qemu-system-s390x.exe

qemu-io.exe                    qemu-system-microblazew.exe    qemu-system-s390xw.exe

qemu-nbd.exe                   qemu-system-mips.exe           qemu-system-sh4.exe

qemu-storage-daemon.exe        qemu-system-mips64.exe         qemu-system-sh4eb.exe

qemu-system-aarch64.exe        qemu-system-mips64el.exe       qemu-system-sh4ebw.exe

qemu-system-aarch64w.exe       qemu-system-mips64elw.exe      qemu-system-sh4w.exe

qemu-system-alpha.exe          qemu-system-mips64w.exe        qemu-system-sparc.exe

qemu-system-alphaw.exe         qemu-system-mipsel.exe         qemu-system-sparc64.exe

qemu-system-arm.exe            qemu-system-mipselw.exe        qemu-system-sparc64w.exe

qemu-system-armw.exe           qemu-system-mipsw.exe          qemu-system-sparcw.exe

qemu-system-avr.exe            qemu-system-or1k.exe           qemu-system-tricore.exe

qemu-system-avrw.exe           qemu-system-or1kw.exe          qemu-system-tricorew.exe

qemu-system-hppa.exe           qemu-system-ppc.exe            qemu-system-x86_64.exe

qemu-system-hppaw.exe          qemu-system-ppc64.exe          qemu-system-x86_64w.exe

qemu-system-i386.exe           qemu-system-ppc64w.exe         qemu-system-xtensa.exe

qemu-system-i386w.exe          qemu-system-ppcw.exe           qemu-system-xtensaeb.exe

qemu-system-loongarch64.exe    qemu-system-riscv32.exe        qemu-system-xtensaebw.exe

qemu-system-loongarch64w.exe   qemu-system-riscv32w.exe       qemu-system-xtensaw.exe

qemu-system-m68k.exe           qemu-system-riscv64.exe

qemu-system-m68kw.exe          qemu-system-riscv64w.exe


这样就有了。

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.