1 Virtualisation Intro By Laban Mwangi (lmwangi _at_ gmail.com) Based on notes by Joel Jaeggli For AFNOG SS-E 2014.

Slides:



Advertisements
Similar presentations
Intro to Virtualization
Advertisements

B. Ramamurthy 4/17/ Overview of EC2 Components (fig. 2.1) 10..* /17/20152.
Amazon Web Services (aws) B. Ramamurthy. Introduction  Amazon.com, the online market place for goods, has leveraged the services that worked for their.
University of Notre Dame
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 11 Windows Server 2008 Virtualization.
Chien-Chung Shen Google Compute Engine Chien-Chung Shen
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Paper on Best implemented scientific concept for E-Governance Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola By Nitin V. Choudhari, DIO,NIC,Akola.
Red Hat Installation. Installing Red Hat Linux is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on.
Copyright 2007 FUJITSU LIMITED Systemwalker Resource Coordinator Virtual server Edition V13.2 December, 2007 Fujitsu Limited Functions Blade Server Management.
Yury Kissin Infrastructure Consultant Storage improvements Dynamic Memory Hyper-V Replica VM Mobility New and Improved Networking Capabilities.
Paper on Best implemented scientific concept for E-Governance projects Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola.
INTRODUCTION TO CLOUD COMPUTING CS 595 LECTURE 7 2/23/2015.
DIY: Your First VMware Server. Introduction to ESXi, VMWare's free virtualization Operating System.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Virtualization Lab 3 – Virtualization Fall 2012 CSCI 6303 Principles of I.T.
Introduction to Cloud Computing
Cloud Computing & Amazon Web Services – EC2 Arpita Patel Software Engineer.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
608D CloudStack 3.0 Omer Palo Readiness Specialist, WW Tech Support Readiness May 8, 2012.
Virtualization for the LHCb Online system CHEP Taipei Dedicato a Zio Renato Enrico Bonaccorsi, (CERN)
VMware vSphere Configuration and Management v6
Licensed under Creative Commons Attribution-Share Alike 3.0 Unported License Cloud Hosting Practices Lessons DuraSpace has learned Bill Branan Open Repositories.
Hands-On Virtual Computing
Cloud Computing Lecture 5-6 Muhammad Ahmad Jan.
Launch Amazon Instance. Amazon EC2 Amazon Elastic Compute Cloud (Amazon EC2) provides resizable computing capacity in the Amazon Web Services (AWS) cloud.
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
Unit 2 VIRTUALISATION. Unit 2 - Syllabus Basics of Virtualization Types of Virtualization Implementation Levels of Virtualization Virtualization Structures.
© 2012 Eucalyptus Systems, Inc. Cloud Computing Introduction Eucalyptus Education Services 2.
© 2015 MetricStream, Inc. All Rights Reserved. AWS server provisioning © 2015 MetricStream, Inc. All Rights Reserved. By, Srikanth K & Rohit.
SEMINAR ON.  OVERVIEW -  What is Cloud Computing???  Amazon Elastic Cloud Computing (Amazon EC2)  Amazon EC2 Core Concept  How to use Amazon EC2.
Intro To Virtualization Mohammed Morsi
Virtualisation Exercise Installing VirtualBox Installing FreeBSD in a virtual machine Chris Wilson Joel Jaeggli AfNOG 2012.
1 Virtualization Overview Joel Jaeggli For AFNOG SS-E 2012.
Prof. Jong-Moon Chung’s Lecture Notes at Yonsei University
Virtual Machine and VirtualBox
bitcurator-access-webtools Quick Start Guide
Programming Tools Most of the programming assignments will require using the C language. We will use a current version of the GCC C compiler. What’s GCC?
Virtualization Overview
Virtualization Overview
AWS Integration in Distributed Computing
Docker and Azure Container Service
Desktop Virtualization
Building a Virtual Infrastructure
Enrico Bonaccorsi, (CERN) Loic Brarda, (CERN) Gary Moine, (CERN)
Vagrant Managing Virtual Machines
Virtualization overview
Lab 1 introduction, debrief
Creating a Windows Server 2012 R2 Datacenter Virtual machine
Creating a Windows Server 2016 Datacenter Virtual machine
CernVM Status Report Predrag Buncic (CERN/PH-SFT).
Creating a Windows 7 Professional SP1 Virtual machine
Creating a Windows 10 Virtual machine
AWS COURSE DEMO BY PROFESSIONAL-GURU. Amazon History Ladder & Offering.
OPNFV Arno Installation & Validation Walk-Through
Chapter 2. Malware Analysis in VMs
Outline Virtualization Cloud Computing Microsoft Azure Platform
HC Hyper-V Module GUI Portal VPS Templates Web Console
AWS Cloud Computing Masaki.
Different types of Linux installation
Virtual Machine and VirtualBox
SUSE Linux Enterprise Desktop Administration
bitcurator-access-webtools Quick Start Guide
Virtual Machine and VirtualBox
Virtual Machine and VirtualBox
Azure Container Service
PerformanceBridge Application Suite and Practice 2.0 IT Specifications
SQL Server on Amazon Web Services
SQL Server on Amazon Web Services
Presentation transcript:

