Using Virtualization in the Real world. 2 Whoami ? Kris Senior Linux and Open Source Consultant „Infrastructure Architect“ Linux since.

Slides:



Advertisements
Similar presentations
Status Report Ian Pratt University of Cambridge and Founder of XenSource Inc. Computer Laboratory.
Advertisements

Xen and the Art of Virtualization Ian Pratt University of Cambridge and Founder of XenSource Inc. Computer Laboratory.
Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
Virtualisation From the Bottom Up From storage to application.
Bart Miller. Outline Definition and goals Paravirtualization System Architecture The Virtual Machine Interface Memory Management CPU Device I/O Network,
High Availability through Virtualization
Network Implementation for Xen and KVM Class project for E : Network System Design and Implantation 12 Apr 2010 Kangkook Jee (kj2181)
Virtualization for Cloud Computing
LINUX Virtualization Running other code under LINUX.
Methodologies, strategies and experiences Virtualization.
Tanenbaum 8.3 See references
Virtualization Lab 3 – Virtualization Fall 2012 CSCI 6303 Principles of I.T.
ICT Day Term 4,  Virtualisation is growing in usage.  Current CPU’s are designed to support Virtualisation.  Businesses are looking at virtualisation.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2010 Seminar #1 VIRTUALIZATION EVERYWHERE.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2009 Seminar #1 VIRTUALIZATION EVERYWHERE.
A Cloud is a type of parallel and distributed system consisting of a collection of inter- connected and virtualized computers that are dynamically provisioned.
Virtualization. Virtualization  In computing, virtualization is a broad term that refers to the abstraction of computer resources  It is "a technique.
Xen Overview for Campus Grids Andrew Warfield University of Cambridge Computer Laboratory.
การติดตั้งและทดสอบการทำคลัสเต อร์เสมือนบน Xen, ROCKS, และไท ยกริด Roll Implementation of Virtualization Clusters based on Xen, ROCKS, and ThaiGrid Roll.
Virtualization: Not Just For Servers Hollis Blanchard PowerPC kernel hacker.
COMS E Cloud Computing and Data Center Networking Sambit Sahu
Virtualization for the LHCb Online system CHEP Taipei Dedicato a Zio Renato Enrico Bonaccorsi, (CERN)
Outline for Today Announcements –1 st programming assignment coming soon. Objective of the lecture –OS and Virtual Machines.
02/09/2010 Industrial Project Course (234313) Virtualization-aware database engine Final Presentation Industrial Project Course (234313) Virtualization-aware.
Microsoft Management Seminar Series SMS 2003 Change Management.
Queensland University of Technology CRICOS No J VMware as implemented by the ITS department, QUT Scott Brewster 7 December 2006.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Full and Para Virtualization
Cloud Computing Lecture 5-6 Muhammad Ahmad Jan.
VM vs Container Xen, KVM, VMware, etc. Hardware emulation / paravirtualization Can run different OSs on the same box Dozens of instances OS sprawl problem.
Intro To Virtualization Mohammed Morsi
OpenQRM is not Dead by Kris Buytaert. 2 Kris Buytaert ● Senior Linux and Open Source Inuits.be ● „Infrastructure Architect“ ● Linux since.
Managing Xen VirtualMachines with openQRM by Kris Buytaert.
Xen and the art of.. Open Source Virtualisation & Consolidation Kris Buytaert CTO, X-Tend
Deploying Xen in a Large Infrastructure. Who Am I – Linux and Open Source Consultant – „Infrastructure Architect“ – Linux since 0.98 – IANAKH – Senior.
MySQL HA An overview Kris Buytaert. ● Senior Linux and Open Source ● „Infrastructure Architect“ ● I don't remember when I started.
Building (Virtual) Appliances
CLUG TALK Virtualbox Tuesday, 29 September 2009 One of the Jonathans.
Open Source Virtualization Andrey Meganov RHCA, RHCX Consultant / VDEL
OpenQRM is not Dead the lightning version Building a cloud in 5 mnutes by Kris Buytaert.
Automating Xen Virtual Machine Deployment Kris Buytaert
Open Source Virtualisation and Consolidation. Whoami ● Senior Linux and Open Source Consultant/ X-Tend ● „Infrastructure Architect“ ● Linux since.
Virtualization Overview Date: 8/7/2012 SCF-FEF-SSS Author: Tyler Parsons.
Devops Kris Buytaert. ● I used to be a Dev, ● Then Became an Op ● Senior Linux and Open Source ● „Infrastructure Architect“ ● Building.
Open Source Virtualisation and Consolidation. Whoami ● Linux and Open Source Consultant ● „Infrastructure Architect“ ● Linux since 0.98 ● IANAKH ● Senior.
Automating Xen Virtual Machine Deployment Kris Buytaert
Open Source Virtualization An overview Kris Buytaert
XEN – The Art of Virtualisation. So what is Virtualisation? ● Makes use of spare capacity ● Run multiple instances of OSes simultaneously ● Multitasking.
Automating Xen Virtual Machine Deployment Kris Buytaert
Virtualization for Cloud Computing
A move towards Greener Planet
Introduction to Virtualization
Virtualization.
Let's talk about Linux and Virtualization in 'vLAMP'
Bentley Systems, Incorporated
Adam Backman Chief Cat Wrangler – White Star Software
Current Generation Hypervisor Type 1 Type 2.
Virtualization Dr. Michael L. Collard
Building a Virtual Infrastructure
Xen and the Art of Virtualization
Enrico Bonaccorsi, (CERN) Loic Brarda, (CERN) Gary Moine, (CERN)
Virtualization overview
XenFS Sharing data in a virtualised environment
Xen Summit Spring 2007 Platform Virtualization with XenEnterprise
Running other code under LINUX
OS Virtualization.
Virtualization Meetup Discussion
Cloud Migrations Pose Important Questions
Virtualization Dr. S. R. Ahmed.
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Presentation transcript:

