yum install libvirt
[root@localhost ~]# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit) since 一 2022-03-28 16:37:51 CST; 5s ago
Docs: man:libvirtd(8)
https://libvirt.org
Process: 48261 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3)
Main PID: 48261 (code=exited, status=3)
3月 28 16:37:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 28 16:37:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 28 16:37:51 localhost.localdomain systemd[1]: libvirtd.service failed.
3月 28 16:37:51 localhost.localdomain systemd[1]: libvirtd.service holdoff time over, scheduling restart.
3月 28 16:37:51 localhost.localdomain systemd[1]: Stopped Virtualization daemon.
3月 28 16:37:51 localhost.localdomain systemd[1]: start request repeated too quickly for libvirtd.service
3月 28 16:37:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 28 16:37:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 28 16:37:51 localhost.localdomain systemd[1]: libvirtd.service failed.
journalctl -u libvirtd
2022-03-28 08:36:10.751+0000: 45739: info : libvirt version: 4.5.0, package: 36.el7_9.5 (CentOS BuildSystem <http://bugs.centos.or
3月 28 16:36:10 localhost.localdomain libvirtd[45739]: 2022-03-28 08:36:10.751+0000: 45739: info : hostname: localhost.localdomain
3月 28 16:36:10 localhost.localdomain libvirtd[45739]: 2022-03-28 08:36:10.751+0000: 内部错误:Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: 无法打开共享对象文件
ldd 查看加载的动态库状态
ldd /usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so
libplds4.so => /lib64/libplds4.so (0x00007fd5fcbcf000)
libplc4.so => /lib64/libplc4.so (0x00007fd5fc9ca000)
libnspr4.so => /lib64/libnspr4.so (0x00007fd5fc78c000)
liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007fd5fc57d000)
libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007fd5fc328000)
libaugeas.so.0 => /lib64/libaugeas.so.0 (0x00007fd5fc0db000)
libexslt.so.0 => /lib64/libexslt.so.0 (0x00007fd5fbec6000)
libgcrypt.so.11 => /lib64/libgcrypt.so.11 (0x00007fd5fbc45000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fd5fba40000)
libxslt.so.1 => None
librt.so.1 => /lib64/librt.so.1 (0x00007fd5fb5f9000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007fd5fb3f4000)
libdw.so.1 => /lib64/libdw.so.1 (0x00007fd5fb1a3000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fd5fafa0000)
yum search libxslt查看是否有这个动态库所指向的包
libxslt-devel.i686 : Development files for libxslt
libxslt-devel.x86_64 : Development files for libxslt
libxslt-python.x86_64 : Python bindings for the libxslt library
perl-XML-LibXSLT.x86_64 : Perl module for interfacing to GNOME's libxslt
libxslt.i686 : Library providing the Gnome XSLT engine
libxslt.x86_64 : Library providing the Gnome XSLT engine
python-lxml.x86_64 : ElementTree-like Python bindings for libxml2 and libxslt
yum install libxslt
然后重启