How to understand hyper-v virtualization.

How To Understand Hyper-V Virtualization.

Hyper-V, short for Hyper-V Virtualization, is a virtualization technology developed by Microsoft. It allows you to create and manage virtual machines (VMs) on a single physical machine. Virtualization is the process of creating multiple virtual instances of computer systems or resources on a single physical hardware platform. These virtual instances, known as virtual machines, act as independent, isolated environments that can run their own operating systems and applications.

Hyper-V provides a platform for creating, running, and managing these virtual machines, making it possible to consolidate multiple workloads onto a single physical server. It’s commonly used in data centers, enterprise environments, and even on individual computers for various purposes such as server consolidation, development and testing, disaster recovery, and more.

 

What do you need Hyper-V for?

Virtualization technology can be used in different situations for different needs. Hyper-V is usually used in test environments. In this context, virtualization has two advantages:

  1. Computer environments which are otherwise not accessible can be accessed. For example, instead of setting up your own PC with Linux, you can easily display the Linux operating system in a virtual machine.

  2. The virtual machine is self-contained. This means that if you run software that causes a system crash, the physical device is not at risk. Only the virtual machine would need to be reset.

Private users can use Hyper-V, for example, if they want to use software that would not run under their current version of Windows – either because the program requires an older version of the operating system or because only Linux is supported.

Virtualization via Hyper-V is a great advantage for software developers in particular. Any program they create can be tested under a huge variety of software and hardware conditions. In addition, due to the self-contained nature of the virtual machines, there is no need to worry about faulty code causing damage to their own systems.

 

Microsoft Hyper-V’s Architecture

Hyper-V allows x64 versions of Windows to host one or more virtual machines, which in turn contain a fully configured operating system. These “child” systems are treated as partitions. The term is otherwise known from hard disk partitioning – and Hyper-V virtualization works in a similar way. Each virtual machine is an isolated unit next to the “parent” partition, the actual operating system.

The individual partitions are orchestrated by the hypervisor. The subordinate partitions can be created and managed via an interface (Hypercall API) in the parent system. However, the isolation is always maintained. Child systems are assigned virtual hardware resources but can never access the physical hardware of the parent.

To request hardware resources, child partitions use VMBus. This is a channel that enables communication between partitions. Child systems can request resources from the parent, but theoretically they can also communicate with each other.

The partitions run services that handle the requests and responses that run over the VMBus. The host system runs the Virtualization Service Provider (VSP), the subordinate partitions run the Virtualization Service Clients (VSC).

 

Microsoft Hyper-V’s Architecture

Hyper-V allows x64 versions of Windows to host one or more virtual machines, which in turn contain a fully configured operating system. These “child” systems are treated as partitions. The term is otherwise known from hard disk partitioning – and Hyper-V virtualization works in a similar way. Each virtual machine is an isolated unit next to the “parent” partition, the actual operating system.

The individual partitions are orchestrated by the hypervisor. The subordinate partitions can be created and managed via an interface (Hypercall API) in the parent system. However, the isolation is always maintained. Child systems are assigned virtual hardware resources but can never access the physical hardware of the parent.

To request hardware resources, child partitions use VMBus. This is a channel that enables communication between partitions. Child systems can request resources from the parent, but theoretically they can also communicate with each other.

The partitions run services that handle the requests and responses that run over the VMBus. The host system runs the Virtualization Service Provider (VSP), the subordinate partitions run the Virtualization Service Clients (VSC).

 

Differences between Hyper-V and other virtualization techniques

Unlike any other virtualization techniques, Hyper-V has the advantage of being integrated with Windows. Anyone using the Microsoft operating system for PCs or servers can benefit from this close integration. Hyper-V is a type 1 hypervisor, which is also something only few other techniques offer. This means that Hyper-V is based directly on the system hardware. Type 2 hypervisors, on the other hand, must always go through the parent operating system to provide resources.

 

Advantages

For Windows users, a very clear advantage is the close connection to the operating system. This can also mean a more cost-effective solution because Hyper-V is often included for free with Windows. Hyper-V can keep up with the competition in terms of its functionality. Users of Hyper-V can expect high performance, as long as they only work with Windows as a guest system. Since admin work is relatively simple, even beginners can benefit from virtualization via Hyper-V.

 

Disadvantages

Although Hyper-V works very well with Windows, the software reaches its limits with other operating systems. Hyper-V is not designed to run on other systems, and the possible guest systems are very limited. Apart from Windows, only a few selected Linux distributions can run in a virtual machine. For example, if you want to use macOS as a guest system, you have to use an additional product. Unfortunately, a high loss of performance occurs when you run multiple Linux systems at once.