<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ewen Chan <<a href="mailto:alpha754293@hotmail.com">alpha754293@hotmail.com</a>> 于2023年3月1日周三 20:05写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-7779357774933869110">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
To Whom It May Concern:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
I am trying to use Virtiofs inside a Windows 10 VM under Proxmox 7.3-3.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Previously, I was able to do it, but now, for some reason, whenever I try to start the service, this is the error message that I get:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<img style="max-width: 100%;" size="6810" src="cid:186a5379c006d0e7b411"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
I tried a fresh install of Windows 10 Pro x64 and then installed the virtio Windows drivers (virtio-win-0.1.229.iso) this error is still popping up.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
I have a script which daemonizes the virtiofsd daemon:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span>      # cat launch-virtio-daemon.sh</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<blockquote style="margin-top:0px;margin-bottom:0px">
<div><span style="font-family:"Courier New",monospace">#!/usr/bin/bash</span></div>
</blockquote>
<div><br>
</div>
<blockquote style="margin-top:0px;margin-bottom:0px">
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">function launch() {</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    nohup /usr/lib/kvm/virtiofsd --syslog --daemonize --socket-path=/var/run/shared-fs.sock -o source=/export/myfs/ -o cache=always &> /dev/null  &</span></div>
<div><span style="font-family:"Courier New",monospace">    return 0</span></div>
<div><span style="font-family:"Courier New",monospace">}</span></div>
<div><br>
</div>
<span style="font-family:"Courier New",monospace">launch</span><br>
</blockquote>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
And in my Proxmox VM, I have called the launch-virtio-daemon.sh via a Proxmox hookscript:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
qm set 101 --hookscript local:snippets/<a href="http://virtiofs.pl" target="_blank">virtiofs.pl</a></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
and this is what's in the <a href="http://virtiofs.pl" target="_blank">virtiofs.pl</a> file:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
# cat /var/lib/vz/snippets/<a href="http://virtiofs.pl" target="_blank">virtiofs.pl</a></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<blockquote style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New",monospace">#!/usr/bin/perl</span>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace"># Exmple hook script for PVE guests (hookscript config option)</span></div>
<div><span style="font-family:"Courier New",monospace"># You can set this via pct/qm with</span></div>
<div><span style="font-family:"Courier New",monospace"># pct set <vmid> -hookscript <volume-id></span></div>
<div><span style="font-family:"Courier New",monospace"># qm set <vmid> -hookscript <volume-id></span></div>
<div><span style="font-family:"Courier New",monospace"># where <volume-id> has to be an executable file in the snippets folder</span></div>
<div><span style="font-family:"Courier New",monospace"># of any storage with directories e.g.:</span></div>
<div><span style="font-family:"Courier New",monospace"># qm set 100 -hookscript local:snippets/<a href="http://hookscript.pl" target="_blank">hookscript.pl</a></span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">use strict;</span></div>
<div><span style="font-family:"Courier New",monospace">use warnings;</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">print "GUEST HOOK: " . join(' ', @ARGV). "\n";</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace"># First argument is the vmid</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">my $vmid = shift;</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace"># Second argument is the phase</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">my $phase = shift;</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">if ($phase eq 'pre-start') {</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    # First phase 'pre-start' will be executed before the guest</span></div>
<div><span style="font-family:"Courier New",monospace">    # ist started. Exiting with a code != 0 will abort the start</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    print "$vmid is starting, doing preparations.\n";</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    system('/var/lib/vz/snippets/launch-virtio-daemon.sh');</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    # print "preparations failed, aborting."</span></div>
<div><span style="font-family:"Courier New",monospace">    # exit(1);</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">} elsif ($phase eq 'post-start') {</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    # Second phase 'post-start' will be executed after the guest</span></div>
<div><span style="font-family:"Courier New",monospace">    # successfully started.</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    print "$vmid started successfully.\n";</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">} elsif ($phase eq 'pre-stop') {</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    # Third phase 'pre-stop' will be executed before stopping the guest</span></div>
<div><span style="font-family:"Courier New",monospace">    # via the API. Will not be executed if the guest is stopped from</span></div>
<div><span style="font-family:"Courier New",monospace">    # within e.g., with a 'poweroff'</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    print "$vmid will be stopped.\n";</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">} elsif ($phase eq 'post-stop') {</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    # Last phase 'post-stop' will be executed after the guest stopped.</span></div>
<div><span style="font-family:"Courier New",monospace">    # This should even be executed in case the guest crashes or stopped</span></div>
<div><span style="font-family:"Courier New",monospace">    # unexpectedly.</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">    print "$vmid stopped. Doing cleanup.\n";</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">} else {</span></div>
<div><span style="font-family:"Courier New",monospace">    die "got unknown phase '$phase'\n";</span></div>
<div><span style="font-family:"Courier New",monospace">}</span></div>
<div><br>
</div>
<span style="font-family:"Courier New",monospace">exit(0);</span><br>
</blockquote>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
This was working before and now I don't really know nor understand why it isn't working anymore.</div></div></div></blockquote><div> </div><div>Hi, you said it was working before, did you do some updates that lead to the failure?</div><div>And could you check the virtiofsd daemon process status?</div><div><br></div><div>Best,</div><div>Xiaoling</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-7779357774933869110"><div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Your help would be greatly appreciated.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Thank you.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Sincerely,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Ewen Chan<br>
</div>
</div>

_______________________________________________<br>
Virtio-fs mailing list<br>
<a href="mailto:Virtio-fs@redhat.com" target="_blank">Virtio-fs@redhat.com</a><br>
<a href="https://listman.redhat.com/mailman/listinfo/virtio-fs" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/virtio-fs</a><br>
</div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">BR,<div>Xiaoling</div></div></div></div>