-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VirtIO-FS crashes with Windows guests. #723
Comments
virtio-win-0.1.96.iso doesn't contain VirtIO-FS. How could it even be tested? |
Maybe it wasn't that one. I tested 3 different versions total. |
I thought that was the one I used. It was another one. |
Does your QEMU crash along with virtiofsd? |
Before package updates no. After updates yes, both crash on VM start. |
Have you tried to remove These messages
appears because the guest doesn't properly finalize connection to virtiofsd (which is normal for VirtIO-FS on Windows at the moment) or even didn't set up the connection at all.
Looks like you are experiencing QEMU problem, not virtio-win.
Especially if it began to happen after QEMU upgrade. |
Do you have any error messages from QEMU? |
No, QEMU does not appear to output error messages. |
This also occurred on the host sometimes during VM runtime (prior to update breaking VM start). Also QEMU currently works perfect without the VirtIO-FS parameters. Starting the same VM with identical parameters (with VirtIO-FS removed) works without issue. |
Could you please share full QEMU command-line? |
Please also share how do you run QEMU without VirtIO-FS. |
You can also add |
If you write QEMU command-lines as a text here, I can try to reproduce your problem. |
Yes, here's the debug log output: [2022-01-25 21:30:55.948856+0000] [ID: 00002250] virtio_session_mount: Waiting for vhost-user socket connection... |
(reformatted strings @viktor-prutyanov) Working QEMU command (no VirtIO-FS): QEMU which breaks during runtime (before update) and at VM start (since update): |
The following works with QEMU 6.2.0 without any crashes:
Your The normal flow is:
So, looks like VirtIO-FS Windows driver is not involved. |
I'm also having this issue however i was using libvirt and virt manager to test out virtio fs devices. I used Winfsp-1.10.22006.msi and the stable virtio drivers from here both downloaded yesterday as i was testing. Normal files worked fine but when i tried any kind of executable the service immediately died and whatever application would either not start or in the case of steam give an disk write error even with a small game . If you need logs i dont know how to add the |
Hi @GrandtheUK,
I suppose you are using 0.1.215
I think there are 2 options possible:
Which one is yours? As for the 1st option, there is an issue #669 where Steam is unable to access his own DLLs because of VirtIO-FS's case-sensitivity. We're working on it. As for the 2nd option, I've reproduced a game crash, but VirtIO-FS service is alive. |
i've tried both. installing steam to the virtio-fs and the installer worked but the service died on first starting steam when it was grabbing updates. but also when its just the steam library, with the games already there (windows versions) and attempting to run them crashes the service. also if i try to run other games/programs executables directly it crashes the service. |
Does any executable crash the service?
|
i'll give it a shot |
copying calc.exe across and running it works. i'll try running some of the other programs and games through cmd to see if there is any errors there |
I have Deltarune, which is probably the only game i have on the shared that i can run on the vm at the moment but i could attempt to install notepad++ to the shared folder and check that as well. |
I've created the separate issue because this issue is dedicated to VM crash. |
I was able to fix the bug where the virtiofsd host service crashes when starting a VM by switching from Arch to Fedora. I'm not sure why this fixed the problem - maybe there is something improperly configured in Arch or a bug with the binary on Arch. |
VirtIO Driver Version:
Tested on virtio-win-0.1.215.iso & virtio-win-0.1.96.iso & virtio-win-0.1.187.iso
WinFSP Version:
Tested on winfsp-1.10.22006.msi (WinFSP 2022) & winfsp-1.8.20304.msi (WinFSP 2020.2)
QEMU Version:
6.2.0
Guest OS:
Tested on Windows 10 Pro & Windows 10 LTSC
Host OS:
Arch Linux
QEMU parameters used:
-mem-path /dev/hugepages -object memory-backend-memfd,id=mem,size=8G,share=on -numa node,memdev=mem -chardev socket,id=char0,path=/home/user/.local/libvf.io/sockets/virtio-fs-001.sock -device vhost-user-fs-pci,chardev=char0,tag=lime,queue-size=1024
Host virtiofsd commands used:
sudo /usr/lib/qemu/virtiofsd --socket-path=/home/user/.local/libvf.io/sockets/virtio-fs-001.sock -o source=/tmp/vm-001 -o cache=always
sudo chgrp kvm /home/user/.local/libvf.io/sockets/virtio-fs-001.sock
sudo chmod g+rxw /home/user/.local/libvf.io/sockets/virtio-fs-001.sock
Description of problem: When attempting to execute programs from the shared VirtIO-FS directory the Windows virtiofsd service crashes. This also occurs when attempting to delete or modify large files. Since updating packages in Arch the host virtiofsd service now crashes immediately upon VM start with no changes to other parameters mentioned above.
The text was updated successfully, but these errors were encountered: