SimonF Posted October 9, 2022 Share Posted October 9, 2022 (edited) https://virtio-fs.gitlab.io/howto-windows.html Edited November 27, 2022 by SimonF 1 Quote Link to comment
SimonF Posted October 9, 2022 Author Share Posted October 9, 2022 (edited) Windows multiple instance mount options, https://github.com/virtio-win/kvm-guest-drivers-windows/wiki/VirtIO-FS:-Shared-file-system#multiple-virtio-fs-instances Edited December 4, 2022 by SimonF Quote Link to comment
johnsanc Posted October 11, 2022 Share Posted October 11, 2022 Posting here for visibility since it seems like a few people are having issues with VirtioFS and Windows VMs... It looks like the inclusion of virtiofs configuration in the VM XML may result in Windows 10 VM freezes. When this occurs the VM is completely unresponsive and frozen, there is nothing useful in any logs, and all CPUs allocated to the VM become pegged at 100%. Usually this occurs within 30 minutes to 2 hours of the VM being started. I've confirmed that disabling the VirioFS service in windows has no impact on the freezing, nor does I/O load seem to have any impact. Not sure if it matters, but I initially had 32GB of the 64GB of memory I have allocated to the VM. Quote Link to comment
LeoRX Posted October 12, 2022 Share Posted October 12, 2022 (edited) Interesting. I did notice my windows 11 vm freeze soon after configure VirtioFS. I assume it may have something to do with the driver and have update it since but the problem persist. Looking forward to a resolution to this as VirtioFS is a great functionality I'd like to keep using. Edited October 12, 2022 by LeoRX Quote Link to comment
SimonF Posted October 12, 2022 Author Share Posted October 12, 2022 4 hours ago, LeoRX said: Interesting. I did notice my windows 11 vm freeze soon after configure VirtioFS. I assume it may have something to do with the driver and have update it since but the problem persist. Looking forward to a resolution to this as VirtioFS is a great functionality I'd like to keep using. Please can you post your hardware specs in this thread? Quote Link to comment
NLS Posted October 13, 2022 Share Posted October 13, 2022 Waiting for real feedback on the issue before actually using it. QUESTION TO EVERYBODY: Does it work properly with a Linux based VM? I already use 9p mode, but I hear virtiofs is better. Quote Link to comment
SimonF Posted October 13, 2022 Author Share Posted October 13, 2022 2 hours ago, NLS said: Waiting for real feedback on the issue before actually using it. QUESTION TO EVERYBODY: Does it work properly with a Linux based VM? I already use 9p mode, but I hear virtiofs is better. Not heard of issues with linux vms so far. I run both Windows and Linux fine on an intel host. 1 Quote Link to comment
LeoRX Posted October 14, 2022 Share Posted October 14, 2022 I'm getting bad VM performance over all when Virtio-FS is setup. Other then the Windows VM freeze issue, I first noticed stutter just using the VM browsing web sites. and then I noticed games run horriably and becomes unplayable. so I figure I should do some testing and see if virtio-fs is really better then samba share and I was expecting it to be so, but the finding is interesting. I did two speed test using parkdale while i have virtio-fs setup. First testing the speed to a share through samba then test the speed to the same folder through virtio-fs. Lastly, I removed virtio-fs setup and did another test on the same share over samba. Overall VM performance is so much better without virtio-fs configured and even samba share are faster. I thought I'm suppose to get "like passthrough" performance using virio-fs. Am I missing something or doing something wrong? 1 Quote Link to comment
SimonF Posted October 14, 2022 Author Share Posted October 14, 2022 1 hour ago, LeoRX said: I'm getting bad VM performance over all when Virtio-FS is setup. Other then the Windows VM freeze issue, I first noticed stutter just using the VM browsing web sites. and then I noticed games run horriably and becomes unplayable. so I figure I should do some testing and see if virtio-fs is really better then samba share and I was expecting it to be so, but the finding is interesting. I did two speed test using parkdale while i have virtio-fs setup. First testing the speed to a share through samba then test the speed to the same folder through virtio-fs. Lastly, I removed virtio-fs setup and did another test on the same share over samba. Overall VM performance is so much better without virtio-fs configured and even samba share are faster. I thought I'm suppose to get "like passthrough" performance using virio-fs. Am I missing something or doing something wrong? I found this bug report with some similar with NFS. https://bugzilla.redhat.com/show_bug.cgi?id=1924337 Quote Link to comment
LeoRX Posted October 14, 2022 Share Posted October 14, 2022 (edited) Just want to say I test it again this morning. I did manage to get similar speed on virtio-fs drive on the first try with write speed at about 110MBytes/sec. but the computer freezed up on second try. Perhaps its the freeze bug I've been experince that caused performance issue. I'm looking forward to the day the freeze bug is resolved. Edited October 14, 2022 by LeoRX Quote Link to comment
Iron_Forge Posted October 31, 2022 Share Posted October 31, 2022 Having a weird issue with my Ubuntu 22.04 VM with virtiofs I wasn't seeing when I was using cifs shares prior, not sure if I just have something set slightly wrong? So far, I'm only seeing the issue with yt-dlp, when it tries to write a file, it will error out, sometimes part way through the file, sometimes after the file has finished, sometimes it won't even start a file. From my linux side: ubuntuServer:/downloads/temp$ yt-dlp --version 2022.10.04 ubuntuServer:/downloads/temp$ uname -a Linux gringott 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ubuntuServer:/downloads/temp$ lsb_release -r Release: 22.04 ubuntuServer:/downloads/temp$ cat /etc/fstab downloads /downloads virtiofs rw,relatime 0 0 ubuntuServer:/downloads$ ls -alh drwxrwxrwx 1 99 users 290 Oct 31 13:53 temp ubuntuServer:/downloads/temp$ yt-dlp "https://www.youtube.com/watch?v=2CbObOuOEuA" [youtube] 2CbObOuOEuA: Downloading webpage [youtube] 2CbObOuOEuA: Downloading android player API JSON [info] 2CbObOuOEuA: Downloading 1 format(s): 313+251 [download] Destination: How to set up Unraid - 2021 Guide [2CbObOuOEuA].f313.webm [download] 100.0% of 167.95MiB at 46.43MiB/s ETA 00:00ERROR: unable to download video data: [Errno 95] Operation not supported ubuntuServer:/downloads/temp$ yt-dlp "https://www.youtube.com/watch?v=2CbObOuOEuA" [youtube] 2CbObOuOEuA: Downloading webpage [youtube] 2CbObOuOEuA: Downloading android player API JSON [info] 2CbObOuOEuA: Downloading 1 format(s): 313+251 [download] Resuming download at byte 176106778 [download] How to set up Unraid - 2021 Guide [2CbObOuOEuA].f313.webm has already been downloaded [download] 100% of 167.95MiB [download] Destination: How to set up Unraid - 2021 Guide [2CbObOuOEuA].f251.webm [download] 100.0% of 12.66MiB at 31.19MiB/s ETA 00:00ERROR: unable to download video data: [Errno 95] Operation not supported ubuntuServer:/downloads/temp$ yt-dlp "https://www.youtube.com/watch?v=2CbObOuOEuA" [youtube] 2CbObOuOEuA: Downloading webpage [youtube] 2CbObOuOEuA: Downloading android player API JSON [info] 2CbObOuOEuA: Downloading 1 format(s): 313+251 [download] How to set up Unraid - 2021 Guide [2CbObOuOEuA].f313.webm has already been downloaded [download] 100% of 167.95MiB [download] Resuming download at byte 13270660 [download] How to set up Unraid - 2021 Guide [2CbObOuOEuA].f251.webm has already been downloaded [download] 100% of 12.66MiB [Merger] Merging formats into "How to set up Unraid - 2021 Guide [2CbObOuOEuA].webm" Deleting original file How to set up Unraid - 2021 Guide [2CbObOuOEuA].f313.webm (pass -k to keep) Deleting original file How to set up Unraid - 2021 Guide [2CbObOuOEuA].f251.webm (pass -k to keep) From my VM Config: <memoryBacking> <nosharepages/> <source type='memfd'/> <access mode='shared'/> </memoryBacking> <filesystem type='mount' accessmode='passthrough'> <driver type='virtiofs' queue='1024'/> <binary path='/usr/libexec/virtiofsd' xattr='on'> <cache mode='always'/> <sandbox mode='chroot'/> <lock posix='on' flock='on'/> </binary> <source dir='/mnt/user/downloads/'/> <target dir='downloads'/> <alias name='fs1'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </filesystem> If I umount /downloads, and remount it using the cifs share, the Errno 95 goes away. Any ideas what I may have done wrong? Quote Link to comment
SimonF Posted October 31, 2022 Author Share Posted October 31, 2022 1 hour ago, Iron_Forge said: <nosharepages/> You should not need this line, but not sure removing will change any think. Setup looks ok, will look to see if I can find any similar issues. Quote Link to comment
CS01-HS Posted November 8, 2022 Share Posted November 8, 2022 On 10/31/2022 at 10:00 AM, Iron_Forge said: So far, I'm only seeing the issue with yt-dlp, when it tries to write a file, it will error out, sometimes part way through the file, sometimes after the file has finished, sometimes it won't even start a file. I had a similar issue with my Debian VM and yt-dlp with 6.11.1. Ended up reverting to 9p. Quote Link to comment
jmagar Posted November 23, 2022 Share Posted November 23, 2022 I seem to be having the same problem with my windows 11 VM. Is there a way to get rid of virtio so I can have a working VM again? Quote Link to comment
KptnKMan Posted November 24, 2022 Share Posted November 24, 2022 I'm testing Virtiofs on my main Win11 VM, and having quite some success, but with a few caveats. Firstly, while installing the latest virtio drivers, my VM IMMEDIATELY CRASHES. I found through lots of trial and crashes that if I leave "Fwcfg" DISABLED, the install finishes. Disabling it allows install of updated drivers, sets up services, and does not crash the VM. What is this Fwcfg, can anyone shed some light on that? Secondly, I'm trying to setup 2 virtiofs disks, but only 1 appears as the Z: drive If I setup 2 drives, only the second appears as Z: when the VM boots. In this example, I setup "vdata1" and "vdata2": Thirdly, the virtiofs is always set as Z: I cannot find or see any way to reassign the drive letter, or indeed use multiple drive letters. Is there a way to change the assigned drive? Quote Link to comment
TexasUnraid Posted November 26, 2022 Share Posted November 26, 2022 (edited) How are people even getting the vitrioFS share to show up in windows 10??? I have the share setup in unraid, I have the latest vitrio drivers installed yet I can not figure out any method for getting the share to show up?? After a lot fo searching the issue seems to be that the virtio-FS service will not start. If I try to manually start it, it just gives an error "service did not start in a timely fashion". https://github.com/virtio-win/kvm-guest-drivers-windows/issues/550 This seems to indicate that it needs the WinFsp.Launcher and the VirtioFsDrv driver to work but I can not find these services installed? I am lost, this is a fresh clean VM install with the latest virtIO drivers and guest agent installed and not much else. Edit: Just installed 2 fresh clean windows 10 VM's and same issue on both of them as well. Edited November 27, 2022 by TexasUnraid Quote Link to comment
SimonF Posted November 27, 2022 Author Share Posted November 27, 2022 9 hours ago, TexasUnraid said: How are people even getting the vitrioFS share to show up in windows 10??? I have the share setup in unraid, I have the latest vitrio drivers installed yet I can not figure out any method for getting the share to show up?? After a lot fo searching the issue seems to be that the virtio-FS service will not start. If I try to manually start it, it just gives an error "service did not start in a timely fashion". https://github.com/virtio-win/kvm-guest-drivers-windows/issues/550 This seems to indicate that it needs the WinFsp.Launcher and the VirtioFsDrv driver to work but I can not find these services installed? I am lost, this is a fresh clean VM install with the latest virtIO drivers and guest agent installed and not much else. Edit: Just installed 2 fresh clean windows 10 VM's and same issue on both of them as well. You need to install WInFSP also for windows. https://winfsp.dev/rel/ @SpaceInvaderOne has created a video re VirtioFS. Added to first post. Quote Link to comment
johnsanc Posted November 27, 2022 Share Posted November 27, 2022 Have there been any updates on the freeze issue several people are having whenever memoryBacking is enabled? Quote Link to comment
SimonF Posted November 27, 2022 Author Share Posted November 27, 2022 52 minutes ago, johnsanc said: Have there been any updates on the freeze issue several people are having whenever memoryBacking is enabled? As of yet I have not been able to find cause or resolution, Libvirt suggest it is a QEMU issue but not had any response on my issue. Quote Link to comment
TexasUnraid Posted November 27, 2022 Share Posted November 27, 2022 5 hours ago, SimonF said: You need to install WInFSP also for windows. https://winfsp.dev/rel/ @SpaceInvaderOne has created a video re VirtioFS. Added to first post. Thanks! That did it. The steps and all the drivers needed for this to work should REALLY be included in the notes for the share in the VM setup or something. Even better the winfsp drivers could be a downloadable ISO that can be inserted as well. Quote Link to comment
SimonF Posted November 27, 2022 Author Share Posted November 27, 2022 33 minutes ago, TexasUnraid said: Thanks! That did it. The steps and all the drivers needed for this to work should REALLY be included in the notes for the share in the VM setup or something. Even better the winfsp drivers could be a downloadable ISO that can be inserted as well. Fixed for Windows was only showing for non Windows and added additional info. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.