Disable KVM for VirtualBox on Ubuntu

I recently installed Ubuntu and got an error that the kvm and kvm-amd modules are blocking VirtualBox from running VMs.

Failed to open a session for the virtual machine xp efendi.
AMD-V is being used by another hypervisor. (VERR_SVM_IN_USE).
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).

Just remove these modules to quickly fix the problem.

sudo rmmod kvm_amd
sudo rmmod kvm

A restart will load the modules again. To make it permanent, create the file /etc/modprobe.d/blacklist-kvm.conf and change its content as shown below.

blacklist kvm-amd
blacklist kvm

Links:

https://help.ubuntu.com/community/Loadable_Modules

Proudly powered by WordPress

Discover more from Dedunu

Subscribe now to keep reading and get access to the full archive.

Continue reading