在 Xen 上使用 virt-manager 创建虚拟机时出错

在 Xen 上使用 virt-manager 创建虚拟机时出错

经过一番努力,我终于安装好了 XEN,现在我正在使用 virt-manager 并尝试创建虚拟机。由于我的硬件不支持使用网络半虚拟化安装进行完全虚拟化。在我指定所有详细信息(如 URL、N/w 等)后,我收到以下错误:

Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: 'NoneType' object has no attribute 'rfind'")

完全错误

Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: 'NoneType' object has no attribute 'rfind'")'

DETAILS->
Unable to complete install '<class 'libvirt.libvirtError'> POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: 'NoneType' object has no attribute 'rfind'")
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1555, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 973, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1038, in _do_install
    "install")
  File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1009, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1277, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: 'NoneType' object has no attribute 'rfind'")
'

答案1

一些旧版本的 libvirtd 因一些内部错误而变得混乱,并开始抛出此类错误。我从未费心去追踪确切的错误,因为它最终在多次更新后得到了修复。

要做两件事:

  • 要使一切恢复正常,请重新启动 libvirtd。(这不会影响正在运行的虚拟机。)
  • 确保 libvirtd 是最新的。

相关内容