Fixing VirtualBox Error: AMD-V In Use (VERR_SVM_IN_USE)
Error: VirtualBox can't enable AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).
Why This Happens
This error occurs because AMD-V is already in use by KVM (Kernel-based Virtual Machine) on your Linux host. VirtualBox cannot share AMD-V with KVM, resulting in a failure to start your VM.
How to Fix It (Temporarily)
- Check if KVM is loaded:
If it returns results likelsmod | grep kvm
kvm
orkvm_amd
, it's active. - Unload KVM modules:
This command removes KVM from the kernel for the current session.sudo modprobe -r kvm_amd kvm
- Start your VirtualBox VM: It should now run without the error.
Optional: Permanently Disable KVM (for VirtualBox Users)
- Blacklist KVM modules:
echo -e "blacklist kvm\nblacklist kvm_amd" | sudo tee /etc/modprobe.d/blacklist-kvm.conf
- Update initramfs:
sudo update-initramfs -u
- Reboot your system:
sudo reboot
Note: This will disable KVM permanently. Useful for VirtualBox, but will break QEMU/KVM functionality.
If you need both KVM and VirtualBox often, consider isolating them using dual boot or separate containers/VMs. These hypervisors generally don’t work well together.
0 Comments:
Post a Comment