An overview of OpenVZ virtualization technology Kir Kolyshkin OpenVZ project manager Gelato ICE 17 Apr 2007.

Slides:



Advertisements
Similar presentations
Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
Advertisements

Linux Virtualization Kir Kolyshkin OpenVZ project manager.
Profit from the cloud TM Parallels Dynamic Infrastructure AndOpenStack.
Virtual Machines What Why How Powerpoint?. What is a Virtual Machine? A Piece of software that emulates hardware.  Might emulate the I/O devices  Might.
VIRTUALIZATION WITH SOLARIS A.V.Bogdanov, PyaeSoneKoKo State Marine Technical University, St.petersburg.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Xen and the Art of Virtualization A paper from the University of Cambridge, presented by Charlie Schluting For CS533 at Portland State University.
Overview Basic functions Features Installation: Windows host and Linux host.
Virtualization B. Ramamurthy. References Practical Virtualization Solutions: Virtualization from the Trenches by K. Hess and A. Newman, Prentice-Hall.
Virtualization for Cloud Computing
The Origin of the VM/370 Time-sharing system Presented by Niranjan Soundararajan.
A Brief Introduction To Virtualization Technologies Yin Yunqiao HP.
LINUX Virtualization Running other code under LINUX.
Linux Virtualization Kir Kolyshkin OpenVZ project manager.
Virtualization A way To Begin with Virtual Reality… - Rahul Khanwani.
Methodologies, strategies and experiences Virtualization.
Tanenbaum 8.3 See references
Programming mobile devices Part II Programming Symbian devices with Symbian C++
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Operating System Virtualization
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
An Introduction to Xen Prof. Chih-Hung Wu
Hosting Virtual Networks on Commodity Hardware VINI Summer Camp.
Microkernels, virtualization, exokernels Tutorial 1 – CSC469.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
Virtualization Lab 3 – Virtualization Fall 2012 CSCI 6303 Principles of I.T.
Hands-On Virtual Computing
A Cloud is a type of parallel and distributed system consisting of a collection of inter- connected and virtualized computers that are dynamically provisioned.
OpenVZ Live Migration Jim Owens. Overview Review of OpenVZ Features Resource management Installation VM creation VM management Checkpointing Migration.
Linux Virtualization Technology Alternatives Kir Kolyshkin OpenVZ project manager Rencontres Mondiales du Logiciel Libre 13 July 2007.
Using Virtualization in the Classroom. Using Virtualization in the Classroom Session Objectives Define virtualization Compare major virtualization programs.
Plesk for Windows Server Automation SWSOFT GLOBAL HOSTING SUMMIT 2006 Todd L. Crumpler May 30-June 1, 2006.
Section 3.1: Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random.
Virtual Machine Security Systems Presented by Long Song 08/01/2013 Xin Zhao, Kevin Borders, Atul Prakash.
Recent advances in the Linux kernel resource management Kir Kolyshkin, OpenVZ
Containers are the future of Cloud Pavel Odintsov CTO, FastVPS Eesti OU
E X C E E D I N G E X P E C T A T I O N S OP SYS Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Functions of an operating.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Introduction to virtualization
Virtual Machines Created within the Virtualization layer, such as a hypervisor Shares the physical computer's CPU, hard disk, memory, and network interfaces.
Full and Para Virtualization
Docker and Container Technology
Hands-On Virtual Computing
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.
CITA 171 Section 1 DOS/Windows Introduction. DOS Disk operating system (DOS) –Term most often associated with MS-DOS –Single-tasking operating system.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Intro To Virtualization Mohammed Morsi
Linux Virtualization Kir Kolyshkin OpenVZ project manager.
Open Source Virtualization Andrey Meganov RHCA, RHCX Consultant / VDEL
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Linux Virtualization Kir Kolyshkin OpenVZ project manager.
9/30/2016 OpenVZ: Linux Containers Kir Kolyshkin LinuxCon 2009, Portland.
Containers vs Others Xen, VMware, etc. ● Emulation/paravirtualization ● Can run different OSs on the same box ● Lower density/scalability ● OS sprawl problem.
An overview of OpenVZ virtualization technology Kir Kolyshkin OpenVZ project manager Gelato ICE 17 Apr 2007.
XEN – The Art of Virtualisation. So what is Virtualisation? ● Makes use of spare capacity ● Run multiple instances of OSes simultaneously ● Multitasking.
VM vs Container Xen, KVM, VMware, etc. ● Hardware emulation / paravirtualization ● Can run different OSs on the same box ● Dozens of instances ● OS sprawl.
Seven Problems of Linux Containers
Virtualization for Cloud Computing
Virtual Machine Monitors
Virtualization in Grid Rock
Current Generation Hypervisor Type 1 Type 2.
Container-based Operating System Virtualization: A scalable, High-performance Alternative to Hypervisors Stephen Soltesz, Herbert Potzl, Marc E. Fiuczynski,
Linux Virtualization Kir Kolyshkin OpenVZ project manager.
Operating System Structure
Virtualization overview
Running other code under LINUX
CIT 480: Securing Computer Systems
Overview Introduction VPS Understanding VPS Architecture
Presentation transcript:

An overview of OpenVZ virtualization technology Kir Kolyshkin OpenVZ project manager Gelato ICE 17 Apr 2007

2 What is virtualization? Virtualization is a technique for deploying technologies. Virtualization creates a level of indirection or an abstraction layer between a physical object and the managing or using application. Virtualization is a framework or methodology of dividing the resources of a computer into multiple execution environments... A key benefit of the virtualization is the ability to run multiple operating systems on a single physical server and share the underlying hardware resources – known as partitioning.

3 Ways to Virtualize Hardware Emulation Para-Virtualization Virtualization on the OS level Multi-server virtualization

