View text source at Wikipedia


Hyper-V

Hyper-V
Developer(s)Microsoft
Initial releaseJune 28, 2008; 16 years ago (June 28, 2008)
Operating systemWindows Server
Windows 8, Windows 8.1, Windows 10, Windows 11 (x64; Pro, Enterprise and Education)
PredecessorWindows Virtual PC
Microsoft Virtual Server
TypeNative hypervisor
LicenseProprietary
Websitelearn.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/

Hyper-V is a native hypervisor developed by Microsoft; it can create virtual machines on x86-64 systems running Windows.[1] It is included in Pro and Enterprise editions of Windows NT (since Windows 8) as an optional feature to be manually enabled.[2] A server computer running Hyper-V can be configured to expose individual virtual machines to one or more networks.

Overview

[edit]

Codenamed Viridian[3] and briefly known before its release as Windows Server Virtualization, a beta version was shipped with certain x86-64 editions of Windows Server 2008. The finalized version was released on June 26, 2008 and was delivered through Windows Update.[4] Hyper-V has since been released with every version of Windows Server starting with version 2012,[5][6][7] superseding Microsoft Virtual Server, and starting with Windows 8, Hyper-V has been the hardware virtualization component for personal computers, superseding Windows Virtual PC.

Former Hyper-V logo
Former Hyper-V Server wordmark

Microsoft provides Hyper-V through two channels:

  1. Part of Windows: Hyper-V is an optional component of Windows Server 2008 and later. It is also available in x64 SKUs of Pro and Enterprise editions of Windows 8, Windows 8.1, Windows 10 and Windows 11.
  2. Hyper-V Server: It is a freeware edition of Windows Server with limited functionality and Hyper-V component.[8]

Hyper-V Server

[edit]

Hyper-V Server 2008 was released on October 1, 2008. It consists of Windows Server 2008 Server Core and Hyper-V role; other Windows Server 2008 roles are disabled, and there are limited Windows services.[9] Hyper-V Server 2008 is limited to a command-line interface used to configure the host OS, physical hardware, and software. A menu driven CLI interface and some freely downloadable script files simplify configuration. In addition, Hyper-V Server supports remote access via Remote Desktop Connection. However, administration and configuration of the host OS and the guest virtual machines is generally done over the network, using either Microsoft Management Consoles on another Windows computer or System Center Virtual Machine Manager. This allows much easier "point and click" configuration, and monitoring of the Hyper-V Server.

Hyper-V Server 2008 R2 (an edition of Windows Server 2008 R2) was made available in September 2009 and includes Windows PowerShell v2 for greater CLI control. Remote access to Hyper-V Server requires CLI configuration of network interfaces and Windows Firewall. Also using a Windows Vista PC to administer Hyper-V Server 2008 R2 is not fully supported.

Microsoft ended mainstream support of the free version of Hyper-V Server 2019 on January 9, 2024 and extended support will end on January 9, 2029.[10] Hyper-V Server 2019 will be the last version of the free, standalone product. Hyper-V is still available as a role in Windows Server 2022 and will be supported as long as that operating system is, currently scheduled for end of extended support on October 14, 2031.[11]

Architecture

[edit]
A block diagram of Hyper-V, showing a stack of four layers from hardware to user mode
Hyper-V architecture

Hyper-V implements isolation of virtual machines in terms of a partition. A partition is a logical unit of isolation, supported by the hypervisor, in which each guest operating system executes. There must be at least one parent partition in a hypervisor instance, running a supported version of Windows. The parent partition creates child partitions which host the guest OSs. The Virtualization Service Provider and Virtual Machine Management Service runs in the parent partition and provide support for child partition. A parent partition creates child partitions using the hypercall API, which is the application programming interface exposed by Hyper-V.[12]

A child partition does not have access to the physical processor, nor does it handle its real interrupts. Instead, it has a virtual view of the processor and runs in Guest Virtual Address, which, depending on the configuration of the hypervisor, might not necessarily be the entire virtual address space. Depending on VM configuration, Hyper-V may expose only a subset of the processors to each partition. The hypervisor handles the interrupts to the processor, and redirects them to the respective partition using a logical Synthetic Interrupt Controller (SynIC). Hyper-V can hardware accelerate the address translation of Guest Virtual Address-spaces by using second level address translation provided by the CPU, referred to as EPT on Intel and RVI (formerly NPT) on AMD.

