How to install virtualmin on amazon EC2


I have created an EC2 instance on Amazon with Centos 6.5, I want to install virtualmin here but normal installation not working, I think its dependency problem. can anyone please help me how to install virtualmin and change root password.