I made a Windows VM with VirtualBox on my NixOs desktop, but when I try to start it, it terminates and suggests running a command that does not work.
I included virtualbox with this line in my configuration.nix:
virtualisation.virtualbox.host.enable = true;
And it successfully created a virtual machine from the Windows 10 64bit iso. This VM shows up in VirtualBox as WindowsVM. However, when I select it and hit the “start” button, it gives me this error:
The virtual machine ‘WindowsVM’ has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
MachineWrap
Interface:
IMachine {300763af-5d6b-46e6-aa96-273eac15538a}
and creates a popup with the message:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
‘/sbin/vboxconfig’
as root.
If your system has EFI Secure Boot enabled you may also 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.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) – The support driver is not installed. On linux, open returned ENOENT.
When I run the suggested command “sudo /sbin/vboxconfig” in the console, it isn’t recognized:
sudo: /sbin/vboxconfig: command not found
EmmaBellHelium is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.