You are on page 1of 8

org www. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v. Vancouver Canada krabah@globalopenversity. Adding and Deleting Users Part 3: How to launch a VM Step 1: Configure VM 1. Vancouver Canada 3 3 3 4 4 4 5 5 5 6 7 8 10 11 12 12 12 12 14 16 16 17 17 19 19 19 20 1 www. Kefa Rabah. Step 1: Downloading the pre-configured VM Step 2: Preparing the Network Step 3: Modifying the template Part 5: Need More Training on Windows OpenNebula Cloud Computing Training Linux Administration Training Part 6: Hands-on Labs Assignments April 2007.globalopenversity. Global Open Versity.1. BUILD & DEPLOY A PRIVATE CLOUD USING OPENNEBULA CLOUD COMPUTING Introduction Hands-On Labs Session Part 1: Pre-Requisite Step 1: Check OpenNebula Package Step 2: Configure Network Interfaces and Hostnames Part 2: Install OpenNebula Cloud Step 1: Front-end installation Step 2: install the Cluster Nodes Step 3: Copy Oneadmin SSH Keys Step 4: Create Directory to Store Images on the Front-End Step 5: Configuration Step 6: Start & Stop OpenNebula Step 7: OpenNebula Users 1. Create the Virtual Network 2.Global Open Versity.2 Global Open Versity Cloud Computing Hands-on Labs Training Manual Build & Deploy a Private cloud using OpenNebula Cloud Computing Kefa Rabah Global Open Versity.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing .org Table of Contents Page No.globalopenversity. Create the Virtual Machine Part 4: A VM with Context & Network 1.

org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing . Kefa Rabah.globalopenversity.2 A GOV Open Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century 2 April 2007.Global Open Versity. Vancouver Canada www. Global Open Versity.1. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v.

