SlideShare una empresa de Scribd logo
1 de 22
Descargar para leer sin conexión
“Low Fat”
Virtualization
6e Séminaire fribourgeois
Linux embarqué
Dr Jacques Supcik
Ecole d’ingénieurs etd’architectes de Fribourg
8 mai2014
“Classical”
Virtualization…
Effective…
but not light
Virtualization needs a lot
of resources
Virtualization works best
with special hardware
So what about a more
“skinny” virtualization
Types of Virtualization
chroot
The chrootsystem callwas introduced duringdevelopmentof
Version 7 Unix in 1979 is was available since 1982
(32 years old).
Provides (partial) file system isolation only.
“root” users can stillescape chroot.
requires some manuallinking(or copying) of system files.
BSD's “Jail”
BSD's “Jail”
Available since 1998 (16 years old).
Provides disk and CPUquotas, memorylimits, network and
rootprivilege isolation.
OpenVZ
Available since 2005 (9 years old).
Requires aspecialkernel.
Adds I/O rate limiting, partition checkpointingand live
migration.
Stillused byhostingcompanies to provide virtualprivate
servers.
OpenVZ
Source: OpenVZ Web site
Container looks like anormalLinux system. Ithas standard
startup scripts, software from vendors can run inside
Container withoutOpenVZ-specific modifications or
adjustment.
Auser can change anyconfiguration file and installadditional
software.
Containers are fullyisolated from each other (file system,
processes, Inter Process Communication (IPC), sysctl
variables).
OpenVZ
Source: OpenVZ Web site
Containers share dynamic libraries, which greatlysaves
memory.
Processes belongingto aContainer are scheduled for
execution on allavailable CPUs. Consequently, Containers are
notbound to onlyone CPUand can use allavailable CPU
power.
LXC Linux Container
LXC Linux Container
Available since 2008 (6 years old).
Relies on the Linux kernel“cgroups” functionalitythatwas
released in version 2.6.24.
Fullfile system isolation and rootprivilege isolation since
version 1.0 (February2014 /Linux kernel3.8)
No partition checkpointingand no live migration!
“chrooton steroids”.
Cgroups (control groups)
Name space Isolation
PID namespace : Isolation for the allocation of process
identifiers.
Network namespace : Isolates the NIC, iptables rules, routing,
etc.
“UTS” namespace : Allows changingthe hostname.
Mountnamespace : Allows creatingadifferentfile system
layout.
IPC namespace : Isolates the System VIPC.
Docker
Available since 2013 (1 year old young).
Based on LXC.
Is currentlyunder heavydevelopment. Docker should notbe
used in production (yet).
“Docker is an open-source engine thatautomates the
deploymentof anyapplication as alightweight, portable, self-
sufficientcontainer thatwillrun virtuallyanywhere.”
Docker
If you wantto try“Docker” you can easillydo iton a“Droplet” at
DigitalOcean. (5$ for 1 month)
Thank You!
References
http://japanese.lingualift.com/blog/what-sumo-eat-wrestlers-diet/
http://community.futureshop.ca/t5/Tech-Blog/How-to-build-a-PC-How-to-upgrade-
your-RAM/ba-p/426769
https://en.wikipedia.org/wiki/Western_Digital_Raptor
http://www.pcper.com/news/General-Tech/ARM-aims-make-TSMC-Fab-choice-
their-customers
http://www.reflexandwellnessclinic.com/projects/services/
https://en.wikipedia.org/wiki/Chroot
http://sysadvent.blogspot.ch/2010/12/day-14-freebsd-jails.html
http://openvz.org/User_Guide/OpenVZ_Philosophy
https://linuxcontainers.org/
http://www.linuxadvocates.com/2013/04/linux-containers-and-why-they-
matter.html
https://www.docker.io/
https://en.wikipedia.org/wiki/Operating_system-level_virtualization
https://en.wikipedia.org/wiki/LXC

Más contenido relacionado

La actualidad más candente

What is open source
What is open sourceWhat is open source
What is open source
Kumar
 
Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7
Etsuji Nakai
 

La actualidad más candente (20)

LXC
LXCLXC
LXC
 
Namespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containersNamespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containers
 
