Generation 2 VMs, sometimes referred to as Gen 2 VMs, provide the best performance for applications and OSes that...
run inside Hyper-V VMs. Gen 2 VMs have the ability to communicate with the Hyper-V host directly, which circumvents communication delays. While Gen 1 VMs support BIOS-based virtualization architecture, Gen 2 VMs support Unified Extensible Firmware Interface architecture, which helps run VMs more securely. Hyper-V Generation 2 VMs support a number of notable features, such as Preboot Execution Environment, booting from SCSI and/or SCSI Virtual DVD and Secure Boot, which Windows VMs enable by default.
Windows Server 2016 includes new Hyper-V Generation 2 VM functionalities, as listed below:
- Hot add and remove network cards and memory: It's possible to add and remove network cards and memory while the VM runs. The hot add and remove feature works for both Windows and Linux VMs, but the VM must be created using Generation 2.
- Secure Boot for Linux VMs: All versions of Windows OSes and some Linux distributions support booting VMs securely. For Windows VMs, the Secure Boot option is enabled by default, but you must enable Secure Boot for Linux VMs. Once enabled, Secure Boot ensures that a Windows OS doesn't boot if the OS Loader has been modified by a malware or malicious code.
- Virtualization-based security: Other important Windows Server 2016 features provide security for VMs running on Generation 2. Device Guard and Credential Guard help run VMs securely by protecting the VM's OS from malware. The Device Guard feature hardens the VM OS against malware and ensures that only known code is loaded during boot. The Credential Guard feature isolates user mode from kernel mode and minimizes pass-the-hash attacks.
It's also worth mentioning that it's possible to host OS paging with a secondary virtual hard disk in Generation 2 VMs. Generation 2 requires an OS running Windows Server 2012, Windows Server 2012 R2, Windows 8, Windows 8.1, Windows 10 or Windows Server 2016. However, you should install the newest OS in Hyper-V Generation 2 VMs to take advantage of new features in Windows Server 2016.
Understand Hyper-V files and folders
Navigate the top Hyper-V 2016 features
Upgrade the VM configuration version in Hyper-V
Dig Deeper on Microsoft Hyper-V management
Related Q&A from Nirmal Sharma
Use a simple series of PowerShell commands to download an Azure VM's Windows OS disk for backup and restore. You only need to change a variable or ...continue reading
Not only can you create Port ACL rules in Hyper-V using PowerShell commands, you can also remove rules associated with a VM and query rules ...continue reading
Prepare Hyper-V to use the VLAN domain concept by configuring Hyper-V virtual switches and assigning VLAN IDs to VMs using either PowerShell cmdlets ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.