© 2009 UC Regents1 Brief Introduction to Xen Virtualization.

Slides:



Advertisements
Similar presentations
© 2008 UC Regents1 Introduction to Clusters and Rocks Overview Rocks for Noobs.
Advertisements

Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
1 Applications Virtualization in VPC Nadya Williams UCSD.
Virtualization and Cloud Computing. Definition Virtualization is the ability to run multiple operating systems on a single physical system and share the.
The Operating System. What is an Operating System? The program that is loaded first and manages the hardware resources like main memory, backing storage.
NWCLUG 01/05/2010 Jared Moore Xen Open Source Virtualization.
Xen , Linux Vserver , Planet Lab
Introduction to Virtualization
© UC Regents 2010 Extending Rocks Clusters into Amazon EC2 Using Condor Philip Papadopoulos, Ph.D University of California, San Diego San Diego Supercomputer.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
OS Spring’03 Introduction Operating Systems Spring 2003.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Processes and Resources
OPERATING SYSTEMS Introduction
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
Introducing VMware vSphere 5.0
Virtualization for Cloud Computing
VIRTUALISATION OF HADOOP CLUSTERS Dr G Sudha Sadasivam Assistant Professor Department of CSE PSGCT.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
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.
System Center 2012 Setup The components of system center App Controller Data Protection Manager Operations Manager Orchestrator Service.
Tanenbaum 8.3 See references
Real Security for Server Virtualization Rajiv Motwani 2 nd October 2010.
© UC Regents 2010 More Nuts and Bolts in Virtualization.
Microkernels, virtualization, exokernels Tutorial 1 – CSC469.
Nimbus & OpenNebula Young Suk Moon. Nimbus - Intro Open source toolkit Provides virtual workspace service (Infrastructure as a Service) A client uses.
Hands-On Virtual Computing
So, Jung-ki Distributed Computing System LAB School of Computer Science and Engineering Seoul National University Implementation of Package Management.
1.  PRAGMA Grid test-bed : Shares clusters which managed by multiple sites Realizes a large-scale computational environment. › Expects as a platform.
Benefits: Increased server utilization Reduced IT TCO Improved IT agility.
Virtualization Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation is licensed.
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
INTRODUCTION TO VIRTUALIZATION KRISTEN WILLIAMS MOSES IKE.
COMS E Cloud Computing and Data Center Networking Sambit Sahu
Xen Basics A Primer for the CPS 110 Programming Assignments Angela Dalton.
High Performance Computing on Virtualized Environments Ganesh Thiagarajan Fall 2014 Instructor: Yuzhe(Richard) Tang Syracuse University.
Virtualization 3 Subtitle: “What can we do to a VM?” Learning Objectives: – To understand the VM-handling mechanisms of a hypervisor – To understand how.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Introduction to virtualization
Security Vulnerabilities in A Virtual Environment
Full and Para Virtualization
COMP25212: Virtualization 3 Subtitle: “What can we do to a VM?” Learning Objectives: –To understand the VM-handling mechanisms of a hypervisor –To understand.
Lecture 26 Virtual Machine Monitors. Virtual Machines Goal: run an guest OS over an host OS Who has done this? Why might it be useful? Examples: Vmware,
Virtualization One computer can do the job of multiple computers, by sharing the resources of a single computer across multiple environments. Turning hardware.
Operating-System Structures
Cloud Computing – UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary->
Course 03 Basic Concepts assist. eng. Jánó Rajmond, PhD
Libvirt management Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
VIRTUAL MACHINE – VMWARE. VIRTUAL MACHINE (VM) What is a VM? – A virtual machine (VM) is a software implementation of a computing environment in which.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
IBM Software Group © 2008 IBM Corporation IBM Tivoli Provisioning Manager 7.1 Virtualization.
BY: SALMAN 1.
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
bitcurator-access-webtools Quick Start Guide
BY: SALMAN.
BOOTP and DHCP Objectives
Oracle Solaris Zones Study Purpose Only
Group 8 Virtualization of the Cloud
Introduction to Operating Systems
OS Virtualization.
HC Hyper-V Module GUI Portal VPS Templates Web Console
Windows Virtual PC / Hyper-V
bitcurator-access-webtools Quick Start Guide
Presentation transcript:

© 2009 UC Regents1 Brief Introduction to Xen Virtualization

