Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt-manager unable to pick ISO from user home folder #2103

Open
roworu opened this issue Jan 10, 2025 · 0 comments
Open

virt-manager unable to pick ISO from user home folder #2103

roworu opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@roworu
Copy link

roworu commented Jan 10, 2025

Describe the bug

  1. I enabled virtualization using:
ujust setup-virtualization
-> Enable Virtualization
-> Add $USER to libvirt group
  1. Did a reboot, then downloaded an ISO I want to install in a VM:
roworu@bazzite ~/Downloads> ls -lh
total 3.5G
-rw-r--r--. 1 roworu roworu 3.5G Jan 10 13:33 Fedora-Kinoite-ostree-x86_64-41-1.4.iso
  1. Open a virt-manager, pick QEMU/KVM conneection and click new
  2. Pick an ISO from above
  3. Leave all other options by default and click "Finish" on last step
  4. Got this error:

Image
Full text:

Unable to complete install: 'internal error: process exited while connecting to monitor: 2025-01-10T11:40:45.447613Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/roworu/Downloads/Fedora-Kinoite-ostree-x86_64-41-1.4.iso","node-name":"libvirt-1-storage","read-only":true}: Could not open '/home/roworu/Downloads/Fedora-Kinoite-ostree-x86_64-41-1.4.iso': Permission denied'

Traceback (most recent call last):
  File "/app/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/app/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/app/share/virt-manager/virtinst/install/installer.py", line 726, in start_install
    domain = self._create_guest(
             ^^^^^^^^^^^^^^^^^^^
  File "/app/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2025-01-10T11:40:45.447613Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/roworu/Downloads/Fedora-Kinoite-ostree-x86_64-41-1.4.iso","node-name":"libvirt-1-storage","read-only":true}: Could not open '/home/roworu/Downloads/Fedora-Kinoite-ostree-x86_64-41-1.4.iso': Permission denied

Also, I can see, that after this error, permissions for ISO file changed to these:

roworu@bazzite ~/Downloads> ls -lh
total 3.5G
-rw-r--r--. 1 qemu qemu 3.5G Jan 10 13:33 Fedora-Kinoite-ostree-x86_64-41-1.4.iso

What did you expect to happen?

I expected, that virt-manager can pick up ISO images from home folder and create VMs based ont hem without any issues.

Output of rpm-ostree status

roworu@bazzite ~> rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
                   Digest: sha256:e366fc496bcbb3c0af90081272505fe2f917f1e4c10dac07712b8c49642023a4
                  Version: 41.20250106.3 (2025-01-07T04:27:03Z)
                Initramfs: regenerate

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:stable
                   Digest: sha256:e366fc496bcbb3c0af90081272505fe2f917f1e4c10dac07712b8c49642023a4
                  Version: 41.20250106.3 (2025-01-07T04:27:03Z)

Hardware

Desktop PC with Nvidia GPU

Extra information or context

Please, tell if I could provide any additional information to help resolving the issue

@dosubot dosubot bot added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant