-
Bug
-
Resolution: Unresolved
-
Undefined
-
rhel-9.5
-
libvirt-10.5.0-5.el9
-
No
-
None
-
sst_virtualization
-
ssg_virtualization
-
24
-
26
-
2
-
Dev ack
-
False
-
-
None
-
None
-
Pass
-
RegressionOnly
-
None
What were you trying to do that didn't work?
Now the newer --cache option in virtiofs device uses "never" instead of "none". But in libvirt it still uses "none" mode. And from libvirt-10.5.0-2 it seems the "none" mode has already been removed and the guest start failed now. So we need to update none cache mode in virtiofs device to never mode in libvirt.
Please provide the package NVR for which bug is seen:
libvirt-10.5.0-2.el9.x86_64
qemu-kvm-9.0.0-7.el9.x86_64
How reproducible:
100%
Steps to reproduce
1. Start guest with internally launched virtiofsd and none cache mode
# virsh dumpxml rhel --xpath //filesystem <filesystem type="mount" accessmode="passthrough"> <driver type="virtiofs" queue="512"/> <binary path="/usr/libexec/virtiofsd" xattr="on"> <cache mode="none"/> </binary> <source dir="/path1"/> <target dir="mount_tag"/> <alias name="ua-1035e984-8238-46e1-bf56-b546246e1a39"/> <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/> </filesystem> # virsh start rhel error: Failed to start domain 'rhel' error: internal error: virtiofsd died unexpectedly
2. Edit guest with never cache mode.
# virsh edit rhelerror: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rngExtra element devices in interleaveElement domain failed to validate content Failed. Try again? [y,n,i,f,?]: error: XML error: Invalid value for attribute 'mode' in element 'cache': 'never'.
Expected results
The virtiofs device can use "never" mode instead of "none" mode
Actual results
"never" mode is not supported now
- links to
-
RHSA-2024:130953 libvirt bug fix and enhancement update