You are not logged in.

#1 2022-01-10 03:01:52

PowerMax13
Member
Registered: 2022-01-10
Posts: 2

[SOLVED] Virt-manager could not open Win10 ISO: Permission denied

Hi everyone, hope you're doing well, so I'm having a problem with virt-manager where I hit the "Begin Installation" button it throws this error:

Unable to complete install: 'internal error: process exited while connecting to monitor: 2022-01-10T02:38:55.112690Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/max/Downloads/Win10_21H2_English_x64.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/max/Downloads/Win10_21H2_English_x64.iso': Permission denied'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2001, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 701, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 649, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3.10/site-packages/libvirt.py", line 4393, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2022-01-10T02:38:55.112690Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/max/Downloads/Win10_21H2_English_x64.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/max/Downloads/Win10_21H2_English_x64.iso': Permission denied

Just for the record, I've already done most of the preparations needed to run a KVM (including the package ovmf for UEFI support, the process of enabling libvirtd, setting up a network though virsh and do the configuration in the XML before opening the VM for the CD-ROM and configuring the topology of the CPU and enabling UEFIx86_64) I tried to search the problem and found that people solved a similar problem installing the ovmf package (which I already had installed) so I'm clueless of what to do to solve this, I also tried changing the permissions of the "Downloads" directory where the ISO is kept, but that didn't do anything.

If there is any information I forgot to bring here just comment it and I gladly share it. Thanks for reading and hope you respond smile

Last edited by PowerMax13 (2022-01-10 15:52:33)

Offline

#2 2022-01-10 07:20:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,864

Re: [SOLVED] Virt-manager could not open Win10 ISO: Permission denied

What are the perms of the ISO itself? Have you tried putting it somewhere more "global" rather than the home dir where a potential daemon can't access it? Did you see https://wiki.archlinux.org/title/Libvir … entication ?

Just from a "errors" perspective this seems pretty simple, the daemon you use can't access the file you pass.

Offline

#3 2022-01-10 15:50:32

PowerMax13
Member
Registered: 2022-01-10
Posts: 2

Re: [SOLVED] Virt-manager could not open Win10 ISO: Permission denied

V1del wrote:

What are the perms of the ISO itself? Have you tried putting it somewhere more "global" rather than the home dir where a potential daemon can't access it?

Oh, I didn't think of the perms of the ISO itself, sorry about that.
And it works when I move out of the home dir thank you so much!! I didn't know that the daemon can't access the home dir, I thought that adding the user to libvirt and enabling the services was enough.

Offline

Board footer

Powered by FluxBB