SlideShare a Scribd company logo
Linux, Unikernel, LinuxKit: towards
redefining the cloud stack.
IDIT LEVINE
Problem
Cloud Stack Application Configuration
Application
Language Runtime
Shared Libraries
Docker Runtime
OS User Processes
OS Kernel
Virtual HW Drivers
Hypervisor
Hardware Drivers
Hardware
The aim is to run single Application
with a single user on a single server
Linux Kernel
Linux Kernel
Memory Management Protection Rings
Device Management
Linux Kernel
Driver management
Memory management
Security
https://github.com/cf-unik/unik/wiki/Worried-about-IoT-DDoS%3F-Think-Unikernels
Linux kernel languages
C
Assembly
C++
XML
Make
Perl
Shell Script
Python
HTML
TeX/LaTeX
AWK
Scheme
Objective-C
Autoconf
XSL Tranformation
Vim Script
Automake
SOURCE lines of code
Small Applications: 10Ks
Medium to large applications: 100Ks
Really huge applications: 1Ms
2.4
5.2
11
12.6
13.5
15.9
22
0
5
10
15
20
25
Linux kernel 2.4.2 Linux kernel 2.6.0 Linux kernel 2.6.29 Linux kernel 2.6.32 Linux kernel 2.6.35 Linux kernel 3.6 Linux kernel pre-4.2
2001 2003 2009 2009 2010 2012 2015
Linux Kernel SLOC
59
104
215
283
324
419
0
50
100
150
200
250
300
350
400
450
Debian 2.2 Debian 3.0 Debian 3.1 Debian 4.0 Debian 5.0 Debian 7.0
2000 2002 2005 2007 2009 2012
Debian SLOC
How did we get here ? Evolution !
Unix was supported us the entire way!
Decades of backwards compatibility
What can linux run on ?
What can run on linux ?
Anything !
Anything !
Trade Off
VS
Compatibility Efficiency
Solution LINUXKIT
LinuxKit announcement DockerCon
Solution UNIKERNELS
Traditional approach
Application
Kernel
libc
libz
iconv
openGL
gtk
libgmp libtlc
Libstd++ libgcc
Traditional approach
Application
Kernel
libc
libz
iconv
openGL
gtk
libgmp libtlc
Libstd++ libgcc
Unikernels
Design decision: support only single process & single user
The aim is to run single Application with a single user on a single server
Protection RingsMemory Management
Unikernels Creation
App Binary
App Config
App Deps
Virt, HW Drivers
Langue runtime
ApplicationRuntime
Packaging Tool Unikernel!
How can unikernels help
address our problems?
Application Config
Application
Language Runtime
Shared Libraries
Docker Runtime
OS User Processes
OS Kernel
Virtual HW Drivers
Hypervisor
Hardware Drivers
Hardware
Minimal layers of isolation and
abstraction
Includes only what is really
needed
Less code, fewer bugs, easy to
reason about
Application Binary
+ Library OS
Hypervisor
Hardware Drivers
Hardware
Application Config
Application
Language Runtime
Shared Libraries
Docker Runtime
OS User Processes
OS Kernel
Virtual HW Drivers
Hypervisor
Hardware Drivers
Hardware
Application Binary
+ Library OS
Hypervisor
Hardware Drivers
Hardware
Application Config
Application
Language Runtime
Shared Libraries
Docker Runtime
OS User Processes
OS Kernel
Hardware Drivers
Hardware
Hardware isolation provide
by the hypervisor
Unikernel advantages
• No permission checks – you can utilize 100% of your hardware
• Isolation at the virtual hardware – only ! share only hardware
• Minimal virtual machine ~1 gb in size, minimal unikernel is tiny, kb in size
• Very short boot time
• A tiny custom surface of attack, less likely to be effected by a public exploit
• Real immutable infrastructure – perfect fit to micro services architecture
Benchmark
unik build --path example-app/ --base unikernel-type --language language --provider provider-name --name image-name
unik run --instanceName instance-name –imageName image-name
UniK
UniK is an open-source tool written in Go for compiling applications into unikernels and deploying those
unikernels across a variety of cloud providers, embedded devices (IoT), as well as a developer laptop or
workstation.
Build anything run everywhere
Unikernel types Cloud providers
Processor architectures
Demo
UniK
Unik integration with kubernetes
Unikernels support was added to Kubernetes by the UniK team by adding UniK as a container
runtime to K8s - in the same way that Docker and rkt are container runtimes, UniK is now also
available as a "container" runtime for k8s.
Unik kubernetes architecture
unikernels
Now one can deploy a unikernel apps
alongside regular kubernetes
containerized apps.
Next integration refactor: Container
Runtime Interface (CRI) will be used.
Demo
Kubernetes
Unik integration with Cloud Foundry
To provide the user with a seamless PaaS
experience, UniK is integrated as a backend
to Cloud Foundry runtime.
Next integration integration via Garden.
Unik tooling: unik hub
Unik tooling: Debug
Microservices tooling: Debug
• The most primitive form of debugging, we all do it!
• However, extremely difficult to capture all state, and thus can be used only for small bugs
Won’t it be a good idea to seamlessly integrate existence debugger to leading
platforms and leverage them to debug microservices applications ?
squash: distributed debugger
squash
platforms
debuggers IDEs
Demo
squash
Benefits of Unikernels TO the internet of things
LITE ON ENERGYSECURITY EFFICIENCY
USECASESWORRIED ABOUT IOT DDOS?
THINK UNIKERNELS
Demo
IoT Security
Unik in the open source community
Follow me: @Idit_Levine
Follow solo.io: @GetSoloIO

More Related Content

PPTX
Craft april17
PPTX
Cigna Innovation Summit
PPTX
Unik Slides
PDF
UniK - a unikernel compiler and runtime
PPTX
Debugging Microservices - QCON 2017
PPTX
Unik: Unikernel Backend to Cloud Foundry
PDF
Docker Online Meetup #31: Unikernels
PDF
DockerCon SF 2015: Docker Security
Craft april17
Cigna Innovation Summit
Unik Slides
UniK - a unikernel compiler and runtime
Debugging Microservices - QCON 2017
Unik: Unikernel Backend to Cloud Foundry
Docker Online Meetup #31: Unikernels
DockerCon SF 2015: Docker Security

What's hot (19)

PDF
OSCON: Unikernels and Docker: From revolution to evolution
PDF
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
PDF
Next Generation Cloud: Rise of the Unikernel V3 (UPDATED)
PDF
Innovating Out In The Open - OSCON 2016
PDF
Secure Substrate: Least Privilege Container Deployment
PDF
CIF16: Knock, Knock: Unikernels Calling! (Richard Mortier, Cambridge University)
PDF
Advanced Docker Developer Workflows on MacOS X and Windows
PPTX
Microservices in Unikernels
PDF
Containers technologies
PPTX
XPDS14: Unikernels: Who, What, Where, When, Why - Adam Wick, Galois
PDF
Lightning talk unikernels
PPTX
Docker introduction
PDF
Why you need a private container image registry SCALE 2019
PPTX
Using functional programming within an industrial product group: perspectives...
PPTX
Building microservices with docker
PPTX
Metrics towards enterprise readiness of unikernels
PPTX
PDF
DockerCon US 2016 - Extending Docker With APIs, Drivers, and Plugins
PPTX
Continous delivery at docker age
OSCON: Unikernels and Docker: From revolution to evolution
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
Next Generation Cloud: Rise of the Unikernel V3 (UPDATED)
Innovating Out In The Open - OSCON 2016
Secure Substrate: Least Privilege Container Deployment
CIF16: Knock, Knock: Unikernels Calling! (Richard Mortier, Cambridge University)
Advanced Docker Developer Workflows on MacOS X and Windows
Microservices in Unikernels
Containers technologies
XPDS14: Unikernels: Who, What, Where, When, Why - Adam Wick, Galois
Lightning talk unikernels
Docker introduction
Why you need a private container image registry SCALE 2019
Using functional programming within an industrial product group: perspectives...
Building microservices with docker
Metrics towards enterprise readiness of unikernels
DockerCon US 2016 - Extending Docker With APIs, Drivers, and Plugins
Continous delivery at docker age
Ad

Similar to Linux, Unikernel, LinuxKit: towards redefining the cloud stack. (20)

PPTX
Docker SF Meetup January 2016
PPTX
Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Archit...
PPTX
Moby Open Source Summit North America 2017
PPTX
Docker - Portable Deployment
PPTX
Cont0519
PPTX
What is Docker?
PDF
DockerCon 2017 - General Session Day 1 - Solomon Hykes
PPTX
Docker with devops program
PPTX
Docker with devops program
PPTX
DevOps with Azure, Kubernetes, and Helm Webinar
PPTX
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
PDF
stackconf 2022: It’s Time to Debloat the Cloud with Unikraft
PPTX
Virtual Container - Docker
PDF
Michigan IT Symposium 2017 - Container BOF
PDF
Docker ee an architecture and operations overview
PPTX
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
PPTX
Weave User Group Talk - DockerCon 2017 Recap
PDF
Docker handons-workshop-for-charity
PDF
Next in Virtualization Era: Containerization & Docker
PDF
It's Time to Debloat the Cloud with Unikraft
Docker SF Meetup January 2016
Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Archit...
Moby Open Source Summit North America 2017
Docker - Portable Deployment
Cont0519
What is Docker?
DockerCon 2017 - General Session Day 1 - Solomon Hykes
Docker with devops program
Docker with devops program
DevOps with Azure, Kubernetes, and Helm Webinar
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
stackconf 2022: It’s Time to Debloat the Cloud with Unikraft
Virtual Container - Docker
Michigan IT Symposium 2017 - Container BOF
Docker ee an architecture and operations overview
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Weave User Group Talk - DockerCon 2017 Recap
Docker handons-workshop-for-charity
Next in Virtualization Era: Containerization & Docker
It's Time to Debloat the Cloud with Unikraft
Ad

Recently uploaded (20)

PDF
composite construction of structures.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
CH1 Production IntroductoryConcepts.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
composite construction of structures.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Internet of Things (IOT) - A guide to understanding
CH1 Production IntroductoryConcepts.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT 4 Total Quality Management .pptx
Sustainable Sites - Green Building Construction
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Foundation to blockchain - A guide to Blockchain Tech
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Lecture Notes Electrical Wiring System Components
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx

Linux, Unikernel, LinuxKit: towards redefining the cloud stack.