CentOS 7.2 – 启动libvirtd报错:error : virModuleLoadFile:53 : internal error: Failed to load module ‘/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so’: libexslt.so.0: cannot open shared object file: No such file or directory

  • A+
所属分类:KVM 虚拟化

说明

给公司得物理机做kvm虚拟化,安装libvirtd后启动时报错,

使用:systemctl status libvirtd查看报错信息

# systemctl status libvirtd.service

--------------------------------------------------------------------------------------------------------------------------------------------

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since Thu 2019-01-24 21:54:04 EST; 1min 11s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 21263 (code=exited, status=3)

Jan 24 21:54:04 CentOS7Server systemd[1]: Failed to start Virtualization daemon.
Jan 24 21:54:04 CentOS7Server systemd[1]: Unit libvirtd.service entered failed state.
Jan 24 21:54:04 CentOS7Server systemd[1]: libvirtd.service failed.
Jan 24 21:54:04 CentOS7Server systemd[1]: libvirtd.service holdoff time over, scheduling restart.
Jan 24 21:54:04 CentOS7Server systemd[1]: Stopped Virtualization daemon.
Jan 24 21:54:04 CentOS7Server systemd[1]: start request repeated too quickly for libvirtd.service
Jan 24 21:54:04 CentOS7Server systemd[1]: Failed to start Virtualization daemon.
Jan 24 21:54:04 CentOS7Server systemd[1]: Unit libvirtd.service entered failed state.
Jan 24 21:54:04 CentOS7Server systemd[1]: libvirtd.service failed.

查看/var/log/messages报错

