I have NixOS installed on an Intel i5-11600K with 16 GB memory using the integrated GPU (not a VM). The current channel is 24.05 stable and is up to date. When attempting to start any virtual machine in VirtualBox, I get the following error:
VirtualBox kernel driver not Installed. The vboxdrv kernel module was either not loaded, /dev/vboxdrv is not set up properly, or you are using EFI Secure Boot and the module is not signed in the right way for your system. If necessary, try setting up the kernel module again by executing ‘/sbin/vboxconfig’ as root (VERR_VM_DRIVER_NOT_INSTALLED).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
I have tried live iso’s of Linux Mint Mate, Manjaro, and NixOS. I also downloaded and imported the NixOS.ova file, and got the same error.
A system reboot does not fix the problem. Secure Boot is disabled. I have not been able to install vboxconfig.
VirtualBox launches and runs; I can configure it and create new vm’s. It just doesn’t let me actually run one. There are more programs in the "packages =" statement.
virtualisation.virtualbox.host.enable = true; already adds virtualbox to your system, and virtualisation.virtualbox.guest is only usefull when running nixos as a guest inside virtualbox.