[pve-devel] [PATCH 1/1] fix tablet mice as default when live migrate

Derumier Alexandre aderumier at odiso.com
Mon Feb 27 13:45:01 CET 2012


Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index e1436d2..4988685 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2494,6 +2494,11 @@ sub vm_start {
 	}
 
 	vm_balloonset($vmid, $conf->{balloon}) if $conf->{balloon};
+
+	my $tablet = defined($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
+	PVE::QemuServer::vm_monitor_command($vmid, "mouse_set 1", 0) if $tablet; #ensure usb tablet is activated
+
+
     });
 }
 
-- 
1.7.2.5




More information about the pve-devel mailing list