© 2009 UC Regents2 What is Xen Xen is virtual machine monitor (VMM) used to control VMs Xen VMM is called the hypervisor Xen VMs are called guests

© 2009 UC Regents3 What is Xen Guest device i/o is passed to and handled by hypervisor

Virtualized Console console (kvm) is also virtualized Virt-manager Run in Dom0 Run as root Can start/stop KVM access © 2009 UC Regents4

Click for Console © 2009 UC Regents5

Graphical Console Works Also © 2009 UC Regents6

Recap Virtual Machines look like Physical Machines Device I/O goes through Hypervisor Root user on Dom0 is in charge Easy to get confused What does lspci do? Where is a VM physically located? © 2009 UC Regents7

What is it good for? Slicing servers into many small services We do this for web, cvs, trac, etc User controlled software stacks Build at home and deploy elsewhere Turn time-sharing into single-user Virtual Clusters HPC? © 2009 UC Regents8

Xen Disk Performance © 2009 UC Regents9 Source: Paravirtualization for HPC Systems (2006) Lamia Youseff, Rich Wolski, Brent Gorda, Ra Krintz

Xen Memory Performance © 2009 UC Regents10 Source: Paravirtualization for HPC Systems (2006) Lamia Youseff, Rich Wolski, Brent Gorda, Ra Krintz

We Need A Bypass All I/O goes through DomU kernel Xen HyperVisor Dom0 kernel Non-Xen HPC IO uses OS-bypass Kernel DMA directly to/from application Only way to get low latency Xen Needs a similar idea Give DomU kernel direct HW access Let Dom0 kernel DMA directly to DomU application Solved for some interconnects Mellanox has this today for IB Myrinet can bind directly to DomU © 2009 UC Regents11

© 2009 UC Regents12 Xen in Rocks 5.3 Virtual Clusters

© 2009 UC Regents13 Step 0 You must install a Rocks 5.3 frontend with the Xen Roll

© 2009 UC Regents14 Step 0.5 Optionally install at least one cluster node as a VM Container

© 2009 UC Regents15 Supported Configurations Physical frontend with virtual compute nodes Virtual frontend with virtual compute nodes Note: A virtual frontend with physical compute nodes is doable, but it requires an understanding of VLANs

© 2009 UC Regents16 Physical Frontend and Virtual Computes All node names with a white background are physical machines All node names with purple backgrounds are virtual This was the only configuration that Rocks v5.0 supported

Virtual Frontend and Virtual Computes © 2009 UC Regents17

Virtual Frontend and Virtual Computes Network traffic for VM frontend and VM computes are isolated with a VLAN Processes running on the physical machines dont see the traffic from the virtual cluster © 2009 UC Regents18

© 2009 UC Regents19 Key VM Functions add cluster Add a new VM cluster start host vm Boot a VM set host boot Set a VM to install or boot its OS

© 2009 UC Regents20 rocks add cluster command What this does: Creates a frontend VM on the physical frontend (frontend-0-0-0) Creates virtual compute nodes on VM containers (in round robin order) Creates a unique VLAN for this cluster and plumbs the VMs to it Adds a new unique VLAN to the physical machines on-the- fly Adding a Cluster # rocks add cluster {FQDN of frontend} \ {IP of frontend} {number of computes}

© 2009 UC Regents21 Adds an entry to the vm_nodes table Keep track of which physical host houses the VM Adds an entry to the vm_disks tables Allocates disk space for the VM Uses the Xen file virtual block device Puts the file on the largest partition of the physical host Allocates unique MAC addresses for each VM MAC prefix is based on the frontends public IP More on What the Command Does

© 2009 UC Regents22 MAC prefix is based on the frontends public IP Take the public IP, toss the first octet, then reverse it Most unique part of IP address is the MACs first octet Also set the locally administered bit and clear the multicast bit MAC Address Prefix

© 2009 UC Regents23 Example Output: Adding a Cluster # rocks add cluster vi-1.rocksclusters.org \ created frontend VM named: frontend created compute VM named: hosted-vm created compute VM named: hosted-vm-0-1-0

© 2009 UC Regents24 Adding a Cluster # rocks list cluster FRONTEND CLIENT NODES TYPE bayou.rocksclusters.org: physical : vm-container-0-0 physical : vm-container-0-1 physical vi-1.rocksclusters.org: VM : hosted-vm VM : hosted-vm VM

