ORacle Red Hat version 7 - installed Virtual box but got the following error message

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.0-1062.el7.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.0.14r133895
please help.
Lou

Additional information.

The RedHat system is an Azure based Linux VM.

When I try to run the above command: sudo /sbin/vboxconfig
I get the following message:


vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-1062.el7.x86_64
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-1062.el7.x86_64

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.


I’m glad that I am not loading this on my personal machine!!! To many errors!!!

I will make a wild guess here. If you run on azure, you already on a VM, you probably cannot run a VM over a VM.

Hi @Louis_99687,

@steevej-1495 is right - you cannot run nest VMs (specifically 64-bit).

You might need to use certain CPU extensions to make this work.
I would suggest you to not use another VM for this course as a host machine.

Please let me know if you have any further queries.

Thanks,
Muskan
Curriculum Support Engineer

Hi Steevj and Muskan,

This was the only real choice I had, being that configuring my work laptop presented its own problems and was not suggested due to other security issues…

I was able to get this to work and all I needed to do was to run some basic updates that was being suggested in the error messages.
It looks to be working fine and I am able to work through some of the labs without error.
If you would like I can share with you what I had to do to get this to work with an Azure Linux Machine so you could help someone else who may be in the same situation.

I ended up failing the course because I could not get setup in time. I have since re-registered for this course and look forward to having a viable method to learn MongoDB.

Thank You

Hi @Louis_99687,

Thanks for the update and I’m glad you were able to fix the issue.

Yes, I think it would be a good idea to share this with the community so that it can help someone who might be having the same issue :slight_smile: .

Thanks,
Shubham Ranjan
Curriculum Support Engineer