KVM Mouse Integration

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.

This entry was posted in Linux. Bookmark the permalink.

5 Responses to KVM Mouse Integration

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

  2. Pingback: linkfeedr » Blog Archive » Bodhi.Zazen: KVM Mouse Integration - RSS Indexer (beta)

  3. bodhi.zazen says:

    Type, it is fixed now. Enjoy ;)

  4. Racecar56 says:

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

  5. bodhi.zazen says:

    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 :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>