Linux Virtualization. Kir Kolyshkin <kir@openvz.org> OpenVZ project manager



Similar documents
Virtualization in Linux

HA clustering made simple with OpenVZ

Virtual Machine Monitors. Dr. Marc E. Fiuczynski Research Scholar Princeton University

Xen Virtualization: Xen (source) and XenServer

Proposal for Virtual Private Server Provisioning

Open Source Virtualization

Lecture 2 Cloud Computing & Virtualization. Cloud Application Development (SE808, School of Software, Sun Yat-Sen University) Yabo (Arber) Xu

virtualization.info Review Center SWsoft Virtuozzo (for Windows) //

Practical Applications of Virtualization. Mike Phillips IAP 2008 SIPB IAP Series

2972 Linux Options and Best Practices for Scaleup Virtualization

Comparing Free Virtualization Products

Parallels Virtuozzo Containers

Virtualization Technologies

The Art of Virtualization with Free Software

VMware Server 2.0 Essentials. Virtualization Deployment and Management

Operating Systems Virtualization mechanisms

Lightweight Virtualization: LXC Best Practices

APPLICATION OF SERVER VIRTUALIZATION IN PLATFORM TESTING

Virtualization. Jukka K. Nurminen

Virtual Hosting & Virtual Machines

Virtualization Technology

COS 318: Operating Systems. Virtual Machine Monitors

Deployment - post Xserve

Basics in Energy Information (& Communication) Systems Virtualization / Virtual Machines

Professional Xen Visualization

OPEN SOURCE VIRTUALIZATION TRENDS. SYAMSUL ANUAR ABD NASIR Warix Technologies / Fedora Community Malaysia

Virtualization and Performance NSRC

Virtual Private Systems for FreeBSD

Comparing Virtualization Technologies

Virtualization. Introduction to Virtualization Virtual Appliances Benefits to Virtualization Example Virtualization Products

PARALLELS SERVER 4 BARE METAL README

Best Practices on monitoring Solaris Global/Local Zones using IBM Tivoli Monitoring

Managed VPS Linux Technical Overview

How do Users and Processes interact with the Operating System? Services for Processes. OS Structure with Services. Services for the OS Itself

Virtual Machines.

Building Docker Cloud Services with Virtuozzo

COS 318: Operating Systems. Virtual Machine Monitors

Network Virtualization Tools in Linux PRESENTED BY: QUAMAR NIYAZ & AHMAD JAVAID

PARALLELS CLOUD SERVER

Table of Contents. Server Virtualization Peer Review cameron : modified, cameron

Enabling Technologies for Distributed Computing

The Xen of Virtualization

RPM Brotherhood: KVM VIRTUALIZATION TECHNOLOGY

Virtualization. Dr. Yingwu Zhu

Virtualization of Linux based computers: the Linux-VServer project

Best Practices: Modeling Virtual Environments in SPECTRUM

SUSE Linux Enterprise 10 SP2: Virtualization Technology Support

Full and Para Virtualization

ZEN LOAD BALANCER EE v3.02 DATASHEET The Load Balancing made easy

ZEN LOAD BALANCER EE v3.04 DATASHEET The Load Balancing made easy

Virtualization for Cloud Computing

Hypervisors. Introduction. Introduction. Introduction. Introduction. Introduction. Credits:

Cloud Server. Parallels. An Introduction to Operating System Virtualization and Parallels Cloud Server. White Paper.

Virtualization. Michael Tsai 2015/06/08

The future is in the management tools. Profoss 22/01/2008

Best Practices for Optimizing Your Linux VPS and Cloud Server Infrastructure

Overview. The OnApp Cloud Platform. Dashboard APPLIANCES. Used Total Used Total. Virtual Servers. Blueprint Servers. Load Balancers.

Enabling Technologies for Distributed and Cloud Computing

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Container-based operating system virtualization: a scalable, high-performance alternative to hypervisors

<Insert Picture Here> Introducing Oracle VM: Oracle s Virtualization Product Strategy

Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

The XenServer Product Family:

Virtualization. Types of Interfaces

Uses for Virtual Machines. Virtual Machines. There are several uses for virtual machines:

9/26/2011. What is Virtualization? What are the different types of virtualization.

Parallels Server Bare Metal 5.0

Virtualization: Know your options on Ubuntu. Nick Barcet. Ubuntu Server Product Manager

Anh Quach, Matthew Rajman, Bienvenido Rodriguez, Brian Rodriguez, Michael Roefs, Ahmed Shaikh

Cloud Server. Parallels. Key Features and Benefits. White Paper.

The Bro Network Security Monitor

Parallels Virtuozzo Containers 4.7 for Linux Readme

Chapter 14 Virtual Machines

Virtualization System Vulnerability Discovery Framework. Speaker: Qinghao Tang Title:360 Marvel Team Leader

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Servervirualisierung mit Citrix XenServer

Intro to Virtualization

Red Hat Network Satellite Management and automation of your Red Hat Enterprise Linux environment

OVERVIEW. The complete IaaS platform for service providers

Enterprise-Class Virtualization with Open Source Technologies

Cloud^H^H^H^H^H Virtualization Technology. Andrew Jones May 2011

The Benefits of Verio Virtual Private Servers (VPS) Verio Virtual Private Server (VPS) CONTENTS

