libvirt 安装

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

然后重启

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值