未知协议类型:'file':我在 Ubuntu 上的 vert-manager 中创建虚拟机时不断收到错误消息

Unknown protocol type: 'file': I keep getting an error while creating a Virtual Machine in vert-manager on Ubuntu

我是 运行 Ubuntu 20.04.3,刚刚安装了 virt-manager 和 QEMU/KVM。

我在创建虚拟机的最后一步后一直收到错误消息。


Unable to complete install: 'unsupported configuration: unknown protocol type 'file''

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: unsupported configuration: unknown protocol type 'file'

我尝试了很多选项,摆弄存储池,在外部创建图像,但似乎没有任何效果。

配置 VM 时,我给了它官方 windows ISO,它位于我的 /home/.../Downloads 文件夹中。

问题是文件浏览器输入的是 file://home/... 而不是 /home/...,所以我更改了它,然后就可以了。