| Region | Location | Operating System | AMI |
|---|---|---|---|
| US East | Virginia | CentOS | ami-9129eff8 |
| US East | Virginia | Debian | ami-6735f30e |
| US West | California | CentOS | ami-1b0f525e |
| Europe | Ireland | CentOS | ami-bce1d1c8 |
| Southeast Asia | Singapore | CentOS | ami-503c4702 |
| Northeast Asia | Japan | CentOS | ami-d0b80dd1 |
Amazon's Elastic Computing Cloud (EC2) is a commercial service that provides virtual Linux systems running on Amazon's network, for which customers are charged by the hour. One of its useful features is the ability to launch a virtual system using a machine image (AMI) defined by another user, which could contain anything from a basic install of Linux up to a full application stack.
If you have an EC2 account, you can easily launch an image ( ami-9129eff8 ) containing Webmin, Virtualmin, Usermin and all the dependent programs like Apache, MySQL and Postfix, all running on CentOS. This lets you bring up a web hosting server in minutes, and either try out Virtualmin or start using it for real web hosting. The steps to do this are :
ec2-describe-images -o 541491349868
You should see at least one in the available state.
ec2-add-keypair vgpl-keypair >~/.ssh/id_rsa-vgpl-keypair chmod 700 ~/.ssh/id_rsa-vgpl-keypair
ec2-run-instances ami-9129eff8 -k vgpl-keypair
This will output the new instance ID, with is like i-10a64379
ec2-describe-instances
You will need to wait until it is in the running state. You will then be able to see the public hostname, which looks like ec2-72-44-33-55.z-2.compute-1.amazonaws.com .
ec2-authorize default -p 22 ec2-authorize default -p 25 ec2-authorize default -p 10000 ec2-authorize default -p 10001 ec2-authorize default -p 10002 ec2-authorize default -p 10003 ec2-authorize default -p 10004 ec2-authorize default -p 10005 ec2-authorize default -p 10006 ec2-authorize default -p 10007 ec2-authorize default -p 10008 ec2-authorize default -p 10009 ec2-authorize default -p 20000 ec2-authorize default -p 80 ec2-authorize default -p 443 ec2-authorize default -p 21 ec2-authorize default -p 20 ec2-authorize default -p 110 ec2-authorize default -p 143 ec2-authorize default -p 53 ec2-authorize default -p 53 -P udp
ssh -i ~/.ssh/id_rsa-vgpl-keypair root@ec2-WHATEVER.compute-1.amazonaws.com
EC2 now has a separate European region, which has it's own set of machines and AMIs. To launch the Virtualmin image in Europe, follow the instructions above but use the AMI ami-bce1d1c8 instead.
Also, you will need to set the EC2_URL environment variable before using the command-line tools, with a statement like :
export EC2_URL=https://eu-west-1.ec2.amazonaws.com
An EC2 image now exists for Virtualmin GPL on Debian 6.0 (Squeeze). The instructions for starting this are exactly the same as above, but the image ID is ami-6735f30e . So the command to start it would be :
ec2-run-instances ami-6735f30e -k vgpl-keypair