Build a private cloud – prototype and test with open nebula
Upcoming SlideShare
Loading in...5
×
 

Build a private cloud – prototype and test with open nebula

on

  • 2,377 views

Build a small-scale private cloud as prototype and test with OpenNebula (open source cloud management platform). ...

Build a small-scale private cloud as prototype and test with OpenNebula (open source cloud management platform).
The aims and objectives of this work include:
1. The first objective of this thesis is to build and implement a private cloud with completely open source way for small-scale prototype implementation and testing.
2. Explores the current state of open source cloud Management platforms (CMPs) in context with private cloud implementation.
3. Indentifies system, software, hardware requirements to built and implement private Cloud open source way.
4. Uses this private cloud implementation for educational purposes
5. Gain knowledge of the technologies for setting up a private cloud with open source software.
6. Learn about the process for designing & implementing a private cloud solution.

Statistics

Views

Total Views
2,377
Views on SlideShare
2,376
Embed Views
1

Actions

Likes
6
Downloads
112
Comments
0

1 Embed 1

http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Build a private cloud – prototype and test with open nebula Build a private cloud – prototype and test with open nebula Document Transcript

    • 4/26/2013OPENNEBULABUILDING PRIVATE CLOUD – PROTOTYPE ANDTEST WITH OPENNEBULAA B M Moniruzzaman, M.Scabm.mzkhan@gmail.com
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityChapter: Implementation of Private Cloud5.1 IntroductionBuild a real cloud in your machine with installation of OpenNebula - an enterprise-ready open-source platform to manage cloud; and with virtualization platform to run the OpenNebula CloudSandbox.5.2 Cloud Implementation using FOSS (fully open source software)Here we build a real cloud in any machine with FOSS (fully open source software):We use OpenNebula Sandbox for Private Cloud implementation; Open Source Operating System like: CentOS or Ubuntu; Open Source Hypervisor : VMware ESXi 5.0 for host, VMware vSphere ESX 5 forclient; You may also use KVM or Xen as Hypervisor;These all are open source software for Cloud Computing platforms. OpenNebula is the mostfeature-rich, innovative, customizable and mature open alternative to proprietary cloud solutionsto build virtualized enterprise data centers and cloud infrastructures on Xen, KVM and VMwaredeployments. OpenNebula is not a feature or performance limited edition of an Enterpriseversion, OpenNebula is truly open-source code, not open core, distributed under Apache license;a true Fully Open Source Software.Configuration options and specific information for each hypervisor can be found in these guides:Xen Driver; KVM Driver; VMware DriverOpenNebula packages are also available from the Official Repo of the main Linux Distributions.Please note that the official packages from the distributions take some time to be updated to thelatest OpenNebula.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International University5.3 Installation and ConfigurationHere technical perspective step-by-step configuration stages of Installation and ConfigurationOpenNebula with the most common Hypervisors:Start working from my desktop for installation and configuration private cloud with OpenNebulaSanbox:Step 1:Download and install VMware Workstation 9.0 from(https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vmware_workstation).After successful installation, we will run the workstation. It will need to upload ESXi 5.0hypervisor in this workstation to configure host for OpenNebula Sanbox.Figure: Download VMware Workstation 9.0 from web
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 2:Download and install successfully VMware vSphere Hypervisor ESXi 5.0.0 on your machinefrom(https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere_hypervisor_esxi/5_0)Figure: Download VMware vSphere Hypervisor (ESXi) 5.0 from webStep 3:Download the Virtual ApplianceDownload the image for ESX from the marketplace. The image is compressed with tar.gz. Besure to decompress it before moving on. You should end up with two .vmdk files.OpenNebula 3.8 ESX (main Image file containing CentOS 6.3 virtual machine image with a pre-configured OpenNebula 3.8.1 front-end) from the OpenNebula marketplace site and unzip withIZArc. Recommended unarchivers: Mac OS X: The Unarchiver; Linux: use “tar xvzfopennebula-3.8-sandbox.vmdk.tar.gz”; Windows: 7-ZipFigure: Download the image for opennebula 4.0 ESX Sandbox from the marketplace.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityOpenNebula 4.0 ESX SandboxThe sandbox is a CentOS 6.3 virtual machine image with a pre-configured OpenNebula 4.0front-end, a virtualization host using QEMU ready to execute virtual machines, and preparedimages to offer a complete and rich cloud experience. Optionally other physical worker nodesusing any of the hypervisors supported by OpenNebula can be enrolled to build small-scale cloudinfrastructures. Users are able to log into an OpenNebula cloud, peer the managed resources, andlaunch instances of virtual machines without the hassle of configuring a physical infrastructure.Step 4:Install VMware Workstation 9.0 and run it.After successful installation, we will run the workstation. It will need to upload ESXi 5.0hypervisor in this workstation to configure host for OpenNebula Sanbox.Step 5:Create a new virtual machine and select custom set up.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 5.2:Choose virtual machine hardware compatibility and select workstation 9.0 setup.Step 5.3:Browse image for opennebula sandbox to upload into virtual machine and select open.You should have to unzip this image file to vmdk file to upload.Step 5.4:Input name to virtual machine hardware and type VMware ESXi 5.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 5.6:Choose virtual machine processors core and select 2 for number of processor. Virtual machineshould be not below 2 cores for OpenNebula Sanbox setup.Step 5.7:Choose virtual machine memory and select not below 512 MB; 2 GB should be best suited forOpenNebula Sanbox setup.Step 5.8:Choose virtual machine network type and select host only setup.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 5.9:Browse for virtual machine disk and select opennebula-3.8-sandbox.vmdk. you may use laterversion.Step 5.10:Now virtual machine is ready to finish click. Check out information about virtual machine andselect finish button.Step 5.11:You can customize or change virtual machine hardware and select close to go back.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 6.1:Now your virtual machine ESXi 5 hypervisor is configured and select power on to run the virtualmachine.Step 6.2:Now start running the Hypervisor ESXi 5.0. It will take few minutes to complete run.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 6.3:Virtual machine ESXi 5 hypervisor is being running and loading it’s packages.Step 6.4:Virtual machine ESXi 5 hypervisor is being running and loading kernels.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 6.5:Virtual machine ESXi 5 hypervisor is ready with default IP: 192.168.71.128.Step 7:Test with the default IP- 192.168.71.128. Now you can download VMware vSphere ESX 5.0also from this site. Your test host setup is successful.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 8.1:Run VMware vSphere client ESX 5.0. Use IP address 192.168.71.128 and user name root.Step 8.2:Connecting with Host VMware vSphere client ESX 5.0. with default IP address 192.168.71.128and user name root.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 9.1:Start VMware vSphere client ESX 5.0. and successfully connected with Host.Step 10:Upload Sandbox image (OpenNebula 3.8 ESX) in the VI client.Step 10.1:VMware vSphere client ESX 5.0. is running and successfully connected with Host. UploadSandbox image (OpenNebula 3.8 ESX) in the VI client. Start to create a new virtual machinewizard.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.2:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select customwhen creating a new virtual machine from VSphere Client.Step 10.3:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard - type name whencreating a new virtual machine from VSphere Client.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.4:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select datastorewhen creating a new virtual machine from VSphere Client.Step 10.5:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select Vitualmachine version when creating a new virtual machine from VSphere Client.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.6:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select OperatingSystem (OS) when creating a new virtual machine from VSphere Client. Please selectCentOS4/5/6 (64-bit).Step 10.7:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select Processorcores when creating a new virtual machine from VSphere Client. Please select at least 2 cores forvirtual machine.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.8:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select memorywhen creating a new virtual machine from VSphere Client. Please select at least 2GB for virtualmachine; 4GB is better.Step 10.9:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select Networksetting when creating a new virtual machine from VSphere Client. Please remain or selectdefault network setting.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.10:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select SCSIcontroller when creating a new virtual machine from VSphere Client. Please select VMwareParavirtual as SCSI controller.Step 10.11:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; select create anew virtual disk when creating a new virtual machine from VSphere Client. Please select create anew virtual disk.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 10.12:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; specify thevirtual disk size when creating a new virtual machine from VSphere Client. Please select at least10GB for virtual disk; 30 GB is better. Here datastore for OpenNebula-Sanbox is 35GB. Youhave to select within this size.Step 10.13:From VMware vSphere client ESX 5.0, to create a new virtual machine wizard; now this is readyto complete stage – you can also edit virtual machine setting before completion:
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 11:Now OpenNebula-Sanbox from vSphere Client is ready; you can power on this appliancefor client settings and resource allocation for the clients.Step 11.1:Now we power on opennebula-sandbox appliance. At this stage, start running opennebula-sandbox from VMware ESX 5.0 vSphere Client.Step 11.2:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this(summary) section explores the general summary of opennebula-sandbox: basic virtual machinehardware; Resources; Datastores, VM Network
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 11.3:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this(Resource Allocation) section explores the resource allocation of Host and Guest; CPU usagesallocation, Memory uses allocation.Step 11.4:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this (EditResource Allocation) section explores edit of resources of opennebula-sandbox: edit basic virtualmachine hardware.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 11.5:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this(Performance) section explores unit performance of opennebula-sandbox.Step 11.6:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this (Event)section explores various event summaries and any error messages of opennebula-sandbox atrunning stage.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityStep 11.7:Opennebula-sandbox from VMware ESX 5.0 vSphere Client is running successfully; this(Permissions) section explores various users/groups and their permissions of opennebula-sandbox at running stage.Step 12:Enter the ApplianceAt this point the Virtual Machine will be running. Wait until you see a login prompt in the VIclient console that says one-sandbox login:”You can log in into the Virtual Machine using the following information:Login: rootPassword: opennebulaStep 13:The VM is a CentOS 6.3 with the OpenNebula 4.0 packages installed and configured, and readyto also act as cloud host to execute virtual machines. When the VM starts all the main servicesare started:OpenNebula CoreSchedulerSunstone GUI (for administrators / private cloud users)
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International University5.4 Deployment and TestingOpenNebula 4.0 Sandbox Testdrive with Sunstone GUIThe VM is a CentOS 6.3 with the OpenNebula 4.0 packages installed and configured, and readyto also act as cloud host to execute virtual machines. When the VM starts all the main servicesare started:OpenNebula CoreSchedulerSunstone GUI (for administrators / private cloud users)The first thing were going to do is to log in as oneadmin to take a look at the superuserSunstone, which has more options than the Sunstone panel for a regular user.To login to sunstone open your browser at http://<IP>:9869IP is different for specific Sandbox: VirtualBox, KVM, ESX or AWS.The login information is:Login: oneadminPassword: opennebulaThis login information can be obtained from ~/.one/one_auth of the oneadmin account.Take a look at all the resources you can see. You can verify that the resources we created earlierare visible. Now logout and log in as the user we created earlier (myuser / mypassword). Thefirst thing you might have noticed is that the physical and security resources arent availableanymore, since they can be only managed by the oneadmin user. In particular: Users, Groups,ACLs, Clusters and Hosts.
    • Building Private Cloud – Prototype and Test with OpenNebulaA B M Moniruzzaman, M.Sc Daffodil International UniversityTo start the first Virtual Machine, you simply need to enter into the Virtual Resources → VirtualMachines menu option (we refer to menu options throughout the documentation as TABs) andclick on the + Create button. Enter a name: tty and select the ttylinux template.After clicking the create button, you will be brought back to the Virtual Machines TAB, whereyou will see the Virtual Machine transition from PENDING (waiting for the scheduler to deployit), to PROLOG and finally to running.You may want to click on the VNC icon at the far right of the Virtual Machine row. A newdialog will open with the VNC console in it. Click inside the console to focus it and press theenter key to enter the login screen. The login information is:Login: rootPassword: password