[Virtio-fs] virtiofs doesn't accept writable group permissions

German Maglione gmaglione at redhat.com
Tue Apr 4 16:06:17 UTC 2023


Hi Stefan,

On Tue, Apr 4, 2023 at 3:58 PM stefanx <stefanx at lrz.uni-muenchen.de> wrote:
>
>
> Hello,
>
> virtiofs doesn't accept writable group permissions (Libvirt/KVM, guest vm and host vm have Ubuntu 22.04):
>
> Libvirt XML (host vm):
>
>     <filesystem type='mount' accessmode='passthrough'>
>       <driver type='virtiofs'/>
>       <source dir='/mnt/xyz'/>
>       <target dir='mnt-xyz'/>
>       <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
>     </filesystem>
>
> /etc/fstab (guest vm):
> ```
> mnt-xyz       /mnt/xyz            virtiofs rw,_netdev 0 0
> ```
> In /mnt/xyz/123 I have write permissions at host vm, but not at guest vm. host vm and guest vm have the same LDAP users.

when you say that you do not have write permission, do you mean that
when you try to write, it fails?

Could you send the output of:
'ls -lnd /mnt/xyz/123'
(both in the host and the guest)

and also the output of 'id' in the guest (with the user you are trying to write)



> Any ideas ?
>
> Thanks Stefan
>
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs at redhat.com
> https://listman.redhat.com/mailman/listinfo/virtio-fs



--
German



More information about the Virtio-fs mailing list