Are VM Passé?

52 %
48 %
Information about Are VM Passé?

Published on April 2, 2014

Author: dotCloud



Are VM passé? Ben Golub's awesome presentation about Docker, the project roadmap and its ecosystem at Interop Las Vegas

Are VM’s Passé? Ben Golub CEO Docker, Inc.

They told me that I needed a provocative title for this talk. So…

Q: Are VMs Passé?

A: No

Thank you for attending

A different question… • Q: Is there a better alternative for many use cases & environments? –application management & creation? –application deployment across clusters & clouds? –CI & CD? –scale out? –high performance? –collaborative development?

A: Yes

Agenda • Server Proliferation and the rise of the VM • The Matrix from Hell and the need for lightweight, interoperable containers • Step 1: Making lightweight containers: • Containers vs. VMs: how they work • Step 2: Making containers really interoperable: • Step 3: Making containers really lightweight • Step 4: Creating a container-based system for app mgt & deployment • Step 5: Creating an ecosystem around containers • Where to Use VMs vs. Containers/Docker • Learn more

Some ancient history: Where did VM’s come from? • PROBLEM IN 2000: Server Proliferation/Consolidation - I’ve got a single purpose, physical Microsoft Exchange Server, Mac print server, and Custom Unix inventory server - Machines are getting more powerful - I want to consolidate all those single purpose, physical servers onto a single server - BTW--It takes too damn long to provision a physical machine • ANSWER: Create a Virtual Machine

Results • Single purpose physical application servers become single purpose virtual servers • Provisioning a “server” goes from days/weeks to minutes • Huge cost savings • An awesome solution to the server consolidation problem • An awesome solution for creating flexible infrastructures • Mature ecosystem and tool set for isolation, security, management

What has changed since the VM was developed? 2000 2014 Apps are long lived Development is iterative and constant Apps are monolithic and developed on a single stack Apps are created from loosely coupled components, themselves created from a multitude of “stacks” Deployment is to a single server Deployment is to a variety of servers: VM, physical, cluster, open stack, public cloud, +++ • Result: An application isn’t easily represented or managed as a single purpose server (whether physical or virtual)

Static website Web frontend User DB Queue Analytics DB Background workers API endpoint nginx 1.5 + modsecurity + openssl + bootstrap 2 postgresql + pgv8 + v8 hadoop + hive + thrift + OpenJDK Ruby + Rails + sass + Unicorn Redis + redis-sentinel Python 3.0 + celery + pyredis + libcurl + ffmpeg + libopencv + nodejs + phantomjs Python 2.7 + Flask + pyredis + celery + psycopg + postgresql-client Development VM QA server Public Cloud Disaster recovery Contributor’s laptop Production Servers The Problem in 2014MultiplicityofStacks Multiplicityof hardware environments Production Cluster Customer Data Center Doservicesandapps interact appropriately? CanImigrate smoothlyand quickly?

The Matrix From Hell Static website Web frontend Background workers User DB Analytics DB Queue Development VM QA Server Single Prod Server Onsite Cluster Public Cloud Contributor’s laptop Customer Servers ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

MultiplicityofGoods Multipilicityof methodsfor transporting/storing DoIworryabout howgoodsinteract (e.g.coffeebeans nexttospices) CanItransportquickly andsmoothly (e.g.fromboattotrain totruck) An Inspiration…and some really ancient history: Cargo Transport Pre-1960

MultiplicityofGoods Multiplicityof methodsfor transporting/storing DoIworryabout howgoodsinteract (e.g.coffeebeans nexttospices) CanItransport quicklyandsmoothly (e.g.fromboatto traintotruck) Solution: Intermodal Shipping Container …in between, can be loaded and unloaded, stacked, transported efficiently over long distances, and transferred from one mode of transport to another A standard container that is loaded with virtually any goods, and stays sealed until it reaches final delivery.

This spawned an Intermodal Shipping Container Ecosystem • 90% of all cargo now shipped in a standard container • Order of magnitude reduction in cost and time to load and unload ships • Massive reduction in losses due to theft or damage • Huge reduction in freight cost as percent of final goods (from >25% to <3%)  massive globalization • 5000 ships deliver 200M containers per year

Static website Web frontendUser DB Queue Analytics DB Development VM QA server Public Cloud Contributor’s laptop Let’s create a shipping container system for codeMultiplicityofStacks Multiplicityof hardware environments Production Cluster Customer Data Center Doservicesandapps interact appropriately? CanImigrate smoothlyandquickly …that can be manipulated using standard operations and run consistently on virtually any hardware platform An engine that enables any payload to be encapsulated as a lightweight, portable, self-sufficient container…

