From 1054218f4b9a5985aa769104f83f483f7fdfe771 Mon Sep 17 00:00:00 2001 From: "Lasota, Adrian" Date: Thu, 26 Feb 2026 13:00:32 +0100 Subject: [PATCH] fix: Enhance RPyCConnection with retry parameters for improved VM connection stability Signed-off-by: Lasota, Adrian --- mfd_hyperv/instances/vm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mfd_hyperv/instances/vm.py b/mfd_hyperv/instances/vm.py index 22e7ce7..ba7a668 100644 --- a/mfd_hyperv/instances/vm.py +++ b/mfd_hyperv/instances/vm.py @@ -96,7 +96,9 @@ def start(self, timeout: int = 300) -> None: """ self.hyperv.hypervisor.start_vm(self.name) self.hyperv.hypervisor.wait_vm_functional(self.name, self.mng_ip, timeout) - self.connection = RPyCConnection(self.mng_ip, connection_timeout=self.connection_timeout) + self.connection = RPyCConnection( + self.mng_ip, connection_timeout=self.connection_timeout, retry_timeout=timeout, retry_time=10 + ) def stop(self, timeout: int = 300) -> None: """Stop VM from host (hypervisor).