vbox Virtualbox Kernel driver not installed (rc=-1908)

Hello,

I had virtualbox installed and running ok. A few days ago I upgraded to 14.2. Now When I try to start the virtual machine I get the error:
Kernel driver not installed (rc=-1908)
Is there something I can do to solve this ?

I am also trying to get some "for dummies" guide to try bhyve. If someone knows, please let me know.
The alternatives are bhyve and qemu, right ?

Thank you!
 
Hello,

I had virtualbox installed and running ok. A few days ago I upgraded to 14.2. Now When I try to start the virtual machine I get the error:
Kernel driver not installed (rc=-1908)
Is there something I can do to solve this ?
Rebuild the driver from the ports.
 
See here: https://github.com/Emrion/FreeBSD-kmod
You can compile the kmod on your machine or download the one I compiled.

There is also a means to access to some special repositories that manage the minor version of the OS.
1) Create the dir /usr/local/etc/pkg/repos.
2) In this directory create a text file (its name must ending by .conf) that contains:
FreeBSD-kmods {
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv",
priority: 1,
enabled: yes
}

If you use the latest repository, change "quarterly" by "latest":
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
Note: if you don't know on which repository you are, use pkg -vv.

3) Run the commands:
pkg delete virtualbox-ose-kmod
pkg install virtualbox-ose-kmod
 
Hello Emrion,

Thanks for your help.
I just did it as you said: (I have 14.2 and at the end of the output it says that it will only run on 14.1)
(I tried both with quarterly and latest)

root@envy:/usr/local/etc/pkg/repos # pkg delete virtualbox-ose-kmod
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
virtualbox-ose-kmod: 6.1.50.1401000_1

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling virtualbox-ose-kmod-6.1.50.1401000_1...
[1/1] Deleting files for virtualbox-ose-kmod-6.1.50.1401000_1: 100%
root@envy:/usr/local/etc/pkg/repos # pkg install virtualbox-ose-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
pkg: Repository FreeBSD-kmods has a wrong packagesite, need to re-create database
Fetching meta.conf: 100% 179 B 0.2kB/s 00:01
Fetching data.pkg: 100% 14 KiB 14.5kB/s 00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 43 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
virtualbox-ose-kmod: 6.1.50.1401000_1 [FreeBSD]

Number of packages to be installed: 1

Proceed with this action? [y/N]: y
[1/1] Installing virtualbox-ose-kmod-6.1.50.1401000_1...
[1/1] Extracting virtualbox-ose-kmod-6.1.50.1401000_1: 100%
=====
Message from virtualbox-ose-kmod-6.1.50.1401000_1:

--
The vboxdrv kernel module uses internal kernel APIs.

To avoid crashes due to kernel incompatibility, this module will only
load on FreeBSD 14.1 kernels.
 
Sorry, seems this kmod hasn't been put in the FreeBSD-kmod repo.
Try to install the one I compiled (see instructions on github).
 
Seems the FreeBSD-kmod repo is out of date for some time.
The official FreeBSD-kmods repo doesn't provide all kernel modules, only some selected. emulators/virtualbox-ose-kmod isn't among those provided. Down below are all kernel modules available listed (out of ~ 59 from ports):

pkg search -r FreeBSD-kmods -g '*'
Code:
acerhdf-kmod-0.1.4.1402000_1                       Acer Aspire One fan control
aquantia-atlantic-kmod-0.0.5.1402000_3             Aquantia AQtion (Atlantic) Network Driver (Development Preview)
biosfont-1.3.1.1402000                             Kernel module to retrieve bitmap fonts from BIOS memory
devctl-jail-kmod-g20190521.1402000                 Module to expose jail lifecycle events
drm-515-kmod-5.15.160.1402000_2                    DRM drivers modules
drm-61-kmod-6.1.92.1402000_3                       DRM drivers modules
gpu-firmware-amd-kmod-aldebaran-20230625.1402000_2 Firmware modules for aldebaran AMD GPUs
gpu-firmware-intel-kmod-skylake-20230625.1402000   Firmware modules for skylake Intel GPUs
gpu-firmware-radeon-kmod-aruba-20220511.1402000    Firmware modules for aruba Radeon GPUs
intel-em-kmod-7.7.8.1402000                        Gigabit FreeBSD Base Drivers for Intel(R) Ethernet
intel-iavf-kmod-3.0.32.1402000_2                   40G and 100G FreeBSD Driver for Virtual Function for Intel NIC
intel-ice-kmod-1.38.16.1402000_2                   Intel® Network Adapter Driver for E810 Series Devices
intel-igb-kmod-2.5.28.1402000                      NIC Driver for Intel(R) 82575/6 and 82580-Based cards
intel-ix-kmod-3.3.35.1402000_2                     10 gigabit FreeBSD Base Driver for Intel(R) Network Connections
intel-ixl-kmod-1.13.4.1402000_2                    40 gigabit FreeBSD Base Driver for Intel(R) Network Connections
intel-ixv-kmod-1.5.34.1402000_2                    10G FreeBSD Base Driver Virtual Function for Intel(R) NIC
isboot-kmod-0.2.15.1402000                         Kernel module enabling iSCSI/IBFT boot
linux_dvbwrapper-kmod-1.0.1402000_2                Linux compatibility layer - DVB ioctl handler
mac_nonet-kmod-g20150821.1402000                   MAC policy to disable access to networking for certain group
mac_rtprio-kmod-g20170417.1402000                  MAC policy to manage access for setting realtime priorities by GID
ndproxy-3.2.1402000_1                              Implementation of IPv6 Neighbor Discovery proxy
ng_mikrotik_eoip-1.0.1402000                       Netgraph node for Mikrotik EoIP tunneling
open-vm-kmod-12.5.0.1402000,2                      Open VMware tools for FreeBSD VMware guests
opencbm-kmod-0.4.99.104.1402000_2                  OpenCBM driver module for parallel-port X[MA]-1541 cables
parallels-tools-0.1.2.1402000_1                    Parallels Desktop Tools for FreeBSD
plasma-kmod-0.1.1402000_4                          Plasma-effect screensaver kernel module
ptx-kmod-0.0.20111212.1402000_2                    Device driver for PT1/PT2 ISDB-S/T tuner cards
pwcbsd-1.4.1.1402000_15                            The Linux pwc webcam driver ported to FreeBSD
realtek-re-kmod-1100.00.1402000_1                  Kernel driver for Realtek PCIe Ethernet Controllers
realtek-re-kmod198-198.00.1402000                  Kernel driver for Realtek PCIe Ethernet Controllers
sysctlbyname-improved-kmod-20221211.1402000        Internal sysctl object to implement an improved sysctlbyname(3)
sysctlinfo-kmod-20221211.1402000_1                 Kernel sysctl MIB-Tree interface
twa-kmod-20230821.1402000                          3ware 9000/9500/9550/9650 series SATA RAID controllers driver
uarduno-1.02.1402000_1                             FreeBSD Kernel Driver for the Arduino Uno USB interface
utouch-kmod-0.0.5.1402000                          Kernel driver for absolute USB HID mice
vether-kmod-g20211214.1402000_1                    Virtual Ethernet Interface
wifi-firmware-ath10k-kmod-20240513.1402000_1       Firmware modules for the ath10k (ath10k) WiFi NIC driver
wifi-firmware-ath11k-kmod-20240513.1402000_1       Firmware modules for the ath11k (ath11k) WiFi NIC driver
wifi-firmware-ath12k-kmod-20240513.1402000_1       Firmware modules for the ath12k (ath12k) WiFi NIC driver
wifi-firmware-iwlwifi-kmod-20241017.1402000_1      Firmware modules for the iwlwifi (iwlwifi) WiFi NIC driver
wifi-firmware-mt76-kmod-20240513.1402000_1         Firmware modules for the mt76 (mt76) WiFi NIC driver
wifi-firmware-rtw88-kmod-20241017.1402000_1        Firmware modules for the rtw88 (rtw88) WiFi NIC driver
wifi-firmware-rtw89-kmod-20241017.1402000_1        Firmware modules for the rtw89 (rtw89) WiFi NIC driver

Is there anything else we can do besides mixing ports with pkg?
Download package from Emrion's github repo (link in post # 4).
 
Back
Top