4 Emulation/Paravirtualization VMware Parallels QEmu Bochs Xen UML (User Mode Linux) KVM

5 OS Level Virtualization OpenVZ/Virtuozzo FreeBSD jails Linux-VServer Solaris Zones

Comparison Can run different OSs on the same box Low density/scalability Slow/complex management – OS sprawl problem Low/moderate performance Native performance: no overhead Dynamic resource allocation, best scalability Single OS per box: easier to manage

7 Evolution of Operating Systems Multitask many processes Multiuser many users Multiple execution environments many virtual environments (VEs, VPSs, containers, guests, partitions...)

8 OpenVZ: components  Kernel  Virtualization and Isolation  Resource Management  Checkpointing  Tools  vzctl: Virtual Environment (VE) control utility  vzpkg: VE software package management  Templates  precreated VE images for fast VE creation

9 Kernel: Virtualization & Isolation Each virtual environment has its own Files System libraries, applications, virtualized /proc and /sys, virtualized locks etc. Process tree Featuring virtualized PIDs, so that the init PID is 1 Network Virtual network device, its own IP addresses, set of netfilter and routing rules Devices Plus if needed, any VE can be granted access to real devices like network interfaces, serial ports, disk partitions, etc. IPC objects shared memory, semaphores, messages …

10 Kernel: Resource Management Managed resource sharing and limiting. User Beancounters is a set of per-VE resource counters, limits, and guarantees (kernel memory, network buffers, phys pages, etc.) Fair CPU scheduler (SFQ with shares and hard limits) Two-level disk quota (first-level: per-VE quota; second- level: ordinary user/group quota inside a VE) Resource management is what makes OpenVZ different from other OS virtualization solutions.

Kernel: Checkpointing/Migration Complete VE state can be saved in a file  running processes  opened files  network connections, buffers, backlogs, etc.  memory segments VE state can be restored later VE can be restored on a different server

12 Tools: VE control # vzctl create ostemplate fedora-core-5 # vzctl set ipadd save # vzctl start 101 # vzctl exec 101 ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 init ? Ss 0:00 syslogd -m ? Ss 0:00 /usr/sbin/sshd ? Ss 0:00 xinetd -stayalive -pidfile ? Ss 0:00 sendmail: accepting connections ? Ss 0:00 sendmail: Queue ? Ss 0:00 /usr/sbin/httpd ? S 0:00 \_ /usr/sbin/httpd ? S 0:00 \_ /usr/sbin/httpd 6416 ? Rs 0:00 ps axf # vzctl enter 101 bash# logout # vzctl stop 101 # vzctl destroy 101

13 Tools: Templates # vzpkgls fedora-core-5-i386-default centos-4-x86_64-minimal # vzpkgcache (creates templates from metadata/updates existing templates) # vzyum 101 install gcc (installs gcc and its deps to VE 101)

14 Density 768 (¾) MB RAM - up to 120 VEs 2GB RAM - up to 320 VEs

15 Users Feedback Hello all, just downloaded and installed OpenVZ, and i must say its a big improvement over other VPS systems that i have tested IMHO. I use virtuozzo in my day job and openvz is very much the same. Just no windows GUI which I hate using anyway! Virtuozzo and openvz are wonderful - I don't know why more people aren't using them. I hear a lot of hype for xen and usermode but virtuozzo/openvz is so great for many common needs. I'm very happy to be using openvz - very good for my side projects that I can't afford real virtuozzo for. Last week when we were in limbo about what to do, it was decided to try out XEN Virtualization. From what is written in the press the Xen system has alot of promise, but was far too complicated to get working in our configuration. OpenVZ was the only virtual server system that was simple to install and get working.

16 Usage Scenarios Server Consolidation Hosting Development and Testing Security Educational

17 Server Consolidation A bunch of servers: harder to manage upgrade is a pain eats up rack space high electricity bills A bunch of VEs: uniform management easily upgradeable and scalable fast migration

18 Hosting Web server serving hundreds of virtual hosts Users see each other processes etc DoS attacks Unable to change/upgrade hardware Users are isolated from each other VE is like a real server, just cheap Much easier to admin

19 Development & Testing A lot of hardware Zoo: many different Linux distros Frequent reinstalls take much time Fast provisioning Different distros can co-exist on one box Cloning, snapshots, rollbacks VE is a sandbox – work and play, no fear

20 Security Several network services are running One of them has a hole Cracker gets through Put each service into a separate VE OpenVZ creates walls between applications Added benefit: dynamic resource management

21 Educational No root access Frequent reinstalls DoS attacks Everybody and his dog can have a root access Different Linux distros No need for a lot of hardware

22 Recent achievments NFS and FUSE in VE VE I/O accounting and scheduling Checkpointing/live migration for IA64 Port to RHEL5 kernel Port to vanilla

Mainstream kernel integration Collaborative community effort:  OpenVZ  IBM (Metacluster)  Linux-VServer  Eric Biederman (namespaces)  Google (Paul Menage, containers) Current progress (as of linux ):  IPC namespaces/virtualization  utsname() virtualization  preliminary support for PID namespaces More to come soon (networking, beancounters)

24 How can you help? Use OpenVZ Contribute to OpenVZ, be a part of community:  Programmer fixes enhancements new functionality  Non-programmer bug reports work with wiki answer support questions

What about Itanium? OpenVZ is platform-independent  as long as Linux support it, we support it The only arch-dependent piece is CPT  recently added checkpointing for IA64 We support and care for Itanium for years  production quality, first released in Mar 2003 No problems with scalability or disk IO  lots of memory, lots of CPUs no prob  native I/O speed

26 Project Links Main site: Downloads: Wiki: Sources: Forum: Bug Tracking: Blog: Mailing lists: