libvirt.libvirtError:发生错误,但原因未知

时间:2020-10-02 09:47:24

标签: libvirt xen

我正在使用XEN虚拟机管理程序。为了管理虚拟机,每当我准备好一切准备就绪后终于开始进入虚拟机时,就使用 virt-manager ,然后单击“创建”按钮,出现以下错误

Unable to complete install: 'An error occurred, but the cause is unknown'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2089, in _do_async_install
    guest.installer_instance.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 542, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 491, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 4034, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: An error occurred, but the cause is unknow

2 个答案:

答案 0 :(得分:0)

对于Xen驱动程序,您可能在/var/log/libvirt/libxl/libxl-driver.log中有更多信息

答案 1 :(得分:0)

同样的问题。

当我检查 /var/log/syslog 时,有来自 libvirtd 的日志:“不支持的配置:找不到模拟器'/usr/lib/xen-4.11/bin/qemu-system-i386'” .

这可能是由 this bug 引起的。所以我们可以创建一个符号链接 sudo ln -s /usr/bin/qemu-system-i386 /usr/lib/xen-4.11/bin/qemu-system-i386,我希望它也适用于您。