Root password for newly created Instances in cloud computing

When you create new instances and if you do not get the password for that instance to login you can simply reset the password for the root account                                           Restart the instance after resetting the password