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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!