Below are the two most convenient ways to move files from a Linux host that is running virt-manager/libvirt → to a Windows 10 guest.
Pick the one that suits you best; you can even enable both and switch whenever you need to.
────────────────────────────────────────
- SPICE “Send File…” / Drag-&-Drop
────────────────────────────────────────
This is by far the easiest once it is set up.
It works bi-directionally, requires no networking, and feels a bit like using VMware Tools or VirtualBox Guest Additions.
A. Prepare the VM (one-time)
- Shut the VM down.
- virt-manager → “Open” the VM → “Show virtual hardware details”.
- Display → make sure it is Spice.
- “Add Hardware” → Channel → “Spice agent” (virtio-serial).
• Leave the name at org.spice-space.webdav (default).
• Tick “Connect automatically”.
- Apply / OK and start the VM.
B. Install the guest tools (inside Windows, one-time)
- Download the current
spice-guest-tools-*-windows.iso or the all-in-one EXE:
https://www.spice-space.org/download.html
- Attach/mount it or copy it in any way you like, then run:
•
spice-guest-tools-<ver>.exe – installs
– VirtIO-serial driver
– QEMU Guest Agent
– SPICE Guest Agent
- Reboot the VM once.
C. Sending files – every day use
• Host → Guest
virt-manager console window → File ▸ Send File… → pick a file.
It is transferred over the SPICE channel and appears inside Windows under
C:\Users\<you>\Downloads\.
• Guest → Host
Either
– Select the file in Windows, press Ctrl +C, then in a host file manager press Ctrl + V, or
– Just drag the file from the VM window onto your host desktop (requires recent spice-gtk & virt-viewer ≥ 9).
Tip: Large files (>2 GB) are OK, but the copy is single-threaded; you can watch the progress bar in virt-manager’s status bar.
────────────────────────────────────────
2. Classic “network share” (Samba)
────────────────────────────────────────
Works even if you do NOT want the SPICE agent installed (e.g. a hardened VM).
A. Give the VM a virtual NIC that is bridged or NAT’ed (virt-manager default).
Make sure Windows gets an IP and can ping the host (10.0.2.2 on user-NAT).
B. On the Linux host make a share, e.g.
sudo dnf install samba
sudo mkdir -p /vmshare
sudo chown $USER /vmshare
echo '[vmshare]
path = /vmshare
read only = no
guest ok = yes' | sudo tee -a /etc/samba/smb.conf
sudo systemctl restart smb
C. Inside Windows → File Explorer → Map network drive
Folder: \\<host-ip>\vmshare (e.g. \\10.0.2.2\vmshare if using user-NAT)
Tick “Reconnect at sign-in”.
Now copy files just like on any LAN share.
────────────────────────────────────────
Other possibilities (quick mentions)
────────────────────────────────────────
• virt-manager → “Add Hardware” → USB Redirection → plug a real USB stick in.
• Shutdown the VM and use virt-copy-in / virt-copy-out (libguestfs) for offline copies.
• Mount an ISO: genisoimage -o stuff.iso dir/ && virt-manager ▸ CD-ROM ▸ Browse.
• Experimental: virtio-fs (fast shared folder for Linux guests; Windows driver still WIP).
────────────────────────────────────────
Troubleshooting cheat-sheet
────────────────────────────────────────
• “Send File…” greyed out ⟶ the viewer is in VNC mode; switch to SPICE.
• File never appears in Windows ⟶ Spice Guest Agent not running; check Device Manager and Services (spice-vdagent).
• Copy/Paste works but Drag-&-Drop does not ⟶ need spice-gtk ≥ 0.40 & virt-viewer ≥ 9 on the host.
• Transfer aborts at 100 % with error “channel reset” ⟶ bug in old spice-gtk 0.39; update or use Samba.
That’s it—happy file slinging! 📨