QEMU is a generic and open source machine emulator and virtualizer.
When used as a machine emulator, QEMU can run OSes and programs made for one machine (e.g. an ARM board) on a different machine. By using dynamic translation, it achieves very good performance.
In this article we will discuss about installing QEMU and use following requirement:
- Slackware64 14.0, although any version is OK
- latest qemu source code
There are two options for us: building the stable release or building the development code.
Note: as per version 1.3 QEMU-KVM is merged to upstream QEMU project therefore the QEMU-KVM is no longer maintained.
Obtain the Source Code
Between the stable release source code and development code, which one is suitable for us?If you want to download the latest stable release, you can obtain it from qemu official site here.
At the time of writing this article, the latest stable version is 2.2.0 (per January 8th 2015). You can download it by direct link here. http://wiki.qemu-project.org/download/qemu-2.2.0.tar.bz2
Once you have done downloading, uncompress it with:
tar -jxvf qemu-2.2.0.tar.bz2
If you want to download the development code. You can clone the git repository by:
git clone git://git.qemu-project.org/qemu.git
For any option we choose, we should have qemu source code now.
Next thing to do is doing configuration and make the binary code. The default installation path would be on /usr/local and we won’t change this thus we will do default procedures. Now invoke following command:
./configure make make install
It may take a while. Once you have compile it, you will have qemu installed on standard location on /usr/local. Verify whether qemu has already installed:
You should see some text like this:
qemu-arm version 2.2.0, Copyright (c) 2003-2008 Fabrice Bellard
Congratulation! You have installed qemu.