[pve-devel] [PATCH qemu-server 4/5] cli: qm: increase timeout for monitor commands to 30 seconds

Fiona Ebner f.ebner at proxmox.com
Fri May 3 13:19:53 CEST 2024


The default timeout is 5 seconds, but some HMP commands (e.g.
disk-related ones) might take longer than that. It's still an
interactive session, so use 30 seconds for now. Should there be any
user-complains about frequent timeouts, it could still be increased
further.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 PVE/CLI/qm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
index b105830f..d3dbf7b4 100755
--- a/PVE/CLI/qm.pm
+++ b/PVE/CLI/qm.pm
@@ -512,7 +512,7 @@ __PACKAGE__->register_method ({
 	    next if $input =~ m/^\s*$/;
 	    last if $input =~ m/^\s*q(uit)?\s*$/;
 
-	    eval { print PVE::QemuServer::Monitor::hmp_cmd($vmid, $input) };
+	    eval { print PVE::QemuServer::Monitor::hmp_cmd($vmid, $input, 30) };
 	    print "ERROR: $@" if $@;
 	}
 
-- 
2.39.2





More information about the pve-devel mailing list