📜 ⬆️ ⬇️

The difference between OS-level virtualization (containers) and hardware virtualization (virtual machines) in InfoboxCloud

When creating a virtual server in InfoboxCloud, the user can set the flag “I will manage the OS kernel”. If the flag is not set, OS-level virtualization is used (by default). If the flag is set, hardware virtualization is used.



In this article, we will answer a frequently asked question: what is the difference in the types of virtualization of InfoboxCloud and which virtualization to choose.

OS-level virtualization


OS-level virtualization allows virtualization of physical servers at the kernel level of the operating system.
')


The OS virtualization layer provides isolation and security of resources between different containers. The virtualization layer makes each container look like a physical server. Each container serves the applications in it and the workload.

Key Benefits of Container Virtualization



InfoboxCloud container features

From the point of view of the application, each container is an independent system. Independence is provided by the level of virtualization of the Parallels Cloud Server operating system. The minimum amount of CPU resources is spent on virtualization: 1–2%.

Key Features:

It is also interesting that virtual server image files are stored in a single file (.hdd), which makes it easier to perform migration and backups due to sequential access to a single file instead of separate container files.

After creating the container, the template of the operating system from which the creation was made is no longer necessary. This means that even if we declare an OS that is outdated and remove it from the cloud, your created servers will continue to work.

Containers use native journaling disk quotas and in case of a physical server crash, no quota recalculation is required.

Hardware virtualization


In hardware virtualization, the base layer is the hypervisor. This layer is loaded on the server and provides interaction between the server hardware and the virtual machines. To provide resources to virtual machines, they are virtualized on the server. Virtual machines run their own copy of the operating system and applications on virtualized hardware.



Key Benefits of Hardware Virtualization


Each virtual server is stored in at least two files: a configuration file and a hard disk file.

The created virtual server, as in the case of virtualization at the OS level, does not depend on the presence of the OS template in the cloud. In the case of updating or deleting a template, changes on the virtual server will not occur.

What virtualization to choose?


If you have never thought about it - use container virtualization. It is great for most tasks on a virtual Linux – server. You will get the fastest possible server creation and reboot times (which is very important when migrating the server). Also, when using OS-level virtualization, auto-scaling of RAM is available.

If you need Windows, the installation of OS kernel extensions (for example for VPN), full control over the OS kernel, the ability to use Docker , the OS manual upgrade - use hardware virtualization.

Successful use of InfoboxCloud !

Source: https://habr.com/ru/post/247595/


All Articles