Containerization with LXC

Get acquainted with the world of LXC

Containerization with LXC

This ebook is included in a Mapt subscription
Konstantin Ivanov

Get acquainted with the world of LXC
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
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