2

I run a headless server that uses qemu + kvm to run a few VMs, and I manage them with virsh + xml file definitions. Because this a remote / headless system, I set the graphics as VNC, and then with ssh port forwarding, I can use TightVNC / RealVNC to view the desktop of the VM. However, copy and paste to and from the VMs (mostly want to paste to a VM) does not work.

I've tried looking around for a solution but I haven't found one with VNC as the graphics option. Is this possible to get working?

Thank you for any advice.

Mark Theis
  • 21
  • 1
  • 2

1 Answers1

0

This is not currently possible because the VNC server built into Qemu needs to convert the clipboard contents to keystrokes, and emulate pressing them on the machine.

You can ask someone to add this functionality here: https://github.com/qemu/qemu/blob/master/ui/vnc.c

Qemu already has a sendkey command, so the functionality you need to add is similar to this: https://gist.github.com/mvidner/8939289