使用 virt-manager 创建半虚拟化的 domu

create paravirtualized domu using virt-manager

尝试使用 virt-manager 创建半虚拟化 domU 时出现以下错误


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 unknown

有谁知道如何解决这个问题?我通过在终端中输入“virt-manager”来调用 virt-manager,其余的通过 GUI 完成。环境是Ubuntu20.04和xen版本4.11.

'An error occurred, but the cause is unknown'

任何时候您在 libvirt 中看到类似的错误,都表示错误报告错误,因此请使用 ubuntu.

报告错误

创建 VM 可能出于正当原因而失败,但如果没有 libvirt 报告一个正常错误就很难判断