Hi All,
Fedora 39 qemu-kvm-8.1.3-5.fc39.x86_64 virt-manager-4.1.0-3.fc39.noarch
Windows 11
How do I Share Host Files (Fedora 39) with Windows 11 (client) with KVM?
I have been reading this virt-manager how to: https://chrisirwin.ca/posts/sharing-host-files-with-kvm/
He is leaving out how to mount in Windows and his "Filesystem Passthrough"
https://chrisirwin.ca/posts/sharing-host-files-with-kvm/add-filesystem.png is a lot different than mine https://imgur.com/pqPcLo0.png
Anyone have a better howto? -T
On 6/26/24 01:09, ToddAndMargo via users wrote:
Hi All,
Fedora 39 qemu-kvm-8.1.3-5.fc39.x86_64 virt-manager-4.1.0-3.fc39.noarch
Windows 11
How do I Share Host Files (Fedora 39) with Windows 11 (client) with KVM?
I have been reading this virt-manager how to: https://chrisirwin.ca/posts/sharing-host-files-with-kvm/
He is leaving out how to mount in Windows and his "Filesystem Passthrough"
https://chrisirwin.ca/posts/sharing-host-files-with-kvm/add-filesystem.png is a lot different than mine https://imgur.com/pqPcLo0.png
Anyone have a better howto? -T
Found a much better How To:
Share Files Between the KVM Host and Windows Guest Using Virtiofs
https://sysguides.com/share-files-between-the-kvm-host-and-windows-guest-usi...
And it is working beautifully
On 6/27/24 03:25, ToddAndMargo via users wrote:
On 6/26/24 01:09, ToddAndMargo via users wrote:
Hi All,
Fedora 39 qemu-kvm-8.1.3-5.fc39.x86_64 virt-manager-4.1.0-3.fc39.noarch
Windows 11
How do I Share Host Files (Fedora 39) with Windows 11 (client) with KVM?
I have been reading this virt-manager how to: https://chrisirwin.ca/posts/sharing-host-files-with-kvm/
He is leaving out how to mount in Windows and his "Filesystem Passthrough"
https://chrisirwin.ca/posts/sharing-host-files-with-kvm/add-filesystem.png is a lot different than mine https://imgur.com/pqPcLo0.png
Anyone have a better howto? -T
Found a much better How To:
Share Files Between the KVM Host and Windows Guest Using Virtiofs
https://sysguides.com/share-files-between-the-kvm-host-and-windows-guest-usi...
And it is working beautifully
How to change the mount point from Z to something else:
REGEDIT4
; Change VirtIO-FS's mount point (letter): ; Change the M: below to you desiged letter. Remember the :
[HKEY_LOCAL_MACHINE\SOFTWARE\VirtIO-FS] "MountPoint"="M:"
On 2024-06-27 07:09, ToddAndMargo via users wrote:
How to change the mount point from Z to something else:
REGEDIT4
; Change VirtIO-FS's mount point (letter): ; Change the M: below to you desiged letter. Remember the :
[HKEY_LOCAL_MACHINE\SOFTWARE\VirtIO-FS] "MountPoint"="M:"
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
On 6/27/24 11:50, Frank Bures wrote:
On 2024-06-27 07:09, ToddAndMargo via users wrote:
How to change the mount point from Z to something else:
REGEDIT4
; Change VirtIO-FS's mount point (letter): ; Change the M: below to you desiged letter. Remember the :
[HKEY_LOCAL_MACHINE\SOFTWARE\VirtIO-FS] "MountPoint"="M:"
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
Hi Frank,
Are your mounts cifs or Virtiofs?
If Virtiofs, did you remember to set "VirtIO-FS Service" to "Automatic"?
-T
On 2024-06-27 16:46, ToddAndMargo via users wrote:
On 6/27/24 11:50, Frank Bures wrote:
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
Hi Frank,
Are your mounts cifs or Virtiofs?
If Virtiofs, did you remember to set "VirtIO-FS Service" to "Automatic"?
Actually, what you describe relates to single shared fs. In case of multiple shared virtual filesystems the VirtioFsSvc is stopped permanently.
The host shares are mounted from the guest using
"C:\Program Files (x86)\WinFsp\bin\launchctl-x64.exe" start virtiofs viofsZ mount_tag0 Z:
where mount_tag0 is the name given to the share in KVM configuration.
Each mounted fs (Z, Y, X etc.) has its own virtiofs running.
This way you can mount any number of shares from the guest. The only problem is that the mount does not survive guest reboot. Hence the necessity for the batchfile.
Cheers Frank
On 6/27/24 14:04, Frank Bures wrote:
On 2024-06-27 16:46, ToddAndMargo via users wrote:
On 6/27/24 11:50, Frank Bures wrote:
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
Hi Frank,
Are your mounts cifs or Virtiofs?
If Virtiofs, did you remember to set "VirtIO-FS Service" to "Automatic"?
Actually, what you describe relates to single shared fs. In case of multiple shared virtual filesystems the VirtioFsSvc is stopped permanently.
The host shares are mounted from the guest using
"C:\Program Files (x86)\WinFsp\bin\launchctl-x64.exe" start virtiofs viofsZ mount_tag0 Z:
where mount_tag0 is the name given to the share in KVM configuration.
Each mounted fs (Z, Y, X etc.) has its own virtiofs running.
This way you can mount any number of shares from the guest. The only problem is that the mount does not survive guest reboot. Hence the necessity for the batchfile.
Cheers Frank
Hi Frank,
That explains it. And I am writing that command down. Thank you!
-T
On 2024-06-28 05:14, ToddAndMargo via users wrote:
On 6/27/24 14:04, Frank Bures wrote:
On 2024-06-27 16:46, ToddAndMargo via users wrote:
On 6/27/24 11:50, Frank Bures wrote:
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
Hi Frank,
Are your mounts cifs or Virtiofs?
If Virtiofs, did you remember to set "VirtIO-FS Service" to "Automatic"?
Actually, what you describe relates to single shared fs. In case of multiple shared virtual filesystems the VirtioFsSvc is stopped permanently.
The host shares are mounted from the guest using
"C:\Program Files (x86)\WinFsp\bin\launchctl-x64.exe" start virtiofs viofsZ mount_tag0 Z:
where mount_tag0 is the name given to the share in KVM configuration.
Each mounted fs (Z, Y, X etc.) has its own virtiofs running.
This way you can mount any number of shares from the guest. The only problem is that the mount does not survive guest reboot. Hence the necessity for the batchfile.
Cheers Frank
Hi Frank,
That explains it. And I am writing that command down. Thank you!
Make sure to follow the whole instructions in the above mentioned URL. You have to establish the registry entries first, before attempting to mount the shares.
Cheers Frank
On 6/28/24 11:49, Frank Bures wrote:
On 2024-06-28 05:14, ToddAndMargo via users wrote:
On 6/27/24 14:04, Frank Bures wrote:
On 2024-06-27 16:46, ToddAndMargo via users wrote:
On 6/27/24 11:50, Frank Bures wrote:
I followed the instructions at
https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system
to mount two different F40 host file systems from Win11 KVM guest.
However, the mount does not survive guest reboot so I wrote a little batch file I have to execute during each guest start.
Is there a different way how to make the mount permanent?
Thanks Frank
Hi Frank,
Are your mounts cifs or Virtiofs?
If Virtiofs, did you remember to set "VirtIO-FS Service" to "Automatic"?
Actually, what you describe relates to single shared fs. In case of multiple shared virtual filesystems the VirtioFsSvc is stopped permanently.
The host shares are mounted from the guest using
"C:\Program Files (x86)\WinFsp\bin\launchctl-x64.exe" start virtiofs viofsZ mount_tag0 Z:
where mount_tag0 is the name given to the share in KVM configuration.
Each mounted fs (Z, Y, X etc.) has its own virtiofs running.
This way you can mount any number of shares from the guest. The only problem is that the mount does not survive guest reboot. Hence the necessity for the batchfile.
Cheers Frank
Hi Frank,
That explains it. And I am writing that command down. Thank you!
Make sure to follow the whole instructions in the above mentioned URL. You have to establish the registry entries first, before attempting to mount the shares.
Cheers Frank
Got it! Thank you!
On 26 Jun 2024, at 09:10, ToddAndMargo via users users@lists.fedoraproject.org wrote:
How do I Share Host Files (Fedora 39) with Windows 11 (client) with KVM?
Agreed that guide you found is not great.
Web search found this one (untested) that looks a believable https://hatchjs.com/virt-manager-shared-folder-windows-guest/ It has windows mount the shared folder as a cifs share.
Barry