© 2009 UC Regents25 [container-hosts=string] A list of VM container hosts that will be used to hold the VM compute nodes. [cpus-per-compute=string] The number of CPUs to allocate to each VM compute node. The default is 1. [disk-per-compute=string] The size of the disk (in gigabytes) to allocate to each VM compute node. The default is 36. [disk-per-frontend=string] The size of the disk (in gigabytes) to allocate to the VM frontend node. The default is 36. [mem-per-compute=string] The amount of memory (in megabytes) to allocate to each VM compute node. The default is [vlan=string] The VLAN ID to assign to this cluster. All network communication between the nodes of the virtual cluster will be encapsulated within this VLAN. The default is the next free VLAN ID. rocks add cluster Extra Flags

© 2009 UC Regents26 rocks start host vm command This starts a standard Rocks installation on the VM Install the Frontend VM # rocks start host vm frontend-0-0-0

© 2009 UC Regents27 To input data at user screens, need to bring up the console for the VM frontend Install the Frontend VM # virt-manager

© 2009 UC Regents28 Input the data Hint: use the FQDN of the physical frontend for the Hostname of the Roll Server The frontend will install, then reboot X will start and youll see the graphical login screen Just like a physical frontend! Install the Frontend VM

Virtualized Console console (kvm) is also virtualized Virt-manager Run in Dom0 Run as root Can start/stop KVM access © 2009 UC Regents29

Graphical Console Works Also © 2009 UC Regents30

Install VM Compute Nodes Login to the VM frontend Run insert-ethers On the physical frontend, execute: The software configuration comes from the VM frontend The power control comes from the physical frontend © 2009 UC Regents31 # rocks start host vm hosted-vm-0-0-0

Virtual Frontend and Virtual Computes © 2009 UC Regents32

Get Status Use rocks list cluster status=y On the physical frontend: © 2009 UC Regents33 # rocks list cluster status=y FRONTEND CLIENT NODES TYPE STATUS bayou.rocksclusters.org: physical : vm-container-0-0 physical : vm-container-0-1 physical vi-1.rocksclusters.org: VM active : hosted-vm VM active : hosted-vm VM nostate

© 2009 UC Regents34 Other Rocks Xen Commands

© 2009 UC Regents35 list List info about all configured VMs # rocks list host vm status=y VM-HOST SLICE MEM CPUS MAC HOST STATUS frontend-0-0-0: :77:6e:80:00:00 bayou active frontend-0-0-0: :77:6e:80:00: hosted-vm-0-0-0: :77:6e:80:00:02 vm-container-0-0 active hosted-vm-0-1-0: :77:6e:80:00:03 vm-container-0-1 nostate

© 2009 UC Regents36 set Change VM parameters Example, allocate 4 GB of memory to a VM: # rocks set host vm {host} [disk=string] [disksize=string] \ [mem=string] [physnode=string] [slice=string] \ [virt-type=string] # rocks set host vm hosted-vm mem=4096

© 2009 UC Regents37 pause/resume Execute the pause and resume Xen commands on a VM pause holds the VM in memory, but the hypervisor doesnt schedule the VM Like hitting a breakpoint # rocks pause host vm hosted-vm # rocks resume host vm hosted-vm-0-0-0

© 2009 UC Regents38 save/restore Execute the save and restore Xen commands on a VM Whats the difference between pause and save? pause keeps the VM in memory save writes VM state to a file and releases memory and CPU # rocks save host vm hosted-vm # rocks restore host vm hosted-vm-0-0-0

© 2009 UC Regents39 stop Destroy a VM This is equivalent to pulling the power cord on a physical machine # rocks stop host vm hosted-vm-0-0-0

© 2009 UC Regents40 move Move a VM from one physical node to another This operation will take some time It saves the current VM Copies the VMs disk file to the new VM container If your diskfile is 36 GB, it will move 36 GB across the network Then restores the VM # rocks move host vm hosted-vm vm-container-1-0

© 2009 UC Regents41 Other Internal Commands dump Used on the restore roll to capture VM configuration report Called by rocks start host vm to create Xen VM configuration files remove Called by rocks remove host to remove the VM specific info for a host