You are not logged in.

#1 2013-06-11 13:53:00

Registered: 2013-06-11
Posts: 8

Blacklisting KVM

Hello all. I've been trying to blacklist the KVM kernel module because every time I start my computer with virtualization enabled in the BIOS I get a kernel panic when kvm loads. I've tried adding "modprobe.blacklist=kvm,kvm-intel" to the end of the "linux" line in grub's edit mode and booting that way, but when I run `lsmod` it still shows that kvm has been loaded.

Now according to this post if the module I'm trying to blacklist is loaded as a part of initramfs then I can't blacklist them as I normally would. Indeed, running `mkinitcpio -M` lists "kvm_intel" as an included module.

My question then is how do I remove "kvm_intel" with the certainty that I won't break my system? Can I ensure that it will load at boot lest my system actually need it? Because virtualization is disabled in the bios, is KVM not even doing anything anyway?



#2 2013-06-11 14:13:46

From: Ancapistan
Registered: 2010-07-12
Posts: 2,730

Re: Blacklisting KVM

1) Create a blacklist file
2) add modconf to your HOOKS array
    add the blacklist file (full path) to your FILES array
3) Rebuild your initramfs
4) Make sure the file is in your initramfs

Edit: the module will still be put in your initramfs, it just won't get loaded.

Can I ensure that it will load at boot lest my system actually need it?

You mean if your system actually needs it? I can't think of any situation where it would be needed at boot. You'll still be able to load it manually.

Last edited by alphaniner (2013-06-11 14:18:22)

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner


#3 2013-06-11 14:39:37

Registered: 2013-06-11
Posts: 8

Re: Blacklisting KVM

Thanks a lot alphaniner! That definitely worked. Although I can't blacklist from the bootloader, it still works from the blacklist file.

Unfortunately I still get a kernel panic when booting around the place where kvm would start.

I'll explore some more and leave the actual debugging for another forum post (if I can't figure it out myself.)


Board footer

Powered by FluxBB