python - 未知协议(protocol)类型 : 'file' : I keep getting an error while creating a Virtual Machine in vert-manager on Ubuntu

标签 python ubuntu virtual-machine

我正在运行 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/... ,所以我改变了它,然后它就起作用了。

关于python - 未知协议(protocol)类型 : 'file' : I keep getting an error while creating a Virtual Machine in vert-manager on Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70827968/

相关文章:

python - 如何在 Pandas bool 值缩减中获取导致 True 的列名

python - 如何在 python 中迭代 readlines()

ubuntu - 需要使用 vagrant 创建一个 ubuntu 仿生镜像 64 位服务器

python - 如何通过Python文件在控制台运行函数?

建立网络时执行的 Bash

python - 为 pytest 中的特定异常自定义错误消息

python - 我可以用 Python/OpenCV 复制 GIMP 的 HSL 复合函数吗?

python - 通过 Web 界面点击并运行 docker 镜像(或 VM)?

android - 虚拟盒设置

docker - Boot2Docke初始化: boot2docker init error in run: Failed to initialize machine "boot2docker-vm": exit status 1