nimbus project

27
Nimbus Project Directed by: Supervised by: KARROUCH Manal Mr.AMRANI AJERAR Souhail EDDERDABI Mounia ASSAOUY Samia 6/28/2012 1

Upload: aimas06

Post on 14-May-2015

1.027 views

Category:

Technology


1 download

DESCRIPTION

cloud computing

TRANSCRIPT

  • 1.Nimbus ProjectDirected by: Supervised by:KARROUCH ManalMr.AMRANIAJERAR SouhailEDDERDABI MouniaASSAOUY Samia6/28/2012 1

2. Introduction6/28/20122 3. PlanPart 1 Nimbus ProjectPart 2 The installation of nimbusPart 3 Problems & solutionPart 4 Result6/28/2012 3 4. Nimbus Project Open-source toolkit Cloud software Client via WSRF-based or Amazon EC2 WSDL web service APIs. Nimbus supports the Xen hypervisor or KVM Writing in the python and java language6/28/20124 5. The installation of nimbusDependencies Install java and javac Install Python Install GCC Apache Ant 1.6.2 or later6/28/2012 5 6. Service installation Create nimbus user Download and installWe start by create a separate unix account toinstall and run the Nimbus services. $ wget http://www.nimbusproject.org/downloads/nimbus-iaas-2.9-src.tar.gz $ tar xfz nimbus-iaas-2.9-src.tar.gz $ cd nimbus-2.9-src/ $ ./install $NIMBUS_HOME 7. Service installation Service ports Certificates Cumulus : 8888 Nimbus Service interface : 8443 EC2 compatible Query Interface: 8444 8. Service installation Start services Create first user Install cloud client and credentials 9. Service installation Try it out In the beginning we did attempt to query the service.This command shows the running VMs that we own. 10. Install DHCP and ConfigureNetworking Network poolsThe directory $NIMBUS_HOME/services/etc/nimbus/workspace-service/network-pools/ content two files The Private file: The Public file: 11. DHCP server The addresses for VMs are physically queried via anexternal DHCPd service. There are two ways of arrangingthe DHCP configuration : Centralized -- a new or existing DHCP service that we configure with Nimbus-specific MAC to IP mappings. This is generally simpler to set up and is covered in this guide. Local -- a DHCP server is installed on every VMM node and automatically configured with the appropriate addresses just before a VM boots. 12. DHCP caution After created using Nimbus, the service selects anetwork pool entry and sends the IP andhostname back to the client. 13. The installation of nimbusInstall VMM SoftwareKVM virtualization KVM is a full virtualization solution for Linux on x86 hardware containingvirtualization extensions. It consists of a loadable kernel module, that providesthe core virtualization infrastructure and a processor specific module. Before to install KVM we check if our CPU supports hardware virtualization : Should display something, like this:6/28/2012 13 14. The installation of nimbusKvm installation To install KVM and virtinst (a tool to create virtual machines), we run: Then we reboot the system: After that we verify if it works as user as root but we had an error about failingto connect to the hypervisor So we change the permissions on /var/run/libvirt/libvirt-sock, we modify thecontents of the libvirt qemu.conf file6/28/2012 14 15. The installation of nimbus Then we make the nimbus user a member of the root group After that we make the libvirt domain socket available for reading and writingby the root group by enabling the following configurationsin /etc/libvirt/libvirtd.conf6/28/201215 16. The installation of nimbus Finally, run the virt-manager tool by selecting the Applications -> System Tools -> Virtual Machine Manager menu. When loaded, the manager should appear as illustrated in the following figure:6/28/2012 16 17. Metadata server This service is disabled by default, but will be required if we wantto use the Nimbus Context Broker. Configuration is in$NIMBUS_HOME/services/etc/nimbus/workspace-service/metadata.conf. We must choose an IP and port for theservice to listen on. This address must be accessible by the VMs.We should also set listen=true. 18. The installation of nimbusInstall workspace-control After having the KVM we can now download the VMM control package to themachine, then copy it to the /opt/nimbus destination directory Obtain the simple image:6/28/2012 18 19. The installation of nimbusSecure Shell SSH To connect the machines we should use SSH which is both a computerprogram and a communication protocol secure. The connection protocolrequires an exchange of encryption keys at the beginning ofconnection. Thereafter all the frames are encrypted. It becomes impossible touse a sniffer to see what a user does. The Nimbus service and VMM nodes communicate via SSH, so we set uppassword-less SSH keys Then we Copy the generated public key to the VMM node and then login theredirectly6/28/2012 19 20. The installation of nimbus Append the service nodes key to the authorized_keys file generate a key pair for the VMM node itself and exit back to the service node Then we fetched the VMMs public key and authorize it6/28/2012 20 21. The installation of nimbusAutoconfig Nimbus includes a configuration program that checks for a properlyfunctioning SSH setup and configures the VMM node into the service. Thescript is interactive and will go through a series of questions and tests before itmakes any changes. Afterwards, restart the Nimbus services in order for changes to take effect6/28/2012 21 22. Problems && SolutionProblem in the Change some ligneinstallation of the code source Problem in theInstalle the lastinstalletion of some version of CentOSpackagesThe defaultProblem caused byconfiguration ofKVM Nimbus is Xen6/28/2012 22 23. Result First, run the status and list commands to ensure that the IaaS and repositoryservices are still running correctly. After to executed this command we moved on and attempt to upload a realVM image to the repository.6/28/201223 24. ResultUpload image We started with the image that you used earlier to test the VMM Then we use the cloud-client to upload the VM image to the Cumulusrepository The list operation should show the new image6/28/201224 25. Result Now we are ready to boot this image Then we attempt to SSH into the new VM6/28/201225 26. Conclusion6/28/201226 27. Thank you6/28/2012 27