Skip to content

Linux guest under KVM

Henryk Paluch edited this page Apr 12, 2021 · 9 revisions

Linux Guest under KVM

I use:

  • Host OS openSUSE 15.2 LEAP
  • Random guests including Linux guests with virt-manager/virt-viewer

Clipboard not working

Mandatory requirements:

  • must have Spice-vdagent installed and running. Using for example:
sudo apt-get install spice-vdagent
sudo systemctl enable spice-vdagentd

But it is FAR from emough. You must also have configured RedHat spice device:

  • in your Virt-Manager
  • click on "Add Hardware"
  • click on "Channel" Device - ensure that Name is keep com.redhat.spice.0
  • save changes

Now poweroff and power on your Guest. Login to your guest and verify, that this device exists:

ls -l /dev/virtio-ports/
lrwxrwxrwx 1 root root 11 Apr 12 16:17 com.redhat.spice.0 -> ../vport2p1

If there is no /dev/virtio-ports/com.redhat.spice.0 then your Guest VM configuration failed for some reason.

If there exist /dev/virtio-ports then your clipboard should really start working...

Clone this wiki locally