CHAPTER 2 THEORETICAL FOUNDATION

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Advanced Server Virtualization: Vmware and Microsoft Platforms in the Virtual Data Center

RED HAT ENTERPRISE VIRTUALIZATION

The QEMU/KVM Hypervisor

Cloud n Service Presentation. NTT Communications Corporation Cloud Services

Pros and Cons of HPC Cloud Computing

IOS110. Virtualization 5/27/2014 1

Installing & Using KVM with Virtual Machine Manager COSC 495

What s New with VMware Virtual Infrastructure

Transcription:

Linux Virtualization Kir Kolyshkin <kir@openvz.org> OpenVZ project manager

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. http://www.aarohi.net/info/glossary.html Virtualization is a framework or methodology of dividing the resources of a computer into multiple execution environments... http://www.kernelthread.com/publications/virtualization/ 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. http://www.vmware.com/pdf/virtualization.pdf 2

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

Hardware Emulation a.k.a. VM (Virtual Machine) VMware QEmu Bochs Pros: Cons: Can run arbitrary OS, unmodified Low density/scalability Slow/complex management Low performance 4

Para-virtualization Xen UML (User Mode Linux) Multiple (modified) OSs run under a hypervisor (a.k.a. Virtual Machine Monitor), which shares the hardware resources between guests. Pros: Cons: Better performance Needs modified guest OS Static resource allocation, bad scalability, bad manageability 5

OpenVZ FreeBSD jails Linux-VServer Solaris Zones OS Level Virtualization (OS == kernel) Most applications running on a server can easily share a machine with others, if they could be isolated and secured. OS Virtualization provides the required isolation and security to run multiple applications or copies of the same OS on the same server. Pros: Native performance Dynamic resource allocation, best scalability Cons: Single (same) kernel per physical server 6

OSs evolution Multitask many processes Multiuser many users Multiple execution environments many Virtual Private Servers (VPSs, containers, guests, partitions...) 7

OpenVZ design approach 8

OpenVZ: components Kernel Isolation Virtualization Resource Management Tools vzctl: Virtual Private Server (VPS) control utility vzpkg: VPS software package management Templates precreated VPS images for fast VPS creation 9

Kernel: Virtualization & Isolation Each VPS 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 If needed, any VPS 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-vps 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-vps quota; second-level: ordinary user/group quota inside a VPS) Resource management is what makes OpenVZ different from other technologies. 11

Tools: VPS control # vzctl create 101 --ostemplate fedora-core-4 # vzctl set 101 --ipadd 192.168.4.45 --save # vzctl start 101 # vzctl exec 101 ps ax PID TTY STAT TIME COMMAND 1? Ss 0:00 init 11830? Ss 0:00 syslogd -m 0 11897? Ss 0:00 /usr/sbin/sshd 11943? Ss 0:00 xinetd -stayalive -pidfile... 12218? Ss 0:00 sendmail: accepting connections 12265? Ss 0:00 sendmail: Queue runner@01:00:00 13362? Ss 0:00 /usr/sbin/httpd 13363? S 0:00 \_ /usr/sbin/httpd... 13373? S 0:00 \_ /usr/sbin/httpd 6416? Rs 0:00 ps axf # vzctl enter 101 bash# logout # vzctl stop 101 # vzctl destroy 101 12

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

Live Migration A VPS can be migrated between physical servers No need to shutdown Network connections are preserved Users will not notice the migration No special hardware requirements: works with non-shared storage, normal NICs

Scalability 768 (¾) MB RAM - up to 120 VPSs 2GB RAM - up to 320 VPSs 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. http://forum.openvz.org/index.php?t=msg&goto=646#msg_646 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. http://forum.openvz.org/index.php?t=msg&goto=650#msg_650 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. http://forum.openvz.org/index.php?t=msg&goto=568#msg_568 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 VPSs: 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 Users are isolated from each other VPS is like a real server, just cheap Much easier to admin Unable to change/upgrade hardware 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 VPS is a sandbox work and play, no fear 20

Security Several network services are running Put each service into a separate VPS One of them has a hole OpenVZ creates walls between applications Cracker gets through Whoops... all your base are belong to us 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

Future plans Inject into Linux distros: Novell, Red Hat, Debian etc. IP v6 support Merge into mainstream kernel 23

OpenVZ Project Role Freely distribute and offer support to make virtualization technology accessible Serve the needs of the community developers, testers, documentation experts, and other technology enthusiasts who wish to participate in and accelerate the technology development process We hope many, many users will benefit from OpenVZ software technology, which helps increase server utilization The OpenVZ website is an open door to operating system virtualization software built on Linux 24

Your role Use OpenVZ Contribute to OpenVZ, be a part of community: Programmer fixes enhancements new functionality Non-programmer bug reports documentation, how-tos answer support questions 25

One example Web Control Panel for OpenVZ 26

Project Links Main site: http://openvz.org/ Downloads: http://ftp.openvz.org/ GIT source repo: http://git.openvz.org/ Forum: http://forum.openvz.org/ Bug Tracking: http://bugzilla.openvz.org/ Blog: http://blog.openvz.org/ Mailing lists: users@openvz.org devel@openvz.org announce@openvz.org 27