How To Create Your Own Private Cloud?: Let's Implement
How To Create Your Own Private Cloud?: Let's Implement
How To Create Your Own Private Cloud?: Let's Implement
Let's Implement
You need at least two servers for deploying the Ubuntu Cloud. One (Machine A) would act as
the cloud, cluster, warehouse, and storage controller; while the other (Machine B) would be
the node controller. One thing to keep in mind is that the node controller should support
virtualization as virtual machines would be running on it.
By default a single virtual machine would run per core, therefore having a multi-core node
controller is highly recommended. We configured Machine A on a Core2duo X6800 processor
based machine with 2 GB DDR 2 RAM and 80 GB HDD. Machine B was running on an AMD
Phenome II X4 965 processor with 4 GB DDR 3 RAM and 250 GB HDD.
You can install sample images plus create users using the web interface
of the cloud controller. For this, login as using 'admin' as both username
and password.
Credentials of users can be taken either from a web browser or from the
command line. Just visit the IP address of your cloud controller and go to
'Credentials' tab.
?
Click on the 'Region'. This would pop up a window named 'Manage EC2
Regions'. Enter region name and the IP address
'http://192.168.2.10:8773/services/Eucalyptus'.
Click on 'Credentials' tab on the top; this would pop up 'Manage EC2
Credentials' window. Get value of 'AWS Access Key' and 'AWS Secret Access
Key' from 'http://192.168.2.10'.
The other way of achieving credentials is by running the following commands on the cloud
controller:
mkdir -p ~/.euca
chmod 700 ~/.euca
cd ~/.euca
sudo euca_conf --get-credentials mycreds.zip
unzip mycreds.zip
ln -s ~/.euca/eucarc ~/.eucarc
cd ?
To use your credentials, install the required cloud user tools as follows:
sudo apt-get install euca2ools
And to check if everything is running properly
. ~/.euca/eucarc
euca-describe-availability-zones verbose
Installing and running an image
We have created our infrastructure. Now we show you how to run applications on top of this.
You can either create your own image or get the sample images from the image store on web
interface. Simply access Machine A from a web browser by typing its IP address, and login as
admin. From this interface, click on 'Store' and then click on 'Search'. Now simply click on
install button presented in front of the available images. Once installed, the image would
show 'How to run?' link in front of it. This link displays commands to run the pre-installed
image. All installed images can be seen under the Images tab.
Get all the installed images under 'Images' tab. Select the listed
instance and click on 'Start Instances (s)' on the top. This would imitate
instance and assign Elastic IP to it.