Docker storage drivers by Jérôme Petazzoni
Docker storage drivers by Jérôme PetazzoniDocker storage drivers by Jérôme Petazzoni
Docker storage drivers by Jérôme Petazzoni
 
2. Vagin. Linux containers. June 01, 2013
2. Vagin. Linux containers. June 01, 20132. Vagin. Linux containers. June 01, 2013
2. Vagin. Linux containers. June 01, 2013
 
Open ZFS Keynote (public)
Open ZFS Keynote (public)Open ZFS Keynote (public)
Open ZFS Keynote (public)
 
Linux cgroups and namespaces
Linux cgroups and namespacesLinux cgroups and namespaces
Linux cgroups and namespaces
 
Linuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best PracticesLinuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best Practices
 
What is open source
What is open sourceWhat is open source
What is open source
 
Docker: under the hood
Docker: under the hoodDocker: under the hood
Docker: under the hood
 
Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018
 
Linux containers-namespaces(Dec 2014)
Linux containers-namespaces(Dec 2014)Linux containers-namespaces(Dec 2014)
Linux containers-namespaces(Dec 2014)
 
Containers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux KernelContainers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux Kernel
 
Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7
 
Containers - Cloud Phoenix March Meetup
Containers - Cloud Phoenix March MeetupContainers - Cloud Phoenix March Meetup
Containers - Cloud Phoenix March Meetup
 
Null Bangalore Meet 18/03/17
Null Bangalore Meet 18/03/17Null Bangalore Meet 18/03/17
Null Bangalore Meet 18/03/17
 
Tlf2013
Tlf2013Tlf2013
Tlf2013
 
Let's Containerize New York with Docker!
Let's Containerize New York with Docker!Let's Containerize New York with Docker!
Let's Containerize New York with Docker!
 
Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup.
 
Bsd ppt
Bsd pptBsd ppt
Bsd ppt
 
Memory_AllocationUNIX_MINIX-COSCUP2012
Memory_AllocationUNIX_MINIX-COSCUP2012Memory_AllocationUNIX_MINIX-COSCUP2012
Memory_AllocationUNIX_MINIX-COSCUP2012
 

Destacado

Benefit of Virtualization for Embedded Systems
Benefit of Virtualization for Embedded SystemsBenefit of Virtualization for Embedded Systems
Benefit of Virtualization for Embedded Systems
Alexander Smirnov
 
Hardware assisted Virtualization in Embedded
Hardware assisted Virtualization in EmbeddedHardware assisted Virtualization in Embedded
Hardware assisted Virtualization in Embedded
The Linux Foundation
 
Virtualization_EETimes_SalesConf2011
Virtualization_EETimes_SalesConf2011Virtualization_EETimes_SalesConf2011
Virtualization_EETimes_SalesConf2011
ijlalshah
 

Destacado (14)

Benefit of Virtualization for Embedded Systems
Benefit of Virtualization for Embedded SystemsBenefit of Virtualization for Embedded Systems
Benefit of Virtualization for Embedded Systems
 
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
 
GPU Virtualization in Embedded Automotive Solutions
GPU Virtualization in Embedded Automotive SolutionsGPU Virtualization in Embedded Automotive Solutions
GPU Virtualization in Embedded Automotive Solutions
 
Hardware assisted Virtualization in Embedded
Hardware assisted Virtualization in EmbeddedHardware assisted Virtualization in Embedded
Hardware assisted Virtualization in Embedded
 
Embedded Virtualization applied in Mobile Devices
Embedded Virtualization applied in Mobile DevicesEmbedded Virtualization applied in Mobile Devices
Embedded Virtualization applied in Mobile Devices
 
Virtualization in Automotive Embedded Systems: an Outlook
Virtualization in Automotive Embedded Systems: an OutlookVirtualization in Automotive Embedded Systems: an Outlook
Virtualization in Automotive Embedded Systems: an Outlook
 
Xen in the Cloud
Xen in the CloudXen in the Cloud
Xen in the Cloud
 
Embedded Virtualization for Mobile Devices
Embedded Virtualization for Mobile DevicesEmbedded Virtualization for Mobile Devices
Embedded Virtualization for Mobile Devices
 
