I have a QEMU/KVM virtual machine created with Virtual Machine Manager.

I would like to be able to copy text on the host and paste it into the guest, and the other way around too.

How can I share the clipboard between the host and the guest?


The solution is simple. Just install the package spice-vdagent in the guest virtual machine:

sudo apt install spice-vdagent

The clipboard is automatically shared - we can copy and paste between the host and the guest.

  • Is there something similar to spice-vdagent for Windows guests (on Linux hosts)? – Bengt Olsson Mar 13 '17 at 14:50
  • 2
  • 1
    sipmply you can connect with guest(kvm) through ssh and on the host's terminal you have clipboard available. – imdzeeshan Nov 1 '17 at 13:31
  • 1
    @MUYBelgium For windows guest, try use this. For more information, visit here for the Windows binaries section. – Kong Chun Ho Jun 15 '18 at 19:09
  • 2
    had to reboot guest to be able to make it work – Philippe Gachoud Feb 20 at 18:55

For my Linux Mint 18.2 Sonya machine timelf123 provided the answer:

  • In my Windows guest (Windows 7) downloaded and installed spice-guest-tools-latest.exe.
  • Before That, back in my QEMU/KVM Virtual Machine Manager I had to switch the guest machine's display to Spice.
  • Before That, back in my Linux host I had to fire up Synaptic Package Manager and install gir1.2-spice-client-gtk-3.0.
  • 1
    Sorry. It's all right here. "“timelf123's link” is a reference his (timelf123's) comment on the preceding answer. I see that's not clear. In hindsight perhaps I should have commented rather than answered. – ScottWelker Oct 11 '18 at 20:17
  • 1
    Thank you for the clarification! I included the links directly to your answer to make it clearer. – Melebius Oct 12 '18 at 6:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.