Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

Symptoms

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.

↑ Back to the top


Cause

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. 

↑ Back to the top


Resolution

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

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3198619
Revision : 1
Created on : 1/7/2017
Published on : 10/12/2016
Exists online : False
Views : 156