Ubuntu – How to copy&paste from the host to a KVM guest

kvm

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?

Best Answer

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.

Related Question