Program7: Setting up a private cloud using open source tools (Eucalyptus/Open Stack
etc.).
    Prerequisites:
1. Hardware Requirements:
       Multiple physical servers with virtualization support.
       Network switches for communication between servers.
       Storage for virtual machine images.
2. Software Requirements:
       Linux distribution (e.g., Ubuntu Server) for each server.
       OpenStack distribution (e.g., DevStack for testing or a more production-ready
        distribution like Packstack or RDO).
    Installation Steps:
    1. Set Up the Environment:
   Install a supported Linux distribution on each server.
   Ensure each server has a static IP address and is reachable from each other.
    2. Install Database Server:
   Install and configure a database server (e.g., MariaDB) on one of the servers.
   Create databases and users required by OpenStack services.
    3. Install Message Queue Service:
   Install and configure a message queue service (e.g., RabbitMQ) on one of the servers.
    4. Install Identity Service (Keystone):
   Install and configure Keystone on one of the servers.
   Set up tenants, users, and roles.
    5. Install Image Service (Glance):
   Install and configure Glance on one of the servers.
   Create and configure image storage.
    6. Install Compute Service (Nova):
   Install and configure Nova on one or more servers.
   Configure networking for instances.
    7. Install Networking Service (Neutron):
   Install and configure Neutron on one or more servers.
   Set up networking, routers, and security groups.
    8. Install Dashboard (Horizon):
   Install and configure Horizon on one of the servers.
   Access the dashboard through a web browser.
    9. Install Block Storage Service (Cinder):
   Install and configure Cinder on one or more servers.
   Configure storage backends.
    10. Install Object Storage Service (Swift):
   Install and configure Swift if object storage is required.
    11. Finalize Configuration:
   Ensure all services are configured correctly and communicate with each other.
   Test the setup by launching instances through the dashboard.
Figure 1: Installation
Once you download the ISO file, install the operating system. It is pretty
self-explanatory. You need to just follow the steps, and choose CentOS 6
with Eucalyptus Cloud-in-a-box.
Once the installation is done, you can create the VM. While installing the OS,
note the user name and password. Restart the machine once the installation
is done and log into it.
Figure 2: Log in
Now choose the Eucalyptus user control from the desktop, and use the login
details that were obtained while installing the Eucalyptus image (as shown in
Figure 2 and Figure 3).
Figure 3: Desktop screen
Then your screen will look like what’s shown in Figure 4, just as it appears in
Amazon Cloud Services. You can now use your private cloud as a service.
Figure 4: Log in to Eucalyptus
Figure 5: Eucalyptus home page
                          Figure 6: Creating an instance
Now you can create a VM as shown in Figure 6. Then SSH into the machine
as shown in Figure 7 and carry on any activity as if it is an independent
computer. As an example, Figure 8 shows how to create a file in the virtual
machine we built.
                              Figure 7: SSH into created instance
Figure 8: Creating a file in the created instance