Problems with VirtualBox

I installed VirtualBox via installer file from the official website and whenever I try to run it I get this error message:
image

After running the /sbin/vboxconfig command I got another error. Unfortunately I did not save the full error message, but I saved the instruction it had on what to do:

System is running in Secure Boot mode, however your distribution
does not provide tools for automatic generation of keys needed for
modules signing. Please consider to generate and enroll them manually:

sudo mkdir -p /var/lib/shim-signed/mok
sudo openssl req -nodes -new -x509 -newkey rsa:2048 -outform DER -addext “extendedKeyUsage=codeSigning” -keyout /var/lib/shim-signed/mok/MOK.priv -out /var/lib/shim-signed/mok/MOK.der
sudo mokutil --import /var/lib/shim-signed/mok/MOK.der
sudo reboot

Restart “rcvboxdrv setup” after system is rebooted

There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system’s documentation for more information.

After doing everything in this instruction I now have this:

It asks me for a password for 50 times then dies. When I ran the commands from the instruction above it asked me to set some information(like country, city, organization and password) but it does not react to password I set, neither to my account’s password(as they are the same). Is there any way to fix this?

This is the easiest method to set up VirtualBox:
Howto/VirtualBox - RPM Fusion

But the recommended way is to use virt-manager.

2 Likes

I was able to run virtualbox with the secure boot disabled in bios, but virt-manager works even with the secure boot on so I guess I will just use it instead. Thanks a lot

1 Like