(Optional) Upgrading QEMU
You do not need to upgrade QEMU by default. The recommended QEMU version is 2.12.0 or later. If you want to use QEMU of another version, perform the following steps to upgrade QEMU. However, an upgrade may cause permission or function issues. The QEMU version on openEuler is generally later than the minimum requirement and does not need to be upgraded. The following uses CentOS 7.6 as an example.
Installing Dependency Packages
Before the operation, ensure that the server is connected to the Internet or the local source has been configured.
Install the dependency packages.
1
|
yum -y install glib2-devel zlib-devel pixman-devel libaio-devel |
Upgrading QEMU
The default installation path of QEMU is /usr/local. For details about how to download the source package, see OS and Software Requirements.
qemu-4.0.0 is used. The Arm version does not support live VM migration (but supports cold migration). If you need a live VM migration, install the patch in the openEuler package. You can obtain the openEuler package at:
https://gitee.com/src-openeuler/qemu/tree/openEuler-20.03-LTS/
- 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 --target-list=aarch64-softmmu --enable-linux-aio
You can also run the ./configure command and add parameters to accelerate the compilation, as shown in the following figure.


1make
1make install
- Add the lib.
- Add the library path.
1 2
vim /etc/ld.so.conf include /usr/local/lib
- Make the configuration take effect.
1ldconfig
- Add the library path.
- Check the QEMU version.
1qemu-img --version