I am very new to Linux and recently started using it (dual boot with Windows). I am trying to run Ansible which does not support Windows and thus here I am!
Currently using:
- Ubuntu 22.04
- VirtualBox 7.0.10 from official site
- Kernel (uname -r): 6.2.0-33-generic
Problem:
- Running
VBoxManage --version
in terminal gives a warning message:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (6.2.0-33-generic) 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.
7.0.10r158379
- Running sudo /sbin/vboxconfig gives this error message:
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.
What I have tried: Solutions offered here, I tried disabling secure boot and doing the mokutil package. The error message still persists afterwards.
Thank you for your time! Really appreciate it :D
P.S. I am trying to learn Ansible with Vagrant and VirtualBox. Ansible do not support Windows and VirtualBox does not support Mac with Apple Silicon. So I am really hoping I can make it work with Linux.
sudo apt-get purge virtualbox ; sudo apt-get autoremove
and then try the method described to install VirtualBox 7 in link: Virtualbox 6 stopped working After kernel upgrade in Ubuntu 22.04 . – rusty Jan 17 '24 at 10:54