So I downloaded virt-manager from the Official Repositories and wanted to create a vm but once I choose my iso and click finish I get:
Unable to complete install: ‘internal error: qemu unexpectedly closed the monitor: 2022-04-11T18:48:20.803859Z qemu-system-x86_64: -blockdev {“driver”:“file”,“filename”:"/home/ajaytv/Documents/VirtualBox VMs/Fedora-Workstation-Live-x86_64-35-1.2.iso",“node-name”:“libvirt-1-storage”,“auto-read-only”:true,“discard”:“unmap”}: Could not open ‘/home/ajaytv/Documents/VirtualBox VMs/Fedora-Workstation-Live-x86_64-35-1.2.iso’: Permission denied’
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 4400, in createXML
raise libvirtError(‘virDomainCreateXML() failed’)
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2022-04-11T18:48:20.803859Z qemu-system-x86_64: -blockdev {“driver”:“file”,“filename”:"/home/ajaytv/Documents/VirtualBox VMs/Fedora-Workstation-Live-x86_64-35-1.2.iso",“node-name”:“libvirt-1-storage”,“auto-read-only”:true,“discard”:“unmap”}: Could not open ‘/home/ajaytv/Documents/VirtualBox VMs/Fedora-Workstation-Live-x86_64-35-1.2.iso’: Permission denied
So l search up this problem in the forum and find someone with the same issue: My virtual machine doesn't start anymore
and that leads me to this guide: [Solved] Cannot access storage file, Permission denied Error in KVM Libvirt - OSTechNix
but once I try out method 1 I still get the same output and when I try method 2 instead of:
getfacl: Removing leading ‘/’ from absolute path names
file: home/sk/
owner: sk
group: sk
user::rwx
user:qemu:r-x #effective:–x
group::— #effective:—
mask::–x
other::—
my output is:
getfacl: Removing leading ‘/’ from absolute path names
file: home/ajaytv/
owner: ajaytv
group: ajaytv
user::rwx
user:nobody:r-x #effective:r-x
group::— #effective:—
mask::r-x
other::—
why is it “nobody” instead of “qemu” is that the problem? Because when I try to create a vm I face the same problem like before…permission denied.
Thanks in advance to anyone who might answer!