virtmanager-无法找到 libvirtd 守护进程

virtmanager-无法找到 libvirtd 守护进程

我尝试启动 Virt-manager 但出现此错误

Unable to connect to libvirt.

internal error: Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary)
Hi, I tried to start virtmanagerr (installed via mint software center)
but get this?

    Libvirt URI is: qemu:///system

    Traceback (most recent call last):
      File "/usr/share/virt-manager/virtManager/connection.py", line 1027, in _open_thread
        self.vmm = self._try_open()
      File "/usr/share/virt-manager/virtManager/connection.py", line 1009, in _try_open
        flags)
      File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
        if ret is None:raise libvirtError('virConnectOpenAuth() failed')
    libvirtError: internal error: Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary)

答案1

尝试启动libvirtd

$ service libvirtd restart

您可以检查它是否运行如下:

$ pgrep libvirtd
1124

该数字是 的进程 ID libvirtd

$ ps -eaf|grep [l]ibvirtd
root      1124     1  0 Mar17 ?        00:00:02 /usr/sbin/libvirtd

答案2

我正在使用 Debian,并且遇到了同样的问题。我使用上述命令通过 konsole 启动 virt-manager,问题得到解决。

virt-manager --no-fork

这样,virt-manager 就会向 konsole 请求 ssh 密码。另外,在 konsole 上提供一些输出。

相关内容