SlideShare a Scribd company logo
Introduction to OpenVZ
                             oej@edvina.net




      Olle E.
oej@edvina.net   Johansson * oej@edvina.net * Twitter oej
           © Copyright Edvina AB, Sollentuna, Sweden 2012. All rights reserved.
OpenVZ
• Virtualization software by Parallells, inc.
  Base for their commercial Virtuozzo
  platform

• Integrated with the virtualization
  support in the kernel - lvc

• Segmentation, not full virtualization
• Regardless, has cool features
                                       Introduction to
                                          OpenVZ
Cool features
• Migration of running system
• Backup with just a few secs stop time
• Very simple - shared filesystem in the
  host system




                                    Introduction to
                                       OpenVZ
Basics
                                              Containers share the
                                           same kernel. Only Linux is
                                          supported - but you can run
         Kernel                             a different distribution in
                           Container 1              a container.
        OpenVZ




   The host system
                                         Containers get allocated a few
runs a full Linux with a
                           Container 2    resources - network, CPU,
 standard kernel with
                                                memory, disk.
  openvz extensions.


                                                      Introduction to
                                                         OpenVZ
The container is a full
        Linux system
• The container is a full Linux system
 • It has network interfaces (if configured)
 • It has a separate user account database (/etc/passwd)
 • It needs patching and updates like any other system

                                                Introduction to
                                                   OpenVZ
The Kernel
• The kernel is managed as an package for
  the distro you are using.

• For Centos, you add a new yum
  repository and install the kernel

• Reboot and you have OpenVZ support
• Now install the tools - vzsplit, vzctl and
  vzlist
                                       Introduction to
                                          OpenVZ
vzctl
• Used to manage containers
 • Create new container
 • Start container
 • Stop container
 • Change attributes (name, IP address, various limits,
    properties)
                                                  Introduction to
                                                     OpenVZ
vzlist
• Simply list containers running in a system
• Lists all container IDs




                                     Introduction to
                                        OpenVZ
vzsplit
• Used to get settings for vzctl (or the .conf
  files)

• Takes all resources in a server and divides
  them between a specific number of
  containers




                                       Introduction to
                                          OpenVZ
Beancounters
• Counters that document use
• Also document when a resource limit is
  exceeded

• cat /proc/user_beancounters
• Used to design system and manage issues
 • Watch the failcnt column!
                                    Introduction to
                                       OpenVZ
Networking
• Ethernet interface via nat or bridge
• The bridge interface enables DHCP and
  other broadcast /multicast technologies

• IPv4 and IPv6 support
• Firewall with IPtables in container or
  outside in host system (on the bridge)

• Network traffic can be managed       Introduction to
                                         OpenVZ
Script hooks
• There are hooks for scripts you can run
  when starting and stopping containers

• These can be used to mount disk drives
  into container




                                     Introduction to
                                        OpenVZ
Configuration
• Configuration file in /etc/vz/vz.conf
• Configuration for containers in /etc/vz/
  conf




                                    Introduction to
                                       OpenVZ
Advanced features
• Live migration of containers between
  systems

• Backup of running system
• Remote management with libvirt


                                    Introduction to
                                       OpenVZ
References
• www.openvz.org
 • Documentation
 • Wiki full with information, howto’s and documentation
 • Downloadable templates for containers - Centos,
    Debian, Ubuntu and other distributions


                                                 Introduction to
                                                    OpenVZ

More Related Content

What's hot (20)

PPTX
Linux containers – next gen virtualization for cloud (atl summit) ar4 3 - copy
Boden Russell
 
PDF
Lxc- Linux Containers
samof76
 
PDF
Lxc- Introduction
Luís Eduardo
 
PPTX
Lxc – next gen virtualization for cloud intro (cloudexpo)
Boden Russell
 
PDF
Linux Container Technology 101
inside-BigData.com
 
PPTX
Linux Container Brief for IEEE WG P2302
Boden Russell
 
