LPIC-3 Virtualization and Containerization Study Guide: Certification Companion for the LPIC-3 305 Exam / Учебное пособие по виртуализации и контейнеризации LPIC-3: Сертификационный компаньон для сдачи экзамена LPIC-3 305 Год издания: 2024 Автор: Vazquez Antonio / Васкес Антонио Издательство: Apress Media, LLC ISBN: 979-8-8688-1080-0 Язык: Английский Формат: PDF/EPUB Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 767 Описание: Get up to speed on the key topics required for the Linux Professional Institute’s LPIC-3 305 exam, the third in the four-part LPIC-3 certification, which covers virtualization and containerization. The wider LPIC-3 certification helps developers and system administrators become experts in a given context of Linux and Open Source solutions. This study companion is designed to sit alongside your studies and certification guides as you prepare for the exam and will take you through the three main areas of Full Virtualization, Container Virtualization as well as VM Deployment and Provisioning. We will undertake a deep dive of all the major topics, from the basics of virtualizations and containers to in-depth breakdown of virtualization solutions like KVN, Xen and Proxmox as well as popular containers like Docker, Kubernetes, Openstack, Terraform, Packer, Vagrant and others with key concepts covered on the exam called out and applied in each chapter of this book, giving you both practice and reinforcement, a far more effective learning tool than rote learning or similar approaches typically enlisted in exam preparation. LPIC-3 Virtualization and Containerization Study Guide will give you the guidance and support as you take the next exciting step in supercharging your Linux skills and knowledge to take the next step in your professional career. You Will: Gain a clear picture about the different types of virtualization in use today. Understand how to work with virtualization solutions like KVM and Xen, and manage them using the libvirt API. Become aware of the use of fully enterprise-ready virtualization solutions like Proxmox. Learn the technologies that make Open Source virtualization, possible This is for: Developers and more seasoned Linux SysAdmins who are working towards the LPIC-3 certification. It would be expected that readers will meet the requirements of taking the exam which includes having passed the LPIC-2 certification. However, this guide will also be of use to Linux professionals who are not currently pursuing certification but wish to expand and refresh their Linux skills in relation to virtualization and containerization. Ознакомьтесь с ключевыми темами, необходимыми для сдачи экзамена LPIC-3 305 от Linux Professional Institute, третьего сертификационного экзамена LPIC-3, состоящего из четырех частей, который охватывает виртуализацию и контейнеризацию. Более широкая сертификация LPIC-3 помогает разработчикам и системным администраторам стать экспертами в данной области Linux и решений с открытым исходным кодом. Это учебное пособие предназначено для использования вместе с учебными пособиями и руководствами по сертификации при подготовке к экзамену и познакомит вас с тремя основными областями полной виртуализации, контейнерной виртуализации, а также с развертыванием и подготовкой виртуальных машин. Мы подробно рассмотрим все основные темы, от основ виртуализации и контейнеров до подробного описания решений для виртуализации, таких как KVN, Xen и Proxmox, а также популярных контейнеров, таких как Docker, Kubernetes, Openstack, Terraform, Packer, Vagrant и других. Ключевые понятия будут рассмотрены на экзамене под названием они изложены и применяются в каждой главе этой книги, что дает вам как практику, так и подкрепление - гораздо более эффективный инструмент обучения, чем зубрежка или аналогичные подходы, обычно используемые при подготовке к экзаменам. Учебное пособие по виртуализации и контейнеризации LPIC-3 предоставит вам рекомендации и поддержку, когда вы сделаете следующий захватывающий шаг в совершенствовании своих навыков и знаний в области Linux, чтобы сделать следующий шаг в своей профессиональной карьере. Вы будете: Получите четкое представление о различных типах виртуализации, используемых сегодня. Узнайте, как работать с такими решениями для виртуализации, как KVM и Xen, и управлять ими с помощью libvirt API. Ознакомьтесь с использованием полностью корпоративных решений для виртуализации, таких как Proxmox. Изучите технологии, которые делают возможной виртуализацию с открытым исходным кодом Это для: Разработчики и более опытные системные администраторы Linux, которые работают над получением сертификации LPIC-3. Ожидается, что читатели будут соответствовать требованиям для сдачи экзамена, который включает в себя прохождение сертификации LPIC-2. Однако это руководство также будет полезно специалистам по Linux, которые в настоящее время не проходят сертификацию, но хотят расширить и освежить свои навыки работы с Linux в области виртуализации и контейнеризации.
Примеры страниц (скриншоты)
Оглавление
About the Author ........................................................................................xix About the Technical Reviewer .......................................................................xxi Acknowledgments .......................................................................................xxiii Introduction ...............................................................................................xxv Chapter 1: Virtualization Concepts and Theory ................................................1 Introduction ...............................................................................................1 Emulation ..................................................................................................2 Game Console Emulators .............................................................................3 Terminal Emulators .....................................................................................4 Printer Emulators ........................................................................................5 Network Emulators ......................................................................................6 System Emulators .......................................................................................6 Simulation ..................................................................................................7 Virtualization ...............................................................................................7 Types of Virtualization ..................................................................................10 Pros and Cons of Virtualization ......................................................................11 Migration of Physical to Virtual Machines .........................................................12 VMware Converter .......................................................................................12 virt-p2v ......................................................................................................12 openQRM ....................................................................................................13 Clonezilla ....................................................................................................13 Migrating Virtual Machines Between Systems ...................................................14 Summary ....................................................................................................14 Chapter 2: QEMU ..........................................................................................15 Introduction to QEMU ....................................................................................16 Installation on Ubuntu ...................................................................................16 Full System Emulation in QEMU ......................................................................17 Emulating an x86 System ..............................................................................18 Emulating an ARM System ............................................................................29 Emulating a SPARC System ...........................................................................34 User Mode Emulation in QEMU ...........................................................................41 QEMU with KVM ..................................................................................................45 QEMU Networking ...............................................................................................47 User Networking ............................................................................................48 Networking by Using TUN/TAP Devices ..............................................................62 Creating a Bridge for External Access .................................................................68 QEMU Guest Agent ..............................................................................................70 QEMU Monitor .....................................................................................................76 Other Useful QEMU Options ................................................................................88 Summary ............................................................................................................91 Chapter 3: Xen ....................................................................................................93 Xen Architecture ..................................................................................................93 Installation and Configuration of Xen ..................................................................94 Installing Xen .................................................................................................95 Configuring Xen ..............................................................................................97 Creating a Logical Volume to Store the Virtual Machines .......................................98 Creating Virtual Machines .................................................................................100 Installing a Virtual Machine by Editing a Configuration File .......................................100 XenStore ...........................................................................................................130 GRUB Start Options ...........................................................................................132 Managing Xen with xl/xm/XAPI ...........................................................................135 Xen Troubleshooting ..........................................................................................144 Summary ..........................................................................................................145 Chapter 4: libvirt Virtual Machine Management ......................................................147 Introduction to libvirt .........................................................................................148 Installing libvirt .................................................................................................148 virt-manager .....................................................................................................149 Installing and Managing a Virtual Machine with virt-manager ...................................159 Accessing libvirt from Our Own Programs ........................................................177 Accessing libvirt from a C Program .............................................................177 Accessing libvirt from a Python Program ....................................................180 Migrating a Virtual Machine to Another Host ...............................................182 Managing Snapshots ........................................................................................193 Storage Pools and Volumes ...............................................................................197 Networking .......................................................................................................201 Monitoring .........................................................................................................212 virsh ..................................................................................................................214 libvirt Configuration Files ..................................................................................219 libvirt.conf ...................................................................................................219 libvirtd.conf .................................................................................................220 qemu.conf ...................................................................................................222 virtlogd.conf ................................................................................................223 virtlockd.conf ...............................................................................................223 dnsmasq ...........................................................................................................223 radvd .................................................................................................................225 Summary ..........................................................................................................226 Chapter 5: Virtual Machine Disk Image Management ............................................227 Virtual Disk Image Formats ...............................................................................228 Raw Images .................................................................................................228 qcow and qcow2 .........................................................................................229 VMDK ...........................................................................................................230 Managing Disk Images with qemu-img ............................................................230 Getting Information with qemu-img ............................................................230 Creating Disk Image Files with qemu-img ..................................................232 Creating Overlays with qemu-img ...............................................................233 Converting Between Different Disk Formats ...............................................235 Basic Usage of VirtualBox to Check the Image Disk File .............................236 Mounting Partitions and Accessing Files Contained in Virtual Disks ................241 Troubleshooting libguestfs ..........................................................................244 guestmount/guestunmount .........................................................................248 virt-cat .........................................................................................................251 virt-copy-in ..................................................................................................254 virt-copy-out ................................................................................................255 virt-diff .........................................................................................................256 virt-inspector ...............................................................................................257 virt-filesystems ............................................................................................258 virt-rescue ...................................................................................................259 virt-df ...........................................................................................................262 virt-resize ....................................................................................................263 virt-sparsify .................................................................................................267 virt-p2v ........................................................................................................269 virt-v2v ........................................................................................................277 virt-sysprep .................................................................................................282 Open Virtualization Format ................................................................................285 Summary ..........................................................................................................290 Chapter 6: Proxmox and Open vSwitch ................................................................291 Introduction to Proxmox ....................................................................................291 systemd-machined ...........................................................................................309 Open vSwitch ....................................................................................................313 Summary ..........................................................................................................318 Chapter 7: Container Virtualization Concepts ..................................................319 System Containers and Application Containers ................................................320 Kernel Namespaces ..........................................................................................320 Mount Namespaces .....................................................................................323 Process Namespaces ..................................................................................327 User Namespaces ........................................................................................328 Combining Several Namespaces to Craft Our First “Container” ..........................329 Network Namespaces .................................................................................333 chroot ..........................................................................................................336 Control Groups ..................................................................................................341 Linux Capabilities ..............................................................................................345 Security and Containers ....................................................................................353 SELinux ........................................................................................................353 AppArmor ....................................................................................................359 seccomp ......................................................................................................362 Summary ....................................................................................................362 Chapter 8: Linux Containers (LXC) ..................................................................363 LXC ............................................................................................................363 Installing LXC ...............................................................................................364 Configuring LXC ...........................................................................................365 LXC in RedHat/Rocky/CentOS ........................................................................386 Security in LXC ............................................................................................399 Other LXC Commands ..................................................................................404 LXD ...........................................................................................................407 Creating Our First Container on LXD ..............................................................412 Managing Server and Container Configuration .................................................416 Networking in LXD .......................................................................................419 Storage in LXD .............................................................................................424 LXD Profiles .................................................................................................427 Limiting the Use of Resources on LXD .............................................................432 Summary .......................................................................................................433 Chapter 9: Docker ...........................................................................................435 Introduction to Docker ......................................................................................435 Installing Docker ...............................................................................................436 Docker Images ..................................................................................................438 Docker Containers .............................................................................................440 Docker Architecture ..........................................................................................445 Docker Volumes ................................................................................................450 Bind Mounts ................................................................................................453 Named Volumes ...........................................................................................455 tmpfs Volumes .............................................................................................458 Sharing Volumes Between Containers ...........................................................458 Using Remote Volumes ................................................................................460 Deleting and Pruning Volumes .....................................................................463 Docker Networking .....................................................................................464 Creating a New Network .............................................................................467 Mapping Ports .............................................................................................470 Customizing Our Own Containers .....................................................................471 Exporting a Container to an Image ....................................................................471 Using a Dockerfile to Create a Container ..............................................................475 Logging in Docker .............................................................................................482 Saving and Restoring Containers ......................................................................487 Creating a Local Registry ..................................................................................492 Customizing Security Options ...........................................................................496 Summary ..........................................................................................................498 Chapter 10: Container Orchestration Platforms ....................................................499 Container Orchestration ....................................................................................499 docker compose ...............................................................................................500 Installing docker compose ..........................................................................500 Creating a Service with docker compose ....................................................502 Creating a Multi-container Service ..............................................................506 docker swarm ..........................................................................................510 docker swarm Architecture .........................................................................510 Initializing a docker swarm Cluster .............................................................511 Adding Additional Nodes to the Swarm Cluster ...........................................513 Deploying Services in docker swarm ..........................................................515 Overlay Networks ........................................................................................519 Constraints ..................................................................................................520 Creating a Global Service ............................................................................522 Docker Secrets ............................................................................................523 Stacks ..........................................................................................................524 Kubernetes ....................................................................................................527 Kubernetes Architecture ..............................................................................527 Installing minikube ......................................................................................529 Pods .............................................................................................................531 First Steps with minikube ............................................................................532 Deploying a Pod in Kubernetes ...................................................................539 Replicasets ..................................................................................................540 Deployments ................................................................................................542 Other Kubernetes-Related Items ......................................................................546 Helm ..................................................................................................................546 OpenShift ..........................................................................................................553 Rancher .............................................................................................................557 Summary ..........................................................................................................563 Chapter 11: podman and Other Container-Related Tools ..........................................565 Introduction .......................................................................................................565 Open Container Initiative ...................................................................................566 podman .............................................................................................................566 Installing podman ........................................................................................566 podman Images ...........................................................................................567 podman Containers .....................................................................................569 buildah ..............................................................................................................571 skopeo ..............................................................................................................573 FreeBSD Jails ....................................................................................................575 rkt ......................................................................................................................577 OpenVZ ..............................................................................................................583 Summary ..........................................................................................................588 Chapter 12: Cloud Management Tools ................................................................589 Introduction to Cloud Computing ......................................................................589 OpenStack .........................................................................................................592 First Steps with OpenStack ..................................................................................593 Terraform ..........................................................................................................613 Installing Terraform .....................................................................................613 Terraform Providers .....................................................................................616 Deploying Our Docker Infrastructure with Terraform .........................................622 Public Clouds ....................................................................................................635 Amazon Web Services .................................................................................636 Microsoft Azure ...........................................................................................637 Google Cloud ...............................................................................................637 Summary ..........................................................................................................638 Chapter 13: Packer ...........................................................................................641 Introduction to Packer .......................................................................................641 Installing Packer ...............................................................................................641 Packer Integrations (Plug-ins) ...........................................................................644 Installing a Packer Plug-In ................................................................................645 Building an Image .............................................................................................646 Building a VirtualBox Image .........................................................................646 Building an LXC Image ................................................................................651 Automating the Installation of Ubuntu to Generate an Image with Packer .......................................................................................659 Provisioning with Packer and Integration with vagrant .......................................671 Summary .......................................................................................................676 Chapter 14: cloud-init ......................................................................................677 Introduction to cloud-init ..................................................................................677 Configuring a Local QEMU Instance ..................................................................678 Instance Metadata Services (IMDS) ..................................................................686 Datasources ......................................................................................................686 Config Drive .................................................................................................686 Configuring a LXD Container Instance ..............................................................687 Managing Filesystems with cloud-init ..............................................................689 Installing Software Packages ............................................................................692 Summary ..........................................................................................................694 Chapter 15: vagrant .........................................................................................695 vagrant Architecture .........................................................................................695 Installing vagrant ..............................................................................................696 Deploying Our First Virtual Environment with vagrant ........................................701 Initializing vagrant .......................................................................................702 vagrant Files ................................................................................................703 Running a Vagrantfile ..................................................................................704 Working with Different vagrant Environments ..................................................707 Installing Additional vagrant Boxes ..............................................................709 Checking the Status of the vagrant Deployments ..........................................711 Searching for vagrant Boxes .......................................................................712 Provisioning with vagrant ............................................................................713 Port Redirection ...........................................................................................717 Customizing Network Settings ........................................................................721 Shared Folders in vagrant ..............................................................................724 Managing the State of the VM from vagrant .....................................................726 Deploying Multiple Virtual Machines from a Single Vagrantfile .............................728 Summary ....................................................................................................734 Index ..........................................................................................................735
Vazquez Antonio / Васкес Антонио - LPIC-3 Virtualization and Containerization Study Guide / Учебное пособие по виртуализации и контейнеризации LPIC-3 [2024, PDF/EPUB, ENG] download torrent for free and without registration
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum