Slide 1

Slide 1 text

Unikernels.
 What are they good for? NYLUG 15 June 2016 @amirmc Amir Chaudhry … on behalf of many others!

Slide 2

Slide 2 text

About me @amirmc Work at Docker
 … in Cambridge, UK I have more hair on my face since this pic

Slide 3

Slide 3 text

Software today… @amirmc

Slide 4

Slide 4 text

…is an application … Software today… @amirmc

Slide 5

Slide 5 text

…is an application … … on top of an Operating System. Software today… @amirmc

Slide 6

Slide 6 text

Software today… @amirmc

Slide 7

Slide 7 text

Software today… @amirmc

Slide 8

Slide 8 text

Code you care about Code the OS insists you need @amirmc

Slide 9

Slide 9 text

Software today… … is built locally… @amirmc

Slide 10

Slide 10 text

Software today… … is built locally… … but deployed remotely… @amirmc

Slide 11

Slide 11 text

Software today… … is built locally… … but deployed remotely… @amirmc … very remotely.

Slide 12

Slide 12 text

Software today… …is complex! Even though most apps
 are single-purpose @amirmc

Slide 13

Slide 13 text

Complexity is the enemy… More pieces -> tricky config Duplication -> inefficiency Large sizes -> long boot times More stuff -> larger attack surface @amirmc

Slide 14

Slide 14 text

Complexity is the enemy… @amirmc … but it depends. Complexity is relative
 (kind of)

Slide 15

Slide 15 text

Right tool for the job @amirmc

Slide 16

Slide 16 text

Things are getting easier

Slide 17

Slide 17 text

BUILD Developer Workflows SHIP Registry Services RUN Management Docker Toolbox Docker Trusted Registry Docker Universal Control Plane Docker Cloud Docker Engine Ecosystem Plugins and Integrations Docker Containers as a Service Platform

Slide 18

Slide 18 text

An extreme view? Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase @amirmc

Slide 19

Slide 19 text

An extreme view? Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase Unikernels! @amirmc

Slide 20

Slide 20 text

Unikernels Model is “Just enough OS” for your specific app. https://en.wikipedia.org/wiki/Unikernel @amirmc Using a modular stack, every application is compiled into its own specialised OS, targeted for the cloud or embedded devices

Slide 21

Slide 21 text

“Unikernels and Docker?”

Slide 22

Slide 22 text

Continuum Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase @amirmc

Slide 23

Slide 23 text

• LING • MirageOS • OSv • Rumprun • runtime.js • ClickOS • Clive • Drawbridge • HaLVM • IncludeOS @amirmc Unikernels

Slide 24

Slide 24 text

Two broad approaches Consider legacy @amirmc Clean Slate Unikernels

Slide 25

Slide 25 text

Two broad approaches Consider legacy @amirmc Clean Slate Unikernels

Slide 26

Slide 26 text

Two broad approaches @amirmc Clean Slate Unikernels

Slide 27

Slide 27 text

MirageOS

Slide 28

Slide 28 text

MirageOS unikernel } @amirmc

Slide 29

Slide 29 text

MirageOS @amirmc Target different environments

Slide 30

Slide 30 text

MirageOS @amirmc

Slide 31

Slide 31 text

unikernel } MirageOS Familiar development cycle Broad deployment scenarios @amirmc

Slide 32

Slide 32 text

unikernel } MirageOS Familiar development cycle Broad deployment scenarios Target different environments Your usual tools @amirmc

Slide 33

Slide 33 text

Demo:
 Build on a Mac
 Deploy to IoT @amirmc

Slide 34

Slide 34 text

• Build and run an app in a Linux container • Retarget app for ARM backend • Deploy artefact onto an ARM device @amirmc

Slide 35

Slide 35 text

Demo:
 2048 game

Slide 36

Slide 36 text

Demo
 Guide 1 2 3 4

Slide 37

Slide 37 text

• Built and ran an app in a Linux container! • Retargeted app for ARM backend! • Deployed artefact onto an ARM device! @amirmc

Slide 38

Slide 38 text

Unikernel Recap • Highly specialised • Continuum with containers • Deploy to ARM devices • Everything’s a library! @amirmc

Slide 39

Slide 39 text

Deployments

Slide 40

Slide 40 text

Deployments

Slide 41

Slide 41 text

Systems programming is difficult

Slide 42

Slide 42 text

… is just programming! Systems programming is difficult

Slide 43

Slide 43 text

unikernel.org Still early days! Thanks for listening!
 
 Questions?