我在 Ubuntu 20.04 桌面上安装了 Virt-Manager,使用的任务与 19.10 上使用的相同。最后一个我没有任何问题,但是在 20.04 上,当我尝试在外部 HDD 上创建 VM 时,我收到了这个问题:
Unable to complete install: 'Cannot access storage file '/media/user/Storage' (as uid:64055, gid:108): Permission denied'
看详细有这里
Unable to complete install: 'Cannot access storage file '/media/dakne/vStorage/VM/ubuntu20.04' (as uid:64055, gid:108): Permission denied'
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: Cannot access storage file '/media/dakne/vStorage/VM/ubuntu20.04' (as uid:64055, gid:108): Permission denied
我已经完成了 chmod 'n chown 但什么都没有!!!!
不,没关系....我自己回答:-)
我以 root 身份运行 Virt-Manager,创建了一个新的 VM,选择“导入现有磁盘映像”并继续执行任务。最后它会问我是否要修复权限问题,单击“是”它将修复权限问题。
关闭它并用普通用户运行 Virt-Manager。