fix tablet mice as default when live migrate

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
This commit is contained in:
Derumier Alexandre 2012-02-27 13:45:01 +01:00 committed by Dietmar Maurer
parent b969cc68fd
commit ce332eeb58

View File

@ -2493,6 +2493,11 @@ sub vm_start {
} }
vm_balloonset($vmid, $conf->{balloon}) if $conf->{balloon}; 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
}); });
} }