Getting two way clipboard between host and guest with virt-manager and Spice


Host

host $ su -
host # pacman -S virt-manager

On the settings page for your virtual machine, ensure that you have a channel for Spice (I got this automatically with the Arch virt-manager package):

Device type: spicevmc
Target type: virtio
Target name: com.redhat.spice.0

Guest

host  $ ssh guest
guest $ su -
guest # apt-get install spice-vdagent
guest # systemctl enable spice-vdagent
guest # systemctl start spice-vdagent

Two way clipboard

That's it. I can now copy text from Firefox running in the virtual machine and paste it into Chrome running on my host machine.


Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@emacs.ch ~ 🐦 @torsteinkrause