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

Error trying to use ISO on SMB share: "Failed to get "consistent read" lock: Input/output error" #24

Open
AdamWill opened this issue Jan 23, 2025 · 3 comments

Comments

@AdamWill
Copy link

If I try to create a VM using an ISO on an SMB share (mounted at /mnt/data), it fails:

libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor (vm='bios1'): 2025-01-23T22:54:02.230636Z qemu-system-x86_64: -device {"driver":"ide-cd","bus":"ide.0","drive":"libvirt-1-storage","id":"sata0-0-0","bootindex":1}: Failed to get "consistent read" lock: Input/output error
Is another process using the image [/run/user/1000/doc/98240bae/Fedora-KDE-Desktop-Live-Rawhide-20250123.n.0.x86_64.iso]?

If I copy the ISO to my Downloads directory and use that, it works fine. I tried giving virt-manager read-only access to /mnt/data via flatseal, but it didn't help.

This works OK with the flathub Boxes flatpak, so it must be possible...

@tulilirockz
Copy link
Contributor

Might be related to flathub/org.virt_manager.virt_manager.Extension.Qemu#4

@pm4rcin
Copy link

pm4rcin commented Jan 25, 2025

@AdamWill please post output of 2 commands:

  1. getfacl /home/$USER
  2. getfacl /mnt

It might be related to qemu user not having permission for directory traversal. I don't know how portals are supposed to work in such cases but it would be worth checking.

@AdamWill
Copy link
Author

[root@omnibook tmp]# getfacl /home/adamw/
getfacl: Removing leading '/' from absolute path names
# file: home/adamw/
# owner: adamw
# group: adamw
user::rwx
group::---
other::---

[root@omnibook tmp]# getfacl /mnt
getfacl: Removing leading '/' from absolute path names
# file: mnt
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants