From 4118c54d9c81b3bfe2b475f5124f329c985d9f5f Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Wed, 8 Feb 2012 12:54:41 -0500 Subject: Syncs vncviewer mouse cursor when connected to Windows VMs Fixes bug#885966 Change-Id: Ie78ab1fc265dda61ceb5553e3156d08902115a65 --- nova/virt/libvirt.xml.template | 3 +++ nova/virt/libvirt/connection.py | 3 +++ 2 files changed, 6 insertions(+) (limited to 'nova') diff --git a/nova/virt/libvirt.xml.template b/nova/virt/libvirt.xml.template index 92f04facb..282e0d5a5 100644 --- a/nova/virt/libvirt.xml.template +++ b/nova/virt/libvirt.xml.template @@ -166,6 +166,9 @@ +#if $getVar('use_usb_tablet', True) + +#end if #if $getVar('vncserver_listen', False) diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py index c3bfdedda..51f2040ff 100644 --- a/nova/virt/libvirt/connection.py +++ b/nova/virt/libvirt/connection.py @@ -100,6 +100,9 @@ libvirt_opts = [ default='', help='Override the default libvirt URI ' '(which is dependent on libvirt_type)'), + cfg.BoolOpt('use_usb_tablet', + default=True, + help='Sync virtual and real mouse cursors in Windows VMs'), cfg.StrOpt('cpuinfo_xml_template', default=utils.abspath('virt/cpuinfo.xml.template'), help='CpuInfo XML Template (Used only live migration now)'), -- cgit