Child partitions do not have direct access to hardware resources, but instead have a virtual view of the resources, in terms of virtual devices. Any request to the virtual devices is redirected via the VMBus to the devices in the parent partition, which will manage the requests. The VMBus is a logical channel which enables inter-partition communication. The response is also redirected via the VMBus. If the devices in the parent partition are also virtual devices, it will be redirected further until it reaches the parent partition, where it will gain access to the physical devices. Parent partitions run a Virtualization Service Provider (VSP), which connects to the VMBus and handles device access requests from child partitions. Child partition virtual devices internally run a Virtualization Service Client (VSC), which redirect the request to VSPs in the parent partition via the VMBus. This entire process is transparent to the guest OS.

Virtual devices can also take advantage of a Windows Server Virtualization feature, named Enlightened I/O, for storage, networking and graphics subsystems, among others. Enlightened I/O is a specialized virtualization-aware implementation of high level communication protocols, like SCSI, that allows bypassing any device emulation layer and takes advantage of VMBus directly. This makes the communication more efficient, but requires the guest OS to support Enlightened I/O.

Currently[when?] only the following operating systems support Enlightened I/O, allowing them therefore to run faster as guest operating systems under Hyper-V than other operating systems that need to use slower emulated hardware:

System requirements

[edit]

The Hyper-V role is only available in the x86-64 variants of Standard, Enterprise and Datacenter editions of Windows Server 2008 and later, as well as the Pro, Enterprise and Education editions of Windows 8 and later. On Windows Server, it can be installed regardless of whether the installation is a full or core installation. In addition, Hyper-V can be made available as part of the Hyper-V Server operating system, which is a freeware edition of Windows Server.[15] Either way, the host computer needs the following.[16]

The amount of memory assigned to virtual machines depends on the operating system:

The number of CPUs assigned to each virtual machine also depends on the OS:

There is also a maximum for the number of concurrently active virtual machines.

Supported guests

[edit]

Windows Server 2008 R2

[edit]

The following table lists supported guest operating systems on Windows Server 2008 R2 SP1.[23]

Guest operating system Virtual CPUs
OS Editions Number Architecture
Windows Server 2012[a] Hyper-V, Standard, Datacenter 1–4 x86-64
Windows Home Server 2011 Standard 1–4 x86-64
Windows Server 2008 R2 SP1 Web, Standard, Enterprise, Datacenter 1–4 x86-64
Windows Server 2008 SP2 Web, Standard, Enterprise, Datacenter 1–4 IA-32, x86-64
Windows Server 2003 R2 SP2 Web,[b] Standard, Enterprise, Datacenter 1 or 2 IA-32, x86-64
Windows 2000 SP4 Professional, Server, Advanced Server 1 IA-32
Windows 7 Professional, Enterprise, Ultimate 1–4 IA-32, x86-64
Windows Vista Business, Enterprise, Ultimate 1–4 IA-32, x86-64
Windows XP SP3 Professional 1 or 2 IA-32
Windows XP SP2 Professional, Professional x64 Edition 1 IA-32, x86-64
SUSE Linux Enterprise Server 10 SP4 or 11 SP1–SP3 1–4 IA-32, x86-64
Red Hat Enterprise Linux 5.5–7.0 Red Hat Compatible Kernel 1–4 IA-32, x86-64
CentOS 5.5–7.5 1–4 IA-32, x86-64
Ubuntu 12.04–20.04 Debian Compatible Kernel 1–4 IA-32, x86-64
Debian 7.0 Debian Compatible Kernel 1–4 IA-32, x86-64
Oracle Linux 6.4 Red Hat Compatible Kernel 1–4 IA-32, x86-64
  1. ^ Windows Server 2012 is supported and runs only on a host system Windows Server 2008 R2 RTM or SP1, with a hotfix applied.
  2. ^ Web edition does not have an x64 version.

Fedora 8 or 9 are unsupported; however, they have been reported to run.[23][24][25][26]

