Create the Virtual Machine Part 4: A VM with Context & Network 1.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.globalopenversity. 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. Cloud Computing Labs Building a Private OpenNebula Cloud Computing v.org www. Adding and Deleting Users Part 3: How to launch a VM Step 1: Configure VM 1.org VCC301 – Building a Private Cloud using OpenNebula Cloud Computing .Global Open Versity. 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.globalopenversity. 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.org Table of Contents Page No.1. Global Open Versity. Kefa Rabah. Vancouver Canada krabah@globalopenversity. Create the Virtual Network 2.

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

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

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

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

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

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