Chapter 3 - Questions regarding Virtualization Mechanisms
This chapter highlights a few linux virtualization mechanisms. However, without working with them closely, it's hard to understand their subtle difference and how the underlying fundamentals (cgroups, namespaces, and UnionFS) support them.
Unfortunately, the labs don't go into much depth as well. They are mostly creating a container, check the status, then remove it. How they are fundamentally different from each other is not clear to me. For example, I was able to chroot into the systemd-nspwan directory. So, besides I can use machinectl to check the container status, are there any other differences? What can chroot do, that will be prevented by systemd-nspawan or lxc when we are inside the container?
It would be really helpful to use the labs to highlight the differences mentioned in this and the previous chapters. As of now, I seem to understand individual concepts discretely (cgroups, namespaces, UnionFS, creating virtualized environment in linux and get a root bash), but it's not clear how they interact, relate to, and are different from each other.
Can anyone help me to understand the following?
- Are all the virtualization mechanisms use cgroups, namespaces, and UnionFS? From the chapter3 labs, it's hard for me to see the connection. For example, after I chroot into a directory, in the host system, will I see anything in "lscgroup" for cgroup or "ip netns list" for namespace? I am not able to find anything, does it mean these fundamentals are not being used for chroot?
- It was mentioned in chapters that chroot has security concerns of accessing the actual root of the host. How can this be done in the lab? And, how the same thing can not be done in lxc or systemd-nspawn?
- Using the labs, can anyone highlight the core difference of chroot, lxc, and systemd-nspawn beyond simple "create, check status, and remove"? To me, they are more or less the same once you are in the container. The only differences are the commands to manage. This is clearly not the case based on the readings in chapter3.
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 755 Linux Foundation IT Professional Programs
- 375 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 794 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 89 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 980 Programming and Development
- 310 Kernel Development
- 652 Software Development
- 995 Software
- 387 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)