Skip to main content

2017 | Buch

Practical LXC and LXD

Linux Containers for Virtualization and Orchestration

insite
SUCHEN

Über dieses Buch

Use Linux containers as an alternative virtualization technique to virtualize your operating system environment. This book will cover LXC’s unmatched flexibility with virtualization and LXD’s smooth user experience.
Practical LXC and LXD begins by introducing you to Linux containers (LXC and LXD). You will then go through use cases based on LXC and LXD. Next, you will see the internal workings of LXC and LXD by considering the repositories and templates used. You will then learn how to integrate LXC and LXD with common virtualization and orchestration tools such as libvirt and SaltStack. Finally, you will dive into containerization and security. The book will explore some of the common problems in security and provide a case study on how containerization can help mitigate some of the operating system-level security issues in an IoT environment.
What You Will LearnGet an introduction to Linux containers
Discover the basics of LXC and LXD
See use cases that can be solved with LXC and LXD – for developers, devops, and system administrators
Master LXC and LXD repositories
Use LXC and LXD with common virtualization and orchestration tools
Consider a containerization and security in IoT case study
Who This Book Is For

The audience for this book should have basic knowledge of Linux and software development in general. The intended readership is primarily software developers, operations engineers, and system administrators who are interested in devops, though managers and enthusiasts will also benefit from this book.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Introduction to Linux Containers
Abstract
Computer science is a field that keeps evolving at a very fast pace, requiring everyone in this industry to keep up to date on the latest technological advancements. In recent history, this industry has welcomed new technologies such as distributed computing, parallel processing, virtualization, cloud computing, and, most recently, the Internet of Things (IoT). Each technology paves the way for the next and helps to build a strong foundation for others. For example, virtualization revolutionized and built the basis for cloud computing. It has been common practice to use computers with maximum resource utilization from the beginning when computers were invented, whether via time sharing, multitasking, or the recent virtualization trends.
Senthil Kumaran S.
Chapter 2. Installation
Abstract
This chapter explains the installation steps for LXC and LXD in Ubuntu GNU/Linux. If you have already installed LXC and LXD and have a working setup, then you can safely skip this chapter.
Senthil Kumaran S.
Chapter 3. Getting Started with LXC and LXD
Abstract
At this point, you should have a working LXC and LXD installation in your host machine. This chapter steps you through the basic usage of LXC and LXD.
Senthil Kumaran S.
Chapter 4. LXC and LXD Resources
Abstract
This chapter discusses the various resources available to create LXC and LXD containers. It explains the internal working of some LXC templates and LXD images with the help of illustrations. LXC installation provides templates that are used to create the containers with various operating system distributions. Each template is a shell script that downloads or bootstraps a minimal system with the basic contents required for container creation using the lxc-create command.
Senthil Kumaran S.
Chapter 5. Common Virtualization and Orchestration Tools
Abstract
XC provides operating system–level containers, as you saw in previous chapters. In this chapter we will look at various tools that may be used for managing LXC containers. Some of the tools that will be discussed here are common tools that work with different containerization and virtualization technologies, but others are specific to LXC. In some sense LXD can be considered as a tool that provides a new user space experience with which to manage LXC.
Senthil Kumaran S.
Chapter 6. Use Cases
Abstract
Introducing or learning technologies without knowing where to apply them becomes a waste of time; hence in this chapter we will suggest some use cases that could be addressed with LXC and LXD. Naturally, there are many possible applications for LXC and LXD beyond the ones discussed in this chapter. The use cases described in this chapter give you an excellent foundation for exploring other possibilities on your own.
Senthil Kumaran S.
Chapter 7. Containers and Security
Abstract
Software is deemed to be production ready when it is secure. Security is highly important when dealing with operating systems, which is clearly what LXC provides using system-level containers. The basic idea of Linux containers is to share resources with isolated environments, and this raises a question about security. Is the isolation safe and is the resource sharing fair? When LXC started, many security considerations went unaddressed, but as LXC has evolved, many security features have been added, and the latest releases of LXC are considered secure based on certain recommended configurations, which we will explore in this chapter. LXD was designed from scratch to be secure, and it has also improved over time.
Senthil Kumaran S.
Backmatter
Metadaten
Titel
Practical LXC and LXD
verfasst von
Senthil Kumaran S.
Copyright-Jahr
2017
Verlag
Apress
Electronic ISBN
978-1-4842-3024-4
Print ISBN
978-1-4842-3023-7
DOI
https://doi.org/10.1007/978-1-4842-3024-4

Premium Partner