Help with Virtual machines in Virtualbox

Hi i wanted to install Virtualbox after abit of trial and error i got the gui running but when i try to launch the vm i get this error

VirtualBox can’t enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}

i followe dthe wiki entry for virtualbox entirely.

Any help is much appreciated

If KVM is the prefered way on nixos please point me in the correct direction so that i can switch to that.

Is virtualbox a must for you current situation?

If spinning new virtual machines independently of the underlying technology is what you need i would highly suggest you to use virt-manager with kvm.

https://nixos.wiki/wiki/Virt-manager

1 Like

Disable kvm with this configuration in your configuration.nix

  • amd cpu
    boot.blacklistedKernelModules = [ “kvm-amd” ];

  • intel cpu
    boot.blacklistedKernelModules = [ “kvm-intel” ];