Third-party support for FreeBSD 8.2 and later guests is provided by a partnership between NetApp and Citrix.[27] This includes both emulated and paravirtualized modes of operation, as well as several HyperV integration services.[28]

Desktop virtualization (VDI) products from third-party companies (such as Quest Software vWorkspace, Citrix XenDesktop, Systancia AppliDis Fusion[29] and Ericom PowerTerm WebConnect) provide the ability to host and centrally manage desktop virtual machines in the data center while giving end users a full PC desktop experience.

Guest operating systems with Enlightened I/O and a hypervisor-aware kernel such as Windows Server 2008 and later server versions, Windows Vista SP1 and later clients and offerings from Citrix XenServer and Novell will be able to use the host resources better since VSC drivers in these guests communicate with the VSPs directly over VMBus.[30] Non-"enlightened" operating systems will run with emulated I/O;[31] however, integration components (which include the VSC drivers) are available for Windows Server 2003 SP2, Windows Vista SP1 and Linux to achieve better performance.

Linux support

[edit]

On July 20, 2009, Microsoft submitted Hyper-V drivers for inclusion in the Linux kernel under the terms of the GPL.[32] Microsoft was required to submit the code when it was discovered that they had incorporated a Hyper-V network driver with GPL-licensed components statically linked to closed-source binaries.[33] Kernels beginning with 2.6.32 may include inbuilt Hyper-V paravirtualization support which improves the performance of virtual Linux guest systems in a Windows host environment. Hyper-V provides basic virtualization support for Linux guests out of the box. Paravirtualization support requires installing the Linux Integration Components or Satori InputVSC drivers. Xen-enabled Linux guest distributions may also be paravirtualized in Hyper-V. As of 2013 Microsoft officially supported only SUSE Linux Enterprise Server 10 SP1/SP2 (x86 and x64) in this manner,[34] though any Xen-enabled Linux should be able to run. In February 2008, Red Hat and Microsoft signed a virtualization pact for hypervisor interoperability with their respective server operating systems, to enable Red Hat Enterprise Linux 5 to be officially supported on Hyper-V.[35]

Windows Server 2012

[edit]

Hyper-V in Windows Server 2012 and Windows Server 2012 R2 changes the support list above as follows:[36]

  1. Hyper-V in Windows Server 2012 adds support for Windows 8.1 (up to 32 CPUs) and Windows Server 2012 R2 (64 CPUs); Hyper-V in Windows Server 2012 R2 adds support for Windows 10 (32 CPUs) and Windows Server 2016 (64 CPUs).
  2. Minimum supported version of CentOS is 6.0.
  3. Minimum supported version of Red Hat Enterprise Linux is 5.7.
  4. Maximum number of supported CPUs for Windows Server and Linux operating systems is increased from four to 64.

Windows Server 2012 R2

[edit]

Hyper-V on Windows Server 2012 R2 added the Generation 2 VM.[37]

Backward compatibility

[edit]

Hyper-V, like Microsoft Virtual Server and Windows Virtual PC, saves each guest OS to a single virtual hard disk file. It supports the older .vhd format, as well as the newer .vhdx. Older .vhd files from Virtual Server 2005, Virtual PC 2004 and Virtual PC 2007 can be copied and used in Hyper-V, but any old virtual machine integration software (equivalents of Hyper-V Integration Services) must be removed from the virtual machine. After the migrated guest OS is configured and started using Hyper-V, the guest OS will detect changes to the (virtual) hardware. Installing "Hyper-V Integration Services" installs five services to improve performance, at the same time adding the new guest video and network card drivers.

Limitations

[edit]

Audio

[edit]

Hyper-V does not virtualize audio hardware. Before Windows 8.1 and Windows Server 2012 R2, it was possible to work around this issue by connecting to the virtual machine with Remote Desktop Connection over a network connection and use its audio redirection feature.[38][39] Windows 8.1 and Windows Server 2012 R2 add the enhanced session mode which provides redirection without a network connection.[40]

Optical drives pass-through

[edit]

Optical drives virtualized in the guest VM are read-only.[41] Officially Hyper-V does not support the host/root operating system's optical drives to pass-through in guest VMs. As a result, burning to discs, audio CDs, video CD/DVD-Video playback are not supported; however, a workaround exists using the iSCSI protocol. Setting up an iSCSI target on the host machine with the optical drive can then be talked to by the standard Microsoft iSCSI initiator. Microsoft produces their own iSCSI Target software or alternative third party products can be used.[42]

VT-x/AMD-V handling

[edit]

Hyper-V uses the VT-x on Intel or AMD-V on AMD x86 virtualization. Since Hyper-V is a native hypervisor, as long as it is installed, third-party software cannot use VT-x or AMD-V. For instance, the Intel HAXM Android device emulator (used by Android Studio or Microsoft Visual Studio) cannot run while Hyper-V is installed.[43]

Client operating systems

[edit]

Hyper-V is also available in x64 SKUs of Windows 8, 8.1, 10 Pro, Enterprise, Education. The following features are not available on client versions of Windows:[44]

The following features are not available on server versions of Windows:[44]

Feature changes per version

[edit]

Windows Server 2012

[edit]

Windows Server 2012 introduced many new features in Hyper-V.[7]

Windows Server 2012 R2

[edit]

With Windows Server 2012 R2 Microsoft introduced another set of new features.[49]

Windows Server 2016

[edit]

Hyper-V in Windows Server 2016 and Windows 10 1607 adds[55]

Windows Server 2019

[edit]

Hyper-V in Windows Server 2019 and Windows 10 1809 adds[58]

Windows Server 2022

[edit]

Hyper-V in Windows Server 2022 added:[59]

Windows Server 2025

[edit]

Hyper-V in Windows Server 2025 changes:[60]

See also

[edit]

References

[edit]
  1. ^ Paul Thurrott. "Windows Server Virtualization Preview". Archived from the original on 2007-10-11. Retrieved 2007-09-25.
  2. ^ scooley (2024-08-12). "Enable Hyper-V on Windows". learn.microsoft.com. Retrieved 2024-12-03.
  3. ^ "Microsoft to ship Windows Server 2008, over time, in eight flavors". ZDNet. Archived from the original on 2010-09-24. Retrieved 2007-11-13.
  4. ^ "Announcement available from the Microsoft download centre". Archived from the original on 2008-06-29. Retrieved 2008-06-26.
  5. ^ "Microsoft Hyper-V Server". Microsoft. p. 1. Archived from the original on October 5, 2013. Retrieved January 12, 2012.
  6. ^ "Download: Microsoft® Hyper-V™ Server 2008 R2 SP1 - Microsoft Download Center - Download Details". Microsoft.com. 2011-12-04. Archived from the original on 2012-04-19. Retrieved 2012-10-07.
  7. ^ a b "Server Virtualization Features". Microsoft. Archived from the original on October 14, 2012. Retrieved October 5, 2012.
  8. ^ "Try Hyper-V Server 2012 R2". Evaluation Center. Microsoft. Archived from the original on 11 July 2020. Retrieved 16 February 2015.
  9. ^ "Microsoft Helps Customers Overcome Barriers to Virtualization and Get Virtual Now". PressPass (Press release). Microsoft. October 1, 2008. Archived from the original on 2010-01-18. Retrieved 2008-10-02.
  10. ^ "Microsoft Lifecycle". Hyper-V Server 2019 - Microsoft Lifecycle. Microsoft.
  11. ^ "Windows Server 2022 - Microsoft Lifecycle". learn.microsoft.com. Microsoft. Retrieved 2024-03-21.
  12. ^ "Hyper-V Architecture". Microsoft. 26 April 2022. Retrieved 2023-10-25.
  13. ^ "Staging: hv: storvsc: Move the storage driver out of the staging area". Retrieved 28 December 2015.
  14. ^ "FreeBSD and Microsoft Windows Server Hyper-V support". Archived from the original on 24 January 2015. Retrieved 10 February 2015.
  15. ^ a b c "Microsoft Hyper-V Server 2008 R2: Frequently Asked Questions". Microsoft.com. Microsoft. Archived from the original on 14 August 2011.
  16. ^ a b "Microsoft Hyper-V Server: System Requirements". Microsoft.com. Microsoft. Archived from the original on 14 March 2010.
  17. ^ Thurott, Paul. "Q: Will Windows Server 2012 require the processor to support SLAT?". Archived from the original on August 9, 2017. Retrieved November 5, 2011.
  18. ^ "Memory Limits for Windows Releases (Windows)". Msdn.microsoft.com. Archived from the original on 2009-06-20. Retrieved 2010-03-02.
  19. ^ "Microsoft Windows Server 2008 System Requirements". Microsoft.com. Archived from the original on 2011-06-12. Retrieved 2012-10-07.
  20. ^ "Microsoft Hyper-V Server: Overview". Microsoft.com. Archived from the original on 2012-03-22. Retrieved 2010-03-02.
  21. ^ "Hyper-V Server whitepaper" (PDF). Archived (PDF) from the original on 2013-11-07. Retrieved 2013-12-21.
  22. ^ "Plan for Hyper-V scalability in Windows Server 2016". Microsoft.com. Retrieved 2017-06-22.
  23. ^ a b "About Virtual Machines and Guest Operating Systems". TechNet. Microsoft. 16 July 2014. Archived from the original on 2016-05-06. Retrieved 2016-05-09.
  24. ^ "Installing Fedora Core 8 on Hyper-V - Ben Armstrong - Site Home - MSDN Blogs". Blogs.msdn.com. 2008-01-03. Archived from the original on 2010-02-10. Retrieved 2012-10-07.
  25. ^ Sheinberg, Brian (2008-02-08). "First Look: Fedora 9 Alpha, Running in Hyper-V Beta". Crn.com. Archived from the original on 2010-07-23. Retrieved 2012-10-07.
  26. ^ "Install Ubuntu 7.10 on Hyper-V". Haiders.net. 2008-04-04. Archived from the original on 2009-02-24. Retrieved 2012-10-07.
  27. ^ "Available Today: FreeBSD Support for Windows Server Hyper-V". Openness@Microsoft. 2012-08-09. Archived from the original on 2014-05-25. Retrieved 2014-05-25.
  28. ^ "HyperV - FreeBSD Wiki". Freebsd.org. Archived from the original on 2014-07-18. Retrieved 2014-05-25.
  29. ^ "Systancia offers application and desktop virtualization in a single product". DataMonitor.
  30. ^ "Microsoft Windows Server 2008 – Hyper-V solution overview - Gabe Knuth". BrianMadden.com. Archived from the original on 2008-07-04. Retrieved 2012-10-07.
  31. ^ Stevens, Alan (2008-02-27). "Microsoft's Hyper-V: why all the fuss?". ZDNet. CBS Interactive. Archived from the original on 2009-05-15. Retrieved 2012-10-07.
  32. ^ Ramji, Sam; Hanrahan, Tom (2009-07-20). "Microsoft Contributes Linux Drivers to Linux Community". News Center. Microsoft. Archived from the original on 2012-04-18. Retrieved 2010-03-02.
  33. ^ Foley, Mary Jo (2009-07-22). "Pigs are flying low: Why Microsoft open-sourced its Linux drivers". ZDNet. CBS Interactive. Archived from the original on 2012-10-12. Retrieved 2012-08-07.
  34. ^ Babcock, Charles (2008-04-24). "Microsoft Hyper-V To Flaunt Advanced Virtualization Features". Informationweek.com. Archived from the original on 2014-09-03. Retrieved 2012-10-07.
  35. ^ Foley, Mary Jo (2009-02-16). "Microsoft and Red Hat sign virtualization pact". ZDNet. CBS Interactive. Archived from the original on 2016-02-08. Retrieved 2012-10-07.
  36. ^ "Hyper-V Overview". TechNet. Microsoft. Archived from the original on September 15, 2012. Retrieved October 5, 2012.
  37. ^ Archiveddocs (25 October 2016). "Generation 2 Virtual Machine Overview". docs.microsoft.com. Archived from the original on 2021-01-26. Retrieved 2021-01-19.
  38. ^ Otey, Michael (24 June 2008). "Guest VM Audio Support under Hyper-V". Windows IT Pro. Penton Media. Archived from the original on 21 October 2014. Retrieved 21 September 2014.
  39. ^ "Enable Audio in Windows 2008 guest machines running on HyperV". Akshat's Blog. Microsoft. 7 April 2011. Archived from the original on 21 October 2014. Retrieved 21 September 2014.
  40. ^ Gear, Gavin (5 December 2013). "Overview: Client Hyper-V Enhanced Session Mode in Windows 8.1". Blogging Windows. Microsoft. Archived from the original on 15 October 2014. Retrieved 21 September 2014.
  41. ^ Cook, John Paul. "DVD writer on Hyper-V server". TechNet Forums. Microsoft. Archived from the original on 2012-03-23. Retrieved 2012-10-07.
  42. ^ "Using Full DVD/CD Writing Capabilities in a Hyper-V VM | Mark Gilbert's Blog". Mark-gilbert.co.uk. 2012-09-05. Archived from the original on 2016-05-09. Retrieved 2015-01-18.
  43. ^ Syrewicze, Andy (October 2, 2013). "VMware vs. Hyper-V: Architectural Differences". Syrewiczeit.com. Self-published. Archived from the original on February 25, 2018. Retrieved 2019-01-18.
  44. ^ a b "Introduction to Hyper-V on Windows". learn.microsoft.com. 2024-08-12. Retrieved 2024-10-15.
  45. ^ a b "A deep dive into Hyper-V Networking (Video and Slides)". Archived from the original on 2012-03-10. Retrieved 2011-09-22.
  46. ^ "Extending the Hyper-V switch (Video and Slides)". Archived from the original on 2012-05-23. Retrieved 2012-05-10.
  47. ^ "Hyper-V Virtual Hard Disk Format Overview". TechNet. Microsoft. Archived from the original on August 27, 2012. Retrieved August 25, 2012.
  48. ^ Reseller, Mike. "Hyper-V Replica in depth". Veeam Software. Archived from the original on 2014-11-29. Retrieved 2014-11-14.
  49. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  50. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  51. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  52. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  53. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  54. ^ "What's New in Hyper-V for Windows Server 2012 R2". Technet.microsoft.com. Archived from the original on 2016-06-03. Retrieved 2016-04-26.
  55. ^ "What's new in Hyper-V on Windows Server 2016". Docs.microsoft.com. Archived from the original on 2017-10-28. Retrieved 2017-10-27.
  56. ^ "Run Hyper-V in a Virtual Machine with Nested Virtualization". Docs.microsoft.com. Archived from the original on 2017-10-28. Retrieved 2017-10-27.
  57. ^ "What's new in Hyper-V on Windows Server 2016". Docs.microsoft.com. Archived from the original on 2019-01-13. Retrieved 2019-02-21.
  58. ^ "What's new in Windows Server 2019". Docs.microsoft.com. Archived from the original on 2019-03-27. Retrieved 2019-02-21.
  59. ^ "What's new in Windows Server 2022". learn.microsoft.com. Retrieved 2024-08-20.
  60. ^ "What's new in Windows Server 2025". learn.microsoft.com. Retrieved 2024-08-20.

Further reading

[edit]
  1. "Hypervisor Top Level Functional Specification". Microsoft. 2016. Archived from the original on 2017-04-05. Retrieved 2017-04-04.
  2. Koens, Dimitri (2013). "Hyper-V Quick Reference" (PDF). Dimension IT TV. Archived (PDF) from the original on 2016-03-26. Retrieved 2017-04-04.
  3. Howard, John (2006). "WinHEC 2006 Presentation slides". Virtualization Blog. Microsoft. Archived from the original on 2015-12-20. Retrieved 2017-04-04.
  4. Radzikowski, Przemek (2009). "Benchmarking Hyper-V on Windows Server 2008 R2 x64". Archived from the original on 2017-04-23. Retrieved 2017-04-04.
  5. Posey, Brien; Zerger, Pete; Henley, Chris (2013). The Hands-on Guide: Understanding Hyper-V in Windows Server 2012. Veeam Software. Archived from the original on 2014-04-13. Retrieved 2017-04-04.
[edit]