62

Wikipedia says:

Hyper-V, codenamed Viridian[5] and formerly known as Windows Server Virtualization, is a native hypervisor...*

Wikipedia itself says that a native hypervisor is type-1 hypervisor - which means it is directly connected to the hardware. Another one is type 2 which relies on the OS.

Hyper-V is installed on a host machine (Windows OS) - why it is classified as type-1?

1
  • 7
    "Hyper-V is installed on a host machine (Windows OS)" – Actually, it is installed "under" the host OS. Nov 5, 2014 at 18:13

2 Answers 2

81

A Type-1 Hypervisor means that it has direct access to the hardware.

Type-2 Hypervisor refers to being running on top of another host OS and doesn't have access to the hardware. This is why there are many limitations on virtual machines running within another OS eg the VM can't use a physical wireless card, but has to use a virtual one instead.

Here's a nice diagram to illustrate the difference between Type 1 and Type 2:

enter image description here

Perhaps you'll find a more detailed explanation here and here.

One more thing, Hyper-V isn't actually installed on the host OS. When you install Hyper-V you think it's being installed on top of a host OS but it is not. The setup converts the original OS in something like a VM and puts the hypervisor below. This is what is called the root or parent partition of Hyper-V. That's why you experience the same speed in what you see as the "real machine" and the virtual machines.

You may also want to read up on the difference between monolithic(VMSphere) and microkernalized(Hyper-V) Hypervisors.

7
  • 12
    This is an excellent answer.
    – Ramhound
    Nov 5, 2014 at 11:52
  • 10
    This is also why virtualization software may stop working as soon as you install Hyper-V, even if you have no indication that Hyper-V is actually running.
    – hvd
    Nov 5, 2014 at 14:42
  • 1
    You can install hyper v role but disable it so you can switch hypervisor's, but this is only useful for testing hypervisors IMO Feb 6, 2018 at 7:46
  • @hvd Is it because of the same reason why Android Virtual Device (AVD) fails to run if Hyper-V is enabled. I disable Hyper-V using bcdedit /set hypervisorlaunchtype off command to launch AVD from Android Studio.
    – RBT
    Mar 8, 2018 at 9:07
  • 1
    On omgubuntu.co.uk there is "While Windows Hyper-V is a generally a type 1 hypervisor when used on Windows server (where it runs directly on hardware, not on top of an OS which is running on hardware) it is a type 2 hypervisor when used on Windows 10 Pro desktop." omgubuntu.co.uk/2018/09/hyper-v-ubuntu-1804-windows-integration
    – Kukunin
    Jan 20, 2019 at 14:11
24

Hyper-V is installed beneath the operating system. The host OS itself becomes a virtual machine. This change is transparent to users and applications because the host can continue to access the hardware directly.

  • Hyper-V consists of a hypervisor layer upon which there is a parent partition and possibly any number of child partitions. The parent partition contains the host operating system. Child partitions are created by the host and contain guest operating systems which run alongside the parent partition.

Hyper-V architecture diagram
Image source

  • Using hardware-assisted virtualization technology found on most newer x86 processors, it is possible to selectively grant virtual machines the ability to directly access hardware. Hyper-V uses this technology to grant the parent partition direct hardware access, while giving child partitions only a virtualized set of hardware.

  • Because most existing device drivers and applications on the host OS (which resides in the parent partition) can access the hardware as if no hypervisor is present, enabling the Hyper-V role is generally transparent to users and applications. The system provides the appearance that the hypervisor and any guests run on the top of the host operating system, even though the hypervisor sits beneath the host with guests running side-by-side.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .