I've used VirtualBox for years on my Lenovo ThinkPad for several years with Ubuntu 16.04. I have not entered my BIOS for years, so I haven't dis/en-abled any features by installing Debian.
I installed a new hard disk and selected Debian Buster AMD64 as my new OS. It seems the installation documentation is out of date and those exact steps do not present the user with an operable VirtualBox installation.
From webpage:
https://www.virtualbox.org/wiki/Linux_Downloads
I downloaded:
virtualbox-6.1_6.1.10-138449~Debian~buster_amd64.debas specified for my operating system and proceeded through the installation process, but this DEB file is not fully compatible with Debian Buster and provides an error text:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.19.0-9-amd64) 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.The installation page says nothing of compiling kernel modules. So I proceed run the command:
sudo /sbin/vboxconfig
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 Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-amd64 linux-headers-4.19.0-9-amd64
This system is currently not set up to build kernel modules.
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:
linux-headers-amd64 linux-headers-4.19.0-9-amd64
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.
This isn't helpful at all. So the DEB file was not actually correctly built for Debian 10. It's time to use an alternative method for installing VirtualBoxSo I proceeded to the subsection on the webpage titled "Debian-based Linux distributions" and followed those steps.
I added to
/etc/apt/sources.listthe following line:
deb https://download.virtualbox.org/virtualbox/debian buster contribDebian would not update without the key, which was quite annoying.
There isn't a key for Debian 10, just Debian 8 or Ubuntu 16.04 which are older distributions. I tried the Debian 8 key on hopes that it would work and amazingly, it actually worked.
I issued the command:
sudo apt-get install virtualbox-6.1
and gotReading package lists... Done Building dependency tree Reading state information... Done virtualbox-6.1 is already the newest version (6.1.10-138449~Debian~buster). 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.So apparently nothing changed. I still have a broken VirtualBox with "The vboxdrv kernel module is not loaded".
When can we be expected to find this module loaded into a future version such that Debian 10 is fully supported?