Generation 2 Linux virtual machines may not boot in Windows Server 2012 R2

Applies to: Windows Server 2012 R2 Standard


When you try to deploy a Generation 2 Linux-based virtual machine template to a Windows Server 2012 R2 host, the operation may fail. When you try to connect to the console session of the virtual machine, you may see a report that indicates that the hard disk cannot be found.


By default, Generation 2 virtual machines have secure boot enabled. Generation 2 Linux virtual machines will not boot in Windows Server 2012 R2 unless the secure boot option is disabled. 


Verify that the SecureBoot setting for the virtual machine is appropriate for the destination hypervisor. For more information, see Supported CentOS and Red Hat Enterprise Linux virtual machines on Hyper-V.

You can disable secure boot in the Firmware section of the settings for the virtual machine in Hyper-V Manager, or you can disable it by running the following PowerShell command:

PS C:\> Set-VMFirmware -VMName "VMname" -EnableSecureBoot Off