KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

Copy and paste between VM and host

4 replies [Last post]
nicku
Offline
Joined: Jul 3 2010
Points: 5

I am keen to hear how people set up their VMs so that they can easily copy and paste between the VM and the host.

I am running F13, and the VM is Windows XP.

nicku
Offline
Joined: Jul 3 2010
Points: 5
Using rdesktop gets me most of the way there

Okay, I have remote desktop enabled in the Windows guest, and using
rdesktop in the Fedora host, I can copy and paste between them. This
has the additional benefit of being able to have the guest desktop
matching the size of the host desktop; I can do:
rdesktop -g1920x1200 ip_address_of_guest

However, this just works for Windows. How do people solve this
problem for all guest operating systems? What is the best practice?

jserink
Offline
Joined: Sep 10 2009
Points: 12
Cutting and pasting

Hi:

Here is my script for starting my VM:
export SDL_VIDEO_X11_DGAMOUSE=0
export QEMU_AUDIO_DRV=alsa
kvm -boot c -hda /home/jserink/winxp1.img -cdrom /home/jserink/CDs/winxp.iso -m 1512 -net nic,vlan=0,model=virtio -net user -localtime -soundhw es1370 -no-quit -vga cirrus &
/home/jserink/qgt-2005-03-02-19/host-linux 127.0.0.1 > /dev/null 2>&1 &

I use host-linux to enable copy and past (text only) between my VM running XP and linux. Works great.
host-linux comes from the Qemu-Guest-Tools, QGT. its very dated, from 1995 but works great. You get the windows executable and the linux source, build it and away you go.
Its available here:
http://wolfpackally.wo.funpic.de/qemu/qgt/

It looks abandoned but it works fine.

Cheers,
john

tudor (not verified)
Hello ! People, I had the

Hello !

People, I had the same issue and I just used SSH to connect to virtual machine the copy/pasting is bliss !

......well at least for command line stuff, otherwise, use some sort of desktop forwarding, maybe that works, I don't know about it surely, though, I don't forward desktops very much lately but it should do.

Thank you, thank you...!

Anonymous (not verified)
text copy and paste

Hi there,

If the computers are online, you can easily copy texts using
http://dontpad.com

For example, use the url
http://dontpad.com/KVMcopy

cheers,
Rodrigo de Toledo

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.