Using Virtualization in the Real world

2 Whoami ? Kris Senior Linux and Open Source Consultant „Infrastructure Architect“ Linux since 0.98 Linux Newtec.eu Large Scale Deployment, High Availability Surviving the 10 th floor test Virtualization with Xen(tm): Including Xenenterprise, Xenserver, and XenExpress by David E. Williams

3 Agenda Why use Virtualization Do you know Xen ? A Too Early Adopter An uninformed Customer A telco environment –Why Newtec –Automated Xen Installations –Complex Xen Networking – Problem Situation – Virtual Build Instances with Xen Lessons Learned

Why Virtualisation Matters ? Consolidation Saving Idle Cycles Security Separating Development/Staging/Production platforms A Greener Environment Following The Hype Having a budget that needs to be emptied.

Virtualisation vs Virtualisation Single OS image: Ensim, Vservers, Solaris Zones – Group user processes into resource containers – Hard to get strong isolation – Typically used for Hosting/Virtual Hosting/ISP Chroot’s on steroids

Virtualisation vs Virtualisation Full virtualization: VMware, VirtualPC, Qemu – Run multiple unmodified guest OSes – Hard to efficiently virtualize x86 – No Access to the hardware – No Realtime guarantees – Problematic for certain privileged instructions

Virtualisation vs Virtualisation Para-virtualization: UML, Xen, – Run multiple guest OSes ported to special arch – Arch Xen/x86 is very close to normal x86 – Some Access to underlying hardware – Better Performance – Needs modification to the OS

Virtualisation vs Virtualisation Hardware Supported Virtualisation –Xen – KVM – Others adopted slowly No more changes to the software, Hardware solves the problem

Let‘s talk about Xen Pioneered ParaVirtualisation Pioneered VT support Went Mainstream real fast ! Stable and performant platform Scriptable Open Source Scriptable Targeted at Server Platforms 98% CPU Speed Open Source Known Developers Let's not talk about KVM (yet)

DomU vs Dom0 ● Xen boots ● Bye bye “x86” HOSTA:/etc/xen/scripts # xm list Name Id Mem(MB) CPU State Time(s) Console Domain r ● Domain0 = management ● DomainU = virtual machines

Xen 3.0 Arch Event Channel Virtual MMUVirtual CPU Control IF Hardware (SMP, MMU, physical memory, Ethernet, SCSI/IDE) Native Device Driver GuestOS (XenLinux) Device Manager & Control s/w Native Device Driver GuestOS (XenLinux) Unmodified User Software Front-End Device Drivers GuestOS (XenLinux) Unmodified User Software Front-End Device Drivers Unmodified GuestOS (WinXP)) Unmodified User Software Safe HW IF Xen Virtual Machine Monitor Back-End VT-x AGP ACPI PCI SMP

