Adding wait till vm is up in mx cases

Change-Id: Iface557165dd81b8847ac3083d5f9cbd15346c54
Merge "Adding wait till vm is up in mx cases"