-
Notifications
You must be signed in to change notification settings - Fork 392
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 Service crashes with error 87 in Windows 10 guest #982
Comments
@kachapman Did you change any parameters or registry settings of the virtio-fs service after installations? |
No changes like that. Just trying different things on the virt-manager > add hardware side. Is there a log file that I could post that would help? |
PopOS 22.04 I have the exact same error and behavior @kachapman described. Let me know if I can generate logs for you. |
I had the exact same problem as well.
Guest:
|
Have the same issue, Error 87. Uninstalled winfsp and virtio guest tools through BCuninstaller and reinstalled, issue still persists. Used Powershell with admin privileges to launch: Got error: CategoryInfo : Invalid Argument (:) [Set content], Parameter Binding Exception Host:
Guest:
|
I don't know if this information helps, but I have a possibly related glitch where I have to reinstall the spice guest tools every time I spin up the Windows 10 VM, otherwise I dont have the copy/paste and drag/drop from host functionality. But the webdav spice functionality is still there (the mounted drive from the host machine). |
Same here. Host: Guest: I tried installing the latest Virtio-win-guest-tools (as of today) to see if someone had come up with a way to fix this, but no help. |
I really wish the shared folder setup here was more automatic and user friendly. I need a shared folder that starts reliably if the guest tools are installed and it is configured once for the VM. Something is fundamentally broken now. Not sure what. I too am suddenly faced with this mess with a Win 10 22H2 VM hosted on Ubuntu 22.04. Previous to today, I was on winfsp-1.11.22176 and it stopped working. In the past it has had issues with various events preventing the service from starting. I tried starting the service manually with debugging turned on using: C:\Program Files\Virtio-Win\VioFS>virtiofs.exe -d -1 -D C:\log2.txt This put the following text in the C:\log2.txt file: That doesn't really help me figure out what is broken here... Does the error log mean something to someone else here? |
It means that |
The mistake I made was moving over to this VM setup, instead of virtual box. I never had folder sharing or drag/drop issues on that platform. But I did suddenly lose 3d acceleration because of virtual box updates, which I was putting up with because my work software isnt that demanding. But then I saw some recommendations from several you tubers and forum posters to switch to virt-manager because its 'faster and simpler'. Faster, maybe. But wow is it unnecessarily complicated if you want to run a windows VM with any kind of production related functionality.
Well that sucks. I just downloaded a win 11 ISO to see if that would solve the issue. |
Is this something I could provide as well? How would I get access to those? |
I suggest to share the following things:
|
Of course.
It depends on how do you run it. |
I'm glad to provide whatever will help to get to the bottom of this but the how and where was missing from this. strings /usr/lib/qemu/virtiofsd | grep version Host-fs0-virtiofsd.log |
Please try the modern virtiofsd (Rust version) instead of deprecated one |
How? There appears to be non packaged install process for this here which I can't use on a production system: https://gitlab.com/virtio-fs/virtiofsd |
Are you talking about the files here? This is just a single file. Do I replace another file from the virtio-win-guest-tools install package with this one? |
On Ubuntu 22.04 this appears to be a regression in qemu 1:6.2+dfsg-2ubuntu6.13 which is fixed in qemu 1:6.2+dfsg-2ubuntu6.14. https://answers.launchpad.net/ubuntu/+source/qemu/+question/707811 |
I can confirm the same issue on Ubuntu 22.04 and Win10 guest. Logs from Guest:
Logs from Host:
I dont see anything significant. I tried to restart the guest service couple of time, nothing appears in host logs other than those lines. XML (I added queue=1024 myself): |
Guys, I don't know why your favorite Linux distros contains deprecated virtiofsd (C version). It was deleted from QEMU in January 2023. The supported one is the Rust version from https://gitlab.com/virtio-fs/virtiofsd/ . Both RHEL and Fedora already have a package with the supposed version. |
I understand @viktor-prutyanov , unfortunately Ubuntu 22.04 is required due to reasons which I can't control. otherwise I'd be using Arch as I did many many years :( |
@erenoglu |
Ubuntu 22.04 is a long term support release. Unfortunately it appears to be lagging greatly. Debian has newer packages but they aren't getting pulled in for some reason. Ubuntu 24.04 will likely have it. I'm trying to see if the Debian package of 8.1 could be back ported but it is likely a bigger job. Yes it is easy to do that but that depends if you are allow to put un-packaged software on systems. Here doing that is against security policy. |
Ok, so these temporary fixes could be applied now to resolve the issue, but a package is incoming?
Would building it manually resolve the issue? |
There is already a package in proposed that fixes the issue. You can try that using the PPA. People are reporting it addresses the issue. I am about to try it. |
Would you be able to walk me through the update process with that package? I have the .tar, but Im not sure where to put these files, or if there is a install script in here somewhere. |
Hi @kachapman , it's easy as decribed in the site linked by @rhardy613 : Just do these two commands in a terminal window:
Then a normal system upgrade shall install the corrected packages,
|
Yes, I just tried the bug fix .14 one from the PPA and it resolved this for me. I would remove that PPA once the packages are in production. |
This resolved the issue for me as well. Host directory now mounts by default. |
Hi, I got the same issue, following the thread. Unfortunately ppa didn't fix the problem on Ubuntu 22.04 (upgraded from 20.04 if it's change anything at all) |
@bussiereThomas Can you please check what virtiofsd is used in your setup? |
In any case, Rust virtiofsd is no longer part of QEMU. |
Rust virtiofsd solved the issue. Closing. |
Describe the bug
Trying to start the VirtIO-FS service fails with error 87.
To Reproduce
Steps to reproduce the behaviour:
Followed the steps online (https://www.debugpoint.com/kvm-share-folder-windows-guest/) to add a hardware file system using virtiofs as the driver in virt-manager, the source path is my local documents folder in my home directory and the target path is linux-docs.
Installed WinFSP and virtio-win-guest-tools in the windows 10 guest without issue, making sure that the core components needed were selected. Drivers all appear to be signed correctly with the right information.
Restarts done when asked. Go to start the service and it fails.
One thing I thought was odd was that if I deleted the added file system hardware in virt-manager, the service would start no problem. I tried changing the local director and that didnt help. If I start the service, then add the hardware filesystem, it wont recognize or mount anything either.
Expected behavior
The service should have started, and my documents folder mounted as volume Z: in windows.
Screenshots



Host:
VM:
The text was updated successfully, but these errors were encountered: