<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hello,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 17 Nov 2020 at 11:55, Stefan Hajnoczi <<a href="mailto:stefanha@redhat.com">stefanha@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">On Mon, Nov 16, 2020 at 07:59:27PM +0100, Jonas Andradas wrote:<br>
> On Mon, Nov 16, 2020 at 12:36 PM Jonathan Watt <<a href="mailto:jwatt@jwatt.org" target="_blank">jwatt@jwatt.org</a>> wrote:<br>
<br>
CCing Gal Hammer regarding the Windows virtio-fs drivers.<br>
<br>
When you find a solution we can update the howto. Pull requests for<br>
making changes to the website can be sent here:<br>
<a href="https://gitlab.com/virtio-fs/virtio-fs.gitlab.io" rel="noreferrer" target="_blank">https://gitlab.com/virtio-fs/virtio-fs.gitlab.io</a><br>
<br>
> <br>
> > Hello list,<br>
> ><br>
> > Thank you all for your work on virtio-fs. It's a very exciting step<br>
> > forward!<br>
> ><br>
> > Like others[1], I've encountered the issue where virtio-fs mounted file<br>
> > systems<br>
> > are unexpectedly read-only/inaccessible on Windows.<br>
> ><br>
> > I worked through the Windows how-to page[2], but the "Installing the<br>
> > virtio-fs<br>
> > service" instructions at the bottom did not work for me, as written. The<br>
> > instructions are to set the new `VirtioFsSvc` service to depend on both<br>
> > `WinFsp.Launcher` and `VirtioFsDrv`. However, like others, I found that<br>
> > the new<br>
> > service would not run since `VirtioFsDrv` does not appear to exist (be a<br>
> > service).<br>
<span class="gmail_default" style="font-family:verdana,sans-serif"></span></blockquote><div><br></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">You can run "sc query type=driver" to locate the "VirtIO FS Driver" (DISPLAY_NAME) and see what is the SERVICE_NAME for the driver that is installed on your computer. It was renamed a few patches ago in order to resolve another dependency issue.</div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">I was able to reproduce the restart problem and I'll work to resolve it.<br></div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I too did not manage this to work, and initially removed any dependencies,<br>
> thus resulting in the same behaviour you mention.<br>
> <br>
> <br>
> > After opening `regedit`, opening the key:<br>
> ><br>
> >   HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VirtioFsSvc<br>
> ><br>
> > removing `VirtioFsDrv` from the value of `DependsOnService`, and then<br>
> > restarting<br>
> > the `VirtioFsSvc` service, the file system shared via virtio-fs appeared at<br>
> > 'Z:\' and worked as expected. However, this only works until the Windows<br>
> > VM is<br>
> > rebooted.<br>
> ><br>
> > On rebooting the Windows VM, the shared file system becomes read-only and<br>
> > its<br>
> > sub-directories cannot be opened. Manually restarting the `VirtioFsSvc`<br>
> > service<br>
> > gets the share working again (until next reboot). This seems to indicate<br>
> > that<br>
> > `VirtioFsSvc` is running too early, and that it really does need to wait<br>
> > for<br>
> > *something* else to be ready before starting.<br>
> ><br>
> > I suppose the first question is what is `VirtioFsDrv` and where is it<br>
> > supposed<br>
> ><br>
> to come from? Are there steps missing from the Windows how-to or has the<br>
> > name of<br>
> > this service changed?<br>
> ><br>
> ><br>
> I checked the Virtio FS driver, both from the Device Manager (Properties<br>
> and then checking the "Service" name associated with it) and also using the<br>
> "driverquery" command.  Based on this, I modified the service to depend<br>
> both on WinFps.Launcher and this driver ("VirtFS") by issuing the following<br>
> command:<br>
> <br>
> sc.exe config VirtioFSsvc depend= WinFsp.Launcher/VirtFS<br>
> <br>
> However, so far I have not had better results than you, as when I reboot I<br>
> still have the shared folder as read-only, and only restarting the service<br>
> manually fixes it.<br>
> <br>
> I have tried different combinations by adding all the drivers I saw which<br>
> could be involved (although unlikely, but just in case), resulting in<br>
> dependencies such as:<br>
> <br>
> sc.exe config VirtioFSsvc depend=<br>
> WinFsp.Launcher/VirtFS/vioscsi/viostor/VirtioSerial/WinFsp<br></blockquote><div><br></div><div><div style="font-family:verdana,sans-serif" class="gmail_default">This is "a bit" overkill. The service only uses the WinFsp and the virtiofs driver.<br></div></div><div><br><div style="font-family:verdana,sans-serif" class="gmail_default">Thanks for spotting the problem.</div><div style="font-family:verdana,sans-serif" class="gmail_default"><br></div><div style="font-family:verdana,sans-serif" class="gmail_default">    Gal.</div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> <br>
> But, still, to no avail.<br> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
> <br>
> > -Jonathan<br>
> ><br>
> > 1. For example, the comments starting here:<br>
> ><br>
> > <a href="https://github.com/virtio-win/kvm-guest-drivers-windows/issues/473#issuecomment-658379853" rel="noreferrer" target="_blank">https://github.com/virtio-win/kvm-guest-drivers-windows/issues/473#issuecomment-658379853</a><br>
> ><br>
> > 2. <a href="https://virtio-fs.gitlab.io/howto-windows.html" rel="noreferrer" target="_blank">https://virtio-fs.gitlab.io/howto-windows.html</a><br>
> ><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>
</blockquote></div></div>