![在 Xen 上使用 virt-manager 创建虚拟机时出错](https://linux22.com/image/577812/%E5%9C%A8%20Xen%20%E4%B8%8A%E4%BD%BF%E7%94%A8%20virt-manager%20%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E6%9C%BA%E6%97%B6%E5%87%BA%E9%94%99.png)
经过一番努力,我终于安装好了 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 是最新的。