Is it possible to configure secure boot for any Linux distros on Hyper-V? I have tried using Open Source Shielded VM but it stalls and fails to boot.
Yes it is as long as the distro itself is configured properly. For example for current Ubuntu versions you just need to set secure boot to "Microsoft UEFI Certificate Authority" in the VM settings.You need Generation 2 Machines for secure boot to be available. I've dealt with a lot of different "Appliances" on Hyper-V and some of them don't even support Generation 2 machines... But that is completly the providers fault and not an hyper-V issue - these are current versions of the software we are talking about
Thank you! I must confess, I didn't even consider using "Microsoft UEFI Certificate Authority" as I assumed it would only work for Microsoft VMs. I have a whole host of different distros all of them Gen 2 and they all work, so long as secure boot is disabled. Will try the Microsoft setting. Thanks again
I see where you coming from. The funny thing is that "Microsoft UEFI Certificate Authority" is the explicit setting for Linux. See: https://learn.microsoft.com/en-us/w...yper-v#secure-boot-setting-in-hyper-v-manager As i said most big Distros work without any issues, but you might run into badly configured images/distros from some vendors.