# tailf /var/log/messages
Nov  6 09:21:15 bogon systemd-logind: New session 1043 of user root.
Nov  6 09:21:15 bogon systemd: Started Session 1043 of user root.
Nov  6 09:21:16 bogon systemd: Starting Virtual Machine and Container Registration Service...
Nov  6 09:21:16 bogon systemd: Started Virtual Machine and Container Registration Service.
Nov  6 09:21:16 bogon systemd: Starting Virtualization daemon...
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.705+0000: 4973: info : libvirt version: 4.5.0, package: 23.el7_7.1 (CentOS BuildSystem <http://bugs.centos.org>, 2019-09-13-18:01:52, x86-02.bsys.centos.org)
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.705+0000: 4973: info : hostname: bogon
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.705+0000: 4973: error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: cannot open shared object file: No such file or directory
Nov  6 09:21:16 bogon systemd: libvirtd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov  6 09:21:16 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:16 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:16 bogon systemd: libvirtd.service failed.
Nov  6 09:21:16 bogon systemd: libvirtd.service holdoff time over, scheduling restart.
Nov  6 09:21:16 bogon systemd: Stopped Virtualization daemon.
Nov  6 09:21:16 bogon systemd: Starting Virtualization daemon...
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.966+0000: 4985: info : libvirt version: 4.5.0, package: 23.el7_7.1 (CentOS BuildSystem <http://bugs.centos.org>, 2019-09-13-18:01:52, x86-02.bsys.centos.org)
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.966+0000: 4985: info : hostname: bogon
Nov  6 09:21:16 bogon libvirtd: 2019-11-06 01:21:16.966+0000: 4985: error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: cannot open shared object file: No such file or directory
Nov  6 09:21:16 bogon systemd: libvirtd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov  6 09:21:16 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:16 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:16 bogon systemd: libvirtd.service failed.
Nov  6 09:21:17 bogon systemd: libvirtd.service holdoff time over, scheduling restart.
Nov  6 09:21:17 bogon systemd: Stopped Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Starting Virtualization daemon...
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.217+0000: 5000: info : libvirt version: 4.5.0, package: 23.el7_7.1 (CentOS BuildSystem <http://bugs.centos.org>, 2019-09-13-18:01:52, x86-02.bsys.centos.org)
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.217+0000: 5000: info : hostname: bogon
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.217+0000: 5000: error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: cannot open shared object file: No such file or directory
Nov  6 09:21:17 bogon systemd: libvirtd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov  6 09:21:17 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:17 bogon systemd: libvirtd.service failed.
Nov  6 09:21:17 bogon systemd: libvirtd.service holdoff time over, scheduling restart.
Nov  6 09:21:17 bogon systemd: Stopped Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Starting Virtualization daemon...
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.467+0000: 5012: info : libvirt version: 4.5.0, package: 23.el7_7.1 (CentOS BuildSystem <http://bugs.centos.org>, 2019-09-13-18:01:52, x86-02.bsys.centos.org)
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.467+0000: 5012: info : hostname: bogon
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.467+0000: 5012: error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: cannot open shared object file: No such file or directory
Nov  6 09:21:17 bogon systemd: libvirtd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov  6 09:21:17 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:17 bogon systemd: libvirtd.service failed.
Nov  6 09:21:17 bogon systemd: libvirtd.service holdoff time over, scheduling restart.
Nov  6 09:21:17 bogon systemd: Stopped Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Starting Virtualization daemon...
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.717+0000: 5027: info : libvirt version: 4.5.0, package: 23.el7_7.1 (CentOS BuildSystem <http://bugs.centos.org>, 2019-09-13-18:01:52, x86-02.bsys.centos.org)
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.717+0000: 5027: info : hostname: bogon
Nov  6 09:21:17 bogon libvirtd: 2019-11-06 01:21:17.717+0000: 5027: error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/connection-driver/libvirt_driver_interface.so': libexslt.so.0: cannot open shared object file: No such file or directory
Nov  6 09:21:17 bogon systemd: libvirtd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov  6 09:21:17 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:17 bogon systemd: libvirtd.service failed.
Nov  6 09:21:17 bogon systemd: libvirtd.service holdoff time over, scheduling restart.
Nov  6 09:21:17 bogon systemd: Stopped Virtualization daemon.
Nov  6 09:21:17 bogon systemd: start request repeated too quickly for libvirtd.service
Nov  6 09:21:17 bogon systemd: Failed to start Virtualization daemon.
Nov  6 09:21:17 bogon systemd: Unit libvirtd.service entered failed state.
Nov  6 09:21:17 bogon systemd: libvirtd.service failed.

百度了好久没有找到解决方法,最后google到了这篇文章,最终解决了问题:https://bugs.centos.org/view.php?id=15744

解决方法

# yum install -y libxslt

# systemctl restart libvirtd     #启动成功
# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-11-06 09:36:12 CST; 6min ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 8109 (libvirtd)
   Memory: 10.6M
   CGroup: /system.slice/libvirtd.service
           ├─8109 /usr/sbin/libvirtd
           ├─8237 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/li...
           └─8238 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/li...

Nov 06 09:36:12 bogon libvirtd[8109]: 2019-11-06 01:36:12.516+0000: 8125: warning : virQEMUCapsInit:955 : Failed to get hos...he info
Nov 06 09:36:12 bogon libvirtd[8109]: 2019-11-06 01:36:12.797+0000: 8125: warning : virLXCDriverCapsInit:82 : Failed to get...he info
Nov 06 09:36:12 bogon dnsmasq[8237]: started, version 2.66 cachesize 150
Nov 06 09:36:12 bogon dnsmasq[8237]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conn...et auth
Nov 06 09:36:12 bogon dnsmasq-dhcp[8237]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h
Nov 06 09:36:12 bogon dnsmasq[8237]: reading /etc/resolv.conf
Nov 06 09:36:12 bogon dnsmasq[8237]: using nameserver 192.168.100.254#53
Nov 06 09:36:12 bogon dnsmasq[8237]: read /etc/hosts - 3 addresses
Nov 06 09:36:12 bogon dnsmasq[8237]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Nov 06 09:36:12 bogon dnsmasq-dhcp[8237]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Hint: Some lines were ellipsized, use -l to show in full.

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: