Restart VM to clear network leftovers
This commit is contained in:
parent
f04a2a4bd4
commit
86971e0db4
6
run.py
6
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user