QEMU 為一開放源始碼的虛擬機器模擬器。
若是使用Snow leopard(MAC OS X 1.0) 以上的網友可考慮使用, homebrew.
==>請參考
把常用的UNIX 環境重建到MAC OS X 一文
如尚未安裝Darwin Ports, 請至
http://www.macports.org/ 下載符合系統的版本進行安裝。
接著你可執行port 安裝qemu,過程如下述:
$ sudo port install qemu
Password:
You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:
---> Fetching qemu
---> Verifying checksum for qemu
---> Extracting qemu
---> Configuring qemu
---> Building qemu with target all
---> Staging qemu into destroot
---> Installing qemu
(註:當上述指令執行中,請勿關閉終端機(Terminal)。)
安裝完成後,你可用下述指令得到qemu 更詳細的資訊
$ man qemu
$ apropos qemu
$ which qemu
$ locate qemu
預設安裝好qemu, 並不包含 arm 的執行檔
若需要其他的處理器(processors)的支援可用下述指令進行安裝:
$ sudo port install +target_arm qemu
你可用 sudo port variants qemu 查詢可能目標處理器支援。
範例如下:
VMLeopard:~ ben$ port variants qemu
qemu has the variants:
target_arm: add arm target support
target_cris: add cris target support
target_m68k: add m68k target support
target_mips: add mips target support
target_mips64: add mips64 target support
target_mips64el: add mips64el target support
target_mipsel: add mipsel target support
target_ppcemb: add ppcemb target support
target_sh4: add sh4 target support
target_sh4eb: add sh4eb target support
target_sparc: add sparc target support
universal: Build for multiple architectures
參考資訊