Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-72192

[libvirt]virtiofs: Allow read only mode

    • No
    • Low
    • rhel-sst-virtualization
    • ssg_virtualization
    • 5
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • 11.0.0
    • None

      Description
      Should allow read only mode for virtiofs from libvirt side. Read only mode for virtiofs has just been supported by virtiofsd: https://issues.redhat.com/browse/RHEL-9930
       
      How reproducible:
      100%
       
      Versions:
      libvirt-10.10.0-2.el9.x86_64
      virtiofsd-1.13.0-1.el9.x86_64
       
      1. Prepare a guest with following xml

      # cat lizhu.xml
      ...
         <filesystem type='mount' accessmode='passthrough'>
            <driver type='virtiofs' queue='1024'/>
            <binary path='/usr/libexec/virtiofsd' xattr='on'>
               <cache mode='always'/>
               <sandbox mode='namespace'/>
               <thread_pool size='16'/>
            </binary>
            <source dir='/path'/>
            <target dir='mount_tag'/>
             <readonly/>
        </filesystem>
      ...
       

      2. Define the guest

       # virsh define lizhu.xml 
      error: Failed to define domain from lizhu.xml
      error: unsupported configuration: virtiofs does not yet support read-only mode
      

       
      Expected result:
      virtiofsd had supported read only mode. We should support either.

              rh-ee-ajulis Adam Julis
              rhn-support-lizhu Lili Zhu
              Adam Julis Adam Julis
              Lili Zhu Lili Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: