I'm trying to install Red Hat Enterprise Linux using VirtualBox in Ubuntu 17.10.

I have successfully installed it. But while running I'm getting the following error message:

enter image description here

I tried many times running the suggested command:

sudo /sbin/vboxconfig

But then I receive this error:

vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
as root.

marked as duplicate by karel, Eric Carvalho, Charles Green, Fabby, Zanna Feb 3 '18 at 21:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.