IT Operations.com

What's the difference between Type 1 vs. Type 2 hypervisor?

By Stephen J. Bigelow

The main difference between Type 1 vs. Type 2 hypervisors is that Type 1 runs on bare metal and Type 2 runs atop an operating system. Each hypervisor type also has its own pros and cons and specific use cases.

Virtualization works by abstracting physical hardware and devices from the applications running on that hardware. The process of virtualization provisions and manages the system's resources, including processor, memory, storage and network resources. This enables the system to host more than one workload simultaneously, making more cost- and energy-efficient use of the available servers and systems across the organization.

What are hypervisors?

Virtualization requires the use of a hypervisor, which was originally called a virtual machine monitor or VMM. A hypervisor abstracts operating systems and applications from their underlying hardware. The physical hardware that a hypervisor runs on is typically referred to as a host machine, whereas the VMs that the hypervisor creates and supports are collectively called guest machines, guest VMs or simply VMs.

A hypervisor lets the host hardware operate multiple VMs independent of each other and share abstracted resources among those VMs. Virtualization with a hypervisor increases a data center's efficiency compared to physical workload hosting.

There are two types of hypervisors: Type 1 and Type 2 hypervisors. Both hypervisor varieties can virtualize common elements such as CPU, memory and networking. But based on its location in the stack, the hypervisor virtualizes these elements differently.

Type 1 hypervisors

A Type 1 hypervisor runs directly on the host machine's physical hardware, and it's referred to as a bare-metal hypervisor. The Type 1 hypervisor doesn't have to load an underlying OS. With direct access to the underlying hardware and no other software -- such as OSes and device drivers -- to contend with for virtualization, Type 1 hypervisors are regarded as the most efficient and best-performing hypervisors available for enterprise computing. In fact, Type 1 hypervisors are often referred to as the virtualization or virtual operating system.

Hypervisors that run directly on physical hardware are also highly secure. Virtualization mitigates the risk of attacks that target security flaws and vulnerabilities in OSes because each guest has its own OS. This ensures an attack on a guest VM is logically isolated to that VM and can't spread to others running on the same hardware.

Type 1 hypervisor uses and capabilities

Type 1 hypervisors have long been preferred and are the de facto standard for enterprise-class virtualization. The ability to create VMs of almost any size and configuration makes bare metal VMs well-suited for hosting large and complex enterprise workloads. The close connection established between the VM and the underlying hardware allows excellent performance, especially once virtualization command sets were added to modern microprocessors.

The Type 1 hypervisor provides several key benefits for the enterprise:

Type 2 hypervisors

A Type 2 hypervisor is typically installed on top of an existing host OS. It is sometimes called a hosted hypervisor because it relies on the host machine's preexisting OS to manage calls to CPU, memory, storage and network resources.

Type 2 hypervisors trace their roots back to the early days of x86 virtualization when the hypervisor was added above the existing systems' OSes. Although the purpose and goals of Type 1 and Type 2 hypervisors are identical, the presence of an underlying OS with Type 2 hypervisors introduces unavoidable latency. All the hypervisor's activities and the work of every VM must pass through a single common host OS. Any security flaws or vulnerabilities in the host OS could also potentially compromise all of the VMs running above it.

Type 2 hypervisor uses and capabilities

The traditional limitations of a Type 2 hypervisor have limited its use to client or end-user systems, or experimental environments where performance and security were lesser concerns than a full production environment. For example, software developers might use a Type 2 hypervisor to create VMs to test a software product prior to release. Similarly, Type 2 hypervisors have seen significant use in smaller high-volume virtual instances, and IT organizations typically use Type 2 hypervisors to create virtual desktops common in VDI deployments.

Still, Type 2 hypervisors have seen a strong surge in popularity because of several attractive benefits:

In some businesses, container technology has displaced traditional Type 1 VMs as the preferred or most popular virtualization type.

Key differences between Type 1 and Type 2 hypervisors

When selecting a hypervisor, it's important to understand the key differences between the Type 1 and Type 2 technologies:

Hardware support for Type 1 and Type 2 hypervisors

Hardware acceleration technologies are widely available for virtualization's tasks. Such technologies include Intel Virtualization Technology extensions for Intel processors and AMD Virtualization extensions for AMD processors. There are numerous other virtualization-based extensions and features, including second-level address translation and support for nested virtualization.

Hardware acceleration technologies perform many of the process-intensive tasks needed to create and manage virtual resources on a computer. Hardware acceleration improves virtualization performance and the practical number of VMs a computer could host is above what the hypervisor can do alone.

Both Type 1 and Type 2 hypervisors use hardware acceleration support, but to varying degrees. Type 1 hypervisors rely on hardware acceleration technologies and typically don't function without those technologies available and enabled through the system's BIOS.

Type 2 hypervisors are generally capable of using hardware acceleration technologies if those features are available. But they typically fall back on software emulation in the absence of native hardware support. However, computers without hardware acceleration technologies that rely on software emulation will suffer significant performance penalties that restrict the number of VMs and the performance of those VMs on that computer.

Although all enterprise-class servers now include excellent hardware acceleration for virtualization, it's worth checking with your hypervisor vendor to determine a specific hypervisor's hardware support requirements.

Type 1 and Type 2 hypervisor vendors

The hypervisor market contains several vendors, including VMware, Microsoft, Oracle and Citrix. Below are some popular products for both Type 1 and Type 2 hypervisors.

Type 1 hypervisor products

Type 2 hypervisor products

Considerations for using Type 1 vs. Type 2 hypervisors

When choosing between a Type 1 and Type 2 hypervisor, admins must consider the type and size of their workloads. If admins primarily work in an enterprise or large organization and must deploy hundreds of VMs, a Type 1 hypervisor will suit their needs.

But if admins have a smaller deployment, less-demanding workloads or require a testing environment, Type 2 hypervisors are less complex and have a smaller price tag. Enterprises and organizations can use Type 2 hypervisors as needed for workloads that suit the technology. Virtual containers are founded on Type 2 concepts, and many organizations will deploy containers rather than traditional VMs for some software types.

Ultimately, Type 1 and Type 2 hypervisors aren't mutually exclusive. Both hypervisors serve different purposes, and both can exist simultaneously within the same IT environment. It's even possible to operate both hypervisors on the same computer, such as nesting a Type 2 hypervisor in a Type 1 VM, though such combinations are exceedingly rare.

Stephen J. Bigelow, senior technology editor at TechTarget, has more than 20 years of technical writing experience in the PC and technology industry.

Brian Kirsch, an IT architect and Milwaukee Area Technical College instructor, has been in IT for more than 20 years, holds multiple certifications and sits on the VMUG board of directors.

07 Mar 2024

All Rights Reserved, Copyright 2016 - 2024, TechTarget | Read our Privacy Statement