PDF
Cgroups, namespaces, and beyond: what are containers made from? (DockerCon Eu...
Jérôme Petazzoni
 
PPTX
LXC
Wu Fan-Cheng
 
PDF
Docker storage drivers by Jérôme Petazzoni
Docker, Inc.
 
PDF
Lightweight Virtualization: LXC containers & AUFS
Jérôme Petazzoni
 
PDF
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
PDF
OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ...
NETWAYS
 
PDF
Evoluation of Linux Container Virtualization
Imesh Gunaratne
 
PDF
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Jérôme Petazzoni
 
PDF
LXC, Docker, security: is it safe to run applications in Linux Containers?
Jérôme Petazzoni
 
PDF
pkgsrc on SmartOS
jonperkin
 
PDF
[DockerCon 2019] Hardening Docker daemon with Rootless mode
Akihiro Suda
 
PPTX
Performance characteristics of traditional v ms vs docker containers (dockerc...
Boden Russell
 
PPTX
Introduction to containers
Nitish Jadia
 
PDF
Linux Containers From Scratch
joshuasoundcloud
 
Linux containers – next gen virtualization for cloud (atl summit) ar4 3 - copy
Boden Russell
 
Lxc- Linux Containers
samof76
 
Lxc- Introduction
Luís Eduardo
 
Lxc – next gen virtualization for cloud intro (cloudexpo)
Boden Russell
 
Linux Container Technology 101
inside-BigData.com
 
Linux Container Brief for IEEE WG P2302
Boden Russell
 
Cgroups, namespaces, and beyond: what are containers made from? (DockerCon Eu...
Jérôme Petazzoni
 
Docker storage drivers by Jérôme Petazzoni
Docker, Inc.
 
Lightweight Virtualization: LXC containers & AUFS
Jérôme Petazzoni
 
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ...
NETWAYS
 
Evoluation of Linux Container Virtualization
Imesh Gunaratne
 
Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon
Jérôme Petazzoni
 
LXC, Docker, security: is it safe to run applications in Linux Containers?
Jérôme Petazzoni
 
pkgsrc on SmartOS
jonperkin
 
[DockerCon 2019] Hardening Docker daemon with Rootless mode
Akihiro Suda
 
Performance characteristics of traditional v ms vs docker containers (dockerc...
Boden Russell
 
Introduction to containers
Nitish Jadia
 
Linux Containers From Scratch
joshuasoundcloud
 

Viewers also liked (20)

PDF
Open Virtualization - Virtualização em Software Livre
Frederico Madeira
 
PDF
Magnus Christerson Henk Kolk Domain Expert DSLs
deimos
 
PPT
Shashi Bellamkonda - Social Media at the DC Chamber of Commerce
Shashi Bellamkonda
 
PDF
Neal Gafter Java Evolution
deimos
 
PPT
25 Anni di Solidarietà
maurinbu
 
PPT
Final Mobile Youth Net Project
Rede Jovem
 
PPT
Firefox的安全性
Liu Xing
 
PDF
Survey 2016 acimit-blumine
franztunda
 
PPT
My sport life
pacomendoza
 
KEY
Present perfect
Maribel Gonzalez
 
PPTX
Presentation to GIBBS MBA class on Disruption and Innovation
Brian Pinnock
 
PDF
#Morecrypto 1.8 - with introduction to TLS
Olle E Johansson
 
PPSX
pmc trip
Zia Khan
 
PPTX
Guerilla Marketing/PR Hacks
mdpr
 
PDF
Gpa
Zia Khan
 
PPT
PI Stats Show
Seth Campbell
 
PDF
Advanced SEO - Huzzah seminar
Ian Lurie
 
PPT
Web2 Voorbeeldpresentatie
sofie.eeckhout
 
PPT
Collaborating in the Clouds: selecting tools
Bobbi Newman
 
PPS
Coches Sucios
Descojonate
 
Open Virtualization - Virtualização em Software Livre
Frederico Madeira
 
Magnus Christerson Henk Kolk Domain Expert DSLs
deimos
 
Shashi Bellamkonda - Social Media at the DC Chamber of Commerce
Shashi Bellamkonda
 
Neal Gafter Java Evolution
deimos
 
25 Anni di Solidarietà
maurinbu
 
Final Mobile Youth Net Project
Rede Jovem
 
Firefox的安全性
Liu Xing
 
Survey 2016 acimit-blumine
franztunda
 
My sport life
pacomendoza
 
Present perfect
Maribel Gonzalez
 
Presentation to GIBBS MBA class on Disruption and Innovation
Brian Pinnock
 
#Morecrypto 1.8 - with introduction to TLS
Olle E Johansson
 
pmc trip
Zia Khan
 
Guerilla Marketing/PR Hacks
mdpr
 
PI Stats Show
Seth Campbell
 
Advanced SEO - Huzzah seminar
Ian Lurie
 
Web2 Voorbeeldpresentatie
sofie.eeckhout
 
Collaborating in the Clouds: selecting tools
Bobbi Newman
 
Coches Sucios
Descojonate
 
Ad

Similar to Openvz - a quick introduction (20)

PPTX
Introduction to linux containers
Google
 
PPT
Linux virtualization
Google
 
PDF
OpenVZ Linux containers
OpenVZ
 
PPTX
Red Hat Openshift Fundamentals.pptx
ssuser18b1c6
 
PDF
How Docker didn't invent containers (Docker Meetup Brno #1)
Pavel Snajdr
 
PDF
Introduction to open virtual network Dawid Deja
OpenInfra Days Poland 2019
 
PDF
Docker Dojo
Hugo González Labrador
 
PPTX
VMware and Container Orchestration
Tesora
 
PPT
An overview of OpenVZ virtualization technology
OpenVZ
 
PPTX
Apache CloudStack: API to UI (STLLUG)
Joe Brockmeier
 
PPT
Develop with linux containers and docker
Fabio Fumarola
 
PPT
2 Linux Container and Docker
Fabio Fumarola
 
PDF
IPv6 & Containers
Pieter Lewyllie
 
PPTX
SlideDevopsSubjectEng set 8 (CVCS DVCS).pptx
UTKARSHBHARDWAJ71
 
PPTX
Deploying Apache CloudStack from API to UI
Joe Brockmeier
 
PDF
Introduction to linux
PT Lotus Indah Textile Industries
 
PPTX
Apache CloudStack from API to UI
CloudStack - Open Source Cloud Computing Project
 
PDF
Webinar - Getting Started With Ceph
Ceph Community
 
PPT
Source Code Management in DEVOPS PowerPoint presentation
SujithTheDreamer
 
PPTX
VCS, Containers & Low-code
Joel Quintyn
 
Introduction to linux containers
Google
 
Linux virtualization
Google
 
OpenVZ Linux containers
OpenVZ
 
Red Hat Openshift Fundamentals.pptx
ssuser18b1c6
 
How Docker didn't invent containers (Docker Meetup Brno #1)
Pavel Snajdr
 
Introduction to open virtual network Dawid Deja
OpenInfra Days Poland 2019
 
VMware and Container Orchestration
Tesora
 
An overview of OpenVZ virtualization technology
OpenVZ
 
Apache CloudStack: API to UI (STLLUG)
Joe Brockmeier
 
Develop with linux containers and docker
Fabio Fumarola
 
2 Linux Container and Docker
Fabio Fumarola
 
IPv6 & Containers
Pieter Lewyllie
 
SlideDevopsSubjectEng set 8 (CVCS DVCS).pptx
UTKARSHBHARDWAJ71
 
Deploying Apache CloudStack from API to UI
Joe Brockmeier
 
Introduction to linux
PT Lotus Indah Textile Industries
 
Apache CloudStack from API to UI
CloudStack - Open Source Cloud Computing Project
 
Webinar - Getting Started With Ceph
Ceph Community
 
Source Code Management in DEVOPS PowerPoint presentation
SujithTheDreamer
 
VCS, Containers & Low-code
Joel Quintyn
 
Ad

More from Olle E Johansson (20)

PDF
Cybernode.se: Securing the software supply chain (CRA)
Olle E Johansson
 
PDF
CRA - overview of vulnerability handling
Olle E Johansson
 
PDF
Introduction to the proposed EU cyber resilience act (CRA)
Olle E Johansson
 
PDF
The birth and death of PSTN
Olle E Johansson
 
PDF
WebRTC and Janus intro for FOSS Stockholm January 2019
Olle E Johansson
 
PDF
Kamailio World 2018: Having fun with new stuff
Olle E Johansson
 
PDF
Kamailio on air
Olle E Johansson
 
PDF
Webrtc overview
Olle E Johansson
 
PDF
Realtime communication over a dual stack network
Olle E Johansson
 
PDF
The Realtime Story - part 2
Olle E Johansson
 
PDF
Sip2016 - a talk at VOIP2DAY 2016
Olle E Johansson
 
PDF
Sips must die, die, die - about TLS usage in the SIP protocol
Olle E Johansson
 
PDF
SIP :: Half outbound (random notes)
Olle E Johansson
 
PDF
Kamailio World 2016: Update your SIP!
Olle E Johansson
 
PDF
SIP & TLS - Security in a peer to peer world
Olle E Johansson
 
PDF
Tio tester av TLS - Transport Layer Security (TLS-O-MATIC.COM)
Olle E Johansson
 
PDF
2015 update: SIP and IPv6 issues - staying Happy in SIP
Olle E Johansson
 
PDF
TCP/IP Geeks Stockholm :: Introduction to IPv6
Olle E Johansson
 
PDF
Why is Kamailio so different? An introduction.
Olle E Johansson
 
PDF
RFC 7435 - Opportunistic security - Some protection most of the time
Olle E Johansson
 
Cybernode.se: Securing the software supply chain (CRA)
Olle E Johansson
 
CRA - overview of vulnerability handling
Olle E Johansson
 
Introduction to the proposed EU cyber resilience act (CRA)
Olle E Johansson
 
The birth and death of PSTN
Olle E Johansson
 
WebRTC and Janus intro for FOSS Stockholm January 2019
Olle E Johansson
 
Kamailio World 2018: Having fun with new stuff
Olle E Johansson
 
Kamailio on air
Olle E Johansson
 
Webrtc overview
Olle E Johansson
 
Realtime communication over a dual stack network
Olle E Johansson
 
The Realtime Story - part 2
Olle E Johansson
 
Sip2016 - a talk at VOIP2DAY 2016
Olle E Johansson
 
Sips must die, die, die - about TLS usage in the SIP protocol
Olle E Johansson
 
SIP :: Half outbound (random notes)
Olle E Johansson
 
Kamailio World 2016: Update your SIP!
Olle E Johansson
 
SIP & TLS - Security in a peer to peer world
Olle E Johansson
 
Tio tester av TLS - Transport Layer Security (TLS-O-MATIC.COM)
Olle E Johansson
 
2015 update: SIP and IPv6 issues - staying Happy in SIP
Olle E Johansson
 
TCP/IP Geeks Stockholm :: Introduction to IPv6
Olle E Johansson
 
Why is Kamailio so different? An introduction.
Olle E Johansson
 
RFC 7435 - Opportunistic security - Some protection most of the time
Olle E Johansson
 

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 

Openvz - a quick introduction

  • 1. Introduction to OpenVZ [email protected] Olle E. [email protected] Johansson * [email protected] * Twitter oej © Copyright Edvina AB, Sollentuna, Sweden 2012. All rights reserved.
  • 2. OpenVZ • Virtualization software by Parallells, inc. Base for their commercial Virtuozzo platform • Integrated with the virtualization support in the kernel - lvc • Segmentation, not full virtualization • Regardless, has cool features Introduction to OpenVZ
  • 3. Cool features • Migration of running system • Backup with just a few secs stop time • Very simple - shared filesystem in the host system Introduction to OpenVZ
  • 4. Basics Containers share the same kernel. Only Linux is supported - but you can run Kernel a different distribution in Container 1 a container. OpenVZ The host system Containers get allocated a few runs a full Linux with a Container 2 resources - network, CPU, standard kernel with memory, disk. openvz extensions. Introduction to OpenVZ
  • 5. The container is a full Linux system • The container is a full Linux system • It has network interfaces (if configured) • It has a separate user account database (/etc/passwd) • It needs patching and updates like any other system Introduction to OpenVZ
  • 6. The Kernel • The kernel is managed as an package for the distro you are using. • For Centos, you add a new yum repository and install the kernel • Reboot and you have OpenVZ support • Now install the tools - vzsplit, vzctl and vzlist Introduction to OpenVZ
  • 7. vzctl • Used to manage containers • Create new container • Start container • Stop container • Change attributes (name, IP address, various limits, properties) Introduction to OpenVZ
  • 8. vzlist • Simply list containers running in a system • Lists all container IDs Introduction to OpenVZ
  • 9. vzsplit • Used to get settings for vzctl (or the .conf files) • Takes all resources in a server and divides them between a specific number of containers Introduction to OpenVZ
  • 10. Beancounters • Counters that document use • Also document when a resource limit is exceeded • cat /proc/user_beancounters • Used to design system and manage issues • Watch the failcnt column! Introduction to OpenVZ
  • 11. Networking • Ethernet interface via nat or bridge • The bridge interface enables DHCP and other broadcast /multicast technologies • IPv4 and IPv6 support • Firewall with IPtables in container or outside in host system (on the bridge) • Network traffic can be managed Introduction to OpenVZ
  • 12. Script hooks • There are hooks for scripts you can run when starting and stopping containers • These can be used to mount disk drives into container Introduction to OpenVZ
  • 13. Configuration • Configuration file in /etc/vz/vz.conf • Configuration for containers in /etc/vz/ conf Introduction to OpenVZ
  • 14. Advanced features • Live migration of containers between systems • Backup of running system • Remote management with libvirt Introduction to OpenVZ
  • 15. References • www.openvz.org • Documentation • Wiki full with information, howto’s and documentation • Downloadable templates for containers - Centos, Debian, Ubuntu and other distributions Introduction to OpenVZ

Editor's Notes