CentOS 7 virt-manager cannot connect to the local hypervisor
Linux: CentOS 7 Gnome Desktop
Problem description:
After yum install virt-manager is used in CentOS 7, virt-manager cannot connect to the local hypervisor.
With lsmod, you can see that the kvm-intel module has been added to the kernel.
Use the command line tool virsh
[Root @ localhost qemu] # virsh define CCnode. xml
Error: failed to connect to the hypervisor
Error: no valid connection
Error: no connection driver available for <null>
Error: Failed to reconnect to the hypervisor
Restart the libmongod service to view logs/var/log/messages
Aug 10 11:15:57 localhost implements EMD: Starting implements alization daemon...
Aug 10 11:15:57 localhost journal: libvirt version: 1.2.8, package: 16. el7_1.3 (CentOS BuildSystem
Aug 10 11:15:57 localhost journal: failed to load module/usr/lib64/libvirt/connection-driver/lib1__driver_storage.so/usr/lib64/libvirt/connection-driver/lib1__driver_storage.so: symbol upload, version Base not defined in file libdevmapper. so.1.02 with link time reference
Aug 10 11:15:57 localhost journal: failed to load module/usr/lib64/libvirt/connection-driver/Drivers/usr/lib64/libvirt/connection-driver/lib+_driver_qemu.so: undefined symbol: virStorageFileCreate
Aug 10 11:15:57 localhost journal: Module/usr/lib64/libvirt/connection-driver/lib1__driver_lxc.so not accessible
Aug 10 11:15:57 localhost implements EMD: Started implements alization daemon.
Key Parts of log record errors:
Journal: failed to load module/usr/lib64/libvirt/connection-driver/lib1__driver_storage.so/usr/lib64/libvirt/connection-driver/lib1__driver_storage.so: symbol restart, version Base not defined in file libdevmapper. so.1.02 with link time reference
Aug 10 11:15:57 localhost journal: failed to load module/usr/lib64/libvirt/connection-driver/Drivers/usr/lib64/libvirt/connection-driver/lib+_driver_qemu.so: undefined symbol: virStorageFileCreate
After Google, you only need to update the software package to solve this problem.
View the package version:
Yum info device-mapper-libs
Update Software Package:
Yum update device-mapper-libs
Refer:
- Https://bugzilla.redhat.com/show_bug.cgi? Id = 1164773
- Https://bugzilla.redhat.com/show_bug.cgi? Id = 842068
This article permanently updates the link address: