• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2482
  • Last Modified:

Paste into Virt-Manager / KVM

Just setup a Virtual Server in KVM Ubuntu and am viewing the VM using Cygwin from Windows and then running Virt-Manager from the host environment.

Fast and perfect.  However, can't paste anything from my windows machine.

Has anybody got a 1, 2, 3 on how to resolve this if it's resolvable.  I can always open a putty instance of course but it's easier to view my VM's in Virt-Manager

What sayeth the experts.

Jay Lepore
Jay Lepore
Jay Lepore
  • 2
1 Solution
Daniel HelgenbergerCommented:
What do you mean by paste?

You cannot paste someth. via the VNC connection to the running guest from virt-manager? This is normal and not supported. Use ssh to connect instead or, if this is a windows guest, RDP.

As for cygwin, remember it is not perfect and you may not be able to paste something into virt manager. You are free to use virsh from SSH connection.

If you are looking for a nice browser based management for libvirt, there are only a few. The best IMHO is Archipel witch takes a quite interesting approach by using ejabbert. It is fully-featured (only a few things missing on the hardware options) with a browser based (java) VNC console.
This not perfect and has a few bugs; but it is only the management interface and does not touch the hypervisor itself.
Please use Spice and qxl should work.

See how to integrate below:

Daniel HelgenbergerCommented:
Does spice work with well cygwin? I did not know that! Still I do not know if the problem is with cygwin or with VNC, for the following I assume the latter:

I haven't recommended Spice for a reason: It is not general purpose.

Explanation: Spice is a project to keep up with the better graphic emulation of VMware for instance; see VDI. Spice works great on Linux guests with recent kernels. There is also client for windows, a project called virt-viewer (formally spice viewer) with a MSI installer.

The problem are the Windows guests. There is a (somewhat) stable qxl driver for your Windows guests. Since it is a kernel mode driver, it needs to be signed by MSFT. But spice.org is open source, they never had the funding to get the driver probably signed (RedHat does this with its virtio drivers, but qxl is (still) no part of them).
To install them anyway you ether have to build them from source on Windows or use some prebuild drivers witch are often a bit older. These are build with a development certificate, requiring you to do some registry 'hacks' to get it installed. I always considered it as quite cumbersome, esp. if you often want to update; and even harmful on Windows.

IMHO, the best practice to connect to a guest is not via VNC or VirtManager but to use native clients. RDP for windows guests, and SSH/spice for Linux. In most cases you want to use a bridged network connection for guests, but if you emulate a NATed network set up port forwards with tables.

Use VNC is for emergencies only.
Tip: All of my Linux guests are servers anyway - so I do not even emulate a graphic card but a TTY only; this way you can reduce overhead, too.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now