A too early adopter Chose a core service first ! Add more complexity than needed –Complexity is the enemy of High Availability Mix beta Software with more beta software Do not test Act first, then plan Go directly to production Downtime guaranteed

An uninformed Customer Major Hardware Vendor –Orders 2 weeks Consultancy –Orders software licenses –Does not allow direct contact with customer First Contact with customer –Just install the boxes please –How do you want them ? The Magical Migration –Of an uninventarized services Oh and they ordered licenses for the wrong architecture :)

14 Newtec Newtec is world renowned as a market leader in Satellite Communications, delivering an extensive range of highly innovative products and solutions. Since being founded in 1985, TV broadcasters, Telecom Service Providers, Integrators and Satellite Operators from all over the world have been relying on the exceptional performance and reliability of our unrivaled products. They build devices such as Modulators / Demodulators Platforms around these devices –DVB-RCS –SatMode –Sat3Play –Menos –...

15 Why Open Newtec ? Because We Love It T.i.n.a We are part of the community We contribute back –Patches –Documentation –Xen in 2004 –Production with Xen2 –MySQL Cluster in 2005 –...

Hub : Original Environment : +/-198 machines (maximum) –1 x Common = 2 x 4 Applications HA –16 x Blade 6 x Cache 2 x shaping 2 x measurement 2 x pop management 2 x device management Terminals: Linux in a DVB-RCS/S3P Platform

Our specific reasons for Virtualisation Testing Large Scale System Deployment –How to you test bootstrapping a large environment ? –Buy machines for your test platform ? –Interrupt regular services –Take down a chain ? –How do you test upgrade and rollback procedures ? No Budget for full test platforms :)

Full Hub in 1 machine Testing network paths Testing Failover Prototyping Testing Configuration Management Virtual Platforms

Consolidation in the 2Way Sat Hub Each application had it's own machine Highly Available Over Powered Small identical web applications Each on their own identical network In a different VLAN Perfect match for Virtualisation

Deploying Virtual Machines in a Large Environment –Consolidation of previously deployed machines –Repeated work is boring and error prone –We automated the physical machine deployment already so... ==> Automating Xen Virtual Machine Deployment

6+16x(2x3+6))=198 machines –Consolidated already 1 application –now x(2x2+6) = 166 machines (6+2x(2x2+6) = 24) –we moved already 2 redundant applications to 1 of the 6 shared machines Less Cabling Less Switches Less Power Xen in Action

Virtual Gateway Cluster Different test and validation platforms All with identical network topologies Gateways (SSH) to each virtual platform GW-1, GW-2, GW-3, GW-8 ==> vGW1- vGW8 Became highly critical GW-X & GW-Y both containg vGW-1 - vGW-14

Building a truly transparant proxy –Integration of LVS and Tproxy fails –Required multiple machines to work –CONNTRACK module conflicts Used Xen to build this on 1 machine Solving Netfilter Problems

24 Solution: Dynamic Build Environments Use a virtual environment with linux instances: that are set up every time specific software needs to be build for every type of software These Linux instances have their own filesystem image: With specific build software installed Can only be used to build one type of software As small as possible Information about the type of software Is stored in release notes (versioning systems)‏ Will be used to determine the linux image to use Can be stored together with the software.. On one physical machine

Lessons Learned: Only virtualise when needed Test, test, test Put delays between machine booting Xen highlighted some issues with typical linux setups (bridging code) and improved it there Customers need to be stopped in time Complexity is the enemy of availability

Kris Buytaert Further Reading Contact:

Hybrid Deployment Goals Hands off (Virtual) Machine Deployment Minimal impact on the current infrastructure Fast deployments Easy to redeploy / reproduce No vendor lock in‘s We don't like doing the same stuff for different distributions

The 10 th Floor Test Grab a random machine (don’t take a backup before) ● Throw it out a 10 th floor window ● Can you recover it in <10 minutes ? ● Even for Virtual Machines ? (Steve Traugot)