连接Hypervisor后,通过virsh version查看libvirt库的版本和其他相关信息时,显示如下信息:
error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
libvirtd服务未启动,找不到libvirt-sock。
service libvirtd restart
virsh version
Compiled against library: libvirt 4.7.0 Using library: libvirt 4.7.0 Using API: QEMU 4.7.0 Running hypervisor: QEMU 4.0.0