Install Virtual Box with Secure Boot enabled?

Hai All.
I’ve read all about virtual box with secure boot enabled in this forum:
https://discussion.fedoraproject.org/t/virtualbox-with-secure-boot/74945

https://discussion.fedoraproject.org/t/virtualbox-with-secure-boot/74945

https://discussion.fedoraproject.org/t/trouble-signing-kernel-modules-for-virtualbox/71393

https://discussion.fedoraproject.org/t/virtualbox-vboxdrv-kernel-module-not-loaded/16617/5

I’ve follow the guide from this link:
https://tecadmin.net/install-oracle-virtualbox-on-fedora/

and this link:
https://www.itzgeek.com/how-tos/linux/fedora-how-tos/how-to-install-virtualbox-on-fedora-35.html

and try to module signing with RSA key pair from link above and this link:
https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/

But none of those tutorial working in my Fedora 35 secure boot enabled. virtual box service (vboxdrv.service) failed to run

cat /etc/os-release
NAME="Fedora Linux"
VERSION="35 (Workstation Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://discussion.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

uname -r
5.16.13-200.fc35.x86_64

How to solve this problem?. Actually I won’t to disable secure boot.

Thank You in Advance
Best regards,
Afiadi

It is possible to do. You’ll need to sign the kernel modules and import the key into your system’s BIOS. The steps for doing this on the Fedora side are available in the custom kernel documentation. The steps to add the key to your BIOS/UEFI settings depend on your hardware manufacturer, but most nowadays offer a way to do this in the BIOS settings at boot.

2 Likes

Wow sorry I’m to noob to follow your link guided. My fedora is for daily use, I won’t to mess up my system. But thank you for your link guide. I’m still waiting maybe other users have a more straight forward solution for noob.