From ce332eeb583e73a2f284d0a0a5e4d6330c250a53 Mon Sep 17 00:00:00 2001 From: Derumier Alexandre Date: Mon, 27 Feb 2012 13:45:01 +0100 Subject: [PATCH] fix tablet mice as default when live migrate Signed-off-by: Derumier Alexandre --- PVE/QemuServer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 2a406222..0501343f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2493,6 +2493,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 + + }); }