diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm index 648c51ae..42231dab 100755 --- a/PVE/QMPClient.pm +++ b/PVE/QMPClient.pm @@ -228,8 +228,12 @@ sub queue_execute { eval { my $fh = &$open_connection($self, $vmid, $timeout); - my $cmd = { execute => 'qmp_capabilities', arguments => {} }; - unshift @{$self->{queue}->{$vmid}}, $cmd; + + if(!$self->{qga}){ + my $cmd = { execute => 'qmp_capabilities', arguments => {} }; + unshift @{$self->{queue}->{$vmid}}, $cmd; + } + $self->{mux}->set_timeout($fh, $timeout); }; if (my $err = $@) {