1 Virtualisation Intro By Laban Mwangi (lmwangi _at_ gmail.com) Based on notes by Joel Jaeggli For AFNOG SS-E 2014

2 What is it? ● An abstraction that allows for easy subdivision an allocation of resources ● What Computing/Network resources can be virtualized? ● OS virtualization ● Application virtualisation ● Service virtualisation ● Network virtualisation ● Storage virtualisation ● And much more...much more... ●

3 Anything? ● In the context of this course. We're interested in virtualization along two dimensions: ● Resource virtualisation ● OS virtualisation

4 Resource/Service virtualization ● Examples: ● Load-balancers ● DNS Based GLB ● HTTP(S) Virtual Hosting ● MX records ● Virtual Switches ● Virtual Routers ● Virtual Firewalls

5 Resource Virtualization - Continued ● HTTP virtual hosts ● Multiple websites on one system ● Load Balancing ● One (or many sites or applications) across many systems ● Can be done at Layer-3/4/7

6 Host Virtualization ● Examples ● Vmware ● Virtual-Box (used in class) ● KVM ● XEN ● FreeBSD and Linux Jails ● Windows Hyper-V

7 What problem are we attempting to solve with host virtualization. ● Problem 1 – Idle capacity. ● Most of the machines in your datacenter are idle most of the time. ● Capacity you're not using: – Cost money up front – Cost money to operate – Reduces you return on capital ● Packing discrete systems into a smaller number of servers provides savings along virtually every dimension.

8 Problems - Continued ● Problem 2 – Provisioning ● Spinning up a new service involves: – Acquiring the hardware – Building the server – Integration with existing services ● With virtualization we're aiming to short-circuit that – Capacity is a resource – Machine instances my be cloned or provisioned from common basic images – Resources are purchased in bulk and assigned to applications as necessary.

9 Problems - Continued ● Problem 3 – Hardware abstraction ● Operating systems, servers, and applications evolve at different rates. ● Providing a common set of infrastructure resources means, virtualized systems are portable across servers ● Hardware failure can more easily be managed. ● Abstraction may come at a performance cost however. (some workloads are more expensive than others) ● See: xen-vs-kvm-redux/

10 Examples – Desktop Virtualization

11 Desktop Virtualization ● Uses ● Prototyping services or applications before deployment ● Utilities that don't run on your operating system ● Isolation of sandbox environments from your desktop ● Maintaining multiple versions of an environment for support purposes. ● Staying familiar with unix while running windows (consider compared to the alternative (dual-booting) ● Issues ● Emulating multiple computers on your laptop/desktop is somewhat resource intensive ● Vmware player and VirtualBox are free. ● ● =UTF-8&q=vmwareplayer =UTF-8&q=vmwareplayer

12 Examples – Server Virtualization

13 Server Virtualization - Continued

14 Server Virtualization

15 Virtualized Servers as a Service (Amazon Web Services) ● Much as colocated servers, are available from a hosting provider, virtual servers are also available. ● Model is: ● You pay for what you use. ● Flexibility, need fewer servers today then you used, yesterday. ● Leverage other amazon tools (storage/map- reduce/load-balancing/payments etc)

16 AWS

