waiting for VM boot. (borrowed from vagrant virtualbox)