Question
You have a server named Server1 that runs Windows Server and has the Hyper-V server role installed. Server1 contains a virtual machine named VM1 that runs Windows Server.
You need to install the Hyper-V server role on VM1.
Which PowerShell command should you run first? To answer, select the appropriate options in the answer area.
The command has the form: [Cmdlet] [Parameter] $true
NOTE: Each correct selection is worth one point.
Explanation
Cmdlet: Set-VMProcessor VM1. To run Hyper-V inside a virtual machine you must enable nested virtualization, and that is a processor setting of the VM. You run Set-VMProcessor on the physical host (Server1) while VM1 is turned off, then start VM1 and install the Hyper-V role in it. Set-VMHost changes host-wide settings, and Set-VM, Set-VMFirmware and Set-VMSecurity do not expose virtualization extensions.
Parameter: -ExposeVirtualizationExtensions. Set-VMProcessor VM1 -ExposeVirtualizationExtensions $true passes the processor's virtualization extensions (Intel VT-x or AMD-V) through to VM1, which Hyper-V needs to install and run. -EnableEnhancedSessionMode is a Set-VMHost setting for Virtual Machine Connection sessions, -EnableHostResourceProtection limits a VM's use of host resources, and -CompatibilityForOlderOperatingSystemsEnabled limits the processor features for old guest operating systems.