Anyone know how to get Virtual Manager to install copy-paste functionality to the Virtual Machine?

Can't find anything on Google.


You have to use "Spice" instead of "VNC" :

  1. No more need to install spice-gtk : virt-manager has now a spice-gtk client built-in. But you need to install python-spice-client-gtk (spice-client-gtk on debian) on the vm host (if you use virt-manager on another machine to connect to the vm host remotely through ssh, you must also install python-spice-client-gtk on that machine)
  2. Start virt-manager
  3. Select you virtual machine
  4. Power on the virtual machine
  5. Connect to your guest with ssh ; in the guest, install spice-vdagent and verify that spice-vdagentd is launched (ps -lef|grep spice-vdagentd will return you the process if its running)
  6. Show virtual hardware details
  7. Select Display VNC and change VNC to Spice and accept to add the Channel
  8. Change the Video model from Cirrus (the default) to QXL
  9. Restart virt-manager and power on the virtual machine

You are using Spice.

Another solution, without X, but assuming that you are able to ssh to your host from your machine, and to your vm from your host :

  1. mymachine:~$ssh user@host
  2. host:~$ssh user@guest
|improve this answer|||||
  • Should install these packages on a machine which virt-manager was installed on it? Or exactly on Host? – shgnInc May 12 '14 at 9:19
  • There is no more need to install spice-gtk. I have changed the answer. – Guillaume Vauvert May 12 '14 at 10:29
  • 1
    Actually it seems that once you install spice-vdagent in guest, there's no need to restart virt-manager nor the guest to use clipboard sharing. It's enough to logout and then login back in the guest. – gerlos Nov 8 '17 at 20:39

You need to install Spice guest agent into the guest:

Check "Guest" part of Spice downloads section: https://www.spice-space.org/download.html

|improve this answer|||||
  • 3
    For Windows guest, in addition to installing spice-guest-tools, I needed to do the following in virt-manager: Add Hardware -> Channel, set name to "com.redhat.spice.0" (or similar), set device type as "Spice agent (spicevmc)". I found this info from this reddit post after searching for a long time: reddit.com/r/linux/comments/asw4wk/… – jackkamm Jun 11 '19 at 15:38

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.