Virtualbox signing error

I installed virtualbox for virtualization and face an error about signing. How can I solve that? Stopping VirtualBox services. Starting VirtualBox services. You must sign these kernel modules before using VirtualBox:
  vboxdrv vboxnetflt vboxnetadp vboxpci

Hello @carnoxen and welcome! A little more info is needed:

  1. What version of Rocky Linux are you using?
  2. Do you have secure boot enabled?

If you are able (and want) to disable secure boot, then I think the error will go away on its own. However, if you can’t do that for security reasons, you need to sign those modules using solution 2 found here: linux - Sign virtual box modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) Centos 8 - Stack Overflow

I do not have a secure boot system to test this on, so I can’t verify one way or the other whether this procedure works. Perhaps someone else here will know for sure. Good Luck!