Setting up Vagrant on RHEL 8
Hi,
I am a complete newbie in the RHEL world. I just setup on system with a developer subscription to try and prep for the RHCSA exam.
I am trying to install virtual box and vagrant on top of my RHEL system.
Here are the errors that I get:
[tkhara@localhost server1]$ vagrant up --provider=virtualbox
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
[tkhara@localhost server1]$ VBoxManage --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.18.0-240.10.1.el8_3.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
6.1.16r140961
[tkhara@localhost server1]$ sudo /sbin/vboxconfig
[sudo] password for tkhara:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
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.
Please do let me know if this is not the right forum to post such issues. Otherwise, any guidance to get this setup would be appreciated.
Thank you.