« Previous 1 2 3
Your own AWS-compatible cloud with Eucalyptus
Cloud in a Box
Key Exchange
To maintain the virtual machine later on, you will need to log on to the machine via SSH. Authentication is handled by a key pair – if you have ever worked with SSH, you will be familiar with the principle. To generate the key pair, click on the green link Create new key pair
and enter a name, such as test
. Create and Download
generates the key pair and offers to download the private key in the test.pem
file in this example. Eucalyptus keeps the public key. In the Key name
drop-down box, select the previously assigned key name (test
, in this example). It may take some time for the matching entry to appear.
Launch instance(s) now finally lets you start the virtual machine. However, the virtual machine takes a little while to get on its feet and appear in the list (Figure 10). Clicking on the (green) cryptic names in the Instance column displays a register with more information. The Public IP column tells you the IP address on which the virtual machine can be reached using SSH, and the Private IP column is used for communication between the virtual machines.
If the list still shows you the IP addresses as 0.0.0.0 , some troubleshooting needs to be done. Before you can log in to the virtual machine via SSH, you need to restrict the access rights to the file containing the private key, for example, by typing:
chmod 0600 test.pem
Next, you can log in to the virtual machine with the SSH command
ssh -i test.pem ec2-user@192.168.100.100
where test.pem
stands for the file containing the private key, and the address 192.168.100.100
is the Public IP
of the virtual machine (Figure 11). The user ec2-user
already exists in the mini CentOS system; otherwise, the root username should do the trick.
To stop the virtual machine in the web interface, uncheck the little box in the first column and then select the desired action below More actions , which is Terminate in this case.
Future
The default user account is only suitable for your first steps. To delete it and set up other users who can start virtual machines with their own accounts, you need to access the Admin Console. It can be reached on https://<frontend-computer>:8448 . Again, you need to add the certificate as an exception. Log in with the eucalyptus account, a username of admin , and a password of admin . A wizard prompts you to enter an email address and change the password for security reasons; then, you can manage your user accounts under Accounts .
For more details of using the two web interfaces, check out the Eucalyptus Console User Guide [4]. If you want to store your own operating system images in the cloud, you will need to study the extremely comprehensive Administration Guide. These guides also explain how to assign the virtual machines to security groups, create Amazon-style availability groups, and provide cloud storage space.
Infos
- Eucalyptus: http://www.eucalyptus.com
- "Virtuelle Maschine in einer virtuellen Maschine betreiben" by Tim Schürmann, LinuxCommunity, 7/30/2013: http://www.linux-community.de/Archiv/Tipp-der-Woche/Virtuelle-Maschine-in-einer-virtuellen-Maschine-betreiben (in German)
- FastStart image download: http://www.eucalyptus.com/eucalyptus-cloud/get-started/try/faststart/download
- Console User Guide: http://www.eucalyptus.com/docs/eucalyptus/3.2/ug/
« Previous 1 2 3