我要评分
获取效率
正确性
完整性
易理解

Installing and Verifying libvirt

The QEMU VM memory hotplug feature only supports libvirt 6.2.0. The openEuler official website provides a precompiled libvirt version that does not require your manual compilation. You only need to perform the operations in this section to install libvirt.

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.

  1. Install libvirt.
    yum -y install audit-libs-devel cyrus-sasl-devel fuse-devel glusterfs-api-devel glusterfs-devel gnutls-devel libacl-devel libattr-devel libcap-ng-devel libcurl-devel libnl3-devel libcap-ng-devel libnl3-devel libpciaccess-devel librados2-devel librbd1-devel libtasn1-devel libtirpc-devel libwsman-devel libxml2-devel netcf-devel numactl-devel parted-devel readline-devel scrub systemd-devel  xfsprogs-devel yajl-devel device-mapper-devel libpcap-devel libgfapi-devel libgfapi0 ninja-build python3-docutils rpcgen libxslt dnsmasq git
    yum -y install edk2* libvirt
  2. Verify the libvirtd service.

    After the installation, run the service command to check whether the libvirtd service exists in the system.

    service libvirtd status
    • If "Active: inactive (dead)" is returned, the libvirtd service (not started) exists in the system. Run the following command to start the service:
      service libvirtd start
    • If "Active: active (running)" is returned, the libvirtd service is running in the system.