I have a Debian 9 KVM host runs on a dedicated server. I use virt-manager on my laptop (Ubuntu 16.04) to connect it remotely. Everything works quite well except copy/paste actions between VM's SPICE display(the one embedded in virt-manager) and my laptop's Ubuntu.
All packages are from official repositories. No PPA or 3rd party repository involved.
Also tried VNC instead of Spice but that didn't work too.
I just got an idea that I may connect through RDP to a VM machine, but it's painfully process because of all firewalls and routes between my laptop and the machine. Also not all of my machines has WAN access.
Looking for easier solution on virt-manager.
Для тех, кто ищет ответ, вам нужно добавить в файл XML этот
<devices>
<controller type='virtio-serial' index='0'/>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
</channel>
</devices>
и установить гостя, пакет debian называется spice-vdagent
и перезагрузите виртуальную машину
Docs:https://www.spice-space.org/spice-user-manual.html#agent