Step by Step Install Guide OpenQRM Data Center Management and Cloud Computing Platform
Step by Step Install Guide OpenQRM Data Center Management and Cloud Computing Platform
Step by Step Install Guide OpenQRM Data Center Management and Cloud Computing Platform
Step-By-Step Install Guide openQRM Data Center Management and Cloud Computing Platform
Kefa Rabah Global Open Versity, Vancouver Canada
krabah@globalopenversity.org
STEP-BY-STEP INSTALL GUIDE OPENQRM DATA CENTER MANAGEMENT AND CLOUD COMPUTING PLATFORM Introduction Hands on Lab Session Part 1: Install Prerequisites Step 1: Install DAGC Repo Step 2: Install Zabbex Step 3: Install ASH Part 2: openQRM can be installed using yum. Step 1; Install openQRM-Server Step 2: openQRM-Server Layout Step 3: openQRM Plugins Layout Step 4: Activate DHCP, TFTP, Storage Plugins Part 3: Using openQRM Server Part 4: Creating a New LVM (NF) Storage Step 1: Create the LVM (Nfs) Storage Step 2: Configure new storage from LVM Plugin Step 3: Configure a New Cloud Image Step 4: Download & Untar Ubuntu 10.10 LTS Step 5: Creating Xen VM Step 6: Configure Xen plugin Step 7: Deploy our Cloud Image Part 5: Need More Training on Linux: Eucalyptus Cloud Training: Part 6: Hands-on Labs Assignments A GOV Open Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century
2 2 2 2 3 4 4 5 5 8 13 14 16 19 19 22 26 28 29 29 29 30 30 30
1
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Step-By-Step Install Guide openQRM Data Center Management and Cloud Computing Platform
By Kefa Rabah, krabah@globalopenversity.org Nov 28, 2010 GTS Institute
Introduction
OpenQRM is the next generation, open-source Data-center management platform. Its fully pluggable architecture focuses on automatic, rapid- and appliance-based deployment, monitoring, high-availability, cloud computing and especially on supporting and conforming multiple virtualization technologies. openQRM is a single-management console for the complete IT-infrastructure and provides a well defined API which can be used to integrate third-party tools as additional plugins. OpenQRM server is a pretty neat datacenter management tool. You can use it to provision and manage servers and cloud computing solutions. For example, if youre just starting out with Linux server provisioning and high availability OpenQRM is amazing product and can do wonders when setup properly. In this hands-on lab session youre going to learn how to accomplish this in style. While OpenQRM is not a tool for public clouds It is geared towards people delivering private virtual clusters or cloud capabilities. openQRM is a single-management console for the complete IT infrastructure and provides a well defined API which can be used to integrate third-party tools as additional plugins. Whats really interesting about OpenQRM is that it can suck up physical installations, create an image, write that image to a SAN and then run the virtual instances on demand. I think the opportunity for OpenQRM is to be able to suck those images up and then spit them out to cloud computing resources like EC2, RightScale or Rackspace Cloud.
www.globalopenversity.org
the dependencies before you can use the openQRM yum install instruction so here is the instruction that I used to install it on the Linux CentOS 5 server: openQRM hosts own packages for many distributions, including pre-built binary packages (please notice that installation from the pre-built packages require an empty mysql password. It is recommended to reconfigure this after the installation in the openqrm-server.conf file). 1. Note if you just run the yum install without installing the prerequisites, then youll get the following info: [root@cluster01 ~]# yum install openqrm-server-entire* -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: archaea.its.sfu.ca * base: archaea.its.sfu.ca * extras: archaea.its.sfu.ca * updates: archaea.its.sfu.ca Setting up Install Process No package openqrm-server-entire* available. Nothing to do [root@cluster01 ~]# 2. So now lets begin to install all the prerequisites.
Step 1: Install DAGC Repo 1. DAG repo contains certain packages such as Nagios. According to: http://dag.wieers.com/rpm/FAQ.php#B http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 2. This is how you should install the repo: [root@cluster01 ~]# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.61.el5.rf.i386.rpm Retrieving http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforgerelease-0.3.6-1.el5.rf.i386.rpm warning: /var/tmp/rpm-xfer.fyaFXf: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 Preparing... ####################################### [100%] 1:rpmforge-release ####################################### [100%] [root@cluster01 ~]# Note 1: you can check the latest release from:
3
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/ Note 2: Depending on your architecture, replace i386 architecture with x86_64. 3. Youre done with this section.
Step 2: Install Zabbex 4. OpenQRM will require Zabbex. The only place I found that has Zabbex RPMs is here: http://fedoraproject.org/wiki/EPEL/FAQ#howtouse
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
5. And you can install the repo by: [root@cluster01 ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-54.noarch.rpm Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release5-4.noarch.rpm warning: /var/tmp/rpm-xfer.ipE6LL: Header V3 DSA signature: NOKEY, key ID 217521f6 Preparing... ##################################### [100%] 1:epel-release ##################################### [100%] [root@cluster01 ~]# Note 1: you can check the latest release from: http://download.fedora.redhat.com/pub/epel/5/ Note 2: Depending on your architecture, replace i386 architecture with x86_64. 6. Youre done with this section.
Step 3: Install ASH 1. OpenQRM will require ASH to be installed. Unfortunately this package no longer comes with Linux CentOS-5. You'll have to grab it from CentOS-4 package repository: http://mirror.nexcess.net/CentOS/4/os/x86_64/CentOS/RPMS/ http://mirror.nexcess.net/CentOS/4/os/i386/CentOS/RPMS/ash-0.3.8-20.el4_7.1.i386.rpm
4
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
2. Or simply, run: [root@cluster01 ~]# rpm -Uvh http://mirror.nexcess.net/CentOS/4/os/i386/CentOS/RPMS/ash-0.3.820.el4_7.1.i386.rpm Retrieving http://mirror.nexcess.net/CentOS/4/os/i386/CentOS/RPMS/ash0.3.8-20.el4_7.1.i386.rpm warning: /var/tmp/rpm-xfer.LRvSW2: Header V3 DSA signature: NOKEY, key ID 443e1821 Preparing... ###################################### [100%] 1:ash ###################################### [100%] [root@cluster01 ~]# Note 1: you can check the latest release from: http://mirror.nexcess.net/CentOS/4/os/ Note 2: Depending on your architecture, replace i386 architecture with x86_64. 3. Youre done with this section.
www.globalopenversity.org
yum install openqrm-server Note: it will install all the required dependencies and execute the configuration script. 4. Login to the server by visiting the following: https://<ip address>/openqrm/ Note: the username you'll need to login is "openqrm" and password is also "openqrm", as shown in Fig. 1.
Fig. 1
5. You should now be logged into your openQRM server, as shown in Fig. 2.
6
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 2
6. Ensure that MySQL server and openQRM-server start during host server bootup. chkconfig openqrm-server on chkconfig mysqld on 7. You can stop/start/restart your open server, as follows: service openqrm-server stop service openqrm-server start service openqrm-server restart
7
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 3
Note: always do ensure that MySQL server is also running: 8. If everything went well up to this point, then you now have a working openQRM setup with no resources and no virtual environments but at least one boot image 9. Youre done with this section
Step 2: openQRM-Server Layout 1. From the left pane under Base heading, click Appliance first install the server, as shown in Fig. 4. Overview, by default is empty when you
Fig. 4
2. From the left pane under Base heading, click Events Event list, gives you an overview whats happening or going on with your server, as shown in Fig. 5.
8
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 5
3. From the left pane under Base heading, click Images installed on your server, as shown in Fig. 6.
9
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 6
4. From the left pane under Base heading, click Kernels Overview, gives you the list of existing host kernel on your server, in this case Linux Xen is running as default as shown in Fig. 7.
Fig. 7
10
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
5. From the left pane under Base heading, click Resources Overview, gives you the list of existing resources running on your server, in this case openQRM is running, as shown in Fig. 8.
Fig. 8
6. From the left pane under Base heading, click Storage first install the server, as shown in Fig. 9.
11
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 9
7. From the left pane under Base heading, click Documentation, here you have a list of documents that you can browse/read to learn more about your openQRM-server, as shown in Fig. 10.
Fig. 10
12
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Step 3: openQRM Plugins Layout 1. From the left pane under Plugins heading, click Plugins Plugin Manager, here you have a list of plugins that you can use to manager your openQRM-server, as shown in Fig. 11.
Fig. 11
Note: click the plus sign Note: click the cross sign Note: click the pause sign
icon to enable a plugin. It indicates the plugin is disabled. icon to disable a plugin. icon to start a plugin. It indicates the plugin is paused.. 13
www.globalopenversity.org
2. For example at the moment we have enabled but not started Xen plugin, i.e., its paused, as shown in Fig. 12. Click on the pause sign icon to start Xen.
Fig. 12
3. When we enable Xen plugin, a new folder icon Virtualization is added to Plugin list, as shown in Fig. 13.
Fig. 13
Step 4: Activate DHCP, TFTP, Storage Plugins 1. After setting up the openQRM Server system and pre-configuring the Hypervisor- and storagecomponents the initial openQRM environment now can be started by enabling and starting the following plug-ins: 14
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
dhcpd - automatically provides and manages the ip-addresses in the management- and storagenetwork tftpd - provides the network-boot-manager for a centralized kernel- and boot-management lvm-storage - provides 3 different storage- and deployment-types (lvm-nfs, lvm-iscsi and lvm-aoe)
2. Also please do ensure that you enable the Virtualization plug-in for the selected Hypervisor Technology (e.g. xen or kvm for this example setup): xen - integrates with Xen-Hypervisors and provides 2 new resource types : "Xen Host" and "Xen VM" kvm - integrates with KVM (kernel virtual machine) and provides 2 new resource types : "KVM Host" and "KVM VM"
Fig. 14
15
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
3. Next, from the left menu under Base heading click Storage Storage tab, as shown in Fig. 15.
Fig. 15
4. From Fig. 16, from right pane under New Storage heading, under Deployment drop-down menu, select NFS Storage, and then select the host server by clicking the respective radio button and finally click on the Select button. to continue
16
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 16
5. From Fig. 17, from the right pane under New Storage heading; enter Storage name: Gov_nfsstore, or change as desired. Finally, click Save.
17
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 17
6. Your new Storage List should now look like shown in Fig. 18.
18
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 18
19
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 19
3. From Fig. 20, fill the Storage name "Cloud_storage" and click on the Save button. Feel free to enter the comment fields.
20
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 20
What Just Happened? You have named a Storage name as "Cloud_storage" with type as LVM NFS on machine 192.168.1.135, as shown in Fig. 21.
21
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 21
Step 2: Configure new storage from LVM Plugin 1. Go to LVM-Storage plug-in Fig. 22. Volume Groups, and then select "Cloud_storage", as shown in
22
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 22
Note: Now you can see the table with Storage name as "Cloud_Storage" and IP address and "Type". Click on refresh. Youll also notice that we have a free space volume VFree of 19.53GB. See Fig. 23.
23
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 23
2. In order to create logical volume, click on "VolGroup00" (highlighted with black back ground), see Fig. 23. Now provide a logical volume name ("cloud_lv") and it's size and click on the "Add" button, as shown in Fig. 24.
Fig. 24
www.globalopenversity.org
1. You have created a new logical volume (named "cloud_lv) of 4.03G on the Storage server, as shown in Fig. 25.
Fig. 25
3. You can verify this from the terminal, run: df -h You can see "cloud_lv" mounted on "VolGroup00", as shown in Fig. 26.
25
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Fig. 26
Step 3: Configure a New Cloud Image 1. Go to Base Images Overview and select "New Image" tab and chose "Cloud Storage, click on the Select button, a shown in Fig. 27.
Fig. 27
26
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
2.
From Fig. 28, enter the image name. Enter image name as "Cloud_image", set root password and select root device from the drop down. (Set this root devices same as our logical location "/dev/VolGroup00/cloud_lv")
3. Then deployment parameter as: IMAGE_ROOT_DIR="/devl/VolGroup00/cloud_lv" What Just Happened? 2. Our logical volume "cloud_lv" mapped as "root fs".
Fig. 28
27
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
4. Now we have an empty logical volume that needs to be filled with server template (or Virtual Appliance), see Fig. 29.
Fig. 29
Step 4: Download & Untar Ubuntu 10.10 LTS 1. Now logical volume (/dev/VolGroup00/cloud_lv) needs to be filled template.(virtual appliance) (we have downloaded ubuntu 10.10 template from www.stacklet.com) 2. Move this .gz file to /dev/VolGroup00/cloud_lv and decompress it. What Just Happened? 3. We have filled the logical volume with template. 4. Youre done with this section.
28
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
Step 5: Creating Xen VM 1. We now need to create Xen virtual machine 2. Go to Base Appliance Overview and select "New Appliance" tab 3. Choose local openqrm server (192.168.83.179) from the displayed Resource list. 4. Provide appliance name ("cloud_appliance") and set resource type as "Xen Host" from the dropdown and save it. What Just Happened? You have created a Xen Host appliance to create Xen VM's 5. Youre done with this section.
Step 6: Configure Xen plugin 1. Go to Xen-plug-in. 2. Choose the Xen-host from the list and Now you can click on "+VM" and set VM name ("Cloud_VM"), disk, swap size and click create. 3. Click refresh, you can see the "Cloud_VM" which can be start/reboot/stop/remove/delete. 4. Now Go to Resource, you will have "Idle1" resource, set this as Xen VM from dropdown and click Update. What Just Happened? 5. Xen VMs are created. You can verify this by connecting via VNCviewer or xm list command. 6. Youre done with this section.
Step 7: Deploy our Cloud Image 1. Now we need to deploy the image (Cloud_image) created at location "logical_lv" to this new VM (Cloud_VM). 2. To do this, go to Appliance New appliance and select the new "idle1" from resource list Now provide the appliance name (Ubuntu10_VM) chose kernel (mykernel) and image (Cloud_image) and set resource as "xen VM" and save it. That's it.
29
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
3. Now go to "Resources", you can see new resource with its new IP address (xx.xx.xx.xx) of Ubuntu10_VM. 4. Next, go to SSH-terminal plugin, you can login via, available terminal for new Ubuntu10_VM. 5. Youre done with this section. 6. Take a break will continue later
Eucalyptus Cloud Training: You can now register and take our superb Eucalyptus Cloud computing training course: HPC303 - Build and Running Private Eucalyptus Cloud Systems
Other Related Articles & Hands-on Lab Manuals: 1. Build Private Clouds With Ubuntu 10.10 LTS Enterprise Cloud Platform 2. Step-By-Step Install Guide eyeOS Cloud Computing Operating System 3. Build your Own Private Cloud using Ubuntu 10.04 Eucalyptus Enterprise Cloud Computing Platform 4. Build & Deploy a Private Cloud Using OpenNebula Cloud Computing v1.0 5. Using Webmin and Bind9 to Setup DNS Server on Linux 6. Using Samba 3 Client Technology and Kerberos for Win2k8 AD-based identity management 7. Step-By-Step Build and Deploy Xen Hypervisor Virtualization on Linux OpenSUSE 11.3 Server 8. Build and Deploy Enterprise sipXecs Integration with Openfire 9. Step-By-Step Install Guide Openfire Jabber Server on Linux v1.0 10. Build your own ISP Hosting using EHCP on Ubuntu 10.04 LTS Server 30
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org
11. Step-By-Step Install Guide DTC on Linux CentOS5 Server v1.0 12. Install Guide Secure Sendmail with Dovecot & Roundcube Webmail v1.0 13. Build your Own Private Data Center Backup Solutions using Ubuntu Powered RESTORE Backup Server v1.0 14. Install Guide IPCop Firewall for Network Security with Spam and Virus Protection 15. Install & Setup Astaro Security Gateway to Protect Corporate Network v1.1
----------------------------------------------Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several fields of Science & Technology, Information Security Compliance and Project Management, and Renewable Energy Systems. He is also the founder of Global Open Versity, a place to enhance your educating and career goals using the latest innovations and technologies.
Kefa Rabah
A GTSI Open Access Technical Academic Publications Delivering Cutting-edge Technology at your Fingertips in the 21st Century 31
April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org