Skip to content

Virt Manager | Share files with Windows

Virt Manager | مشاركة الملفات بين لينكس وويندوز الافتراضي


Share a folder with Windows guest in Virt Manager⚓︎

شرح كيفية مشاركة وتبادل الملفات بين لينكس وويندوز كجهاز افتراضي على Virt Manger، الخطوات تصلح لـ Windows 10 و Windows 11.

Host Steps⚓︎

  • Create a /shared/folder/on/host on the Host.
  • Open VM settings > Memory and enable shared memory or add:
<memoryBacking>
  <source type="memfd"/>
  <access mode="shared"/>
</memoryBacking>
  • Add Hardware - Filesystem:

Change source dir and target dir to fit your setup

<filesystem type="mount" accessmode="passthrough">
  <driver type="virtiofs" queue="1024"/>
  <source dir="/shared/folder/on/host"/>
  <target dir="shared-folder-name-on-guest"/>
  <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</filesystem>
  • Download WinFsp
  • Start Windows VM

Windows VM Steps⚓︎

  • Copy WinFsp file to the VM and Install it
  • Open Services and find VirtIO-FS Service set it to Automatic and start it.
  • Restart