Hi TJ,
> Ubuntu 20.04 amd64. Originally thought this was virt-manager but tested via
> virsh and found it
> appears to be caused by libvirt.
Yes this issue isn't a virt-manager issue, but libvirt (or qemu) should
be right.
All the "Failed to lock byte" issues go back to 2017.
There qemu introduced the general behavior to lock images.
We had:
- bug 1716028 to set share-rw=on
- bug 1709818 to allow file locking through apparmor
Since then we only had a few users that needed help to adapt e.g. when
formerly sharing images now needing to mark them shared.
This is an interesting case as the question is if we just need to
changed the guest config in your case. Or if there is a real new issue
like certain combinations of attributes to end up wrong.
So let me check your XML and commandline ...
You seem to use that ISO in (potentially) multiple guests form the same NFS.
For that one should set "shareable" element as outlined in [1]
And then it also is recommended to disable caching which you already did.
In your options passed to qemu for this I'd expect "force-share" or "share-rw"
(version dependent) as part of:
-blockdev {"driver":"file","filename":"/srv/NAS/Sunny/Downloads/
ISO/lubuntu-18.04-desktop-amd64.iso","...
Can you try setting "shareable" element in the guest XML if that then
works?
I must admit I do not yet see what the caching attribute would matter here.
Are you saying that it works by default, but with cache="none" it fails with
this reported issue?
If so could you also send the qemu arguments it uses in your setup when
cache="none" is not present?
[1]: https://libvirt.org/formatdomain.html#hard-drives-floppy-disks-
cdroms
** Changed in: libvirt (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1948525
Title:
Alters Performance options > Cache mode causing start failure
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1948525/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs