Added function to return the next vm id of the cluster.