Virtualization is very actively used in IT. It is used in development, hosting, OS and software testing, even in the business environment and in the application tasks of the average user. Today we will try to explain what it is, analyze the basic terms and try not to get confused about the types of software needed for virtualization.

What is virtualization?

Virtualization is a technology that allows you to use the computing resources of a single physical machine, such as a server, to create several isolated virtual machines with their own resources. In other words, it can be used to create separate environments that use the power of a single physical computer or server. At the same time, virtual machines can have any configuration (memory values, processor frequency, etc.) — of course, within the maximum capacity of the physical device.

What does virtualization provide?

The use of virtualization allows you to get away from the worries of configuring (assembling and selecting the necessary hardware for specific tasks) and configuring this equipment to run physical machines and servers, secure important services or quickly return them to work in case of critical failures.

For example, developers can create copies of an important web project on different virtual machines (including OS configuration features) and safely test it.

A critical failure or error when working with a copy will not affect the operation of the current service or application running on the production server. Virtualization also allows you to test different operating systems and different settings within the same hardware. This saves time, simplifies work, and provides opportunities for creating more complex interaction schemes with virtual machines.

In hosting, virtualization helps to solve problems with the distribution of computing resources between clients. The operation of small websites does not require large capacities — it is unprofitable and inefficient to set up a separate physical server with limited resources for hosting small web projects. It is much more reasonable to “divide” one powerful server into several virtual machines (including those with different amounts of resources) and provide them to clients depending on their tasks and needs.

Basic concepts

To understand how virtualization works, let’s go over the basic concepts.

A hypervisor is a special software that allows you to create and manage virtual machines.

A virtual machine (hereinafter VM) is an isolated system that is a logical server inside a physical machine with its own set of computing power and operating system.

Virtualization host (parent server) is a physical server with a hypervisor running on it.

A hypervisor can manage virtual machines not necessarily within a single physical server, but in a whole cluster of physical servers. In this case, one parent server hosting the virtual machine can be called a cluster node.

Types of virtualization

In terms of technology implementation, virtualization is divided into:

software (at the OS level),
hardware.


Software virtualization is one in which the division of the hardware resources of a physical server is carried out through the operating system. Because of this, all virtual machines share a common software core. This implies the main requirement for software virtualization — the OS of virtual machines must support the software core of the physical server operating system.

Hardware virtualization is virtualization in which the resources of a physical server are isolated from each other into virtual machines, each with its own full—fledged OS and its own operating system core.

Advantages and disadvantages of hypervisors

Hypervisors are divided into two groups, depending on the type of virtualization. Let’s look at their pros and cons.

Software hypervisors

+–
Fast deployment of a virtual machine due to the fact that the OS, as a rule, is not installed — just an unpacked template with all the specified parameters.An operating system is required on the basis of which the virtual machine will have access to the hardware resources of the host machine. This may limit the OS options already inside the virtual machine.
It is possible to edit the configuration of virtual machine resources almost on the fly, since in fact it is just a change in restrictions on access to the OS resources of the host machine on which the hypervisor is based.This type of virtualization is less isolated, the load of virtual machines affects each other more, and the OS of the physical server has access to the created virtual machines.

It is possible to use overselling for machines — providing the same resources to several machines due to the fact that not all virtual machines use their maximum resources.

OS-level hypervisors are better suited for small, unloaded web projects, for testing and saving money. It is worth noting that hybrid hypervisors stand out, but their use is not so widespread.

Hardware hypervisors

+–
Virtual machines run on a hardware level with server emulation very close to the physical one.They require more careful configuration of the created virtual machines for specific physical hardware.
There is no particular influence from neighboring machines or the physical server as a whole (i.e. resources are fairly isolated).It takes a relatively long time to deploy virtual machines, since in addition to creating a virtual machine, there is a full-fledged process of installing the operating system on a virtual machine. This results in a longer duration of other operations with virtual machines, such as rebooting.

Also, as with software virtualization, it is possible to use overselling for machines. However, with hardware virtualization, it is usually not possible to significantly increase the amount of reused resources due to the hardware limits of the physical server – only the disk can be used above the hardware resource limit.

