KVM Mouse Integration

April 27th, 2009 by bodhi.zazen

KVM (kvm-qemu or Kernel Virtual Machine) Mouse Integration

KVM Home Page

KVM is an opensource alternative to VMWare or Virtualbox and I am finding I am using it more an more. One small annoyance has been the lack of “Mouse Integration”

During a recent IRC discussion of KVM, Rocket2DMn asked me if I knew anything about mouse integration on KVM as it seemed he had one guest with mouse integration.

Further investigation into his and google search (reading the kvm-qemu man page showed that mouse integration is indeed possible using the option “usbdevice tablet”.

If you are running KVM from the command line, simply add the option :

kvm -hda ubuntu.qcow2 -m 512 -usbdevice tablet

Alternately if you are using virt-manager, first stop your guest, then add edit your guest xml file adding a line for mouse integration.

< input type='tablet' bus='usb'/>

Note : I had to add a space at the front of the “< input type='tablet' bus='usb'/>” tag, remove it or you will get error messages.

Into your guest’s xml config file.

After manually editing your xml file, you need to restart libvirt

sudo /etc/init.d/libvirt-bin restart

Then restart your guest.

StumbleUpon

Posted in Linux

5 Comments »

  1. Is it really spelled “udbdevice” in the XML file, or is that a typo?

    Comment by Marius Gedminas — April 27, 2009 @ 1:34 am

  2. [...] Bodhi.Zazen: KVM Mouse Integration VA:F [1.1.7_509]please wait…Rating: 0.0/5 (0 votes cast) This article was found on Planet Ubuntu. Click here to visit the full article on the original website. [...]

    Pingback by linkfeedr » Blog Archive » Bodhi.Zazen: KVM Mouse Integration - RSS Indexer (beta) — April 27, 2009 @ 2:23 am

  3. Type, it is fixed now. Enjoy ;)

    Comment by bodhi.zazen — April 27, 2009 @ 9:05 am

  4. Is there a way to convert virtualbox HDD’s into kvm/qemu HDD’s?

    Comment by Racecar56 — April 27, 2009 @ 10:43 am

  5. This is a common question and it is easy to convert.

    Since I am often asked , I threw up a new blog

    http://blog.bodhizazen.net/linux/convert-virtualbox-vdi-to-kvm-qcow/

    HTH :)

    Comment by bodhi.zazen — April 27, 2009 @ 12:24 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment