架构Linux
我使用虚拟管理器在另一个驱动器上创建了 qcow2。
我尝试为我的虚拟机使用另一个驱动器,但是当我尝试从 ISO 创建新虚拟机时,我得到:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
File "/usr/lib/python3.10/site-packages/libvirt.py", line 4408, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2022-05-22T20:39:03.671212Z qemu-system-x86_64: -blockdev {"node-name":"libvirt-2-format","read-only":false,"driver":"qcow2","file":"libvirt-2-storage","backing":null}: Could not open '/run/media/myuser/New Volume/VMS/kali.qcow2': Permission denied
我已经尝试过以下方法:
将 user=root 和 group=root 添加到
/etc/libvirt/qemu.conf
, user=myuser group=kvm,确保我的用户是 kvm 和 libvirt 组的一部分,
跑步
sudo virt-manager
,chown qemu:qemu /run/media/myuser
并搞乱这些权限
但仍然没有变化。