Infrastructure as a Service in Cloud Computing

epl421 systems programming n.w
1 / 36
Embed
Share

"Explore the concept of Infrastructure as a Service (IaaS) in cloud computing, where users can scale resources as needed without owning hardware. Learn about different types of hypervisors, network architecture, and advantages of IaaS over other cloud service models."

  • Cloud Computing
  • IaaS
  • Hypervisors
  • Virtualization
  • Network Architecture

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. EPL421: Systems Programming IaaS (Infrastructure as a service) . By: (ematse01@cs.ucy.ac.cy) (ovan-r01@cs.ucy.ac.cy) (nneofy01@cs.ucy.ac.cy) https://www2.cs.ucy.ac.cy/courses/EPL421 1

  2. INTRODUCTION https://www.cs.ucy.ac.cy/courses/EPL646 2

  3. Infrastructure as a service Infrastructure as a Service (IaaS) is a form of cloud computing Scalable depending on user s needs User pay on demand No need of buying and maintaining your own hardware The customer must configure and operate necessary software Tool Examples: Xen, KVM, OpenStack, VirtualBox, Vmware, Hyper-V https://www.cs.ucy.ac.cy/courses/EPL646 3

  4. Iaas Vs Paas Vs Saas Iaas Paas Saas Data Data Data Application Application Application Databases Databases Databases OS OS OS Virtualization Virtualization Virtualization Servers Servers Servers Storage Storage Storage Networking Networking Networking Provider supplied Self managed https://www.cs.ucy.ac.cy/courses/EPL646 4

  5. Architecture characteristics Network: Software Defined Networking based on APIs Storage: Block storage File storage Object storage (more resilient and scalable) Physical data centers: data centers available to end users over the web Compute: hypervisors creating virtual machines, often paired with auto scaling and load balancing services https://www.cs.ucy.ac.cy/courses/EPL646 5

  6. Bare metal, native or type I hypervisors Run on the host s hardware Some examples: Xen , Oracle VM Server ,KVM https://www.cs.ucy.ac.cy/courses/EPL646 6

  7. Hosted or type II hypervisors Run as a software using an operating system Some examples: VMware Workstation, VMware Player https://www.cs.ucy.ac.cy/courses/EPL646 7

  8. Type 1 Vs Type2 Type 1 hypervisors are faster, more efficient and more secure than type 2 Type 2 hypervisors are easier to set up If type 2 OS host have security flaws or vulnerabilities all VMs above could possibly compromise https://www.cs.ucy.ac.cy/courses/EPL646 8

  9. Processor Privilege Levels A processor contains certain instructions that are only available to privileged programs , such as the operating system. These instructions include those to manipulate memory mappings, set timers, define interrupt vectors, access restricted memory, or halt the processor. Most OS use only the two Ring Levels: User Space in Ring 3 and Kernel Space in Ring 0 Special Gates exist to switch rings (using interrupts, faults, exceptions) E.g. in x86 - int n syscall (gate between ring 3 to ring 0) https://www.cs.ucy.ac.cy/courses/EPL646 9

  10. Problem with VMs On a Host OS, we trust the kernel code to run in privileged mode But this is a problem in virtualized environments. We don t trust the Guest OS s code to run in Ring 0 since it can mess up with other Guest Hosts or our hypervisor. Also many devices aren t virtualizable (only one OS can communicate with them) https://www.cs.ucy.ac.cy/courses/EPL646 10

  11. Solutions to the Privileged Instructions problem https://www.cs.ucy.ac.cy/courses/EPL646 11

  12. Binary Translation Scan instruction stream on the fly (when page is loaded) and replace privileged inst. with replacement code that work with the virtual hardware (Vmware approach). Instead of running the instruction it is replaced by hypervisor code (manual trap) https://www.cs.ucy.ac.cy/courses/EPL646 12

  13. Paravirtualization Requires support from GuestOS the Hypervisor provides hooks (hypercalls) to the guests to perform. Paravirtualization replaces nonvirtualizable instructions with hypercalls that communicate directly with the virtualization layer hypervisor. Operations such as privileged-sensitive operations, page faults, memory management and interrupt handling done at hypervisor level. Same concept as SysCall but between GuestOS and HyperVisor Syscalls in Guest OS switch from Ring 3 (User Space) to Ring 1. Kernel runs in ring 1, so CPU s privileged instructions can't run https://www.cs.ucy.ac.cy/courses/EPL646 13

  14. Hardware Assisted Virtualization Intel s VT-x and AMD s AMD-V Run low-level (Ring 0) code in parallel to the host OS Built in the CPU Creates a sandbox environment for that code, giving the host control over that sandbox. New level introduced, the Root Mode where the hypervisor runs. Guest OS s privileged instructions trap to the hypervisor via hardware https://www.cs.ucy.ac.cy/courses/EPL646 14

  15. TOOL 1: XEN https://www.cs.ucy.ac.cy/courses/EPL646 15

  16. Historic background late 1990s :Created by Keir Fraser & Ian Pratt as part of the Xenoserver research (Cambridge University) 2002: Xen hypervisor was open sourced 2004: Xen 1.0 was officially released followed shortly after by Xen 2.0 XenSource was founded (for enterprise computing) 2005: Xen 3.0 was released 2007: Citrix Systems, Inc. acquired XenServer 2008: Creation of Xen Arm project by Samsung 2010: Release of Xen 4.0 2011: The first version of Xen Cloud Platform was delivered Linux 3.0 Xen PV is supported out of the box https://www.cs.ucy.ac.cy/courses/EPL646 16

  17. Components Xen Project Hypervisor (type 1) Guest Domains/Virtual Machines (guest types: PV,HVM,PVH) Control Domain (Dom 0) with the following functions: System Services Native Device Drivers Virtual Device Drivers (backends). Toolstack https://www.cs.ucy.ac.cy/courses/EPL421 17

  18. https://www.cs.ucy.ac.cy/courses/EPL646 18

  19. Key features Small footprint and interface (robust and secure) Supports a number of different Operating Systems Driver Isolation (device driver runs inside of a VM instead of kernel) Paravirtualization which was first introduced by Xen and allows the hypervisor to run on hardware that doesn't support virtualization extensions. https://www.cs.ucy.ac.cy/courses/EPL646 19

  20. Installation instructions Install centOS or RedHat Enable the right Xen repository Install Xen package (via package manager) Boot into the modified Linux kernel (Xen) https://www.cs.ucy.ac.cy/courses/EPL646 20

  21. TOOL 2: KVM https://www.cs.ucy.ac.cy/courses/EPL646 21

  22. Historic background Avi Kivity started the development of KVM in 2006 at Qumranet Sold to Red Hat in 2008. KVM was first designed for x86, but now it is ported to S/390, PowerPC, IA-64 and ARM. https://www.cs.ucy.ac.cy/courses/EPL646 22

  23. General information Kernel-based Virtual Machine (KVM) Open source software Loadable Kernel Module Included in Mainline Kernels since Linux 2.6.20 Type 1 Hypervisor (Bare-Mental) https://www.cs.ucy.ac.cy/courses/EPL646 23

  24. https://www.cs.ucy.ac.cy/courses/EPL646 24

  25. KVM as a Hypervisor Some debate it isn t a strictly type 1 hypervisor since: the host OS remains fully functional Every VM seen as a regular linux process, scheduled like any other, with dedicated virtual hardware attached to it https://www.cs.ucy.ac.cy/courses/EPL646 25

  26. TOOL 3: OPENSTACK https://www.cs.ucy.ac.cy/courses/EPL646 26

  27. OpenStack A Large Collection of Interconnected Applications that can also work Standalone, in which they work altogether to provide a fully operational cloud environment All its components are free and Open-Source but due to its massive documentation and complexity, it is usually installed with the help of certified OpenStack Partners like RedHat (with a fee). At its heart is the Compute Node which manages and runs Virtual Machine Instances

  28. OpenStacks Compute Node Architecture Cinder For block Storage Access Uses the iSCSI protocol that sits on top of TCP to give Compute nodes a shared network storage. Glance For storing and retrieving Virtual Machine image Instances Scheduler For orchestrating the Compute nodes, assigns Virtual Machine Requests to the Compute Nodes API Rest API to communicate with the Compute nova-compute is responsible for building a disk image, launching it via the underlying virtualization driver, responding to calls to check its state, attaching persistent storage, and terminating it. Keystone Authentication Service for the API clients, all OpenStack services register themselves here

  29. PRACTICAL ANALYSIS https://www.cs.ucy.ac.cy/courses/EPL646 29

  30. Our Architecture Model Nested Hardware Virtualization Arch-Linux deployed on both guest hypervisors XEN & KVM can be managed via the same tools libvirt framework Virt-install, virsh Minimal differences in configurations for running VMs ( --hvm flag in XEN) Nova-Compute service runs on each guest hypervisor.

  31. Creating a VM virt-install \ --name arch_on_xen \ --memory 1024 \ --vcpus 2 \ --disk size=3 \ --cdrom /tmp/arch.iso \ --network=bridge:vmbr0 \ --hvm --extra-args="console=ttyS0,115200" https://www.cs.ucy.ac.cy/courses/EPL646 31

  32. Connecting to VM virsh list all virsh console VM_name https://www.cs.ucy.ac.cy/courses/EPL646 32

  33. Average performance https://www.cs.ucy.ac.cy/courses/EPL646 33

  34. Average performance https://www.cs.ucy.ac.cy/courses/EPL646 34

  35. Conclusion Some articles argued that we expect better performance with PV and others the opposite. Our measurements indicated HVM as the fastest option. Nested Virtualization might fiddle with our findings KVM offered the best Virtualization Speed https://www.cs.ucy.ac.cy/courses/EPL646 35

  36. Bibliography https://www.ibm.com/cloud/learn/iaas https://www.linux-kvm.org/page/FAQ https://www.redhat.com/en/topics/virtualization/what-is-KVM https://searchservervirtualization.techtarget.com/feature/Whats- the-difference-between-Type-1-and-Type-2-hypervisors http://www-archive.xenproject.org/community/xenhistory.html http://www-archive.xenproject.org/products/xenhyp.html https://www.cs.ucy.ac.cy/courses/EPL646 36

More Related Content