更新时间:2021-08-27 GMT+08:00
分享

无法连接hypervisor

问题现象

连接hypervisor时,显示如下错误信息:

[root@localhost libvirt-4.7.0]# virsh version
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or
directory

问题原因

libvirt服务未启动,找不到libvirt-sock。

处理步骤

重启libvirtd服务。

1
service libvirtd restart
1
Redirecting to /bin/systemctl restart libvirtd.service
1
 virsh version
1
2
3
4
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
分享:

    相关文档

    相关产品

close