Sergey Nivens - Fotolia
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 System Center Virtual Machine Manager and PowerShell to make logical network management easy. Execute a script to display network virtualization ... Continue Reading
Hyper-V replication is easy to use, but there are a number of steps you should take during Hyper-V replication setup to ensure you stay abreast of ... Continue Reading
Manage Hyper-V clusters more easily with PowerShell cmdlets and scripts that automate the retrieval and display of node information, including node ... Continue Reading