What is a hypervisor?
A hypervisor is software that pools computing resources—like processing, memory, and storage—and reallocates them among virtual machines (VMs). This technology makes virtualization possible, meaning you can create and run many VMs from a single physical machine.
A hypervisor is sometimes called a virtual machine monitor (VMM). Think of it as the supervisor in charge of dispersing the components that make up VMs. A hypervisor takes these resources from physical hardware and supplies them to multiple VMs at once, allowing the creation of new VMs and the management of existing ones. The physical hardware, when used as a hypervisor, is called the host, while the many VMs that use its resources are guests.
How does a hypervisor work?
All hypervisors need some operating system-level components—such as a memory manager, process scheduler, input/output (I/O) stack, device drivers, security manager, a network stack, and more—to run VMs.
The hypervisor gives each virtual machine the resources that have been allocated and manages the scheduling of VM resources against the physical resources. The physical hardware still does the execution, so CPU is still executing CPU instructions as requested by the VMs, for example, while the hypervisor manages the schedule.
Multiple different operating systems can run alongside each other and share the same virtualized hardware resources with a hypervisor. This is a key benefit of virtualization. Without virtualization, you can only run 1 operating system on the hardware.
There are many choices for hypervisors from traditional vendors and open source. VMware is a popular choice for virtualization, and offers the ESXi hypervisor and vSphere virtualization platform.
Kernel-based Virtual Machine (KVM) is an open source option and is built into the Linux® kernel. Additional options include Xen, which is open source, and Microsoft Hyper-V.
Types of hypervisors
There are 2 different types of hypervisors that can be used for virtualization: type 1 and type 2 hypervisors.
Type 1
A type 1 hypervisor, also referred to as a native or bare metal hypervisor, runs directly on the host’s hardware to manage guest operating systems. It takes the place of a host operating system and VM resources are scheduled directly to the hardware by the hypervisor.
This type of hypervisor is most common in an enterprise data center or other server-based environments.
KVM, Microsoft Hyper-V, and VMware vSphere are examples of a type 1 hypervisor. KVM was merged into the Linux kernel in 2007, so if you’re using a modern version of Linux, you already have access to KVM.
Type 2
A type 2 hypervisor is also known as a hosted hypervisor, and is run on a conventional operating system as a software layer or application.
It works by abstracting guest operating systems from the host operating system. VM resources are scheduled against a host operating system, which is then executed against the hardware.
A type 2 hypervisor is better for individual users who want to run multiple operating systems on a personal computer.
VMware Workstation and Oracle VirtualBox are examples of a type 2 hypervisor.
Red Hat Resources
Containers vs. VMs
At a high level, containers and VMs seem similar. They are both packaged computing environments that combine various IT components and isolate them from the rest of a system. The important distinction is in how they scale and their portability.
A container is a set of 1 or more processes that are isolated from the rest of the system. The container allows the process to access only the resource requests that have been specified. These resource limits ensure that the container is able to run on a node that has enough capacity.
VMs contain their own operating system (OS), allowing them to perform multiple resource-intensive functions at once. The increased resources available to VMs allow them to abstract, split, duplicate, and emulate entire servers, OSs, desktops, databases, and networks.
A hypervisor also allows you to run multiple operating systems in VMs, but containers are only able to run a single type of operating system. A container running on a Linux server, for example, is only able to run a Linux operating system.
Containers are sometimes thought of as a replacement for hypervisors, though this isn’t exactly accurate since containers and virtualization meet different needs.
Hypervisor security considerations
A VM provides an environment that is isolated from the rest of a system, so whatever is running inside a VM won’t interfere with anything else running on the host hardware.
Because VMs are isolated, even if a VM is compromised, the entire system shouldn’t be impacted.
However, if the hypervisor itself is hacked that can cause problems for all of the VMs that the hypervisor manages, leaving the data in each VM vulnerable.
Security protocols and requirements may vary based on the type of hypervisor.
Why choose Red Hat for virtualization?
A hypervisor provides the foundation for your virtualization platform. Red Hat® has supported virtualization development for a long time—improving the KVM hypervisor and contributing to KVM and oVirt since both communities were founded.
Migrate your VMs and maintain your momentum
Red Hat’s trusted products and partner ecosystem come together in 1 comprehensive virtualization solution. Migrate your virtual machines now to Red Hat OpenShift® Virtualization, a modern app platform–based on KVM and KubeVirt–that integrates virtual and containerized workloads to provide flexibility without added complexity. The included migration toolkit for virtualization provides the tools you need to start your migration in a few simple steps.
Automate your migration
Use automation to accelerate delivery with Red Hat Ansible® Automation Platform–from migration at scale to Day 2 operations and remediation. With this flexible approach, you can automate tasks to improve speed and efficiency of IT operations, while preserving your investment in virtualization technology and the applications that depend on it.
Manage and modernize at your own pace
Monitor the security and performance of your VMs from a single console with Red Hat Advanced Cluster Management for Kubernetes. With additional support options and partner integrations for storage, backup and disaster recovery, and networking, you can rely on Red Hat to keep your virtual infrastructure running smoothly throughout the hybrid cloud–and help you modernize when you’re ready.
The official Red Hat blog
Get the latest information about our ecosystem of customers, partners, and communities.