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
CompuMatter
Jay LeporeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
0
dipopoCommented:
Please use Spice and qxl should work.

See how to integrate below:

http://www.linux-kvm.org/page/SPICE
0
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.