Containerization with LXC

Get acquainted with the world of LXC

Containerization with LXC

Konstantin Ivanov

Get acquainted with the world of LXC
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785888946
Paperback352 pages

Book Description

In recent years, containers have gained wide adoption by businesses running a variety of application loads. This became possible largely due to the advent of kernel namespaces and better resource management with control groups (cgroups). Linux containers (LXC) are a direct implementation of those kernel features that provide operating system level virtualization without the overhead of a hypervisor layer.

This book starts by introducing the foundational concepts behind the implementation of LXC, then moves into the practical aspects of installing and configuring LXC containers. Moving on, you will explore container networking, security, and backups. You will also learn how to deploy LXC with technologies like Open Stack and Vagrant. By the end of the book, you will have a solid grasp of how LXC is implemented and how to run production applications in a highly available and scalable way.

Table of Contents

Chapter 1: Introduction to Linux Containers
The OS kernel and its early limitations
The case for Linux containers
Linux namespaces – the foundation of LXC
Summary
Chapter 2: Installing and Running LXC on Linux Systems
Installing LXC
Building and manipulating LXC containers
Summary
Chapter 3: Command-Line Operations Using Native and Libvirt Tools
Using the LVM backing store
Using the Btrfs backing store
Using the ZFS backing store
Autostarting LXC containers
LXC container hooks
Attaching directories from the host OS and exploring the running filesystem of a container
Freezing a running container
Limiting container resource usage
Building and running LXC containers with libvirt
Summary
Chapter 4: LXC Code Integration with Python
LXC Python bindings
Libvirt Python bindings
Vagrant and LXC
Putting it all together – building a simple RESTful API to LXC with Python
Summary
Chapter 5: Networking in LXC with the Linux Bridge and Open vSwitch
Software bridging in Linux
Connecting LXC to the host network
Summary
Chapter 6: Clustering and Horizontal Scaling with LXC
Scaling applications with LXC
Summary
Chapter 7: Monitoring and Backups in a Containerized World
Backing up and migrating LXC
Monitoring and alerting on LXC metrics
Simple autoscaling pattern with LXC, Jenkins, and Sensu
Summary
Chapter 8: Using LXC with OpenStack
Deploying OpenStack with LXC support on Ubuntu
Summary

What You Will Learn

  • Deep dive into the foundations of Linux containers with kernel namespaces and cgroups
  • Install, configure, and administer Linux containers with LXC and libvirt
  • Begin writing applications using Python libvirt bindings
  • Take an in-depth look at container networking
  • Set up monitoring and security with LXC
  • Build and deploy a highly available application with LXC in the cloud

Authors

Table of Contents

Chapter 1: Introduction to Linux Containers
The OS kernel and its early limitations
The case for Linux containers
Linux namespaces – the foundation of LXC
Summary
Chapter 2: Installing and Running LXC on Linux Systems
Installing LXC
Building and manipulating LXC containers
Summary
Chapter 3: Command-Line Operations Using Native and Libvirt Tools
Using the LVM backing store
Using the Btrfs backing store
Using the ZFS backing store
Autostarting LXC containers
LXC container hooks
Attaching directories from the host OS and exploring the running filesystem of a container
Freezing a running container
Limiting container resource usage
Building and running LXC containers with libvirt
Summary
Chapter 4: LXC Code Integration with Python
LXC Python bindings
Libvirt Python bindings
Vagrant and LXC
Putting it all together – building a simple RESTful API to LXC with Python
Summary
Chapter 5: Networking in LXC with the Linux Bridge and Open vSwitch
Software bridging in Linux
Connecting LXC to the host network
Summary
Chapter 6: Clustering and Horizontal Scaling with LXC
Scaling applications with LXC
Summary
Chapter 7: Monitoring and Backups in a Containerized World
Backing up and migrating LXC
Monitoring and alerting on LXC metrics
Simple autoscaling pattern with LXC, Jenkins, and Sensu
Summary
Chapter 8: Using LXC with OpenStack
Deploying OpenStack with LXC support on Ubuntu
Summary

Book Details

ISBN 139781785888946
Paperback352 pages
Read More

Read More Reviews

Recommended for You

Mastering KVM Virtualization Book Cover
Mastering KVM Virtualization
$ 39.99
$ 28.00
Docker Cookbook Book Cover
Docker Cookbook
$ 35.99
$ 25.20
Learning Docker Book Cover
Learning Docker
$ 39.99
$ 8.00
Learning OpenStack Networking (Neutron) Book Cover
Learning OpenStack Networking (Neutron)
$ 26.99
$ 18.90
OpenStack Cloud Computing Cookbook - Second Edition Book Cover
OpenStack Cloud Computing Cookbook - Second Edition
$ 29.99
$ 21.00
Mastering Docker Book Cover
Mastering Docker
$ 39.99
$ 28.00