Added checks to see whether VM is up and running