LKBEN11494: Error "failed secure boot verification" when trying to install ubuntu server on Hyper-V


The Hyper-V server will show a secure boot error at the start of the ISO image


This is by design, you need to check the generation of the virtual machine or change some settings.


When installing a new ubuntu server on your Hyper-V server you are asked which generation of VM you are going to use. When you use a generation 2 virtual machine and you get this error you should make a new geraration 1 VM and your error will be gone.

You can also change the secure boot setting and still use the generation 2 VM. You can do this in the GUI or use the powershell.

To show the generation of your VM you use:

Get-VMFirmware "name_of_the_server"

It will show you something like this:

VMName SecureBoot PreferredNetworkBootProtocol BootOrder
------ ---------- ---------------------------- ---------
SRV   On         IPv4                         {Drive, Network, Drive}

To change this setting you use:

Get-VMFirmware "name_of_the_server" -EnableSecureBoot Off

Booting your Ubuntu should work now. This can also be uses for other Linux distribuation like kubuntu/Suse/Debian/Fedora...

Have fun.


The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.

Latest update: 14/01/2021 | Comment: