<div dir="ltr"><div dir="ltr"><div>I'm copying your response to this email</div><div><br></div><div>><span class="gmail-im">
>If you swap your win11 for a linux guest (using the same libvirt xml) are you able to reproduce the error?</span></div><div>> do you think the guest type matters much?<br></div><div><br></div><div>Yes, because the windows guest uses a different driver. So the problem could be virtiofsd daemon,</div><div>the linux kernel or the windows drivers<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 25, 2023 at 8:38 AM daggs <<a href="mailto:daggs@gmx.com">daggs@gmx.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">Greetings German,<br>
><br>
>Sent: Wednesday, May 24, 2023 at 5:51 PM<br>
>From: "German Maglione" <<a href="mailto:gmaglione@redhat.com" target="_blank">gmaglione@redhat.com</a>><br>
>To: "daggs" <<a href="mailto:daggs@gmx.com" target="_blank">daggs@gmx.com</a>><br>
>Cc: <a href="mailto:virtio-fs@redhat.com" target="_blank">virtio-fs@redhat.com</a><br>
>Subject: Re: [Virtio-fs] vm hangs when booting with virtiofs<br>
><br>
>  <br>
><br>
>>On Sat, May 20, 2023 at 12:15 PM daggs <<a href="mailto:daggs@gmx.com" target="_blank">daggs@gmx.com</a>[mailto:<a href="mailto:daggs@gmx.com" target="_blank">daggs@gmx.com</a>]> wrote:Greetings,<br>
>><br>
>>I'm trying to boot a win11 vm with a virtiofs fs and the system just hangs on boot, I'd like some incites on what is the issue.<br>
>>here is what I'm using:<br>
>>- kernel 6.3.3<br>
>>- libvirt 9.3.0<br>
>>- qemu 8.0.0<br>
>>- virtiofsd 1.5.1<br>
>><br>
>>I'm using the following cmd to run virtiofsd using socket: virtiofsd --socket-path=/var/lib/libvirt/helpers_state/windows/linux_home.socket --shared-dir /home/daggs --cache auto<br>
>>where /var/lib/libvirt/helpers_state/windows/ is a tmpfs mount of 16K (tried with 1M too, same behavior)<br>
>>the virtiofsd invocation is issued inside the prepare and begin qemu hook on libvirt.<br>
>>I see this after virtiofsd is started: [2023-05-20T08:41:18Z INFO virtiofsd] Waiting for vhost-user socket connection...<br>
>>and I call it like this: nohup <virtiofsd cmd> &<br>
>><br>
>>the vm's relevant config is this:<br>
>><domain type='kvm'><br>
>>...<br>
>><memory unit='KiB'>24582144</memory><br>
>><currentMemory unit='KiB'>24582144</currentMemory><br>
>><memoryBacking><br>
>><source type='memfd'/><br>
>><access mode='shared'/><br>
>></memoryBacking><br>
>><vcpu placement='static'>12</vcpu><br>
>><cputune><br>
>><vcpupin vcpu='0' cpuset='4'/><br>
>><vcpupin vcpu='1' cpuset='5'/><br>
>><vcpupin vcpu='2' cpuset='6'/><br>
>><vcpupin vcpu='3' cpuset='7'/><br>
>><vcpupin vcpu='4' cpuset='8'/><br>
>><vcpupin vcpu='5' cpuset='9'/><br>
>><vcpupin vcpu='6' cpuset='10'/><br>
>><vcpupin vcpu='7' cpuset='11'/><br>
>><vcpupin vcpu='8' cpuset='12'/><br>
>><vcpupin vcpu='9' cpuset='13'/><br>
>><vcpupin vcpu='10' cpuset='14'/><br>
>><vcpupin vcpu='11' cpuset='15'/><br>
>><emulatorpin cpuset='0-1'/><br>
>></cputune><br>
>><br>
>>...<br>
>><cpu mode='host-passthrough' check='none' migratable='on'><br>
>><topology sockets='1' dies='1' cores='6' threads='2'/><br>
>><cache mode='passthrough'/><br>
>><feature policy='require' name='topoext'/><br>
>></cpu><br>
>>...<br>
>><filesystem type='mount' accessmode='passthrough'><br>
>><driver type='virtiofs' queue='1024'/><br>
>><binary path='/usr/bin/virtiofsd'/><br>
>><source socket='/var/lib/libvirt/helpers_state/windows/linux_home.socket'/><br>
>><target dir='linux_home'/><br>
>><address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/><br>
>></filesystem><br>
>>...<br>
>></domain><br>
>><br>
>>I'm running it via virsh, added -d 4, no errors in the log<br>
>>when it is stuck, I get a black screen (using gpu pt to guest which work without it), ps shows both virsh start cmd running and stuck, two virtiofsd instances are up.<br>
>>any ideas how to solve this?<br>
>> <br>
>> <br>
>I forgot, could you replace your '/usr/bin/virtiofsd' with a shell script that runs `virtiofsd --log-level=debug ...` and post the log output<br>
> <br>
>If you want, you can open an issue here:<br>
><a href="https://gitlab.com/virtio-fs/virtiofsd/-/issues%5Bhttps://gitlab.com/virtio-fs/virtiofsd/-/issues%5D" rel="noreferrer" target="_blank">https://gitlab.com/virtio-fs/virtiofsd/-/issues[https://gitlab.com/virtio-fs/virtiofsd/-/issues]</a><br>
do you mean run it from inside libvirt?<br>
I tried that, seems like virtiofsd fails because libvirt uses deprecated cli params<br>
that is why I'm using sockets and running it from outside libvirt<br>
<br></blockquote><div><br></div><div>Oh great, I didn't realize you were calling virtiofsd directly, easier then, just call</div><div>virtiofsd --log-level=debug</div><div><br></div><div>and please also using strace, like:</div><div>strace -f -o vfsd.strace.log  virtiofsd ...<br></div><div><br></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">
>> <br>
>>Thanks,<br>
>> Thanks,<br>
>><br>
>>Dagg<br>
>><br>
>>_______________________________________________<br>
>>Virtio-fs mailing list<br>
>><a href="mailto:Virtio-fs@redhat.com" target="_blank">Virtio-fs@redhat.com</a>[mailto:<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>
> <br>
><br>
>--<br>
><br>
>German<br>
<br>
Thanks,<br>
<br>
Dagg<br>
<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">German<br></div></div></div>