Installing QEMU
Perform the following operations on the compute nodes (x86-compute and arm-compute).
- Install dependencies.
1yum -y install gcc gcc-c++ flex bison glib2-devel zlib-devel pixman-devel libaio-devel librdb-devel
- Download the source code.
- Perform compilation and installation.
- Decompress the QEMU package, and go to the directory where QEMU is stored.
1 2
tar -xvf qemu-4.0.0.tar.xz cd qemu-4.0.0
- Install the QEMU package.
1./configure --enable-rbd --enable-linux-aio

1 2
make -j 50 make install
- Decompress the QEMU package, and go to the directory where QEMU is stored.
- Add the lib.
1sed -i '$ainclude /usr/local/lib' /etc/ld.so.conf
- Make the configuration take effect.
1ldconfig
- Verify the version.
- If the QEMU version is not 4.0.0, the new version does not take effect. In this case, back up QEMU-related files in the /usr/bin directory.
1 2 3 4 5 6 7
mv /usr/libexec/qemu-kvm{,.bak} mv /usr/libexec/qemu-bridge-helper{,.bak} mv /usr/bin/qemu-img{,.bak} mv /usr/bin/qemu-io{,.bak} mv /usr/bin/qemu-nbd{,.bak} mv /usr/bin/qemu-ga{,.bak} mv /usr/bin/qemu-pr-helper{,.bak}
- Link the QEMU-related files in the /usr/local/bin/ directory to the /usr/bin directory.
1 2 3 4 5 6
ln -s /usr/local/libexec/qemu-bridge-helper /usr/libexec/ ln -s /usr/local/bin/qemu-ga /usr/bin/ ln -s /usr/local/bin/qemu-img /usr/bin/ ln -s /usr/local/bin/qemu-io /usr/bin/ ln -s /usr/local/bin/qemu-nbd /usr/bin/ ln -s /usr/local/bin/qemu-pr-helper /usr/bin/
- Run the following commands on the x86-compute node:
1 2
ln -s /usr/local/bin/qemu-system-x86_64 /usr/libexec/qemu-kvm ln -s /usr/libexec/qemu-kvm /usr/bin/
- Run the following commands on the arm-compute node:
1 2
ln -s /usr/local/bin/qemu-system-aarch64 /usr/libexec/qemu-kvm ln -s /usr/libexec/qemu-kvm /usr/bin/
- If the QEMU version is not 4.0.0, the new version does not take effect. In this case, back up QEMU-related files in the /usr/bin directory.
Parent topic: Installing, Configuring, and Verifying Nova