For the standard use of a virtual server as an analog of a physical one, but with less computing resources and, consequently, lower cost with proportionally the same performance, hardware-type solutions are better suited. By using virtualization at the hardware level without software intermediaries, they provide better performance.

Top popular hypervisors

Next, let’s talk about those hypervisors that are considered the most popular by far. All of them are quite versatile, but each has its own characteristics that should be considered when choosing a virtualization solution: the cost of deployment/maintenance and technical characteristics.

Virtuozzo  OpenVZ

The type of virtualization is software-based.
Usage — basic VMs for tests, low-cost hosting.
Distribution is a free basic version (OpenVZ), paid with an extended set of functions.

The advantage of using a hypervisor is the quick launch and ease of deployment of the required number of virtual machines — a feature of all software-type solutions. The advantages also include fast access from the host server and intuitive management. At one time, these advantages, coupled with the accessibility of the solution, helped the hypervisor gain huge popularity among users.

At the same time, the hypervisor has a number of serious drawbacks – the operation of virtual machines is often unstable due to the influence of “neighbors” on the parent server, and the automatic allocation of resources can be uneven.

In addition, Virtuozzo’s paid solution is expensive, and the free OpenVZ does not support modern Linux kernels, which greatly limits the choice of OS to install on virtual machines. Therefore, today the hypervisor is not as popular as it used to be.

Xen (XenServer, Citrix Hypervisor)

The type of virtualization is hardware or hybrid.
Usage — solving cross-platform tasks, hosting various configurations.
Distribution — paid and free editions.

The first public release of such a hypervisor was released in 2003. In 2007, the project was absorbed by Citrix. The product is a cross-platform hypervisor with support for hardware virtualization and paravirtualization (because of this, it is often referred to as hybrid hypervisors). The amount of code is minimal, as most of the modules run separately from the hypervisor. The source code is open, which gives specialists ample opportunities for modifications.

Oracle VM VirtualBox

Type of virtualization — software and hardware
Usage — an environment for testing by developers of various levels, a desktop solution for deploying virtual machines
, Distribution is free

A cross-platform hypervisor for Linux, macOS, FreeBSD, and other operating systems. The basic open source version is distributed under the GNU GPL license, which explains the hypervisor’s high popularity. A distinctive feature of the hypervisor is the ability to work with 64-bit guest OS, even if the host OS is 32-bit. It is one of the most popular solutions for testing various operating systems and applications for them on the developer’s or tester’s local computer, but one of the most inconvenient solutions in terms of automating the creation of virtual machines and using them for hosting.

Microsoft Hyper-V

The type of virtualization is hardware.
Usage — virtual machines running Windows, using other Microsoft products.
Distribution is paid.

By default, Windows Server has a role for installing Hyper-V, which allows you to create virtual machines (two in the Windows Standard edition and unlimited in the Datacenter edition). Microsoft’s licensing policy should be taken into account here — the cost of licenses differs for different editions and depends on the number of physical cores. The Hyper-V Server hypervisor was created specifically so that users could organize virtualization without paying for an OS license. However, this does not apply to Windows OS on virtual machines — if you deploy it on VDS, then licensing is mandatory.

VMware ESXi

The type of virtualization is hardware.
Usage — testing of functions, solution for local deployment of virtual machines, hosting of certain configurations.
Distribution is paid, there is a free version.

The hypervisor is based on a simplified VMkernel Linux kernel, with the technologies and applications necessary for virtualization. It is included in the VMware vSphere product. A license is purchased for each physical core of the server processor. The amount of RAM and virtual machines are not taken into account when calculating the license price.

VMware also offers free virtualization solutions, however, they are suitable only for amateur or semi-professional use, as they have a number of significant functional limitations (restrictions on operations, restrictions on virtual machine resources, unavailable functions, etc.).

QEMU KVM

The type of virtualization is hardware.
Usage — a quick and simplified transition to virtualization on Linux systems, hosting of various configurations.
Distribution is free of charge.

Open-source hypervisor: designed for Linux/x86-based servers, supports hardware extensions (Intel-VT and AMD-V). Initially, it worked only with the x86 architecture, but current versions of KVM support various CPUs and guest operating systems, including Windows, Linux, BSD, etc. KVM’s rich functionality has made it popular and widespread.

Currently, the hypervisor is actively used in many network projects, including Astrahosting.