The Hyper-V boot Error: ‘The Image’s Hash and also Certificate are not Allowed’ occurs while trying to install Linux CentOS on a virtual device running on a Hyper-V server.

You are watching: The images hash and certificate are not allowed

Here at rwcchristchurchappeal.com, we have actually seen numerous such Hyper-V-related errors as component of our Server administration Services for internet hosts and online company providers.

Today we’ll take a look at the causes for this error and see the fix.

Why the image’s hash and also certificate space not allowed

Generally, this error occurs while make the efforts to install Linux CentOS on a virtual device running ~ above a Hyper-V server.

The main reason for this error to occur is the the Hyper-V by default uses UEFI v Secure boot mode allowed for its Generation 2 online machines.

Secure Boot avoids the boots from an untrusted Linux bootloader in the ISO file. For this reason this error occurs. Because that instance, the error shows up as below.

*

How we fix the error ‘image’s hash and certificate are not allowed’

Now let’s take it a look in ~ the actions our Support engineers follow to settle this error.

First, to start the installation, we disable Secure boot in the virtual an equipment settings (Settings >> security >> uncheck the option allow Secure Boot).

Or else we have the right to leave Secure boot enabled. But we choose using Microsoft UEFI Certificate government template rather of Microsoft Windows. Because according come Microsoft, this template permits you to operation Linux distros in the Secure boots compatibility mode.

Then us restart the VM and boot the again from the CentOS surroundings ISO image or one more Linux distribution.

In the exact same way, we manage the secure Boot and also templates setting of VM utilizing PowerShell. We operation the listed below command to obtain the existing VM firmware settings.

See more: 30"X12" Trust Your Heart Of The Seas Catch Fire Live By Love

Get-VMFirmware -VMName “centos7” right here is the command we use to disable secure Boot setting for the VM:

Set-VMFirmware -VMName “centos7” -EnableSecureBoot off Finally, in stimulate to adjust the bootloader certificate validation design template to the one compatible with many Linux distros:

Set-VMFirmware -VMName “centos7” -EnableSecureBoot top top -SecureBootTemplate “MicrosoftUEFICertificateAuthority”

Conclusion

In short, this error wake up while trying to download Linux CentOS ~ above a virtual machine running ~ above a Hyper-V server. Today, we observed the solution listed by our support Engineers.