17 AWS Steps ● Select availability zone ● Launch new instance ● Select appropiate ami ● Associate with ssh key ● Launch instance ● Add ip ● SSH into new machine instance. ● t1-micro-instances run $54 a year + bandwidth

18 Try it for free... ● Free tier for the first Calender year is (per month): ● 750 hours of EC2 running Linux/Unix Micro instance usage ● 750 hours of Elastic Load Balancing plus 15 GB data processing ● 10 GB of Amazon Elastic Block Storage (EBS) plus 1 million IOs, 1 GB snapshot storage, 10,000 snapshot Get Requests and 1,000 snapshot Put Requests ● 15 GB of bandwidth in and 15 GB of bandwidth out aggregated across all AWS services ● Which is not to say that, at scale EC2 is particularly cheap, (It isn't) ● Limited capital at risk is in the context of prototyping or experimentation however.

19 AWS - Continued ● For provisioning purposes cli interaction is possible: ● ● Along with tools to support the provisioning and destruction of virtual machines.

20 Provisioning and management ● Is the glue that makes virtualization usable ● In commercial virtualization environments the provisioning/management toolkits represent the bulk of the licensing cost (VMware) and the secret sauce (VMotion, disaster recovery, backup, etc) ● Examples: ● XEN tools – a collection of perl scripts for spinning VMs tools.org/software/xen-tools/ tools.org/software/xen-tools/ ● KVM tools - ● Cloud.com/cloud-stack (orchestration) - ● Rightscale – (orchestration multiple public/private clouds) ● Puppet (host / configuration management) ● PDSH – (Parallel Shell execution) ● Salt/chef/ansible/parallel-ssh/libvirt.....

21 Virtualbox Exercise ● Download virtualbox and install it.virtualbox ● Dowload the openbsd install iso.openbsd install iso. ● Create an openbsd 32bit virtual machine. ● Adjust the virtual machine settings to boot off the iso. ● Install and accept the defaults at the prompts to install OpenBSD. ● After instalation, type reboot and then intercept the reboot by shutting down the vm at the bios stage ● Change boot order in the VM settings (CD last) ● Boot into VM

22

23

24

25

26

27

28 ● Choose interactive install (I) ● Choose defaults by pressing on the prompts below ● Note that we configured the default interface to acquire an address via DHCP

29 ● Elect not to run X windows ● Elect to enable ssh ● Type in a root password (afnog). You will need this password to log in once the installation is complete.

30 ● Auto layout and auto partition... ● Note the resource consumption for OpenBSD is extremely low!

31 ● Ignore the SHA256 signature verification prompt! ● Image below should give you an idea...

32 ● Wait for the installation to complete.

33 ● Reboot the instance ● Intercept the reboot at the bios stage and shutdown the instance.

34 ● Stop the instance and adjust the settings of the VM ● Make sure that CD/DVD comes after Hard disk as shown below ● Restart the instance

35

36 Class Exercise ● Good engineers are lazy, lazy, lazy, lazy!lazy ● vagrant profiter de la vie!! vagrant

37 Vagrant ● Install vagrant from the local server on your laptop local server ● Make a vagrant file by issuing vagrant init ● Edit the vagrantfile ● Change the line: ● From: config.vm.box = "base" ● To: config.vm.box = " xes/hashicorp/precise32/version/1/provider/virtu albox.box"

38 ● Create a new dir and change to it ● Run vagrant init ● Run ee Vagrantfile to edit the generated file ● Create a new dir and change to it ● Run vagrant init ● Run ee Vagrantfile to edit the generated file ● Change the line config.vm.box to the one below ● sion/1/provider/virtualbox.box

39 ● Run vagrant up to start the instance

40 ● Run vagrant ssh to connect to the instance ● You just provisioned an instance in minutes ● You can now configure this instance for a service ● You can change to another directory and repeat the process to get another instance ● Run: vagrant init ● Edit the file: Vagrantfile ● Run: vagrant up ● Exercise: Create a new FreeBSD vm using this box: ● 9.2/version/1/provider/virtualbox.box

41 Other vagrant commands ● List instances: vagrant global-status ● Stop an instance: vagrant halt ● Suspend an instance: vagrant suspend ● Resume an instance: vagrant resume ● Terminate an instance: vagrant destroy ● Snapshot and store/share an instance: vagrant package