modprobe: FATAL: Module kvm is in use.

criticalg

Member
Apr 25, 2022
3
0
6
In relation to configuring Proxmox host for nested visualization:

I am trying to make "kvm ignore_msrs=1" persistent in /etc/modprobe.d/kvm.conf.
I am using the instruction found here: https://pve.proxmox.com/wiki/Nested_Virtualization#Troubleshooting


When I run modprobe -r kvm, I get modprobe: FATAL: Module kvm is in use.

# echo "options kvm ignore_msrs=1" >> /etc/modprobe.d/kvm.conf
# cat /etc/modprobe.d/kvm.conf
options kvm ignore_msrs=1
# modprobe -r kvm
modprobe: FATAL: Module kvm is in use.
# modprobe kvm
#

I have not stopped all VMs before running "modprobe -r kvm" could that be the issue?
 
Hello,

I have not stopped all VMs before running "modprobe -r kvm" could that be the issue?
Yes, you cannot remove modules that are in use, as the modprobe command tells you. Your VMs are most likely using the kvm module because it is the default. You can see the kvm option in the Options tap of each VM configuration.