Restart VM to clear network leftovers

This commit is contained in:
Cole Deck 2024-08-20 09:18:04 -05:00
parent f04a2a4bd4
commit 86971e0db4

6
run.py
View File

@ -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()