From 86971e0db42e4e0f7c3cd4b3912d72a46372c74d Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Tue, 20 Aug 2024 09:18:04 -0500 Subject: [PATCH] Restart VM to clear network leftovers --- run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index f48057c..c2bede9 100755 --- a/run.py +++ b/run.py @@ -1172,8 +1172,8 @@ def setup_client(pool): global vm_ready global serverproc if config["core"]["server"] == "Hyper-V": - run_cmd("Start-VM -Name Jukebox*") # any and all VMs starting with "Jukebox" - + run_cmd("Restart-VM -Name Jukebox*") # any and all VMs starting with "Jukebox" + sleep(2) fprint("Waiting for VM to start...") while not ping("192.168.1.25"): sleep(0.25) @@ -1221,7 +1221,7 @@ def setup_client(pool): firefox.close() jb.terminate() - #run_cmd("Stop-VM -Name Jukebox*") + run_cmd("Stop-VM -Name Jukebox*") sleep(2) killall()