This error is because you have virtualbox and kvm installed. The kernel modules conflict.
The "simple" solution is to use one or the other, but not both. You can, however, use both as long as you are willing to manually (or script) loading / unloading the kernel modules.
To see your modules
#Virtualbox modules
sudo lsmod | grep vbox
#kvm
sudo lsmod| grep kvm
To remove a module
# remove virtualbox
sudo rmmod vboxdrv
sudo rmmod vboxnetflt
#remove kvm
sudo rmmod kvm
sudo rmmod kvm_amd
use insmod
sudo insmod /full/path/to/your/modules
You can find the module with
locate kvm | grep .ko
locate vbox | grep .ko
Use the modules for your current kernel.
Answer from Panther on askubuntu.comThis error is because you have virtualbox and kvm installed. The kernel modules conflict.
The "simple" solution is to use one or the other, but not both. You can, however, use both as long as you are willing to manually (or script) loading / unloading the kernel modules.
To see your modules
#Virtualbox modules
sudo lsmod | grep vbox
#kvm
sudo lsmod| grep kvm
To remove a module
# remove virtualbox
sudo rmmod vboxdrv
sudo rmmod vboxnetflt
#remove kvm
sudo rmmod kvm
sudo rmmod kvm_amd
use insmod
sudo insmod /full/path/to/your/modules
You can find the module with
locate kvm | grep .ko
locate vbox | grep .ko
Use the modules for your current kernel.
This problem has solved by following codes in terminal:
sudo killall VBoxSVC
export VBOX_HWVIRTEX_IGNORE_SVM_IN_USE=true
VirtualBox
VirtualBox can't enable the AMD-V extension, since kernel 6.12
virtualbox - Why and how were KVM modules unexpectedly enabled in Ubuntu 24.04? - Unix & Linux Stack Exchange
VirtualBox AMD-V is being used by another hypervisor .. VirtualBox can't enable the AMD-V extension
VirtualBox can't enable the AMD-V extension. What changed?
Videos
When I launch VirtualBox first off I get a cant enumerate USB device error and then when I try and open any of the Virtual Machines I get the following Error "VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension".
Now doing a search on this error I discover that you cannot run Qemu and VirtualBox together. So As I've been mainly using VirtualBox I decided to uninstall qemu and virt-manager and all dependancies.
Unfortunately this hasnt worked and Im still getting the same error. SO I searched "how to disable KVM kernel extension"
I found instruction on how to temporarily disable them and how to permanently remove them.
It said to create a blacklist
sudo nano /etc/modprobe.d/blacklist-kvm.conf
and then add
blacklist kvm
blacklist kvm_amd
Surely there is a way to just remove these modules and wont this mean that VirtualBox also wont work?
In version 6.12 of the Linux kernel, kvm module initialisation was changed — it now takes place as soon as the modules are loaded, and not the first time they are used. This prevents VirtualBox from working, as you discovered. This is documented in the VirtualBox 7.1.4 release notes. Since your system was upgraded from 6.11 to 6.14, that explains the sudden appearance of the symptoms.
To return to the previous situation (where KVM modules can be loaded without preventing VirtualBox from working), you can add kvm.enable_virt_at_load=0 to the kernel boot parameters. If you’re using Grub on a Debian derivative, that’s done by adding the parameter to the GRUB_CMDLINE_LINUX_DEFAULT= line in /etc/default/grub, then running sudo update-grub. After a reboot, this will allow VirtualBox to work, without preventing any other KVM-based tool from working either.
The other option is to disable the KVM modules entirely; this is safe, but will prevent any KVM-based tool from working. See cas’ answer for details.
Create (as root) a file called /etc/modprobe.d/kvm.conf with the following lines:
blacklist kvm
blacklist kvm-amd
Save it and run update-initramfs -u -k all (again, as root). If you use dracut or something else instead of initramfs you'll have to figure out the command to update it yourself (I've never used dracut)... or maybe someone here knows how and will mention it in a comment so I can update my answer.
To remove kvm and kvm-amd from the currently running kernel without needing to reboot, run:
modprobe -r kvm
You may also need to run modprobe -r kvm_amd but I think just kvm alone will be enough. If something is currently using the kvm modules (e.g. libvirt), you'll have to kill that before you'll be able to remove the modules.
Starting with the Linux 6.12 kernel, the behavior of KVM kernel modules has changed.
They now accept virtualization directly upon module load; this procedure was integrated without prior discussion some time ago.
Since this modification, kernels initialize virtualization upon module load by default, which causes VirtualBox VMs to fail to start.
To avoid this, you need to add the following line to the command line of the kernel in use:
kvm.enable_virt_at_load=0
To do this, edit the /etc/default/grub file.
sudo nano /etc/default/grub
Add kvm.enable_virt_at_load=0 to the line beginning with GRUB_CMDLINE_LINUX
Alternatively, you can create a custom file named /etc/default/grub.d/custom.cfg with this content:
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX kvm.enable_virt_at_load=0"
After saving the file with Ctrl + O and closing nano with Ctrl + X, run
sudo update-grub
sudo reboot
I found the answer.
I had to run the following to unload the kvm_amd module.
sudo rmmod kvm_amd 2>/dev/null
I have no idea why this is true now, but once I ran that command then I was able to start the VirtualBox VM up with no problems.
QEMU
Well, maybe QEMU images run no matter what, because QEMU will still run even when the VirtualBox VM is running and with the kvm_amd module unloaded.
No idea why this module is running and interfering all of a sudden.
Docker
I could also still start my Docker (running MS SQL) without the kvm_amd module running.
Well, all my virtualization seems to be working now. If you run into this problem just unload your associated module
sudo rmmod kvm_amd 2>/dev/null
sudo rmmod kvm_intel 2>/dev/null
sudo rmmod kvm 2>/dev/null
Android Studio Device Emulator
I discovered, however, that for Android Studio device emulator (which I thought ran under QEMU) you will need the kvm loaded in again. (see error I saw when I tried to start the Android Emulator)

To load your KVM module again, you can just run:
sudo modprobe kvm_amd
When you return to Android Studio & try the emulator, it will now run.
I'll be writing scripts to quickly switch between the two.
Hi all,
Some time ago I installed VirtualBox in Fedora 34 KDE. Now I want to use it again.
I'm getting 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)."
What changed? Did I install something? Online documentation is telling me to change settings in Bios. Why? I did not change anything in Bios.
Thank you!
Execute this:
$ VBoxManage modifyvm <VirtualMachineName> --nested-hw-virt on
For Windows
In Windows, go to VirtualBox installation folders -> type cmd on the bar (it will pop up cmd in that folder) -> type VBoxManage modifyvm <YourVirtualMachineName> --nested-hw-virt on -> enter.
Now the option should be checked.
Old laptop needs to run a virtual machine (using VirtualBox) with Debian-12.5.0 for a uni project.
Error code is:
"Not in a hypervisor partition HVP= 0 (VERR_NEM_NOT_AVAILABLE) AMD-V is disabled in the BIOS (VERR_SVM_DISABLED)"
However, I am unable to make any changes in the BIOS. I've updated the BIOS and tried a few command lines in cmd with my IT professor but to no avail.
I've just replaced the CMOS battery but the BIOS is still not saving changes and I'm still getting the same error messages.
Laptop specs:
Windows10 Home
AMD A8-7050 Radeon R5
HP 812F mobo
DDR3 4GB RAM
Thank you in advance
