Installing libvirt
Only libvirt 10.0.0 and later versions support data compression and decompression using the zlib library during VM live migration.
- The feature installation involves system file modification. By default, all operations during the installation are performed by the root user. If you are a non-root user, ensure that you have corresponding permissions.
- If the libvirt of an earlier version exists, a shared library conflict may occur when the libvirt of a later version is directly installed. Therefore, uninstall the libvirt of the earlier version first.
- Configure the Yum repository in advance.
- Install the libvirt 10.0.0 dependencies.
1yum install -y meson gnutls-devel yajl-devel libtirpc-devel libxslt glib2-devel libxml2-devel glusterfs-api dnsmasq git gcc patch make autoconf automake libtool
- Perform the compilation and installation.
1 2
meson setup build -Dsystem=true -Ddriver_qemu=enabled -Ddriver_lxc=enabled -Ddocs=disabled ninja -C build install
- Set the library search path of the dynamic linker.Configure /etc/ld.so.conf and add the path for searching for the link to the compilation and installation library.
1/usr/local/lib64
- Save the file and update the dynamic linker cache.Run the following command to update the dynamic linker cache:
1ldconfig
Parent topic: Installation and Usage