Thursday, June 2, 2022

[SOLVED] FATAL: Module kvm_intel is in use

Issue

I am trying to remove a module, but it keeps on failing with:

$ sudo modprobe -r kvm_intel
FATAL: Module kvm_intel is in use.

while:

$ lsmod | grep kvm
kvm_intel             120858  4 
kvm                   296583  1 kvm_intel

How should I remove kvm_intel ?


Solution

For posterity, I tried:

$ sudo rmmod -f kvm_intel

And suddenly my computer started beeping, and switched to a virtual screen full of kernel message.

After a reboot, I simply tried:

$ sudo apt-get remove libvirt-bin

and then:

$ sudo modprobe -r kvm_intel


Answered By - malat
Answer Checked By - David Marino (WPSolving Volunteer)