<div dir="ltr"><div>Just to say thanks to Dave (all the best people are called Dave) for the pointer to use kernel 5.7. That just worked on the guest, and I can now see the host filesystem.</div><div><br></div><div>Perhaps <a href="https://virtio-fs.gitlab.io/howto-qemu.html" target="_blank">this page</a> should just link to the mainline kernel rather than the virtio-fs one?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 11, 2020 at 8:11 PM Dr. David Alan Gilbert <<a href="mailto:dgilbert@redhat.com" target="_blank">dgilbert@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* David Lomas (<a href="mailto:dl3@pale-eds.co.uk" target="_blank">dl3@pale-eds.co.uk</a>) wrote:<br>
> Apologies if this isn't the correct place for this kind or request.<br>
<br>
It's the right place to ask.<br>
<br>
> I've been following these instructions to set up host and guest:<br>
> <a href="https://virtio-fs.gitlab.io/howto-qemu.html" rel="noreferrer" target="_blank">https://virtio-fs.gitlab.io/howto-qemu.html</a> and<br>
> <a href="https://libvirt.org/kbase/virtiofs.html" rel="noreferrer" target="_blank">https://libvirt.org/kbase/virtiofs.html</a><br>
> <br>
> On the host, I've built the latest version of libvirt (6.4.0) and qemu<br>
> (5.0.0), and added sections to the domain definition. All appears well (no<br>
> errors at least). This is the relevant section:<br>
> <br>
>     <filesystem type='mount' accessmode='passthrough'><br>
>       <driver type='virtiofs'/><br>
>       <binary path='/usr/libexec/virtiofsd'/><br>
>       <source dir='/fast_data/test'/><br>
>       <target dir='test'/><br>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06'<br>
> function='0x0'/><br>
>     </filesystem><br>
<br>
I think that's OK.<br>
<br>
> On the guest, I've build the kernel (4.19.28), booted it, and confirmed<br>
> virtio_fs.ko is a built-in module.<br>
<br>
Where did you get that kernel?  It sounds rather old;  the main part of<br>
virtiofs is now in the upstream kernel; so if your distro has a recent<br>
5.x kernel, you can just use it.<br>
<br>
> But on running mount -t virtio_fs test /mnt/test/ I get the following error:<br>
> <br>
> mount: /mnt/test: wrong fs type, bad option, bad superblock on qube-server,<br>
> missing codepage or helper program, or other error.<br>
> <br>
> Note both those web pages above suggest using mount -t virtiofs, but that<br>
> gives unknown filesystem type 'virtiofs'<br>
<br>
It changed in the newer kernels to the 'virtiofs'.<br>
<br>
> I'm at a loss to find more detailed information on how to configure<br>
> this—are there other resources online, or can anyone suggest what to try<br>
> next?<br>
<br>
I suspect you're suffering from the older kernel here.  Try a nice<br>
shiny new one.<br>
<br>
Dave<br>
<br>
> Thanks!<br>
<br>
> _______________________________________________<br>
> Virtio-fs mailing list<br>
> <a href="mailto:Virtio-fs@redhat.com" target="_blank">Virtio-fs@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/virtio-fs" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/virtio-fs</a><br>
<br>
--<br>
Dr. David Alan Gilbert / <a href="mailto:dgilbert@redhat.com" target="_blank">dgilbert@redhat.com</a> / Manchester, UK<br>
<br>
</blockquote></div>