or licensing new software. it is elastic -.org Aug 05. have accelerated interest in cloud computing. Public cloud supporting EC2 Query. 2010 GTI Institute Introduction OpenNebula is currently the leading and most advanced framework for cloud computing. The name cloud computing was inspired by the cloud symbol that's often used to represent the Internet in flowcharts and diagrams. however.1. Kefa Rabah. training new personnel. Platform-asa-Service (PaaS) and Software-as-a-Service (SaaS). you will learn to setup your own private cloud with Ubuntu 10.04 LTS and OpenNebula . Global Open Versity. extends IT's existing capabilities. and other providers through Deltacloud (from ecosystem). It’s extremely easy to set setup be running. The entire hands-on lab was done using VMware. Upon completion of this hands-on lab session you should have gained expertise and skills to plan design implement and deploy your own private cloud using OpenNebula Cloud computing on Linux Ubuntu 10.2 Global Open Versity Cloud Computing Hands-on Labs Training Manual Build & Deploy a Private Cloud using OpenNebula Cloud Computing By Kefa Rabah.… and much more. Furthermore. krabah@globalopenversity. These services are broadly divided into three categories: Infrastructure-as-a-Service (IaaS). A cloud service has three distinct characteristics that differentiate it from traditional hosting. typically by the minute or the hour. We assume that your infrastructure follows a classical cluster-like architecture. Hybrid cloud with Amazon EC2 and ElasticHosts. Cloud computing encompasses any subscription-based or pay-per-use service that. as well as improved access to high-speed Internet and a weak economy. Hands-On Labs Session In this Hands-on manual. Linux Xen.a user can have as much or as little of a service as they want at any given time. KVM and VMware. or VirtualBox from Oracle. extensible and with excellent performance and scalability to manage tens of thousands of VMs: Private cloud with Xen. in real time over the Internet. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing . Cloud computing comes into focus only when you think about what IT always needs: a way to increase capacity or add capabilities on the fly without investing in new infrastructure.Global Open Versity. 3 April 2007. and the service is fully managed by the provider (the consumer needs nothing but a personal computer and Internet access). Significant innovations in virtualization and distributed computing. Cloud computing is a general term for anything that involves delivering hosted services over the Internet.globalopenversity. and a set of cluster nodes (node01. Vancouver Canada www.04 LTS server. you can also use any other virtual machines like MS VirtualPC. OGF OCCI and vCloud (from ecosystem) APIs. node02 etc). It is sold on demand. with a frontend (cluster controller cluster01. its flexible.

Part 1: Pre-Requisite Step 1: Check OpenNebula Package 1.govoncloud. 2.22 . if not go ahead and pop over to scribd. It’s also assumed that you know how to install and configure Ubuntu Linux server. Kefa Rabah.govoncloud. Vancouver Canada www.168.OpenNebula node 3. e. set hostname & IP address as follows (change as desired!) 192. First you’ll need to check if the OpenNebula packages exist in your Ubuntu distro.OpenNebula common files opennebula-node . set network interfaces with static IP address and hostnames. You’re done with this section.. If everything is set up correctly you could see the OpenNebula packages: $ apt-cache search opennebula libopennebula-dev ..21 krabah@cluster01: ~$ ping node01.21 192.83.globalopenversity.2 Assumptions: 1.83.com 3.04 LTS (Lucid Lynx) Server” to get you started.Runtime opennebula .OpenNebula client library .org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing .Development libopennebula1 .168.OpenNebula controller opennebula-common .com cluster01 node01.com node01 node02. Ensure you have tested your connectivity between machines using ping command via IP address and hostnames.govoncloud.168.20 192. then we are good to go! Step 2: Configure Network Interfaces and Hostnames On each machine. 1. 4 April 2007.1.com and check out a good hands-on manual entitled “Step-By-Step Install Guide Ubuntu 10.com node02 2. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v.83.Global Open Versity.govoncloud. It’s assumed that you have a good understanding of Linux operating system and its working environment. On cluster controller and nodes.OpenNebula client library .g. from cluster01.. Global Open Versity.168. cluster01. ping node01 and vise versa: krabah@cluster01: ~$ ping 192. If all is OK.83.

Cloud Computing Labs Building a Private OpenNebula Cloud Computing v. Step 2: install the Cluster Nodes 1. Global Open Versity.globalopenversity. generates a rsa key pair. issue the following command: $ sudo apt-get install opennebula Note: In order to copy SSH keys. 1 Note: In order to copy SSH keys. the oneadmin user will need to have a password.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing . issue the command set the password: sudo passwd oneadmin 2. and starts the OpenNebula daemon: 1. the oneadmin user will need to have a password. Fig. To install opennebula package. [Cluster Nodes (node01. Kefa Rabah. therefore. During installation the apt-get command performs several configuration steps: creates a oneadmin account.)] On each computer install the OpenNebula Node package: sudo apt-get install opennebula-node 3. On each machine execute: sudo passwd oneadmin 2. 1.1. 5 April 2007. You’re done with this section.node02 etc. Vancouver Canada www.2 Part 2: Install OpenNebula Cloud Step 1: Front-end installation [Front-end (cluster01)] Install the opennebula package.Global Open Versity. When done you should see the info as shown in Fig. You’re done with this section.

ssh/id_rsa. copy the oneadmin user's SSH key to the Compute Nodes.ssh/authorized_keys sudo scp /var/lib/one/.Global Open Versity. Kefa Rabah.ssh/authorized_keys sudo sh -c "cat /var/lib/one/. and to the Front-End's authorized_keys file: sudo scp /var/lib/one/.2 Step 3: Copy Oneadmin SSH Keys 1.pub >> /var/lib/one/. Global Open Versity.globalopenversity. Vancouver Canada www.pub oneadmin@node02:/var/lib/one/. Note: repeat the same to all other cluster nodes! 6 April 2007. From the Front-End: Now. let’s ssh to cluster node01 with username krabah. as shown in Fig. To accomplish this ssh to each Computer Node as a user other than oneadmin: For example. 2: Login to the node1 from cluster01.ssh/id_rsa.1.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing .pub oneadmin@node01:/var/lib/one/.ssh/authorized_keys" 2. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v. 2: sudo –u krabah ssh node01 Fig. The SSH key for the Computer Nodes needs to be added to the /etc/ssh/ssh_known_hosts file on the Front-End host.ssh/id_rsa.

You’re done with this section For full access to the hands-on training manual – Join our VCC301 Course OpenNebula Cloud Computing Training You can now register and take our superb OpenNebula Cloud Computing Training course: • VCC301 – Building Private Clouds with OpenNebula Cloud Computing Contact us today: Email: info@globalopenversity. Step 4: Create Directory to Store Images on the Front-End 1. type exit. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v. a place to enhance your educating and career goals using the latest innovations and technologies. Finally. You’re done with this section. On the Front-End create a directory to store the VM images. This allows the oneadmin to use scp. and then execute the following to copy the SSH key from ~/. giving the oneadmin user access to the directory: sudo mkdir /var/lib/one/images sudo chown oneadmin /var/lib/one/images/ 2. You can create an Ubuntu virtual machine using vmbuilder. Kefa is knowledgeable in several fields of Science & Technology. you’ll need to copy a virtual machine disk file into "/var/lib/one/images".globalopenversity. without a password or manual intervention. 3.ssh/known_hosts -F node02 1>> /etc/ssh/ssh_known_hosts" Note: Replace node01 and node02 with your own hostnames if different. 4.org Fellow us on Twitter: Global Open Versity and Kefa Rabah ----------------------------------------------Kefa Rabah is the Founder of Global Technology Solutions Institute.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing .org URL: www. Vancouver Canada www. Kefa Rabah.ssh/known_hosts -F node01 1>> /etc/ssh/ssh_known_hosts" sudo sh -c "ssh-keygen -f .2 3.1. and Renewable Energy Systems. Information Security Compliance and Project Management.Global Open Versity. He is also the founder of Global Open Versity.ssh/known_hosts to /etc/ssh/ssh_known_hosts: sudo sh -c "ssh-keygen -f . Global Open Versity. Then exit from the SSH session.globalopenversity. to deploy an image to the Computer Nodes. 7 April 2007.