In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article analyzes "what's the difference between traditional virtualization and container virtualization". The content is detailed and easy to understand. Friends who are interested in "what's the difference between traditional virtualization and container virtualization" can follow the editor's train of thought to read it in depth. I hope it will be helpful to you after reading. Let's follow the editor to learn more about the difference between traditional virtualization and container virtualization.
What is the difference between traditional virtualization and container virtualization? Although both of them are virtualization technologies, they operate in a completely different way. Container virtualization is a lightweight virtualization technology, and it is also an application-centric virtualization technology. The traditional virtualization technology is different, generally speaking, it is operating system-centric. Therefore, the two are fundamentally different from each other. Let's take a look at the specific differences between the two.
1. Traditional Virtualization
Traditional virtualization technology refers to virtualizing a computer into multiple logical computers through virtualization technology. Running multiple logical computers on one computer at the same time, each logical computer can run a different operating system, and applications can run in independent spaces without affecting each other, thus significantly improving the work efficiency of the computer.
With the continuous development of hardware manufacturers, many instructions in virtual machines do not need to go through the virtual hardware layer to the real hardware layer. Hardware manufacturers support practical instructions to operate the hardware directly in the virtual machine, which we call hardware-assisted virtualization. This kind of hardware auxiliary virtualization does not need to simulate all the hardware compared with the software virtual hardware layer. Some instructions are run directly on the virtual machine to operate the hardware. Performance and efficiency are higher and higher than traditional virtualization.
2. System-level virtualization features
There is no need to simulate the hardware layer; the kernel of the same host is shared.
3. The difference between traditional virtualization and container virtualization.
4. The core technology of container virtualization
(1) CGroup restricts the use of container resources
(2) Namespace mechanism to realize the isolation between containers
(3) chroot, file system isolation.
5. Restrictions provided by the Linux kernel to record and isolate resources used by process groups. Proposed by Google engineers, the background is integrated into the kernel. Different subsystems are used to control and record the use of different resources.
/ sys/fs/cgroup6 、 Namespace:
Pid: the container has its own independent schedule and thread 1.
Net: the container has its own independent network infoipc: when communicating with ipc, you need to add additional information to mark the process mnt: each container has its own unique directory mount utc: each container has its own independent hostname and domain7, chroot:
A directory in the host is the root directory in the container.
So much for sharing the difference between traditional virtualization and container virtualization. I hope the above content can improve everyone. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.