VirtualBox not is possible start any VM because AMD-V are being used

aug7744

Member
Joined
Aug 12, 2020
Messages
117
Reaction score
14
Credits
1,232
Hello. Thanks for reading my topic.
Here Ubuntu 24.04 kernel 6.14 and VirtualBox 7.2.4.
When I try to start an VM the task is stopped with the error message below

"VirtualBox AMD-V is being used by another hypervisor .. VirtualBox can't enable the AMD-V extension."

Is how need stop the KVM module.
How to do it ?
Have an nice week.
 


You need to unload KVM modules with modprobe:
Code:
$ lsmod |grep kvm
kvm_intel             544768  0
kvm                  1490944  1 kvm_intel
irqbypass              16384  1 kvm
$ sudo modprobe -vr kvm_intel kvm

The Intel module will be different on your AMD machine. After the last command completes, start Virtualbox.

It is a known issue and open on the Virtualbox issue tracker. It happens because the KVM modules are autoloaded with newer kernels. There is a kernel option (kvm.enable_virt_at_load=0) that can be added to restrict the autoloading. https://discussion.fedoraproject.or...rnel-6-12-virtualbox-fails-to-start/139896/12
 
Thanks for your reply.
here
lsmod |grep kvm
show

kvm_amd 245760 0
ccp 155648 1 kvm_amd
kvm 1425408 1 kvm_amd
irqbypass 12288 1 kvm

not intel module listed.
If new kernel load automatically kvm not is because will be used for some kernel and OS tasks ?
Not does problems if disabling it ?
 
The modprobe command would fail/error, if a process uses the kvm module.
It is "modprobe -vr kvm kvm_amd" for you according to your output.

It's no problem, if there is no error. For the rest of your system I obviously have no idea what software it uses, the regular Ubuntu install probably has Gnome Boxes installed. You won't be able to run it or other virtualisation and Virtualbox at the same time.
 
Thanks for all replies.
sudo modprobe -vr kvm_amd kvm
is the solution.
Have an nice week.
 


Follow Linux.org

Members online


Top