Maybe also fail test if loop_counter gets to high? i.e. if there's a problem operating on the VMs, and they just return quickly.  Maybe <code>if loop_counter > len(vms) * 1000: raise TestFail</code>