Rate This Document
Findability
Accuracy
Completeness
Readability

Installing QEMU

QEMU needs to be installed only on the host.

  1. Install the compilation dependencies.
    yum -y install gcc make glib2-devel zlib-devel pixman-devel libaio-devel flex bison
  2. Download the code library from the Kunpeng community.
    1
    git clone https://github.com/kunpengcompute/qemu.git
    
  3. Switch the branch.
    1
    2
    3
    cd qemu
    git checkout stable-4.0
    git submodule update --init
    

    On CentOS 7.6, git submodule reports the following error:

    error: RPC failed; result=22, HTTP code = 422

    You are advised to compile and install Git 2.x.

  4. Create a build directory and go to this directory.
    1
    mkdir build && cd build
    
  5. Perform compilation and installation.
    1
    2
    ../configure --target-list=aarch64-softmmu
    make install -j 16
    
  6. Check the QEMU version.
    1
    qemu-system-aarch64 --version
    

    The QEMU version is 4.0.1, as shown in the following figure.