Static website Web frontend Background workers User DB Analytics DB Queue Development VM QA Server Single Prod Server Onsite Cluster Public Cloud Contributor’s laptop Customer Servers Eliminate the matrix from Hell

App A Step One: Create a lightweight container (vs. VMs) Hypervisor (Type 2) Host OS Server Guest OS Bins/ Libs App A’ Guest OS Bins/ Libs App B Guest OS Bins/ Libs AppA’ Host OS Server Bins/Libs AppA Bins/Libs AppB AppB’ AppB’ AppB’ VM Container Containers are isolated, but share OS kernel and, where appropriate, bins/libraries Guest OS Guest OS …result is significantly faster deployment, much less overhead, easier migration, faster restart

A great slide stolen from IBM: Why Containers?  Provision in seconds / milliseconds  Near bare metal runtime performance  10 x greater density  VM-like agility – it’s still “virtualization”  Flexibility – Containerize a “system” – Containerize “application(s)”  Lightweight – Just enough Operating System (JeOS) – Minimal per container penalty  Open source – free – lower TCO  Supported with OOTB modern Linux kernel  Growing in popularity 3/28/2014 20 “Containers as poised as the next VM in our modern Cloud era…” Manual VM LXC Provision Time Days Minutes Seconds / ms linpack performance @ 45000 0 50 100 150 200 250 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 BM vcpus GFlops Google trends - LXC Google trends - docker

Step 2: Make the containers easy to use, standardized, interoperable, automatable • Shipping containers are a standard size, and have hooks and holes in all the same places • With Docker, Containers get the following: - Ease of use, tooling - Re-usable components - Ability to run on any Linux server today: physical, virtual, VM, cloud, OpenStack, +++ - (Stay tuned for other O/S’s) - Ability to move between any of the above in a matter of seconds-no modification or delay - Ability to share containerized components - Interoperability with all existing devops tools - Self contained environment—no dependency hell - Tools for how containers work together: linking, nesting, discovery, orchestration, ++ • You get ability to separate app management from infrastructure management

Technical & cultural revolution: separation of concerns • Dan the Developer • Worries about what’s “inside” the container • His code • His Libraries • His Package Manager • His Apps • His Data • All Linux servers look the same • Oscar the Ops Guy • Worries about what’s “outside” the container • Logging • Remote access • Monitoring • Network config • All containers start, stop, copy, attach, migrate, etc. the same way

Step 3: Make containers super lightweight Bins/ Libs App A Original App (No OS to take up space, resources, or require restart) AppΔ Bins/ App A Bins/ Libs App A’ Guest OS Bins/ Libs Modified App Copy on write allows us to only save the diffs Between container A and container A’ VMs Every app, every copy of an app, and every slight modification of the app requires a new virtual server App A Guest OS Bins/ Libs Copy of App No OS. Can Share bins/libs App A Guest OS Guest OS VMs Containers

Prod Hosts 21000+: OS (Linux)Prod Hosts 21000+: OS (Linux) Step 4: Build a System for creating, managing, deploying code Source Code Repository Dockerfile For A Docker Registry Build Docker Prod Hosts: OS (Linux) ContainerA ContainerB ContainerC ContainerA Push Search Pull Run Dev Host : OS (Linux) Docker

Including a System for Changes and Updates Docker Registry Push Update Bins/ Libs App A AppΔ Bins/ Base Container Image Hosts are now running A’’ Container Mod A’’ AppΔ Bins/ Bins/ Libs App A Bins/ Bins/ Libs App A’’ Host(s) running A want to upgrade to A’’. Requests update. Gets only diffs Container Mod A’ Prod Hosts 21000+: OS (Linux)Prod Hosts 21000+: OS (Linux)Prod Hosts: OS (Linux) Prod Hosts 21000+: OS (Linux)Prod Hosts 21000+: OS (Linux)Prod Hosts: OS (Linux)

Including a System for the Full Lifecycle Develop Test/QA Build Run Scale Hyper scale APP CREATION APP DEPLOYMENT APP MANAGEMENT

Docker engine Docker engine Docker engine Docker engine Containers can be linked and assembled into complex service- oriented stacks. v0.7 Stacks can span multiple machines, using encrypted and authenticated tunnels. v0.9 v0.really soon Docker deployments can span multiple datacenters and cloud providers by using the service. acts as a hub and federates authentication, service discovery and orchestration across all docker engines across an organization Including a System for Complex Apps