Linux Virtualization Goes Mobile
Linux Virtualization Goes MobileLinux Virtualization Goes Mobile
Linux Virtualization Goes Mobile
 
Virtualization_EETimes_SalesConf2011
Virtualization_EETimes_SalesConf2011Virtualization_EETimes_SalesConf2011
Virtualization_EETimes_SalesConf2011
 
Architecture design of a virtual embedded system ppt
Architecture design of a virtual embedded system pptArchitecture design of a virtual embedded system ppt
Architecture design of a virtual embedded system ppt
 
ALSS14: Xen Project Automotive Hypervisor (Demo)
ALSS14: Xen Project Automotive Hypervisor (Demo)ALSS14: Xen Project Automotive Hypervisor (Demo)
ALSS14: Xen Project Automotive Hypervisor (Demo)
 
A Market Update on Embedded/Real-Time Operating Systems
A Market Update on Embedded/Real-Time Operating SystemsA Market Update on Embedded/Real-Time Operating Systems
A Market Update on Embedded/Real-Time Operating Systems
 
5. IO virtualization
5. IO virtualization5. IO virtualization
5. IO virtualization
 

Similar a Low fat virtualization for embedded systems

Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization
WSO2
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
guest491c69
 
Achieving Performance Isolation with Lightweight Co-Kernels
Achieving Performance Isolation with Lightweight Co-KernelsAchieving Performance Isolation with Lightweight Co-Kernels
Achieving Performance Isolation with Lightweight Co-Kernels
Jiannan Ouyang, PhD
 

Similar a Low fat virtualization for embedded systems (20)

Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
 
Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization
 
Evoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationEvoluation of Linux Container Virtualization
Evoluation of Linux Container Virtualization
 
The building blocks of docker.
The building blocks of docker.The building blocks of docker.
The building blocks of docker.
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & Containers
 
Linux container & docker
Linux container & dockerLinux container & docker
Linux container & docker
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
 
Linux Container Brief for IEEE WG P2302
Linux Container Brief for IEEE WG P2302Linux Container Brief for IEEE WG P2302
Linux Container Brief for IEEE WG P2302
 
Libra Library OS
Libra Library OSLibra Library OS
Libra Library OS
 
20240201 [HPC Containers] Rootless Containers.pdf
20240201 [HPC Containers] Rootless Containers.pdf20240201 [HPC Containers] Rootless Containers.pdf
20240201 [HPC Containers] Rootless Containers.pdf
 
Beyond desktop/server with GNU/Linux (archived)
Beyond desktop/server with GNU/Linux (archived)Beyond desktop/server with GNU/Linux (archived)
Beyond desktop/server with GNU/Linux (archived)
 
淺談探索 Linux 系統設計之道
淺談探索 Linux 系統設計之道 淺談探索 Linux 系統設計之道
淺談探索 Linux 系統設計之道
 
Lightweight Virtualization in Linux
Lightweight Virtualization in LinuxLightweight Virtualization in Linux
Lightweight Virtualization in Linux
 
Realizing Linux Containers (LXC)
Realizing Linux Containers (LXC)Realizing Linux Containers (LXC)
Realizing Linux Containers (LXC)
 
Rhel7 vs rhel6
Rhel7 vs rhel6Rhel7 vs rhel6
Rhel7 vs rhel6
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
 
Nguyen lyhedieuhanh 14-15_hedieuhanhlinux
Nguyen lyhedieuhanh 14-15_hedieuhanhlinuxNguyen lyhedieuhanh 14-15_hedieuhanhlinux
Nguyen lyhedieuhanh 14-15_hedieuhanhlinux
 
Ubuntu 16.04 LTS Security Features
Ubuntu 16.04 LTS Security FeaturesUbuntu 16.04 LTS Security Features
Ubuntu 16.04 LTS Security Features
 
Achieving Performance Isolation with Lightweight Co-Kernels
Achieving Performance Isolation with Lightweight Co-KernelsAchieving Performance Isolation with Lightweight Co-Kernels
Achieving Performance Isolation with Lightweight Co-Kernels
 
Docker Dojo
Docker DojoDocker Dojo
Docker Dojo
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Low fat virtualization for embedded systems