Step 5: Create an Ecosystem 45,000

Open Ecosystem Momentum • Truly open: Apache license, open design, open tooling, non-Docker maintainers • Downloads: Over 1.2 m container downloads • Users: Over 45,000 trained developers • Content: Over 8000 repositories now publishing containers to Docker Index • Contributors: 380 contributors, 95% of whom don’t work for Docker, In.c • Meetups: Over 80 cities in 30 countries have Docker meetups • Integrations: OpenStack, RHEL, Ubuntu, Salt, Chef, Puppet, Salt +++ • Github • Over 10,000 stars • Over 1.7 K forks • Over 350 derivative projects

Who is using Docker? … and hundreds of other small and big companies

Four major use cases • Continuous Integration/Continuous Delivery: • Go from developer’s laptop, through automated test, to production, and through scaling without modification • Alternative form of virtualization for multi-tenant services • Scale-out: • Rapidly scale same application across hundreds or thousands of servers…and scale down as rapidly • Cross Cloud Deployment • Move the same application across multiple clouds (public, private, or hybrid) without modification or noticeable delay

Where should I use VMs? • VMs are definitely the way to go to solve many problems • Heterogeneous O/S families: Run Windows app on a Mac Server • Using O/S or kernel that doesn’t support containers • Your real problem is infrastructure management • You want the maturity of the VM toolset • VM requires unique kernel setup which is not applicable to other VMs on the host (i.e. per VM kernel config) • Need to freeze state and live migrate • But… you can pursue a hybrid strategy: containers on VMs • Stay tuned for better Docker/Container answers for many of the above

Conclusion • Multiple forces are driving a reconsideration of how applications should be created, built, deployed, scaled, and managed • We believe that the right approach is to decouple application management from infrastructure management • Container based approach (vs. VM approach) provides right level of abstraction • Enables infrastructure to be managed consistently and stably • Enables applications to be built flexibly and deployed flexibly • Provides greater degree of visibility, control, and management of what runs where and what components are allowed • Massive cost, speed, efficiency savings • Docker is becoming the standard for containerization

Learn More • LXC Technical discussion: • Docker project: • Follow Docker on Twitter: • Take the Docker interactive tutorial: • Join Docker on IRC: • Go to the Docker repository on GitHub: • Go to a meetup: • See what others are doing: • Come to DockerCon, Jun 9-10, San Francisco:

Are VM’s Passé? Ben Golub CEO Docker, Inc.

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Expanding the size of a Raw Device ... - VMware Knowledge Base

The VMware Knowledge Base provides support solutions, ... Power off the virtual machine, note the scsiX:Y position of the RDM in VM Settings.
Read more

VM 203 Verlegemaschine VM 203 -

VM 203 SSH 1000 mini hH 1000 mini h ... Fugen – Nachklopfen ist endgültig passé. Sonderinfo anfordern! ohne ADV mit ADV Verlegemaschine VM 203
Read more

comment augmenter la taille d’une machine virtuelle sous ...

cette VM est passé de 10Go à 25Go. On vérifie. VBoxManage showhdinfo XP.vdi ce qui donne. UUID: cf6a4684-3ef2-430e-aaa1-16e8f0f090cb Accessible: ...
Read more

VMs verlieren sporadisch Netzwerkverbindung ...

Glücklicherweise gibt es einen Patch von Microsoft u. die Bluescreens sind seither passé. ... - Host 01-LAN 02 (VM LAN), Anschluss an VM ...
Read more

Tabliers maître VM/PM - Lune et Soleil Diffusion SARL

Accueil > REAA Bleu & Supérieurs > Loges Bleues > Tabliers maître VM/PM Tabliers maître VM/PM Il y a 30 produits. Modèles G.L.N.F.
Read more

VM Products CSV - Joomla! Extension Directory

Joomla Component VM Products CSV !ULTIMATE! v3 par CSV Produit en vrac import/export/mise à jour pour VirtueMart. Caractéristiques ...
Read more

Windows Server 2012R2 unter VMare ESXI 5.5 verliert immer ...

Bei uns hat es geholfen. Die ständigen Netzwerkverbindungsabbrüche sind seit her passé. Hoffe es hilft dir auch weiter.
Read more

Partizip/Gerudium – Übungen - Lingolia Französisch

[Dein Eimer hat ein Loch!]|Participe Passé als Adjektiv, der einen Zustand beschreibt. Antworten überprüfen / Lösungen. Partizip/Gerudium – Übungen.
Read more